Xubuntu 1404 installation guidelines » History » Version 7

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

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 7 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 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
Edit @/etc/apt/source.list@ and add @contrib@ and @non-free@ targets in order to obtain the following.
19 7 ROQUE, Damien
20 1 ROQUE, Damien
<pre>
21 7 ROQUE, Damien
deb http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
22 7 ROQUE, Damien
deb-src http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
23 1 ROQUE, Damien
24 7 ROQUE, Damien
deb http://security.debian.org/ wheezy/updates main contrib non-free
25 7 ROQUE, Damien
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
26 1 ROQUE, Damien
27 7 ROQUE, Damien
# wheezy-updates, previously known as 'volatile'
28 7 ROQUE, Damien
deb http://ftp.fr.debian.org/debian/ wheezy-updates main contrib non-free
29 7 ROQUE, Damien
deb-src http://ftp.fr.debian.org/debian/ wheezy-updates main contrib non-free
30 7 ROQUE, Damien
</pre>
31 7 ROQUE, Damien
32 7 ROQUE, Damien
Update the package list.
33 3 ROQUE, Damien
<pre>
34 7 ROQUE, Damien
apt-get update
35 4 ROQUE, Damien
</pre>
36 1 ROQUE, Damien
37 7 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 7 ROQUE, Damien
htop inkscape filezilla gparted sudo
44 5 ROQUE, Damien
</pre>
45 1 ROQUE, Damien
46 1 ROQUE, Damien
h2. Services configuration
47 5 ROQUE, Damien
48 5 ROQUE, Damien
h3. Sudo configuration
49 5 ROQUE, Damien
50 7 ROQUE, Damien
Any modification to the @sudo@ configuration should be performed through the following command.
51 1 ROQUE, Damien
<pre>
52 7 ROQUE, Damien
visudo
53 1 ROQUE, Damien
</pre>
54 1 ROQUE, Damien
55 7 ROQUE, Damien
Append the following line in order to preserve environment variables @http_proxy@ and @https_proxy@ through @sudo@.
56 5 ROQUE, Damien
<pre>
57 5 ROQUE, Damien
Defaults env_keep += "http_proxy https_proxy"
58 1 ROQUE, Damien
</pre>
59 1 ROQUE, Damien
60 5 ROQUE, Damien
h3. Enable LDAP authentication
61 1 ROQUE, Damien
62 7 ROQUE, Damien
In order to authenticate through the network using LDAP, it is necessary to install the following package.
63 5 ROQUE, Damien
<pre>
64 7 ROQUE, Damien
apt-get install libpam-ldap
65 1 ROQUE, Damien
</pre>
66 7 ROQUE, Damien
At the end of the installation, an interactive configuration process is triggered. It can called back using the following instruction.
67 5 ROQUE, Damien
<pre>
68 7 ROQUE, Damien
dpkg-reconfigure libpam-ldap
69 1 ROQUE, Damien
</pre>
70 1 ROQUE, Damien
71 7 ROQUE, Damien
72 7 ROQUE, Damien
Add the @ldap@ module to the first three instructions in @/etc/nsswitch.conf@ in order to obtain something like this:
73 5 ROQUE, Damien
<pre>
74 5 ROQUE, Damien
passwd:         ldap compat
75 5 ROQUE, Damien
group:          ldap compat
76 5 ROQUE, Damien
shadow:         ldap compat
77 5 ROQUE, Damien
</pre>
78 5 ROQUE, Damien
79 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.
80 5 ROQUE, Damien
<pre>
81 5 ROQUE, Damien
session required    pam_mkhomedir.so skel=/etc/skel umask=0022
82 5 ROQUE, Damien
</pre>
83 5 ROQUE, Damien
84 7 ROQUE, Damien
Finally, restart the @nscd@ service.
85 5 ROQUE, Damien
<pre>
86 5 ROQUE, Damien
/etc/init.d/nscd restart
87 5 ROQUE, Damien
</pre>
88 5 ROQUE, Damien
89 5 ROQUE, Damien
h3. Enable NTP
90 1 ROQUE, Damien
91 7 ROQUE, Damien
In order to synchronize the real time clock through the network, install the following package.
92 5 ROQUE, Damien
<pre>
93 7 ROQUE, Damien
apt-get install ntpdate
94 5 ROQUE, Damien
</pre>
95 5 ROQUE, Damien
96 7 ROQUE, Damien
If applicable, add local NTP servers to @/etc/default/ntpdate@. Then trigger the first synchronization.
97 5 ROQUE, Damien
<pre>
98 5 ROQUE, Damien
ntpdate-debian
99 1 ROQUE, Damien
</pre>
100 7 ROQUE, Damien
101 7 ROQUE, Damien
Notice that NTP synchronization is performed at each network interface bootup.