Debian Wheezy 7 installation guidelines » History » Version 6

ROQUE, Damien, 11/30/2014 07:09 PM

1 1 ROQUE, Damien
h1. Debian Wheezy 7 installation guidelines
2 1 ROQUE, Damien
3 5 ROQUE, Damien
The distribution GNU/Linux Debian Wheezy has been chosen for several reasons: long term support (until 2017), active community, stable packages. We consider an installation performed thanks to a Debian Live support.
4 1 ROQUE, Damien
5 1 ROQUE, Damien
During the installation process, the following partitioning is recommended:
6 1 ROQUE, Damien
* primary SWAP, 1 GB;
7 1 ROQUE, Damien
* primary ext4, /, 40 GB;
8 1 ROQUE, Damien
* secondary ext4, /home, (remaining space).
9 1 ROQUE, Damien
10 5 ROQUE, Damien
Once the installation is performed, it is assumed to realize the following operations using a root shell. If necessary, a proxy will be set through appropriate environment variables:
11 5 ROQUE, Damien
<pre>
12 5 ROQUE, Damien
export http_proxy=http://host:port
13 6 ROQUE, Damien
export https_proxy=http://host:port
14 5 ROQUE, Damien
</pre>
15 1 ROQUE, Damien
16 5 ROQUE, Damien
h2. Additional packages installation
17 5 ROQUE, Damien
18 4 ROQUE, Damien
Edit @/etc/apt/source.list@ and add @contrib@ and @non-free@ targets in order to obtain the following.
19 1 ROQUE, Damien
20 1 ROQUE, Damien
<pre>
21 1 ROQUE, Damien
deb http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
22 1 ROQUE, Damien
deb-src http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
23 1 ROQUE, Damien
24 1 ROQUE, Damien
deb http://security.debian.org/ wheezy/updates main contrib non-free
25 1 ROQUE, Damien
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
26 1 ROQUE, Damien
27 1 ROQUE, Damien
# wheezy-updates, previously known as 'volatile'
28 1 ROQUE, Damien
deb http://ftp.fr.debian.org/debian/ wheezy-updates main contrib non-free
29 1 ROQUE, Damien
deb-src http://ftp.fr.debian.org/debian/ wheezy-updates main contrib non-free
30 1 ROQUE, Damien
</pre>
31 1 ROQUE, Damien
32 5 ROQUE, Damien
Update the package list.
33 1 ROQUE, Damien
<pre>
34 1 ROQUE, Damien
apt-get update
35 1 ROQUE, Damien
</pre>
36 4 ROQUE, Damien
37 5 ROQUE, Damien
Install the following additional packages.
38 1 ROQUE, Damien
<pre>
39 1 ROQUE, Damien
apt-get install texlive-full texstudio auctex wireshark filezilla \
40 1 ROQUE, Damien
openssh-server vlc octave-communications subversion git thunar-vcs-plugin \
41 1 ROQUE, Damien
xfce4-goodies arandr libreoffice-l10n-fr flashplugin-nonfree evince xournal \
42 1 ROQUE, Damien
eog python-matplotlib python-scipy ctags doxygen ntpdate libpam-ldap nscd screen \
43 1 ROQUE, Damien
htop inkscape filezilla gparted sudo
44 1 ROQUE, Damien
</pre>
45 1 ROQUE, Damien
46 1 ROQUE, Damien
h2. Services configuration
47 1 ROQUE, Damien
48 1 ROQUE, Damien
h3. Sudo configuration
49 1 ROQUE, Damien
50 1 ROQUE, Damien
Any modification to the @sudo@ configuration should be performed through the following command.
51 1 ROQUE, Damien
<pre>
52 4 ROQUE, Damien
visudo
53 1 ROQUE, Damien
</pre>
54 1 ROQUE, Damien
55 5 ROQUE, Damien
Append the following line in order to preserve environment variables @http_proxy@ and @https_proxy@ through @sudo@.
56 1 ROQUE, Damien
<pre>
57 1 ROQUE, Damien
Defaults env_keep += "http_proxy https_proxy"
58 4 ROQUE, Damien
</pre>
59 4 ROQUE, Damien
60 5 ROQUE, Damien
h3. Enable LDAP authentication
61 1 ROQUE, Damien
62 5 ROQUE, Damien
In order to authenticate through the network using LDAP, it is necessary to install the following package.
63 1 ROQUE, Damien
<pre>
64 5 ROQUE, Damien
apt-get install libpam-ldap
65 3 ROQUE, Damien
</pre>
66 5 ROQUE, Damien
At the end of the installation, an interactive configuration process is triggered. It can called back using the following instruction.
67 1 ROQUE, Damien
<pre>
68 1 ROQUE, Damien
dpkg-reconfigure libpam-ldap
69 1 ROQUE, Damien
</pre>
70 1 ROQUE, Damien
71 1 ROQUE, Damien
72 5 ROQUE, Damien
Add the @ldap@ module to the first three instructions in @/etc/nsswitch.conf@ in order to obtain something like this:
73 1 ROQUE, Damien
<pre>
74 1 ROQUE, Damien
passwd:         ldap compat
75 1 ROQUE, Damien
group:          ldap compat
76 1 ROQUE, Damien
shadow:         ldap compat
77 1 ROQUE, Damien
</pre>
78 1 ROQUE, Damien
79 5 ROQUE, Damien
In case of successful login, add the following line to @/etc/pam.d/common-session@ in order to create automatically the home directory.
80 1 ROQUE, Damien
<pre>
81 1 ROQUE, Damien
session required    pam_mkhomedir.so skel=/etc/skel umask=0022
82 1 ROQUE, Damien
</pre>
83 1 ROQUE, Damien
84 5 ROQUE, Damien
Finally, restart the @nscd@ service.
85 1 ROQUE, Damien
<pre>
86 1 ROQUE, Damien
/etc/init.d/nscd restart
87 1 ROQUE, Damien
</pre>
88 1 ROQUE, Damien
89 1 ROQUE, Damien
h3. Enable NTP
90 1 ROQUE, Damien
91 5 ROQUE, Damien
In order to synchronize the real time clock through the network, install the following package.
92 1 ROQUE, Damien
<pre>
93 5 ROQUE, Damien
apt-get install ntpdate
94 1 ROQUE, Damien
</pre>
95 1 ROQUE, Damien
96 5 ROQUE, Damien
If applicable, add local NTP servers to @/etc/default/ntpdate@. Then trigger the first synchronization.
97 1 ROQUE, Damien
<pre>
98 1 ROQUE, Damien
ntpdate-debian
99 1 ROQUE, Damien
</pre>
100 5 ROQUE, Damien
101 5 ROQUE, Damien
Notice that NTP synchronization is performed at each network interface bootup.