Debian Wheezy 7 installation guidelines » History » Version 4

ROQUE, Damien, 11/23/2014 09:51 PM

1 1 ROQUE, Damien
h1. Debian Wheezy 7 installation guidelines
2 1 ROQUE, Damien
3 4 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. Once the installation is performed, it is assumed to realize the following operations using a root shell.
4 1 ROQUE, Damien
5 1 ROQUE, Damien
h2. Partitioning
6 1 ROQUE, Damien
7 1 ROQUE, Damien
During the installation process, the following partitioning is recommended:
8 1 ROQUE, Damien
* primary SWAP, 1 GB;
9 1 ROQUE, Damien
* primary ext4, /, 40 GB;
10 1 ROQUE, Damien
* secondary ext4, /home, (remaining space).
11 1 ROQUE, Damien
12 1 ROQUE, Damien
h2. Packages installation
13 1 ROQUE, Damien
14 4 ROQUE, Damien
Edit @/etc/apt/source.list@ and add @contrib@ and @non-free@ targets in order to obtain the following.
15 1 ROQUE, Damien
16 1 ROQUE, Damien
<pre>
17 1 ROQUE, Damien
deb http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
18 1 ROQUE, Damien
deb-src http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
19 1 ROQUE, Damien
20 1 ROQUE, Damien
deb http://security.debian.org/ wheezy/updates main contrib non-free
21 1 ROQUE, Damien
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
22 1 ROQUE, Damien
23 1 ROQUE, Damien
# wheezy-updates, previously known as 'volatile'
24 1 ROQUE, Damien
deb http://ftp.fr.debian.org/debian/ wheezy-updates main contrib non-free
25 1 ROQUE, Damien
deb-src http://ftp.fr.debian.org/debian/ wheezy-updates main contrib non-free
26 1 ROQUE, Damien
</pre>
27 1 ROQUE, Damien
28 1 ROQUE, Damien
If needed, configure an HTTP proxy.
29 1 ROQUE, Damien
30 1 ROQUE, Damien
<pre>
31 1 ROQUE, Damien
export http_proxy=http://host:port
32 1 ROQUE, Damien
</pre>
33 1 ROQUE, Damien
34 1 ROQUE, Damien
Then, update the package list.
35 1 ROQUE, Damien
36 1 ROQUE, Damien
<pre>
37 1 ROQUE, Damien
apt-get update
38 1 ROQUE, Damien
</pre>
39 1 ROQUE, Damien
40 4 ROQUE, Damien
Complete the installation with the following command.
41 1 ROQUE, Damien
42 1 ROQUE, Damien
<pre>
43 1 ROQUE, Damien
apt-get install texlive-full texstudio auctex wireshark filezilla \
44 1 ROQUE, Damien
openssh-server vlc octave-communications subversion git thunar-vcs-plugin \
45 1 ROQUE, Damien
xfce4-goodies arandr libreoffice-l10n-fr flashplugin-nonfree evince xournal \
46 1 ROQUE, Damien
eog python-matplotlib python-scipy ctags doxygen ntpdate libpam-ldap nscd screen \
47 1 ROQUE, Damien
htop inkscape filezilla gparted sudo
48 1 ROQUE, Damien
</pre>
49 1 ROQUE, Damien
50 1 ROQUE, Damien
h2. Services configuration
51 1 ROQUE, Damien
52 1 ROQUE, Damien
h3. Sudo configuration
53 1 ROQUE, Damien
54 4 ROQUE, Damien
Any modification to the @sudo@ configuration should be performed through the following command.
55 1 ROQUE, Damien
<pre>
56 1 ROQUE, Damien
visudo
57 1 ROQUE, Damien
</pre>
58 1 ROQUE, Damien
59 4 ROQUE, Damien
60 1 ROQUE, Damien
<pre>
61 4 ROQUE, Damien
Defaults env_keep += "http_proxy https_proxy"
62 1 ROQUE, Damien
</pre>
63 1 ROQUE, Damien
64 4 ROQUE, Damien
65 4 ROQUE, Damien
If one wants to give administrator rights to an user, a easy way to proceed is to add him to the @sudo@ group.
66 1 ROQUE, Damien
<pre>
67 4 ROQUE, Damien
adduser <login> sudo
68 1 ROQUE, Damien
</pre>
69 1 ROQUE, Damien
70 1 ROQUE, Damien
h3. Enable LDAP authentication
71 1 ROQUE, Damien
72 1 ROQUE, Damien
<pre>
73 3 ROQUE, Damien
dpkg-reconfigure libpam-ldap
74 1 ROQUE, Damien
</pre>
75 1 ROQUE, Damien
76 1 ROQUE, Damien
<pre>
77 1 ROQUE, Damien
sudo nano /etc/nsswitch.conf
78 1 ROQUE, Damien
</pre>
79 1 ROQUE, Damien
80 1 ROQUE, Damien
<pre>
81 1 ROQUE, Damien
passwd:         ldap compat
82 1 ROQUE, Damien
group:          ldap compat
83 1 ROQUE, Damien
shadow:         ldap compat
84 1 ROQUE, Damien
</pre>
85 1 ROQUE, Damien
86 1 ROQUE, Damien
<pre>
87 1 ROQUE, Damien
sudo nano /etc/pam.d/common-session
88 1 ROQUE, Damien
</pre>
89 1 ROQUE, Damien
90 1 ROQUE, Damien
<pre>
91 1 ROQUE, Damien
session required    pam_mkhomedir.so skel=/etc/skel umask=0022
92 1 ROQUE, Damien
</pre>
93 1 ROQUE, Damien
94 1 ROQUE, Damien
<pre>
95 1 ROQUE, Damien
/etc/init.d/nscd restart
96 1 ROQUE, Damien
</pre>
97 1 ROQUE, Damien
98 1 ROQUE, Damien
h3. Enable NTP
99 1 ROQUE, Damien
100 1 ROQUE, Damien
<pre>
101 1 ROQUE, Damien
nano /etc/default/ntpdate
102 1 ROQUE, Damien
</pre>
103 1 ROQUE, Damien
104 1 ROQUE, Damien
<pre>
105 1 ROQUE, Damien
ntpdate-debian
106 1 ROQUE, Damien
</pre>