Ubuntu 6.06 Vaio Setup
From KdjWiki
Install Guide for Ubuntu 6.06 LTS (Dapper Drake) on Sony Vaio VGN-S48GP
Contents |
Planning
Notes
Items in red have not yet been performed - just writing them down for later implementation.
In order to facilitate a stable clean machine (i.e. one that I will not be required to rebuild on a semi-regular basis) I have decided to build/partition in a way that will allow me to run multiple versions of linux. At this stage I am working towards a three version model:
- Primary (main installation - considered stable - default boot)
- Secondary (alternate distro/version - considered stable)
- Testing (trashable version to test installing of other distros and unsupported apps etc)
As the 3 systems will share /home and /data mounts, each OS should have it's own regular user login to ensure configuration does not get confused.
Hardware
| Device | Details | Module |
|---|---|---|
| HDD | 60GB SATA | sata |
| DVD | DVDRW (Dual Layer) | ide |
| Ethernet | Intel PRO/100 | e100 |
| Wireless | Intel Corp. PRO/Wireless 2200BG (rev 05) | ipw2200 |
| Video card | nVidia GeForce 6200 | nvidia |
| Sound card | Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03) | hda_intel |
| Bluetooth | xxx | bluetooth (?) |
| Touchpad | Synaptics (?) - Has vertical and horizontal scrolling | xxx |
| Firewire | xxx | ieee1394 (?) |
| PCMCIA | xxx | pcmcia (?) |
| Memory Card Reader | Sony Memory Stick PRO Reader (?) | xxx |
| Sony Buttons | xxx | xxx |
| Power Management | xxx | xxx |
Partitioning Scheme
| Device | Size | Mount Pont | File System | Notes |
|---|---|---|---|---|
| /dev/sda1 | 5GB | / | ext3 | Primary OS root |
| /dev/sda2 | 5GB | / | ext3 | Secondard OS root |
| /dev/sda3 | 5GB | / | ext3 | Testing OS root |
| /dev/sda5 | 1GB | swap | swap | Common swap partition |
| /dev/sda6 | 4GB | /home | reiserfs | Common home partition |
| /dev/sda7 | 40GB | /data | reiserfs | Common data (media etc) partition |
Installing
Notes
For the installation, I chose to connect with the wired ethernet (as opposed to wireless) for both ease and speed.
Install Ubuntu
Booting from CD
- Download and burn ubuntu-6.06-desktop-i386.iso
- Boot and select "Start or Install Ubuntu"
- Select "Install" icon
- Proceed through next 6 options (partitioning as previously specified via "Manual edit partition table") Remember partition 4 is extended utilising remaining size and the following 3 partitions are from that extended partition
- Then "Restart now" (remember to pull CD on eject)
Update System
$ sudo gedit /etc/apt.sources.list
While I'm using a sudo gedit session:
- Edit > Preferences
View:
Enable text wrapping = Disable
Highlight matching bracket = Enable
Editor:
Tab width = 4
Enable automatic indentation = enable
Create a backup copy of files before saving = Disable
Fonts & Colors:
Use default theme font = Enable
Plugins:
Enable All
Replace with:
## Add comments (##) in front of any line to remove it from being checked. ## Use the following sources.list at your own risk. deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse ## MAJOR BUG FIX UPDATES produced after the final release deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse ## UBUNTU SECURITY UPDATES 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 ## BACKPORTS REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.) deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse ## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.) deb http://packages.freecontrib.org/ubuntu/plf breezy free non-free deb-src http://packages.freecontrib.org/ubuntu/plf breezy free non-free
Install PLF public key:
$ wget http://plf.zarb.org/plf.asc $ sudo apt-key add plf.asc $ rm plf.asc
Update system:
$ sudo apt-get update $ sudo apt-get upgrade
Tune DMA (DVD)
Check current DVD status:
$ sudo hdparm /dev/hda
If IO_support = 0 (32-bit) or using_dma = 0 (off) this needs tuning:
$ sudo gedit /etc/hdparm.conf
Add:
/dev/hda {
io32_support = 1
dma = on
}
nVidia Driver
$ sudo apt-get install nvidia-glx $ sudo nvidia-glx-config enable
Configure System
- Fix Desktop
System > Preferences > Desktop Background
No Wallpaper Solid Color (read colour) = #778899
System > Preferences > Theme
Clearlooks
- Add System Menu
Applications > Accessories > Alacarte Menu Editor > System Tools Select
- Configuration Editor
- Ubuntu Device Database
- Configure Shell
$ gedit .bashrc
While I'm using a gedit session:
- Edit > Preferences
View:
Enable text wrapping = Disable
Highlight matching bracket = Enable
Editor:
Tab width = 4
Enable automatic indentation = enable
Create a backup copy of files before saving = Disable
Fonts & Colors:
Use default theme font = Enable
Plugins:
Enable All
Configure Shell:
HISTCONTROL=ignoredups
Uncomment:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Add aliases
$ gedit .bash_aliases
alias ll="ls --color=auto -lh" alias slocate="slocate -i"
- Configure Nautilus
Places > Home Folder
- Left column:
Places = Tree
Edit > Preferences
Views:
View new folders using = List View
Use compact layout = Enable
Behaviour:
Ask before emptying the Garbage Bin or deleting files = Disable
Include a Delete command that bypasses Garbage Bin = Enable
- Configure hotkeys
Applications > System Tools > Configuration Editor Apps > metacity > global_keybindings
run_command_1 = <Super>e run_command_terminal = <Super>c show_desktop = <Super>d switch_windows_backward = <Shift><Alt>Tab
Apps > metacity > keybinding_commands
command_1 = nautilus
- Specify Network
$ sudo gedit /etc/hosts
and add any IP addresses + hostnames for your local network
- Create network shares
Places > Connect to Server...
For each network share establish
Configure Wireless
- Install network manager
$ sudo apt-get install network-manager $ sudo apt-get install network-manager-gnome $ sudo gedit /etc/network/interfaces
Comment out all instances of auto (except lo).
auto lo iface lo inet loopback #auto eth0 #iface eth0 inet dhcp #auto eth1 #iface eth1 inet dhcp #auto eth2 #iface eth2 inet dhcp #auto ath0 #iface ath0 inet dhcp #auto wlan0 #iface wlan0 inet dhcp
$ sudo /etc/init.d/dbus restart $ sudo nm-applet &
Configure Audio
Check volumes:
$ alsamixer
Set device to PCM:
Right click on volume applet -> Preferences Select PCM
Configure Multimedia
Get codecs
$ sudo apt-get install w32codecs $ sudo apt-get install gstreamer0.10-plugins-base $ sudo apt-get install gstreamer0.10-plugins-good $ sudo apt-get install gstreamer0.10-plugins-ugly $ sudo apt-get install gstreamer0.10-plugins-ugly-multiverse $ sudo apt-get install gstreamer0.10-plugins-bad $ sudo apt-get install gstreamer0.10-plugins-bad-multiverse $ sudo apt-get install gstreamer0.10-pitfdll $ sudo apt-get install gstreamer0.10-gl $ sudo apt-get install gstreamer0.10-ffmpeg $ sudo apt-get install vorbis-tools $ sudo apt-get install lame $ sudo apt-get install sox $ sudo apt-get install ffmpeg $ sudo apt-get install mjpegtools
Get DVD playback prerequisites
$ sudo apt-get install libdvdread3 $ sudo apt-get install libdvdplay0 $ sudo apt-get install libdvdnav4 $ sudo apt-get install libdvdcss2 $ sudo apt-get install regionset $ sudo apt-get install totem-xine $ sudo apt-get install libxine-main1 $ sudo apt-get install libxine-extracodecs
Then:
$ sudo /usr/share/doc/libdvdread3/examples/install-css.sh
Get Multimedia Player(s)
$ sudo apt-get install mpg321 $ sudo apt-get install totem-gstreamer $ sudo apt-get install vlc $ sudo apt-get install mplayer $ sudo apt-get install xine-ui $ sudo apt-get install mozilla-mplayer $ sudo apt-get install mencoder
Configure Bluetooth
See: https://wiki.ubuntu.com/BluetoothDialup Get drivers
$ sudo apt-get install bluez-utils $ sudo apt-get bluez-pin $ sudo apt-get install ppp
Make your device discoverable. Then:
$ hcitool scan
Copy (and remember) the MAC address of your device
Pair devices
$ sudo hcitool cc {mac-address}
$ sudo hcitool auth {mac-address}
Enter a PIN on both devices.
For bluetooth networking Get the channel number for your phone's dialup service
$ sdptool browse {mac-address}
Look under "Service Name: Dial-up Networking"
Under "Protocol Descriptor List:" and "RFCOMM", there should be a number after "Channel:"
Remember that number; you'll need it for the rfcomm configuration.
$ sudo gedit /etc/bluetooth/rfcomm.conf
Paste the following into the file:
rfcomm0 {
bind yes;
device {mac-address};
channel {rfcomm-channel};
comment "Bluetooth PPP Connection";
}
Create the rfcomm0 device:
$ sudo /etc/init.d/bluez-utils restart
Configure PPP
$ sudo gedit /etc/ppp/peers/BluetoothDialup
Paste the following into the file:
debug noauth connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup" usepeerdns /dev/rfcomm0 115200 defaultroute crtscts lcp-echo-failure 0
Then
$ sudo gedit /etc/chatscripts/BluetoothDialup
Paste the following into the file:
TIMEOUT 35
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
\rAT
OK 'AT+CGDCONT=2,"IP","your-apn-here"'
OK ATD*99***your-data-profile-number-here#
CONNECT ""
Misc Apps
Beagle
$ sudo apt-get install beagle
Start daemon:
$ beagled
Start indexing:
$ beagle-settings
Services
MySQL
$ sudo apt-get install mysql-server
$ mysqladmin -u root password {mysql-admin-password}
$ sudo apt-get install mysql-admin
$ sudo apt-get install mysql-query-browser
$ sudo apt-get install mysql-navigator
Apache2 + PHP
$ sudo apt-get install apache2 $ sudo apt-get install php5 $ sudo apt-get install libapache2-mod-auth-mysql $ sudo apt-get install php5-mysql $ sudo /etc/init.d/apache2/restart
Adding Fluff
Wallpaper Rotation
#!/bin/bash
while [ 1 == 1 ]
do
ALIST=( `grep filename ~/.gnome2/backgrounds.xml | sed 's/<filename>//g' | sed 's/<\/filename>//g' | grep $HOME` )
RANGE=${#ALIST[@]}
let "number = $RANDOM % $RANGE"
gconftool-2 -t string -s /desktop/gnome/background/picture_filename ${ALIST[$number]}
sleep 900
done