Project

General

Profile

Debian » History » Version 2

Lutz Suhrbier, 07/30/2009 06:19 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
48
* less
49
50
* openssh-server
51
52
* lvm2
53
54
* lsof
55
56
* nmap
57
58
~~~
59
# apt-get install less openssh-server lvm2 lsof nmap
60
~~~
61
62
### OpenSSH configuration
63
64
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 option has been set in the openssh-server configuration file _/etc/ssh/sshd_config_.
65
66
67
~~~
68
PasswordAuthentication no
69
UsePAM no
70
~~~
71
The public keys of users enabled to login as root must be stated in the file_/root/.ssh/authorized_key_.
72
73
74
75 2 Lutz Suhrbier
### Network Configuration
76 1 Lutz Suhrbier
77
 **Important note:** 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_ :
78
79
80
~~~
81
# The loopback network interface
82
auto lo
83
iface lo inet loopback
84
# The primary network interface
85
auto eth0
86
iface eth0 inet static
87
        address 160.45.63.20
88
        netmask 255.255.255.0
89
        network 160.45.63.0
90
        broadcast 160.45.63.255
91
        gateway 160.45.63.1
92
        # dns-* options are implemented by the resolvconf package, if installed
93
        dns-nameservers 160.45.8.8
94
        dns-search bgbm.fu-berlin.
95
~~~