Debian » History » Version 6
Lutz Suhrbier, 07/30/2009 07:09 PM
1 | 1 | Lutz Suhrbier | |
---|---|---|---|
2 | # Debian Linux |
||
3 | |||
4 | |||
5 | ## Core System Installation |
||
6 | |||
7 | A network connection provided, downloading and booting [Debian's Netinst CD](http://www.debian.org/distrib/netinst) should be the quickest way to get a running _core_ Debian system. For that, deselect any possible selections like e.g. desktop or standard during the software selection part of Debian's _netinst_ installation procedure. |
||
8 | |||
9 | |||
10 | 2 | Lutz Suhrbier | Ask your network administrator for network configuration details. An automatic networking configuration requires a running DHCP system. Otherwise, the following information will be requested during the installation procedure: |
11 | |||
12 | * ip-address |
||
13 | |||
14 | * netmask |
||
15 | |||
16 | * gateway |
||
17 | |||
18 | * dns-nameservers |
||
19 | |||
20 | You can do this during the installation procedure, or change your [[#NetworkConfiguration|network configuration]] later. |
||
21 | |||
22 | |||
23 | 1 | Lutz Suhrbier | For the time being, only the user _root_ should be added to the system. Therefore, just cancel the corresponding dialog during the installation procedure prompting you to enter the first user's name. |
24 | |||
25 | |||
26 | Next, ensure the source list of Debian's package manager apt includes the following statements: |
||
27 | |||
28 | ~~~ |
||
29 | deb http://ftp.de.debian.org/debian/ etch main contrib non-free |
||
30 | deb-src http://ftp.de.debian.org/debian/ etch main contrib non-free |
||
31 | deb http://security.debian.org/ etch/updates main contrib non-free |
||
32 | deb-src http://security.debian.org/ etch/updates main contrib non-free |
||
33 | ~~~ |
||
34 | 2 | Lutz Suhrbier | You can do this during the installation procedure, or later by editing the file _/etc/apt/sources.list_ |
35 | 1 | Lutz Suhrbier | |
36 | |||
37 | Anyway, after the first system boot, you should update your Debian system by running the following commands as _root_: |
||
38 | |||
39 | ~~~ |
||
40 | apt-get update |
||
41 | apt-get upgrade |
||
42 | ~~~ |
||
43 | |||
44 | |||
45 | 2 | Lutz Suhrbier | ## Basic System Configuration |
46 | 1 | Lutz Suhrbier | |
47 | 3 | Lutz Suhrbier | Consider to prepare your system with the following useful software packages |
48 | 1 | Lutz Suhrbier | |
49 | 4 | Lutz Suhrbier | | less | Text pager | |
50 | 6 | Lutz Suhrbier | | unzip, zip | For .zip files | |
51 | 4 | Lutz Suhrbier | | lvm2 | Logical Volume Manager | |
52 | | ssh | OpenSSH client and server | |
||
53 | | ntpdate | Network time synchronisation | |
||
54 | |||
55 | 5 | Lutz Suhrbier | Use the _apt-get_ command to install these packages |
56 | 1 | Lutz Suhrbier | |
57 | 5 | Lutz Suhrbier | ~~~ |
58 | apt-get install less unzip zip lvm2 ssh ntpdate |
||
59 | ~~~ |
||
60 | 1 | Lutz Suhrbier | |
61 | 5 | Lutz Suhrbier | Follow the instructions below to get a basic configuration for some of these software packages |
62 | 1 | Lutz Suhrbier | |
63 | |||
64 | |||
65 | ### OpenSSH configuration |
||
66 | |||
67 | 5 | Lutz Suhrbier | The openssh server has been configured to accept logins via openssh keys only. So, no username/password access should be possible on this system. Therefore, the following options must be set in the openssh-server configuration file _/etc/ssh/sshd_config_ as follows: |
68 | 1 | Lutz Suhrbier | |
69 | ~~~ |
||
70 | PasswordAuthentication no |
||
71 | UsePAM no |
||
72 | ~~~ |
||
73 | 5 | Lutz Suhrbier | |
74 | 1 | Lutz Suhrbier | The public keys of users enabled to login as root must be stated in the file_/root/.ssh/authorized_key_. |
75 | |||
76 | |||
77 | |||
78 | 5 | Lutz Suhrbier | ## Network Configuration |
79 | 1 | Lutz Suhrbier | |
80 | 6 | Lutz Suhrbier | Ask your network administrator for network configuration details. |
81 | 1 | Lutz Suhrbier | |
82 | |||
83 | 6 | Lutz Suhrbier | The network configuration file is _/etc/network/interfaces_. Furthermore, you must run the following command to restart your host with the current network configuration: |
84 | |||
85 | ~~~ |
||
86 | /etc/init.d/networking restart |
||
87 | ~~~ |
||
88 | |||
89 | [[#Automatic|automatic networking configuration]] requires a running DHCP system. |
||
90 | |||
91 | For [[#Static|static networking]], you will need to request the following information from your network administrator: |
||
92 | |||
93 | * ip-address |
||
94 | |||
95 | * netmask |
||
96 | |||
97 | * gateway |
||
98 | |||
99 | * dns-nameservers |
||
100 | |||
101 | |||
102 | **Important note (Debian Etch only):** The standard etch setup configures ethernet network interfaces (eth0, eth1) using the option **allow-hotplug eth0*. This causes many problems concerning networking (e.g. deletion of the eth0 interface when restarting networking _# /etc/init.d/networking restart_. So, please use the option *auto** instead in _/etc/network/interfaces_. |
||
103 | |||
104 | |||
105 | |||
106 | 1 | Lutz Suhrbier | ### Automatic |
107 | |||
108 | This is an adequate network configuration file for DHCP managed networks. |
||
109 | |||
110 | ~~~ |
||
111 | # The loopback network interface |
||
112 | 5 | Lutz Suhrbier | auto lo |
113 | 1 | Lutz Suhrbier | iface lo inet loopback |
114 | # The primary network interface |
||
115 | auto eth0 |
||
116 | iface eth0 inet dhcp |
||
117 | 6 | Lutz Suhrbier | ~~~ |
118 | 1 | Lutz Suhrbier | |
119 | 6 | Lutz Suhrbier | |
120 | ### Static |
||
121 | |||
122 | This is a general network configuration file template for BGBM external network servers: |
||
123 | |||
124 | ~~~ |
||
125 | 5 | Lutz Suhrbier | # The loopback network interface |
126 | auto lo |
||
127 | iface lo inet loopback |
||
128 | # The primary network interface |
||
129 | 1 | Lutz Suhrbier | auto eth0 |
130 | 5 | Lutz Suhrbier | iface eth0 inet static |
131 | 1 | Lutz Suhrbier | address 160.45.63.xx |
132 | netmask 255.255.255.0 |
||
133 | network 160.45.63.0 |
||
134 | broadcast 160.45.63.255 |
||
135 | gateway 160.45.63.1 |
||
136 | # dns-* options are implemented by the resolvconf package, if installed |
||
137 | dns-nameservers 160.45.8.8 |
||
138 | dns-search bgbm.fu-berlin. |
||
139 | ~~~ |