Sunday, 30 November, 2008

Install Ubuntu on MSI Wind

The MSI Wind has a spec of 2Gb ram, 160Gb harddisk, and comes with 6 cells battery.

I first use the Wubi Ubuntu Installer to install Wubi 8.10 on Windows. This Ubuntu runs on the Windows file system, so we can test Ubuntu out without creating separate partitions. (The instruction is detailed at Ubuntu 8.04 Hardy Heron - MSI WInd User wiki.

Next, I try to get the networking up. I wasted some time before realizing my MSI Wind has a different wireless card from the one described in the MSI WInd User wiki. I am able to find the wireless adapter used, RT2860 by checking the windows wireless adapter driver. The Linux driver for RT2860, 2008_0918_RT2860_Linux_STA_v1.8.0.0.tar.bz2 can be downloaded from Ralink Technology.

To be able to compile the driver, you need a proper build environment with the appropriate kernel headers

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

I have some help from the Ubuntu forum rt2860 Ralink chipset.

I modify the os/linux/config.mk file to set the following:

# Support Wpa_Supplicant

HAS_WPA_SUPPLICANT=y

# Support Native WpaSupplicant for Network Maganger

HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

To compile the driver, and then to install the module as root:

sudo make

sudo make install

To check whether the wireless adapter is detected:

sudo /sbin/insmod rt2860sta.ko

sudo modprobe rt2860sta

sudo depmod -a

iwconfig

The wireless interface on my system is listed as ra0 (RT2860 wireless).

To get the wireless adapter to startup on boot, create an executable file rt2860up in /etc/init.d/ with the content:

#!/bin/sh

sudo ifconfig ra0 up

and then run the following commands: (the RT2860STA.dat file is not needed)

cd /etc/init.d

sudo chmod +x rt2860up

cd /etc/rcS.d/

sudo ln - s /etc/init.d/rt2860up S33rt2860up

sudo rm /etc/Wireless/RT2860STA/RT2860STA.dat

Reboot the machine and enable Ubuntu's network manager wireless networking. The machine is able to connect to the home wireless router.

Also, following the instruction from MSI WInd User wiki, my system comes with the 5986:0203 BisonCam (Acer's webcam). After installing the module, we can test the webcam with cheese, Cheese is a cheesy program to take pictures and videos from your webcam.

sudo apt-get install cheese

As my Singnet broadband contract is going to end soon and I will be terminating it, I have signed up for Singtel mobile broadband instead. I choose to receive the Huawei E180 HSPA USB Modem. In Ubuntu 8.10, the network manager can auto-detect the modem as a Huawei E220 model and it can connect to Singtel without a problem.

I install Firestarter, it is a Linux firewall with a GUI (graphical interface) and it can also allow Internet connection sharing.

sudo apt-get install firestarter

In the case when I am using mobile broadband, then the Internet connected network device is ppp0 and the Local network connected device is ra0 (wireless) for the firewall network settings. The firewall can only be started when the Internet connected network device is used.

I also need to create a default route to the internet when connected through mobile broadband, and this can be done automatically by creating a script 2gwroute in the /etc/ppp/ip-up.d (scripts place here are run when the ppp interface is up, connected)

#!/bin/sh

route add default gw $4

Similarly, create a script 2gwroute in the /etc/ppp/ip-down.d (scripts place here are run when the ppp interface is down)

#!/bin/sh

route delete default gw $4

Once, everything is working, I decide to run Ubuntu on its own partition. First, we can install GParted, a Partition Editor, and use it to create partitions for Ubuntu.

sudo apt-get install gparted

I delete the D drive empty partition and create a primary partition as the root partition (/dev/sda3), and create an extended partition which is sub-divided into a small partition use as swap partition and the remaining to be use for /home . After this, we can upgrade the Wubi install to a standard Ubuntu system, by using the Loopmounted Virtual Partition Manager (LVPM). LVPM allows you to transfer all the data, settings, and applications from your original Wubi install to a dedicated partition. Download the LVPM package and install it. Run LVPM, select the "transfer" option and then select a partition to install to (in my case, /dev/sda3), and wait for your installation to be transferred over to the partition.

Again, using the instruction from MSI WInd User wiki, after rebooting the machine and entering the GRUB Bootloader screen, the GRUB cannot boot up the Ubuntu because the partition is set wrongly. This can be fixed with: after selecting the top item Ubuntu 8... , hit e to edit the item.

There should be three lines on the screen.

Scroll down to the line that says:

root ()/ubuntu/disks

and change it to:

root (hd0,X)

X should be the partition number you transferred

Ubuntu to using LVPM minus 1.

In my case /dev/sda3 is the 3rd partition, and

in GRUB, it is hd0,2 (GRUB starts from 0)

Once this line is edited, hit Enter to accept the editing, then b to boot.

Ubuntu should now boot up. You can make the changes permanent to fix your boot forever, by making the same changes in /boot/grub/menu.lst

The last thing is to move the /home directory to my last partition. Follow the instruction from this Ubuntu blog.



Reactions

skyleecm | 2008-12-28 00:56 |

Singtel mobile broadband 2Mbps


mister | 2009-01-01 20:12 |

OMG! Thanks alot! I have the akoya e1210 with the rt2860 wireless. Have spent FOREVER trying to get this thing working. Could never get WPA to work. Edit the config.mk and did what you said and now it works PERFECTLY. Thanks alot... i was almost at the pointing of having to dump ubuntu completely


skyleecm | 2009-01-04 11:31 |

Glad you got it working .. but how on earth did u end up here?


skyleecm | 2009-01-04 11:42 |

The network manager calls dhclient (dhcp) and runs their own script file nm-dhcp-client.action which will reset all my routes everytime it renews the dhcp ?? Most importantly, it removes the internet route through ppp0 . strange!?

if nm-dhcp-client.action is being replaced by a script that calls the dhclient 's default script dhclient-script, this problem will go away!

at least, it seems to me this change does not has adverse effect.


msiteress | 2009-01-13 20:16 |

I found the page by googling one day, I think i was looking for MSI ubuntu wireless rt2860 or something like that.


skyleecm | 2009-01-14 22:12 |

Oh I see!

thanks for letting me know. :)


skyleecm | 2009-01-25 01:42 |

Top 50 Linux Alternatives to Popular Apps. (laptoplogic.com)


skyleecm | 2009-01-28 21:16 |

Download Ubuntu Pocket Guide and Reference by Keir Thomas.


sky | 2009-02-08 16:00 |

Singtel mobile broadband 2Mbps - at times, the connection can be unstable and slow such that gmail is giving error.



sky | 2009-02-25 14:45 |

The State of the Netbook, Part II: The Inevitable Eeeruption. (arstechnica)



sky | 2009-05-30 13:05 |

sSMTP: A simple alternative to Sendmail (linux.com)


sky | 2009-11-27 03:48 |

upgraded to Ubuntu 9.04 smoothly.

just discover that if I remove the routers from the request line in the dhclient.conf, the dhcp will not add a default gateway route to the wireless router .


sky | 2010-06-14 11:36 |

add jaunty-backports to install postgresql-8.4
see https://help.ubuntu.com/community/UbuntuBackports


sky | 2010-06-17 09:02 |

"bleeding edge" backports of commonly used programs for Jaunty
https://launchpad.net/~jauntybleed/+archive/ppa


sky | 2010-12-13 14:12 |

finally, terminate Singtel mobile broadband.


tryecrot | 2011-08-29 09:20 |

Yes there should realize the opportunity to RSS commentary, quite simply, CMS is another on the blog.


nakedbabesd | 2011-12-01 21:22 |

photos of [url=http://info.bloop.pl/2011/11/13/new-york-poetry-festival-assessment-if-it-were-me-i-would-have-had-a-homeless-person-strip-nude/] nude shoots[/url] celebrities naked .


nudebabesi | 2012-02-02 17:38 |

varcevanje za pokojnino [url=http://www.pfci.info]pfci[/url]


nakedp | 2012-02-04 00:00 |

naložbeno varcevanje [url=http://www.pfci.info]pfci[/url]


nakedcelebsg | 2012-02-04 00:00 |

kako privarcevati denar [url=http://www.nepremicninenet.info]nepremicnine.net[/url]


nakedbabex | 2012-02-04 11:35 |

rentno varcevanje [url=http://www.nepremicninenet.info]nepremicninenet[/url]


nakedw | 2012-02-04 14:02 |

moja naložba [url=http://www.cekinsi.info]cekinsi[/url]


nakedbabest | 2012-02-04 17:10 |

net avto [url=http://www.gbdonline.info]gbd online[/url]


nakedbeachnakedbeachesl | 2012-02-06 23:58 |

postopno varcevanje [url=http://www.mladipodjetnik.info]mladi podjetnik[/url]


nudebeachese | 2012-02-06 23:58 |

kam vložiti denar [url=http://www.netavto.info]avto[/url]


freenakedx | 2012-02-07 21:38 |

rentno varcevanje [url=http://www.finport.info]finport[/url]


nudessj | 2012-02-07 23:31 |

varcevanje v zlatu [url=http://www.financnisvetovalci.info]financni svetovalci[/url]


nudepicturesa | 2012-02-12 10:34 |

avtonet [url=http://www.netavto.info]avto[/url]





Add a reaction

About You

Comment