Changes

Jump to: navigation, search

XUELK-AN-002: Running Debian distribution

1,068 bytes added, 11:48, 1 February 2017
Adding packages
==Adding packages==
Of course, one of the greatest - if not ''the'' greatest - pros of having a desktop distribution, is the availability of a huge archive of pre-built packages. They can be installed very easily with tools such as [https://wiki.debian.org/Apt <code>apt</code>] and [https://packaging.python.org <code>pip</code>]. Before installing packages, the network interface has to be configured, as it is disabled by default. To configure it with a static IP address, <code>nano</code> text editor can be used:<pre class="board-terminal"> GNU nano 2.2.6 File: /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8)# Include files from /etc/network/interfaces.d:#source-directory /etc/network/interfaces.dauto eth0iface eth0 inet static address 192.168.0.80 netmask 255.255.255.0 gateway 192.168.0.254            [ Wrote 9 lines ]</pre>Please note the these changes will take effect after rebooting the machine. DNS server has also to be enabled, in order to resolve URLs. Again, <code>nano</code> comes to help:<pre class="board-terminal"> GNU nano 2.2.6 File: /etc/resolv.conf domain localdomainsearch localdomainnameserver 8.8.8.8                 [ Wrote 4 lines ] </pre> You can finally install the desired packages, as shown in the following examples:
<pre class="board-terminal">
root@arm:~# apt update
4,650
edits

Navigation menu