HOWTO : Ubuntu 9.04 Desktop on Solid State Disk (SSD)

In my opinion, logs files of Linux is almost useless on desktop usage. If you agree with me, you can make your Linux box runs faster than before. Basically, you should have 1GB RAM or more.

Step A :

sudo nano /etc/fstab

Append the following lines to /etc/fstab

tmpfs /tmp tmpfs noexec,defaults,noatime 0 0
tmpfs /var/tmp tmpfs noexec,defaults,noatime 0 0

sudo mount -a

If there is no error, you can reboot your system after completed all the steps mentioned here.

Step B :

sudo nano /etc/sysctl.conf

Append the following line to /etc/sysctl.conf

vm.swappiness=1

Step C :
Firefox puts its cache in your home partition. By moving this cache in RAM you can speed up Firefox and reduce disk writes. Complete the previous tweak to mount /tmp in RAM, and you can put the cache there as well.

Open about:config in Firefox. Right click in an open area and create a new string value called browser.cache.disk.parent_directory. Set the value to /tmp.

Step D :

Add the following line at the end of /boot/grub/menu.lst of kernel tab.

elevator=noop

Reboot your system and you will experience the performance.

By the way, if you want to install Ubuntu Netbook Remix 9.04 to ASUS Eee PC 701, you will encounter lagging on the operation. You may consider to install the following version namely Lambda Netbook Remix at Unofficial Ubuntu Hack! which is in Traditional Chinese by default. However, you can choose to install it in English too. After the installation, you can apply the captioned settings to improve the life of the SSD and increase the performance of your Eee PC 701.

Remarks :
If you do not have any SSD, you can also tune your system by following Step A to C.

Let’s surf internet everywhere

The price of 3G/3.5G modem and data plan are dropping. The minimum monthly service charge is $98-HK ($1-US = $7.8-HK) and the maximum charge is $188-HK for unlimited usage. The 3G modem is free of charge, surprise? However, you need to sign a contract from 18 to 24 months.

I bought a 3G wireless router, Edimax 3G-6200Wg, for sharing my 3.5G modem (Huawei E180). The turbo mode can increase the strength of wireless signal a lot although it is a IEEE 802.11 b/g router.

I tested it with Lenovo ThinkPad X61 and X200 as well as some other wireless network interfaces. When the router is enabled the function of WMM, X61 and X200 cannot associated with the router via Ubuntu 8.10 and 9.04. When it is disabled, all ThinkPads connected to the router flawlessly. Later learned that it is the bug of the Intel wireless card Linux driver/firmware. The bug has been reported to Intel.

In addition, you can use Huawei 3G modem flawlessly in Ubuntu 9.04 with a little bit of setting at the Network Manager.

By the way, I provide the APN of Hong Kong 3G data plan providers here for your quick reference.

3 HK : ipc.three.com.hk or mobile.three.com.hk (for some data card)
Smartone : internet
PCCW : pccw
CSL : HKCSL

The different between Ubuntu Desktop, Alternate CD and server CD

Newbies of Ubuntu/Kubuntu/Edubuntu will be confused by the name of her official released CDs – Desktop Live CD, Alternate CD and Server CD. Why she makes these different CDs?

Desktop Live CD
Live CD allows user to boot it from CD-ROM and experience the power of Linux. Live CD is a complete operating system that running from CD. You can use it for testing hardwares and/or softwares compatibilty. You can use it to taste the new version of the distribution. You can use it for internet kiosks or libraries.

You can install any software on the Live CD. Once you reboot or switch off, the change will be lost. Ubuntu Desktop Live CD provides the most common features to end-users, especially for newcomers. It is very easy to use and/or install. If you have no experience in Linux, you can install Ubuntu via the Live CD in a few steps. You can choose the default setting if you are in doubt. It requires more memory compare with Alternate CD.

In addition, you can install Ubuntu by Live CD on a Windows system via Wubi. Wubi allows you to install Ubuntu in Windows system as a file. You can uninstall it just like other Windows softwares.

Alternate CD
Unlike Live CD, Alternate CD is a text mode installer. It requires an experienced Linux user to operate. It provides more drivers, such as FakeRAID, software RAID and some other drivers and features. You can also choose LVM and encrytped directory too. It is more flexible and powerful compare with Live CD. The final product is a graphical desktop environment. It can install for a lesser memory machine, thanks to the text mode installer.

Server CD
It is a text mode installer and similar to Alternate CD. You can choose some common servers to install, such as LAMP, mail server, DNS, SQL server and File Server. The servers that you have chosen are almost configured but some of them need to be tuned for different usage. It is targeted to experienced Linux users. The final product is a command line environment.

Conclusion
Ubuntu makes 3 different CDs in order to keep it fit in a 700MB CD and targeted to different users. Although it may cause confusion, it is a good idea for different market and user.

HOWTO : Convert existing ext3 to ext4

According to the current issue (issue #22, Page 26 “Letters”) Full Circle Magazine at http://www.fullcirclemagazine.org, we can convert the existing ext3 to ext4 by the following command. However, I did not try it yet until the release of Ubuntu 9.04.

tune2fs -O extents,uninit_bg,dir_index /dev/DEV

ext4 is running fast and stable under Ubuntu 9.04 Alpha. I have installed it on a AData 300 Series 64GB Solid State Drive (SSD, MLC) with no problem. However, the BIOS should not select Advanced Host Controller Interface (AHCI). According to some source, ext4 is also good for SSD usage.

HOWTO : Ubuntu eee on ASUS Eee PC 701

Ubuntu eee comes with Netbook Remix and it is very user-friendly. I installed Ubuntu eee on my ASUS Eee PC 701 and all the function keys are workable. The speaker, mic, webcam and wireless work flawlessly.

Now, I want to do some tweaking on my Ubuntu eee box.

Step 0 :
Install the Ubuntu eee on your Es accordingly. The installation is quiet straight forward.

Step 1 :
sudo nano /boot/grub/menu.lst

add “elevator=noop” at the end of the kernel tag.

Step 2 :
sudo nano /etc/fstab

add “noatime” at the following line (the content may be different to me) :
UUID=b151a69-....1d865 / ext3 noatime,relatime,errors=remount-ro 0 1

Step 3 :
add the following lines at the end of /etc/fstab.

tmpfs /var/log/apt tmpfs defaults 0 0
tmpfs /var/log tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0

Step 4 :
Make it like this.

Just only 5 steps to make your Es working flawlessly and smoothly.

Enjoy!

Ubuntu 8.04.1 LTS on Eee PC 701 & 900

Install Ubuntu 8.04.1 on ASUS Eee PC as is. The installation is smooth and simple.

No matter you have Eee PC 701 or 900, the tweak on them is similar or the same.

Since the wireless driver from Ubuntu 8.04.1 does not work on Eee PC, you should disable the two entries at “System” – “Hardware driver” before going ahead.

Install the following packages at the terminal and make sure you are connected to the internet via ethernet cable :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`

For Eee PC 701 :
wget http://samiux.volospin.com/eeepc/ubuntu-8.04.1-eeetweak-eeepc701-1.0.sh.tar.gz
tar -xvzf ubuntu-8.04.1-eeetweak-eeepc701-1.0.sh.tar.gz
sudo chmod +x ubuntu-8.04.1-eeetweak-eeepc701-1.0.sh
sudo ./ ubuntu-8.04.1-eeetweak-eeepc701-1.0.sh

For Eee PC 900 :
wget http://samiux.volospin.com/eeepc/ubuntu-8.04.1-eeetweak-eeepc900-1.0.sh.tar.gz
tar -xvzf ubuntu-8.04.1-eeetweak-eeepc900-1.0.sh.tar.gz
sudo chmod +x ubuntu-8.04.1-eeetweak-eeepc900-1.0.sh
sudo ./ ubuntu-8.04.1-eeetweak-eeepc900-1.0.sh

Make sure you run the script only ONCE. If you are making of mistake, you should re-install your copy of Ubuntu 8.04.1 before running the script again.

To tweak the boot up speed, you just need to edit the /boot/grub/menu.lst and add the following to the end of “kernel” tag :
clocksource=hpet

By the way, the script do nothing on the webcam and microphone.

Easy to Learn, Easy to Work, Easy to Play with Ubuntu 8.04.1!!!

Big Buck Bunny – Open Movie

Open movie website :

http://www.bigbuckbunny.org/

Ubuntu 8.04 LTS on ASUS Eee PC

If you are using Ubuntu 8.04.1 LTS, go here.

I am very sad to know that official Ubuntu 8.04 LTS cannot be ran from SDHC on Eee PC. Don’t look back. Okay, I installed 8.04 SE on the SSD of the E.

The process of the installation is smooth. However, the wireless network card and hotkeys (except brightness) does not work out of the box. There is no sound on Eee PC 701 but has sound on Eee PC 900 (Linux).

We can fix these kind of problems by executing shell script files. There is one for 701 and one for 900.

sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`

For Eee PC 701 :
tar -xzvf ubuntu-8.04-eeetweak-eeepc701-1.3.sh.tar.gz
sudo chmod +x ubuntu-8.04-eeetweak-eeepc701-1.3.sh
sudo ./ubuntu-8.04-eeetweak-eeepc701-1.3.sh

Remarks : ubuntu-8.04-eeetweak-eeepc701-1.4.sh is for 2.6.24-18.32 generic kernel
Remarks : ubuntu-8.04-eeetweak-eeepc701-1.5.sh is for 2.6.24-19.34 generic kernel

For Eee PC 900 :
tar -xzvf ubuntu-8.04-eeetweak-eeepc900-1.3.sh.tar.gz
sudo chmod +x ubuntu-8.04-eeetweak-eeepc900-1.3.sh
sudo ./ubuntu-8.04-eeetweak-eeepc900-1.3.sh

Remarks : ubuntu-8.04-eeetweak-eeepc900-1.4.sh is for 2.6.24-18.32 generic kernel
Remarks : ubuntu-8.04-eeetweak-eeepc900-1.5.sh is for 2.6.24-19.34 generic kernel

You can download it at here.

Make sure you are connecting to the internet and the script runs ONCE only.

Easy to Learn, Easy to Work, Easy to Play with Ubuntu 8.04 SE!

Updated on 2008-April-27 :

To tweak the boot up speed, you just need to edit the /boot/grub/menu.lst and add the following to the end of “kernel” tag.
clocksource=hpet

Updated on 2008-April-28 :

The script cannot solve the webcam problem.

Updated on 2008-May-27 :

Procedure to install Ubuntu 8.04 LTS or 8.04 LTS SE “NG” on Eee PC 701 or 900 :

Since Ubuntu 8.04′s wireless driver is not work on Eee PC, you should disable it at “System” >> “Hardware driver”.  There is two entries, disable them all.

Reboot your Eee PC.  After that, run the script file (make sure you have use the correct script file for your Eee PC.  After applied the script, you should reboot the E.

Then, enable the wireless driver at “System” >> “Hardware driver” and reboot the system again.  The wireless will work then.

Updated on 2008-June-11 :

I successfully installed Ubuntu 8.04 LTS SE 080610 basic to 8GB SDHC.  It boots up normally on my Eee PC 701.

Huawei E169G on Ubuntu 8.04

Huawei E169G 3.5G HSDPA USB dongle equipped with 7.2Mbps download and 2Mbps upload speed.  The Ubuntu 8.04 kernel recognized it as Huawei E620.  To make this toy to work with Ubuntu 8.04?  It is very easy.

Download a software namely “Vodafone Mobile Connect Card driver for Linux” and plug in the device before executing the program.  The program reads the device as E660A.  Key in the following in the profile.

As I am using 3 (http://www.three.com.hk), the following suits for 3 Hong Kong only.

APN : ipc.three.com.hk
DNS : 202.45.84.67 and 202.45.84.68

If you encountered the Firefox 3 beta 5 offline, you can make it online by the following steps :

Choose “Tools” on the Firefox >> “Add-ons” >> “Get Add-ons” >> “Go online”

That’s all.  Enjoy Linux everywhere!

Updated on 2008-June-22 :

Recently, the website that hosts the Vodafone Mobile Connect Card driver for Linux cannot be reached for unknown reason. I searched for the Google to look for an alternative solution. “Salutis” from Ubuntu forum created a program namely “salutis-connect” for the Hauwei E220. I tested it on my E169G and it is running perfectly. Surprisingly, NO setting is required. Just plug in and play.

Setup :

sudo -s

echo deb http://repository.salutis.sk/production ./ >> /etc/apt/sources.list

apt-get update

apt-get install salutis-connect

Instructions :

# Connect your Huawei E200 or E169G device to USB port.
# Click on ‘Salutis Connect’ icon in ‘Applications->Internet’ menu section and enjoy.
# To disconnect the device, click on ‘Salutis Connect’ again and the device will be disconnected.

Thanks Salutis!!!!

Huawei E270 (Netvigator) on Ubuntu 8.04

The Huawei E270 is recognized by Ubuntu 8.04 out of the box.  However, you need to set something to make it works.  The ISP is PCCW’s Netvigator in Hong Kong.

Plug in the modem.  Choose from the Gnome menu : System >> Administration >> Network >> Connect and select modem.

Activate the function by clicking the box of “activate this connection”.  Type of connection choose “GPRS/UMTS”.  The APN is “pccw” and the username is “user” while the password is “pass”.  (You can type anything at username and password fields indeed)  The “Modem” tab type “/dev/ttyUSB0″ at the modem port field.  Then, check all options at the “Option” tab.

Finally, make sure you deleted all the entries at “DNS” tab of the “Network setting” window.  (This step is optional : key in the DNS as “202.4.192.129″ and “202.4.192.130″).  Check the “Modem connection”.

The only problem I encountered is how to make it to work when the modem is re-plugged without reboot.

Enjoy!

Updated on 2008-04-23 :
Or, make it simple, please refer to Huawei E169G on Ubuntu 8.04

Follow

Get every new post delivered to your Inbox.