September 9th, 2008How to Install Ubuntu 8.04 on an Eee Pc 901
| There are a number of ways of doing this. The eee doesn’t have a CD/DVD drive and I didn’t have a USB drive handy so I did the install off a USB Stick. Of course, you should read through this before doing anything, so you know what you’re in for. This tutorial requires some basic linux knowledge. What you need |
- A working Windows or Linux PC
- USB Thumbdrive, at least 1 GB formatted FAT16 (most are by default)
- Ubuntu 8.04 Hard Heron Live CD - desktop Edition, Standard Personal Computer
- unetbootin - grab the version appropriate version for the architecture of you PC above
- linux-ubuntu-modules-2.6.24-21-eeepc and linux-image-2.6.24-21-eeepc - the current kernel image and modules optimized for the eeePC. Version linux-image-2.6.24-21 or greater is required for the 901 (previous versions don’t support the wireless and NIC in the 901)
Installing the Ubuntu Image onto the USB Stick
- Boot up the working PC
- Download the files above.
- Copy (for windows) or install the unetbootin package onto that machine
- Run unetbootin
- Select ubuntu, Disk Image is the Ubuntu Live CD you downloaded, and select USB Drive and the Stick as the type
- Click OK and wait a few mins, while it works.
- Create a directory on the USB called eeePCKernel and place the kernel image and modules into it (Not required but this saves going back and forth between the machines).
Booting Off the USB Stick
- Insert the USB Stick into the eee
- Power on the eee
- Hit F2 to go into bios setup
- Cursor over to boot
- Select Hard Disk Drives
- Select the USB stick for the First Drive (Mine was listed as a “Sony Storage”, yours will be different based on manufacturer)
- F10 and let it boot off the stick
- Select “Install Ubuntu”
Installing Ubuntu
- I feel the ubuntu install is self-explanatory follow the standard prompts until you get to the prepare disk screen.
Partitioning The Disk (preparing disk space screen)
You need to make some decisions here. Some Information about the eee:
- /dev/sda is the 4GB onboard SSD
- /dev/sdb is the internal removable SSD (8GB windows, 16GB Linux)
- /dev/sdc is the SDHC/SD/MMC card if you have one in there
- /dev/sdd is your USB Stick (if the SD slot is empty it’s /dev/sdc)
I manually partitioned the eee. Here is the partition scheme I used:
- /dev/sda1 is the entire 4GB section. I am mounting it as “/” and using ext2
- /dev/sdb1 is 15002 MB of sdb. I am mounting it as “/home” and using ext2
- /dev/sdb2 is the remaining 1135MB of sdb and is swap space. The swap space is large to allow for hibernation.
I am using ext2 to allow to lessen the number of writes to the SSD. Of course using a journaled files system is generally better,
Continuing the install
- Again all self-explanatory (name, login name, password, machine name)
- Sitback while the installer performs it’s magic (it takes a few mins… play some portal)
- Hit Restart Now and let it eee Reboot
- For some reason the eee doesn’t always reboot and just hangs, if so hold down the power button for fix sec to power down remove the USB and then power back on
- Hit F2 from the BIOS screen
- Boot -> Hard Disk Drives Make sure that the “SS-Asus” is the first drive
- Login… you now have a mostly functioning linux system (networking, webcam, etc aren’t up yet)
Some Fixes for the Eee’s disk usage
- open a terminal (Applications -> Accessories -> Terminal)
- edit fstab (sudo nano /etc/fstab)
- Comment out the /dev/sdd1 line (place a # to the left of it)
- change the relatime to noatime on / and /home
- Add the following lines to fstab these will write log files in ram instead of to the SSD: tmpfs /var/log tmpfs defaults 0 0 tmpfs /tmp tmpfs defaults 0 0 tmpfs /var/tmp tmpfs defaults 0 0 tmpfs /var/log/apt tmpfs defaults 0 0
- Save fstab
- edit sysctl.conf (sudo nano /etc/sysctl.conf)
- add the line vm.swappiness=0 this turns off the swapfile as VM (the swap region we created will only be use for hibernation)
Installing a kernel with modules of the Eee hardware
- Insert the USB Stick it should mount as /media/disk
- In terminal cd /media/disk/eeePCKernel
- in terminal sudo dpkg -i linux-image*.deb linux-ubuntu-modules*.deb
- let the magic happen
- reboot
- at the grub screen hit escape and make sure your booting from the eeepc kernel
- after you log in your wireless, ethernet an webcam should be working
- get online however appropriate…
- open a terminal
- update the apt-get’s sources list to include the repository with the eeepc kernel: wget http://www.array.org/ubuntu/array.list sudo mv -v array.list /etc/apt/sources.list.d/
- Install array.org’s key wget http://www.array.org/ubuntu/array-apt-key.asc sudo apt-key add array-apt-key.asc
- Update your apt cache sudo apt-get update
- install any missing components of the kernel sudo apt-get install linux-eeepc linux-headers-eeepc
Updating Software The disk is out of date so upgrade whatever you can…
- sudo apt-get upgrade
- reboot
You now should have Ubuntu up to date and running on the eee
Optional Interface Tweeks
- Setting smaller font sizes
gconftool-2 –set /apps/nautilus/preferences/desktop_font –type string “Sans 8″
gconftool-2 –set /desktop/gnome/interface/document_font_name –type string “Sans 8″ gconftool-2 –set /desktop/gnome/interface/font_name –type string “Sans 8″
gconftool-2 –set /apps/metacity/general/titlebar_font –type string “Sans Bold 8″
gconftool-2 –set /desktop/gnome/interface/monospace_font_name –type string “Monospace 8″All applications can go full-screen using F11
gconftool-2 –set /apps/metacity/window_keybindings/toggle_fullscreen –type string “<Alt>F11″Smaller toolbars using icons only
gconftool-2 –set /desktop/gnome/interface/toolbar_style –type string “icons”