Xubuntu 1404 installation guidelines » History » Version 10

ROQUE, Damien, 12/03/2014 11:12 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 10 ROQUE, Damien
h3. Enable root account and install public keys
47 10 ROQUE, Damien
48 10 ROQUE, Damien
On Ubuntu systems, the root account is not enabled by default, enabling is done by setting a password.
49 10 ROQUE, Damien
<pre>
50 10 ROQUE, Damien
passwd root
51 10 ROQUE, Damien
</pre>
52 10 ROQUE, Damien
53 10 ROQUE, Damien
Then assume that SSH is installed and enabled. Public keys to install are supposed to be in file <my_public_keys>. They have to be deployed in the following way.
54 10 ROQUE, Damien
<pre>
55 10 ROQUE, Damien
cd /root
56 10 ROQUE, Damien
mkdir .ssh
57 10 ROQUE, Damien
cp <my_public_keys> /root/.ssh/authorized_keys
58 10 ROQUE, Damien
chmod -R 700 .ssh/
59 10 ROQUE, Damien
</pre>
60 10 ROQUE, Damien
61 5 ROQUE, Damien
h3. Enable LDAP authentication
62 1 ROQUE, Damien
63 7 ROQUE, Damien
In order to authenticate through the network using LDAP, it is necessary to install the following package.
64 5 ROQUE, Damien
<pre>
65 7 ROQUE, Damien
apt-get install libpam-ldap
66 1 ROQUE, Damien
</pre>
67 7 ROQUE, Damien
At the end of the installation, an interactive configuration process is triggered. It can called back using the following instruction.
68 5 ROQUE, Damien
<pre>
69 7 ROQUE, Damien
dpkg-reconfigure libpam-ldap
70 1 ROQUE, Damien
</pre>
71 1 ROQUE, Damien
72 7 ROQUE, Damien
73 7 ROQUE, Damien
Add the @ldap@ module to the first three instructions in @/etc/nsswitch.conf@ in order to obtain something like this:
74 5 ROQUE, Damien
<pre>
75 5 ROQUE, Damien
passwd:         ldap compat
76 5 ROQUE, Damien
group:          ldap compat
77 5 ROQUE, Damien
shadow:         ldap compat
78 5 ROQUE, Damien
</pre>
79 5 ROQUE, Damien
80 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.
81 5 ROQUE, Damien
<pre>
82 5 ROQUE, Damien
session required    pam_mkhomedir.so skel=/etc/skel umask=0022
83 5 ROQUE, Damien
</pre>
84 5 ROQUE, Damien
85 7 ROQUE, Damien
Finally, restart the @nscd@ service.
86 5 ROQUE, Damien
<pre>
87 5 ROQUE, Damien
/etc/init.d/nscd restart
88 5 ROQUE, Damien
</pre>
89 5 ROQUE, Damien
90 5 ROQUE, Damien
h3. Enable NTP
91 1 ROQUE, Damien
92 7 ROQUE, Damien
In order to synchronize the real time clock through the network, install the following package.
93 5 ROQUE, Damien
<pre>
94 7 ROQUE, Damien
apt-get install ntpdate
95 5 ROQUE, Damien
</pre>
96 5 ROQUE, Damien
97 7 ROQUE, Damien
If applicable, add local NTP servers to @/etc/default/ntpdate@. Then trigger the first synchronization.
98 5 ROQUE, Damien
<pre>
99 5 ROQUE, Damien
ntpdate-debian
100 1 ROQUE, Damien
</pre>
101 7 ROQUE, Damien
102 7 ROQUE, Damien
Notice that NTP synchronization is performed at each network interface bootup.