Xubuntu 1404 installation guidelines » History » Version 9

ROQUE, Damien, 12/03/2014 10:30 AM

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