Hardware installation procedure

22/07/2008


Status




Last updated on 03/10/2017 22:22 by Matthieu Guenebaud
Update BIOS

Download the latest version at:

Install unetbootin:

sudo aptitude install unetbootin

Then launch Unetbootin and pick FreeDos distribution.

Choose a USB key, then click on ok.

When the key is ready, copy the BIOS files at the USB key root folder.

Reboot the acer aspire one with the USB key plugged, then launch the freedos live USB.

Then type:

C:
XXXX.bat

with XXXX being the BIOS version.

Wait for the end of the process and reboot.

Use BIOS recovery

First format a USB with FAT (bootable option is not needed).

Then download the latest BIOS version:

Extract the file and copy them at the USB key root folder.

Then rename the BIOS file with .FD extension into ZG5IA32.FD. This name is mandatory.

Then start the computer while pressing Fn and Esc at the same time. The computer must be power plugged.

The button start should blink. click on it, the process should be starting.

The computer will reboot by itself.

Install aptitude

Type:

sudo apt-get install aptitude
Configure ufw firewall

Install ufw firewall:

sudo aptitude install ufw gufw

Activate netbios support:

sudo vi /etc/default/ufw

By adding:

# The nf_contrack_netbios_ns has been added
IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"

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 9091
sudo ufw allow 20500:20599/tcp
sudo ufw allow 20500:20599/udp

NTP:

sudo ufw allow ntp

Squeezeserver:

sudo ufw allow 9000

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
Optimise  hardware

Type:

sudo vi /etc/default/grub

Replace the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

With:

GRUB_CMDLINE_LINUX_DEFAULT="elevator=noop quiet splash pciehp.pciehp_force=1 enable_mtrr_cleanup"

Then apply with:

sudo update-grub

Finally type:

sudo vi /etc/fstab

And replace the line

UUID=bla-bla-bla / ext4 errors=remount-ro 0 1

With

UUID=bla-bla-bla / ext4 relatime,errors=remount-ro 0 1

These modification will be applied on reboot.

Configure wifi LEDs

Type:

sudo aptitude install linux-backports-modules-wireless-maverick-generic linux-backports-modules-alsa-maverick-generic
Fixing standbye

Create a new script:

sudo gedit /etc/pm/sleep.d/umount_sd

Paste the following:

#!/bin/sh
# mmcard must be mounted or unmounted before suspend | hibernate
case "$1" in
hibernate|suspend)
umount /dev/mmcblk0p1
;;
thaw|resume)
mount /dev/mmcblk0p1
;;
*) exit 0
;;
esac

Then change the script execution rights

sudo chmod +x /etc/pm/sleep.d/umount_sd
Configure vent

Edit the file:

sudo gedit /etc/modprobe.d/acerhdf.conf

and add the following:

# fan control for acer aspire one fan
# according to: http://piie.net/files/acerhdf_README.txt
# check status with: dmesg|grep acerhdf
# read temperatur with: cat /sys/class/thermal/thermal_zone0/temp
options acerhdf interval=5 fanon=60000 fanoff=55000 kernelmode=1

Save and quit.

Configuration will be applied on next reboot.

Change boot timer

Install Startup Manager:

sudo aptitude install startupmanager

And change boot timer.

Mount network drives

First create the destination folders:

sudo mkdir /nas
sudo mkdir /nas/Documents
sudo mkdir /nas/Musique
sudo mkdir /nas/Photos
sudo mkdir /nas/Projets
sudo mkdir /nas/Sauvegardes
sudo mkdir /nas/Video

With the proper rights:

sudo chown -R guenmat /nas

Change the user rights:

sudo visudo

Add the following line:

%admin ALL=(ALL)NOPASSWD:/bin/mount,/bin/umount

Then edit the file:

vi ~/mountnas.sh

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

#!/bin/bash
sudo mount -t cifs //192.168.0.12/Documents /nas/Documents -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.12/Musique /nas/Musique -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.12/Photos /nas/Photos -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.12/Projets /nas/Projets -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.12/Sauvegardes /nas/Sauvegardes -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.12/Video /nas/Video -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777

Change script execution rights:

chmod +x ~/mountnas.sh

Create a link:

sudo ln -s ~/mountnas.sh /bin/mountnas

Then add a shortcut calling

mountnas

Finally edit the file:

vi ~/umountnas.sh

And paste:

#!/bin/bash
sudo umount -t cifs /nas/Documents
sudo umount -t cifs /nas/Musique
sudo umount -t cifs /nas/Photos
sudo umount -t cifs /nas/Projets
sudo umount -t cifs /nas/Sauvegardes
sudo umount -t cifs /nas/Video

Change script execution rights:

chmod +x ~/umountnas.sh

Create a link:

sudo ln -s ~/umountnas.sh /bin/umountnas

Then add a shortcut calling

umountnas
Google Chrome

Download the latest google chrome at:

Then type:

sudo dpkg -i google-chrome-stable_current_*.deb
Thunderbird 3

Download the latest version on the official site:

tar -jvxf thunderbird*bz2
sudo mv thunderbird /opt
sudo ln -s /opt/thunderbird/thunderbird /usr/bin/thunderbird

Update your profile with:

thunderbird -ProfileManager &

Then add plugins Lightning, Ad Block, google agenda provider and zindus

Integrate gmail notifications in gnome

Type:

sudo add-apt-repository ppa:gm-notify-maintainers/ppa
sudo aptitude update
sudo aptitude install gm-notify
Install softwares

• Gimp

• VLC

• Filezilla

• gPodder

• Gstreamer greffons

• Cups (imprimante pdf)

• Subtitle editor

• Easy tag

• Sound converter

Improve Nautilus

Install:

sudo aptitude install nautilus-open-terminal nautilus-image-converter

Reboot to apply.

Display hidden files in Nautilus

Press Alt + F2,

Type "gconf-editor" and access to the menu "desktop -> gnome -> file_views" in the dialog box.

Tick:

show_hidden_files
show_backup_files
Install Ubuntu tweak

Type:

sudo add-apt-repository "deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu lucid main"
sudo aptitude update
sudo aptitude install ubuntu-tweak
Install Freebox remote

Type:

sudo add-apt-repository ppa:cavenel/ppa
sudo aptitude update
sudo aptitude install greemote