Setup and configure Ubuntu Dapper Drake Linux
From Carboogle
Ubuntu Dapper Drake 6.06.1 Installation and configuration on DELL Inspiron 6400
Hardware
DELL Inspiron 6400 2 CPU Intel Core Duo T2500 2GHz 667MHz 2Mo Cache DDR2 SDRAM 2Go 533MHz HDD 100Go 7200 rpm (/dev/sda) Wide Screen 14.4 po True Life WSXGA+ 1680x1050 ATI Mobility Radeon X1300 Hyper Memory 128Mo CD/DVD 8x Burner (DVD+/-RW) double layer Synaptic touchpadbum Ethernet 10/100 Broadcom BCM4401-B0 100Base-TX Mini Card Intel Pro Wireless 3945 802.11b/g Modem 82801G (ICH7 Family) High Definition Audio Controller 1x Firewire IEEE 1394 4x USB 2.0 1x R5C822 SD/SDIO/MMC/MS/MSPro card reader 1x AGP Monitor 1x S-Video 1x ExpressCard connector Webcam Philips ToUcam Fun PCVC730K USB Optical Mouse DELL Photo AIO Printer 924 (will not work with Ubuntu since this is a windows-host printer)
Partitionning
My requirments :
- boot should not be in lvm
- so that it can be accessed if a recovery is needed in case of crash
- more convenient to modify and access boot options
- all other in lvm to be resizable
- using reiserfs because this file system has better performance and enable to resize partitions and file system on-line with lvm
- i have a 100Go hard disk but i only put small partitions, that i will resize to fit my needs
Hard disk partitions
Device Type Bootable Size System File System /dev/sda1 Primary All Extended (05) /dev/sda5 Logical * 128Mo Linux (83) Ext3 /dev/sda6 Logical Remaining Linux LVM (8e)
LVM partitions
Defined at installation
- Volume Group created: ubuntu
- Physical Volume used: /dev/sda6
- Logical Volumes added in ubuntu volume group:
Name Size File System Mount Point swap 512Mo Swap swap root 5Go ReiserFS / home 2Go ReiserFS /home data 5Go ReiserFS /data
Managing LVM partitions under Ubuntu
Installing Logical Volume Management gui from Fedora Core 5:
sudo apt-get install alien fakeroot wget http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386/system-config-lvm-1.0.18-1.2.FC5.noarch.rpm fakeroot alien system-config-lvm-1.0.18-1.2.FC5.noarch.rpm sudo dpkg -i system-config-lvm_1.0.18-2.2_all.deb sudo ln -s /usr/bin/python2.4 /usr/bin/python2
Now edit the entry menu and modify to:
gksu system-config-lvm
Creating new logical volum disk
- Create a new logical disk with system-config-lvm
- Format it
sudo mkreiserfs /dev/mapper/ubuntu-programs
- Add it to fstab
sudo pico /etc/fstab
Line to add:
/dev/mapper/ubuntu-programs /prog reiserfs defaults 0 2
- Make prog folder
sudo mkdir /prog sudo mount /prog sudo chown kha:kha /prog sudo chmod go-rwx /prog
Using APT to update your system and add external software
Editing sources of packages
sudo pico /etc/apt/sources.list
Here is my apt source list:
## UBUNTU DAPPER deb http://archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse ## UBUNTU DAPPER UPDATE BUG FIX deb http://ca.archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse ## UBUNTU DAPPER BACKPORTS deb http://ca.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse ## UBUNTU DAPPER SECURITY deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse deb http://archive.canonical.com/ubuntu dapper-commercial main #UBUNTU DAPPER COMMERCIAL deb http://download.skype.com/linux/repos/debian/ stable non-free #SKYPE deb http://wine.budgetdedicated.com/apt dapper main #WINE deb http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free #PLS repository BIN for media files. See http://ubuntu.wordpress.com/2005/12/04/libdvdcss2-and-w32codecs-for-ubuntu/ deb-src http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free #PLS repository SRC for media files. See http://ubuntu.wordpress.com/2005/12/04/libdvdcss2-and-w32codecs-for-ubuntu/ deb http://packages.freecontrib.org/ubuntu/freecontrib/ dapper free non-free #Free contrib repository BIN deb-src http://packages.freecontrib.org/ubuntu/freecontrib/ dapper free non-free #Free contrib repository SRV deb http://repository.debuntu.org/ dapper multiverse #http://repository.debuntu.org/ deb-src http://repository.debuntu.org/ dapper multiverse #http://repository.debuntu.org/ deb http://easyubuntu.cafuego.net main easyubuntu #http://easyubuntu.freecontrib.org
How to trust a source
It depends on the source. For example for http://repository.debuntu.org/ :
wget http://repository.debuntu.org/GPG-Key-chantra.txt sudo apt-key add GPG-Key-chantra.txt rm GPG-Key-chantra.txt
And for easyubuntu:
sudo wget http://easyubuntu.cafuego.net/969F3F57.gpg -O - | sudo apt-key add -
For free contrib:
gpg --keyserver subkeys.pgp.net --recv F120156012B83718 sudo gpg --export --armor F120156012B83718 | sudo apt-key add -
Checking update and updating
sudo apt-get update sudo apt-get upgrade
Clean APT cache
APT download .deb package before installing them in /var/cache/apt/archives
You can clear this folder by doing:
sudo apt-get clean
Other apt tools
sudo apt-get install apt-show-versions apt-show-source
Kernel updates and upgrades
When you change your kernel, you will have to recompile the modules you have installed, like your ATI drivers, webcam, ...
Changing kernel to have SMP Support
This steps show you how to upgrade your kernel. I will go with linux-image-686 since it enables SMP support for the 2 CPUs i have. You only have to to it once after having installed Ubuntu. After you only have to update the kernel
In a terminal:
cd /boot ls -a -l # Check that you have some kernel images installed sudo apt-get remove linux-386 sudo apt-get remove linux-image-* linux-restricted-modules-* # Confirm by yes ls -a -l # Check that you have nothing sudo apt-get install linux-686-smp # It will install all 686 images and modules you need for smp sudo apt-get install linux-headers-686 # Installing header files may be good if you need to compile modules (ATI drivers, webcam, ...) ls -a -l # Check that you have the new SMP kernel ready to boot reboot
Upgrading the kernel to another version
Optional: reinstall modules you need and configuration files
- vmware
- ati
- webcam
- grub menu.lst
Drivers, modules and hardware config
Installing ATI drivers
You must have :
- linux-headers installed (see kernel section).
- some compile and deb tools
Be sure you installed them by typing in a terminal:
sudo sudo apt-get install linux-headers-`uname -r` sudo sudo apt-get install fakeroot gcc module-assistant build-essential debhelper
Then go to your working folder and type de following commands :
FILE=ati-driver-installer-8.29.6.run wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/$FILE
You need to repeat the 7 steps below everytime you upgrade kernel.
fakeroot sh $FILE --buildpkg Ubuntu/dapper sudo dpkg -i *.deb sudo rm /usr/src/fglrx-kernel-*.deb sudo module-assistant prepare,update sudo module-assistant build,install fglrx-kernel sudo depmod rm *.deb *.changes
Configure your Xorg.conf file and linux-restricted-modules :
sudo aticonfig --initial sudo aticonfig --overlay-type=Xv sudo pico /etc/default/linux-restricted-modules-common # Add the module fglrx to the restricted moduel list sudo /sbin/lrm-manager sudo depmod -a
Do not forget to reboot, then you can confirm it worked:
$ fglrxinfo display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: RADEON 9700 Generic OpenGL version string: 2.0.5755 (8.24.8)
Synaptic Touchpad
The synaptic touchpad is already detected by Ubuntu. But some improvements should be done.
Enable horizontal scrolling
By default, only vertical scrolling is enabled.
sudo sudo pico /etc/X11/xorg.conf # Change the value to 1 for the following option in the xorg.conf file, like this : Option "HorizScrollDelta" "1"
Activate / Deactivate Touchpad at runtime
You have the option to disable the touchpad, for example if you have a mouse and do not want it to be active.
First you must enable the touchpad confif to be in shared memory so that it can be modified at runtime.
sudo sudo pico /etc/X11/xorg.conf
# Activate the SHMConfig option in the Synaptic section like the following:
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "1"
Option "SHMConfig" "true"
EndSection
Then reboot your computer.
To disable the touchpad:
synclient TouchpadOff=1
To activate the touchpad:
synclient TouchpadOff=0
Webcam Philips ToUcam Fun PCVC730K
Installing module
PWC driver for g4lv2 can be found at http://www.saillard.org/linux/pwc/snapshots/
FILE=pwc-v4l2-20061001-042701 # Downloading new driver one and installing wget http://www.saillard.org/linux/pwc/snapshots/$FILE.tar.bz2
You need to repeat the steps below everytime you upgrade kernel.
KERNEL=`uname -r` # Removing old driver OLD=`sudo find /lib/modules/$KERNEL/ -name "pwc*.ko*"` echo $OLD sudo mv $OLD $OLD.disabled # Installing PWC driver tar xjf $FILE.tar.bz2 cd $FILE sudo make install sudo depmod -a sudo rmmod pwc sudo modprobe pwc sudo lsmod | grep pwc cd .. sudo rm -f -r $FILE
# Make the module loaded automatically sudo pico /etc/modprobe.d/pwc # Add in the file: alias video0 pwc options pwc leds=0 compression=3 power_save=1 fps=10 size=cif sudo pico /etc/modules # Add these modules in the file: uhci_hcd pwc # Check if it worked update-modules dmesg | tail # You should see pwc outputs
Webcam tools
Setpwc is a tool that helps configuring the module for best settings.
Download debian package at http://www.vanheusden.com/setpwc/ and install it:
wget http://www.lennartsson.se/debian/setpwc_1.1-1_i386.deb sudo dpkg -i setpwc_1.1-1_i386.deb
- Show current settings: setpwc -p
- Save settings: setpwc -b
Examples
- Capturing sky images:
setpwc -d /dev/video -s 18000 -w auto -f 15 -c 3 -g 65535 -i 32000 -j 32000 -m 32000 -n 1 -o 1 -q 3
- Capturing indoor pictures:
setpwc -d /dev/video -s 32000 -w auto -f 15 -c 3 -g 65535 -i 32000 -j 32000 -m 32000 -n 1 -o 1 -q 3
Webcam software
You can do an apt-cache show on these package to have more information:
- came
- camorama
- camstream
- webcam
- webcamd
- motion
See http://www.think-future.de/wiki/index.php?title=PWC_webcam on how to configure them
Network Manager and Wireless card with WPA
To be able to use WPA, you can install Network Manager that is able to manage all your network devices.
Optional :
When saving wireless password, Network Manager can use gnome-keyring-manager to remember passwords.
sudo apt-get install gnome-keyring-manager # Then go to System / Preferences / Session / Startup porgrams / Add gnome-keyring-daemon # And start it manually this time (next time it will be booted automatically) gnome-keyring-daemon
Installing NetworkManager:
sudo pico /etc/network/interfaces # Comment all lines in this file except for: auto lo iface lo inet loopback
For me it became:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface # auto eth0 # iface eth0 inet dhcp
Install network manager:
sudo apt-get install network-manager network-manager-gnome gnome-session-properties # Add nm-applet to startup list # And start it manually this time (next time it will be booted automatically) nm-applet &
An icon should appear in the main panel. if you connect to a protected wireless network, gnome should ask you to save the password throught the keyring manager.
How to speed up CD/DVD-ROM
gedit gedit /etc/hdparm.conf
Put at the send:
/dev/scd0 {
dma = on
}
Boot settings
Services
To control which services start at boot time, controling runlevels, you can use bum (Boot-Up Manager, graphical tool) or sysv-rc-conf (command-line tool)
sudo apt-get install bum sysv-rc-conf
Some service can be disabled. See http://doc.gwos.org/index.php/Speed_up_boot
Here is on my laptop what i've done:
kha@box:/data/software/drivers$ sudo sysv-rc-conf --list acpi-support 0:off 1:off 2:on 3:on 4:on 5:on 6:off acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off alsa-utils 0:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:off 3:off 4:off 5:off 6:off apmd 0:off 1:off 2:off 3:off 4:off 5:off 6:off atd 0:off 1:off 2:off 3:off 4:off 5:off 6:off atieventsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off bittorrent 0:off 6:off bluez-utils 0:off 1:off 2:off 3:off 4:off 5:off 6:off bootlogd brltty S:off cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off cupsys 0:off 1:off 2:on 3:on 4:on 5:on 6:off dbus 0:off 1:off 2:on 3:on 4:on 5:on 6:off dns-clean S:off evms 0:on 6:on S:on festival 0:off 1:off 2:off 3:off 4:off 5:off 6:off gdm 0:off 1:off 2:on 3:on 4:on 5:on 6:off halt 0:on hdparm hotkey-setup 0:off 1:off 2:on 3:on 4:on 5:on 6:off hplip 0:off 1:off 2:off 3:off 4:off 5:off 6:off klogd 0:off 1:off 2:on 3:on 4:on 5:on 6:off laptop-mode 0:off 1:off 2:on 3:on 4:on 5:on 6:off linux-restri 0:on 6:on S:on loopback S:on lvm 0:on 6:on S:on makedev 0:off 1:off 2:on 3:on 4:on 5:on 6:off mdadm 0:off 1:off 2:off 3:off 4:off 5:off 6:off mdadm-raid 0:off 6:off S:off module-init- S:on mountdevsubf S:on mountvirtfs S:on mtab S:on networking 0:on 6:on S:on nvidia-kerne 0:off 1:off 2:off 3:off 4:off 5:off 6:off pcmcia 0:off 6:off S:on pcmciautils 0:off 6:off S:on powernowd 0:off 1:off 2:on 3:on 4:on 5:on 6:off powernowd.ea 2:on ppp 0:off 1:off 2:off 3:off 4:off 5:off 6:off pppd-dns S:off rc.local 2:on 3:on 4:on 5:on readahead S:off readahead-de S:off reboot 6:on rmnologin 2:on 3:on 4:on 5:on rsync 0:off 1:off 2:off 3:off 4:off 5:off 6:off screen S:on sendsigs 0:on 6:on single 1:on stop-bootlog stop-readahe 2:on sysklogd 0:off 1:off 2:on 3:on 4:on 5:on 6:off udev S:on umountfs 0:on 6:on umountroot 0:on 6:on urandom 0:on 6:on S:on usplash 0:off 1:off 2:on 3:on 4:on 5:on 6:off vbesave 2:on 3:on 4:on 5:on x11-common S:on
Boot splash images
Download boot images: http://ruslug.rutgers.edu/~mcgrof/grub-images/
sudo apt-get install grub-splashimages cd /boot/grub/ sudo cp /data/software/grub/robin.xpm.gz splashimages/ sudo ln -s splashimages/robin.xpm.gz splash.xpm.gz sudo update-grub
Boot menu
Modify in grub menu (/boot/grub/menu.lst) these options to display the boot menu for 2 seconds:
timeout 2 # hiddenmenu
Then update grub
sudo update-grub
Terminal settings
Number of line displayed for tty's
In the console, Ubuntu has a default big font and only few lines. We can increase it by modifying the grub menu.
You need to repeat the steps below everytime you upgrade kernel.
sudo pico /boot/grub/menu.lst #Modify the default boot entry to add the option vga=792: title Ubuntu, kernel 2.6.15-27-686 root (hd0,4) kernel /vmlinuz-2.6.15-27-686 root=/dev/mapper/ubuntu-root ro quiet splash vga=792 initrd /initrd.img-2.6.15-27-686 savedefault boot
Disable beep
The system beeps when we do some tabs, or erros. There are two way to disable terminal beeps:
- In Gnome Terminal, go to edit / Current profile
- For the tty console follow the steps below :
sudo pico /etc/inputrc # Uncomment the line: set bell-style none
Control number of tty console
sudo pico /etc/inittab # I only want 3 consoles : 1:2345:respawn:/sbin/getty 38400 tty1 2:23:respawn:/sbin/getty 38400 tty2 3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6
Making aliases
You can make alias command, ofr example such as a del command that will do a rm put sending data to the recycle bin.
Edit your bashrc script
pico ~/.bashrc
and add at then end:
alias ll='ls -l -a --color=auto' alias del='mv --target-directory ~/.Trash'
Printing
Cups
Cups start as a daemon to manage your printers. It can be reached at http://localhost:631/
You can safely disable the web interface by doing this:
sudo pico /etc/cups/cups.d/ports.conf # Listen localhost:631 Listen /var/run/cups/cups.sock
Restart cups
sudo /etc/init.d/cupsys restart
You should see with netsat that the port is now disabled
sudo netstat -anpltu
Add a PDF printer to Cups
Adding a PDf printer:
sudo apt-get install cups-pdf sudo chmod a+s /usr/lib/cups/backend/cups-pdf sudo /etc/init.d/cupsys restart
Then go to System / Administration / Printing / New Printer / Choose Local Printer and select PDF Printer
Select the generic manufacturer and choose "postscript color printer rev3b" driver
When you will print a PDF document, it will be saved teh PDF folder that has been created into your home folder.
Remote file system with Fuse and Sshfs
I installed an ssh daemon on a windows computer called hot (192.168.0.2) with cygwin. In cygwin, you can acess the computer drives at /cygdrive/c, /cygdrive/d, ... So i wanted to mount through an ssh connection the /cygdrive remote folder to my /mnt/hot folder.
Install required package
sudo apt-get install fuse-utils sshfs sudo chmod o+x /usr/bin/fusermount
Add me (current user) to the fuse group
sudo adduser kha fuse
Add fuse module in /etc/modules
sudo pico /etc/modules # Add the name fuse at the end of the list # Just for this time, since we do not want to reboot, execute: sudo modprobe fuse
Make the hot folder to mount:
sudo mkdir /mnt/hot sudo chown kha:kha /mnt/hot
Edit /etc/fstab (sudo pico /etc/fstab) and add the following line:
sshfs#root@192.168.0.2:/cygdrive /mnt/hot fuse user,exec,dev,suid,rw,noauto,async 0 0
Then, in a shell, as kha user, i can simply mount hot like this:
kha@box:/mnt$ ll hot/ total 0 drwxr-xr-x 2 kha kha 48 2006-10-01 16:57 . drwxr-xr-x 11 root root 264 2006-10-01 16:57 .. kha@box:/mnt$ mount hot/ Enter passphrase for key '/home/kha/.ssh/id_rsa': kha@box:/mnt$ ll hot/ total 0 dr-xr-xr-x 1 root root 0 1969-12-31 19:00 . drwxr-xr-x 11 root root 264 2006-10-01 16:57 .. drwxrwxrwx 1 544 18 0 2006-10-01 15:37 c drwxrwxrwx 1 544 513 0 2006-09-30 16:30 d kha@box:/mnt$ umount hot/ kha@box:/mnt$
Using cron scheduler
Postfix mail system
I installed postifx to send mails to local users. Also it enables to send mail through my internet provider's smtp.
sudo apt-get install mailx
I choosed the configuration "Internet host using smart host" and put my hostname and my internet provider's smtp server.
Edit the main configuration file (sudo pico /etc/postfix/main.cf) and change:
inet_interfaces = localhost
Now restart postif mail system: postfix will now listen only on localhost interface.
sudo /etc/init.d/postfix restart
You can test with the following commands:
echo test1 | mail root echo test2 | mail kha echo test3 | mail some-internet-address@your-provider.com
Also to work with Thunderbird:
sudo chmod -R 777 /var/spool/ sudo chmod -R 777 /var/mail/
Cron configuration
On my configuration, i only use cron and disabled all others (anacron, atd). So i modified crontab to keep current Ubuntu scripts working, and i also made some others.
I will show my config, but remember it should not fit your need !
# Making script folder cd /etc sudo mkdir cron.script sudo cp cron.d/.placeholder cron.script/ # Moving scripts to the script folder # I prefer having only one folder for script and manage all through crontab sudo mv cron.d/anacron cron.hourly/* cron.daily/* cron.monthly/* cron.weekly/* cron.script/ # Setting crontab sudo pico crontab
My crontab file:
# /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file. # This file also has a username field, that none of the other crontabs do. SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin MAILTO="root@localhost" # minutes hours dayOfMonth month dayOfWeek user command # 0-59 0-23 1-31 1-12 0-6=Mon-Sun # Each month 0 15 1 * * root /etc/cron.script/purge-logs 5 15 1 * * root /etc/cron.script/man-db 10 15 1 * * root /etc/cron.script/scrollkeeper 15 15 1 * * root /etc/cron.script/slocate # Each day 0 12 * * * root /etc/cron.script/ntpupdate 5 12 * * * root /etc/cron.script/aptupdate 10 12 * * * root /etc/cron.script/sysklogd 15 12 * * * root /etc/cron.script/logrotate
purge-logs script:
#/bin/bash cd /var/log rm *.gz rm *.log.* rm *.*.log rm *.0 rm *.1
aptclean script:
#/bin/bash echo [$0] Cleaning APT cache... apt-get clean
aptupdate script:
#/bin/bash echo [$0] Updating package list... apt-get update
ntpupdate script:
#/bin/bash echo [$0] Updating time ntpdate pool.ntp.org
Gnome settings
Edit menus
Rigth click on main menu (Applications), edit menu to display hidden items
Disabling system sounds
gnome-sound-properties
Disabling windows effects
gconf-editor
Check the key: /apps/metacity/general/reduced_resources
gnome-at-properties
Enable Support checkbox.
Multimedia
Flash player
sudo apt-get install flashplugin-nonfree sudo update-flashplugin
Codecs
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse w32codecs
VD playback capability
From ubuntuguide :
gstreamer dvd plugin is available as part of plugins-bad (or ugly?) and does not work reliably. However, Totem works with the xine backend to play back DVDs. This will keep you going until gstreamer gets dvd playback. Note that you do not have to install xine-ui or mplayer as suggested in
sudo apt-get install libdvdread3 sudo apt-get install dpkg-dev fakeroot debhelper sudo /usr/share/doc/libdvdread3/examples/install-css.sh sudo apt-get install totem-xine
CD Ripper (Goobox)
sudo apt-get install goobox sudo rm -f /usr/share/applications/goobox.desktop gksudo gedit /usr/share/applications/goobox.desktop
- Insert the following lines into the new file
[Desktop Entry] Name=CD Player & Ripper Comment=Play and extract CDs Exec=goobox Icon=goobox.png Terminal=false Type=Application Categories=Application;AudioVideo;
Development software
Sun Java Development Kit
From PLF repository
sudo apt-get install sun-java5-* sudo update-alternatives --config java
Eclipse with Callisto
Download it at http://www.eclipse.org/callisto/
Install eclipse in /prog/eclipse and plugins in /prog/eclipse-plugins/eclipse
Create the script /prog/eclipse/eclipse-kill.sh
#!/bin/bash
ps aux | ps aux | grep /prog/eclipse/eclipse\$ | awk '{print $2}' | xargs kill -9
ps aux | grep "/prog/eclipse/startup.jar\ " | awk '{print $2}' | xargs kill -9
exit 0
Create the script /prog/eclipse/eclipse-start.sh
#!/bin/bash /prog/eclipse/eclipse-kill.sh /prog/eclipse/eclipse &
chmod u+x /prog/eclipse/eclipse-*.sh
Add to the application launcher
- /prog/eclipse/eclipse-start.sh
- /prog/eclipse/eclipse-kill.sh
Update sites:
- Spring IDE: http://springide.org/updatesite/
- Maven 2.x Plug-in for Eclipse: http://m2eclipse.codehaus.org/
Plugins:
- Tomcat Plugin: http://www.sysdeo.com/eclipse/tomcatplugin
- JAD Plugin: http://jadclipse.sourceforge.net/
Maven
Download maven at http://maven.apache.org/download.html and unpack it in a folder.
Install in /prog/maven-2.0.4
Make maven local repository folder and edit your bash profile:
make ~/.m2 pico ~/.bashrc
Add these lines at the end (modify them to reflect your environment)
MAVEN_HOME=/prog/maven-2.0.4
export MAVEN_HOME
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06
export JAVA_HOME
PATH="${PATH}":$MAVEN_HOME/bin
export PATH
Tomcat
Downlaod Tomcat Core and Admin Webapp at http://tomcat.apache.org/
Install in /prog/apache-tomcat-5.5.20
mkdir /prog/apache-tomcat-5.5.20/logs
Install default user with roles
pico /prog/apache-tomcat-5.5.20/conf/tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="tomcat"/> <user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/> </tomcat-users>
Administration software
Firewall roule edition
Fwbuilder:
sudo apt-get install fwbuilder fwbuilder-doc
Firestarter
sudo apt-get install firestarter
Alien
Convert RPM, TGZ, ... to DEB
Installation:
sudo apt-get install easyubuntu
Example:
alien -i file.rpm dpkg -i file.deb
Gnome backup tool
Save and restor gnome settings
sudo apt-get install gnome-reset
VNC
sudo apt-get install vnc4-common vnc4server xvnc4viewer
Edition partitions (not LVM)
sudo apt-get install gparted
Security tools
sudo apt-get install revelation sudo apt-get install ethereal sudo apt-get install ettercap
- Nessus : http://ubuntuguide.org/wiki/Dapper
Some useful software
Vlc
sudo apt-get install gnome-vlc vlc vlc-plugin-*
Amule
Emule clone: http://www.amule.org/
sudo apt-get install amule amule-common amule-daemon amule-utils amule-utils-gui
Skype
You should have added the skype repository to your apt source list. See the APT section.
sudo apt-get install skype gnome-session-properties
Put skype at startup using the gnome-session-properties tool
Gaim
You should have gaim repository in apt sources. See APT section.
sudo apt-get install gaim gaim-data gaim-encryption gaim-guifications gaim-hotkeys gaim-libnotify gaim-otr gaim-themes gnome-session-properties
Put gaim at startup using the gnome-session-properties tool
Mozilla Firefox
sudo apt-get install firefox firefox-dom-inspector
Then install custom extensions
Mozilla Thunderbird
sudo apt-get install mozilla-thunderbird mozilla-thunderbird-inspector mozilla-thunderbird-enigmail gnupg gnupg-agent
Then install custom extensions
To install dictionnaries at http://www.mozilla.com/thunderbird/dictionaries.html first execute
sudo chown -R kha:kha /usr/share/myspell/
Real Player
From PLF repository
sudo apt-get install realplay
Adobe Acrobat Reader
sudo apt-get install acroread acroread-plugins mozilla-acroread
Crossover
sudo dpkg -i crossover-pro_5.0.1-1_i386.deb
Then you can install and run some windows applications
Archivers
sudo apt-get install rar p7zip unace sudo ln -fs /usr/bin/rar /usr/bin/unrar
Fonts
sudo apt-get install gsfonts-x11 msttcorefonts sudo fc-cache -f -v
Others
sudo apt-get install gftp sudo apt-get install easytag sudo apt-get install audacity sudo apt-get install xchm sudo apt-get install gnomebaker sudo apt-get install sysutils sudo apt-get install filelight
EasyUbuntu
Website: See http://easyubuntu.freecontrib.org/
Multimedia
- Enhance video player: Install a better multimedia backend (totem-xine replace totem-gstreamer)
- Free Codecs: Add Support for playing mp3 and other non-free formats
- Binary Codecs: Add support for proprietary video and audio formats (w32codecs) (only x86)
- Read commercial and encrypted DVDs
- MIDI: Add support for playing midi files
Web
- Enable the Macromedia Flash plugin (only x86)
- Java: Enable the Java plugin (Sun Java for x86, amd64) (IBM java for ppc)
- Videos: Enable viewing videos embedded in webpages
Archives
- RAR: extract and create RAR archives
- ACE: extract ACE archives
- 7-Zip: Extract 7-Zip archives
System
- Repository list: Main, Universe, Multiverse and PLF (replace your previous sources.list)
- Fonts: Install Microsoft and other nice fonts
- DMA: Enable Direct Memory Access to improve DVD reading (breezy)
- Nvidia: install the official driver to enable 3D on Nvidia graphics cards
- ATI: install the official driver to enable 3D on ATI graphics cards
Voice Over IP
- Wengo: a free Voice Over IP software (available in dapper)
- Skype: the most popular VoIP software (only x86)
Installation:
sudo apt-get install easyubuntu
Some useful commands
- lsof : list files or folders in use
- lshw : list all hardware
- Disk performance:
kha@box:/data/software/drivers$ sudo hdparm -tT /dev/sda5 /dev/sda5: Timing cached reads: 4216 MB in 2.00 seconds = 2107.87 MB/sec Timing buffered disk reads: 124 MB in 2.46 seconds = 50.49 MB/sec kha@box:/data/software/drivers$
References
- Trusting Debuntu repository: http://repository.debuntu.org/
- Ubuntu Laptop Testing: https://wiki.ubuntu.com/LaptopTestingTeam
- DELL Inpiron 6400: https://wiki.ubuntu.com/LaptopTestingTeam/DellInspiron6400
- ATI Video drivers: https://help.ubuntu.com/community/BinaryDriverHowto/ATI
- Webcam with PWC module: http://www.think-future.de/wiki/index.php?title=PWC_webcam
- Setpwc website: http://www.vanheusden.com/setpwc/
- Boot performance: http://doc.gwos.org/index.php/Speed_up_boot
- Cups PDf printer: http://ubuntuforums.org/showthread.php?t=188860&highlight=cups-pdf
- Alien: http://linuxhelp.blogspot.com/2005/06/convert-between-rpm-deb-and-tgz.html
- Playing restricted formats: https://help.ubuntu.com/community/RestrictedFormats
- Grub splash images: http://ubuntu.wordpress.com/2006/03/21/add-a-grub-splash-image/
- Gnome visual effects: http://www.ubuntuforums.org/archive/index.php/t-175976.html
- Ubuntu Guide: http://ubuntuguide.org/wiki/Dapper
- APT source list generator: http://www.ubuntulinux.nl/source-o-matic

