Hardware installation procedure

11/08/2008


Status




Last updated on 04/10/2017 00:22 by Matthieu Guenebaud
USB boot

Press F8 on startup.

Install aptitude

Type:

sudo apt-get install aptitude
sudo aptitude install bash-completion
Activate SSH access

Type:

sudo aptitude install openssh-server
Configure ufw firewall

Install ufw firewall:

sudo aptitude install ufw

Then apply the following rules:

Generic rules:

sudo ufw default deny incoming
sudo ufw default allow outgoing

Domain:

sudo ufw allow domain

Internet:

sudo ufw allow ssh
sudo ufw allow ftp
sudo ufw allow www
sudo ufw allow https
sudo ufw allow http-alt

Emails:

sudo ufw allow imaps
sudo ufw allow ssmtp
sudo ufw allow xmpp-client

Remote desktop:

sudo ufw allow 5900

Samba:

sudo ufw allow 113
sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 135
sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 139
sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 445
sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 137
sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 138

Transmission:

sudo ufw allow 9099
sudo ufw allow 20500:20599/tcp
sudo ufw allow 20500:20599/udp

Printer sharing:

sudo ufw allow 631

NTP:

sudo ufw allow ntp

Squeezeserver:

sudo ufw allow 9000
sudo ufw allow 9090
sudo ufw allow 3483

Before applying the new rules, the logging can be activated with:

sudo ufw logging on

Then reload the configuration with:

sudo ufw enable

The firewall status is visible with:

sudo ufw status

To stop the firewall, the command is:

sudo ufw disable

All the existing rules can be removed with:

sudo ufw reset

And finally, to display the log, type:

sudo tail -f /var/log/ufw.log
Mount network drives

First create the destination folders:

sudo mkdir /nas
sudo mkdir /nas/Documents
sudo mkdir /nas/Livres
sudo mkdir /nas/Musique
sudo mkdir /nas/Photos
sudo mkdir /nas/Projets
sudo mkdir /nas/Sauvegardes
sudo mkdir /nas/Video
sudo mkdir /nas/Tmp
sudo mkdir /nas/Download

With the proper rights:

sudo chown -R guenmat /nas

With the proper rights:

sudo vi /etc/fstab

Add "noatime,nodiratime" options for / :

# / was on /dev/sda1 during installation

UUID=e4bc5c1e-94a2-4d02-88c1-20761913e8d0 / ext4 errors=remount-ro 0 1

Becomes

# / was on /dev/sda1 during installation

UUID=e4bc5c1e-94a2-4d02-88c1-20761913e8d0 / ext4 noatime,nodiratime,errors=remount-ro 0 1

And add the following lines (replace LOGIN and PASSWORD with their values):

# Add Buffalo NAS HDD mount
//192.168.0.100/Documents /nas/Documents cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Livres /nas/Livres cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Musique /nas/Musique cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Photos /nas/Photos cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Projets /nas/Projets cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Sauvegardes /nas/Sauvegardes cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Video /nas/Video cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Tmp /nas/Tmp cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
//192.168.0.100/Download /nas/Download cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0

To apply the new configuration without reboot:

sudo mount -a

To disable the configuration:

sudo umount -a
Upgrade softwares

Do not forget to add blocking rules from the site:

http://www.iblocklist.com/lists.php

More precisely for France, apply:

http://list.iblocklist.com/?list=fr&fileformat=p2p&archiveformat=gz

Start transmission on startup:

Nom : Transmission
Exécutable : transmission-gtk -m
Install squeezecenter

Download latest version at:

Then type:

sudo dpkg -i logitechmediaserver_*_all.deb

The sofware will be available at:

Install Conky

Type:

sudo aptitude install conky

Then download scripts at:

And type:

tar xzvf conkytheme.tar.gz
mv .conkytheme /home/guenmat

To try manually the configuration, type:

conky -c /home/guenmat/.conkytheme/conkyrc-eeebox-big

In order to start conky automatically on startup, create a new script with:

vi ~/conkystartup.sh

And paste the following content:

#!/bin/bash
sleep 15&&
conky -c /home/guenmat/.conkytheme/conkyrc-eeebox-big

Change the script execution rights:

sudo chmod +x ~/conkystartup.sh

Then use the ubuntu "Startupt applications" tool to create a new entry calling the previous script.

Install teamviewer

Download the latest 32bits version at:

Then type:

sudo aptitude install gdebi
sudo gdebi teamviewer_linux.deb
sudo rm -f teamviewer_linux.deb

Validate and proceed with the installation.

Disable adverts

Type:

gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
Install missing codecs

Type:

sudo apt-get install ubuntu-restricted-extras libavcodec-extra