Update (12/19/2010): I wrote a post on how to use your flash/USB drive to (re)install Ubuntu on the CR-48. Check it out.
Update (12/18/2010): I just discovered that .bashrc file is never executed in Chrome OS unless running another bash after chronos is logged in, and .profile is the file which being executed after each login. Therefore I changed the following instruction to .profile for Chrome OS. If you already created .bashrc file in the chronos home folder, you just have to rename it to .profile using the command below:
mv .bashrc .profile
I have used the newly received CR-48 from Google for two days. I enjoyed so far for web browsing, but not so for web development / programming. Since I couldn’t find any good IDE on the cloud which has support for WebDAV, I decided to following the instruction on the Chromium Project website to install Ubuntu onto this device. After several hours of installation, Ubuntu loaded to the device. However, because it comes from a VirtualBox disk image, it’s nearly impossible to reinstall Ubuntu without re-transferring the disk image from my laptop to this notebook which is a 5GB file, it would spend another 5 hours just for transferring this file over ssh. I’m trying to shorten this long waiting hours. I will post another tip if I find a way. But for now, here are the two scripts I wrote to switch between Ubuntu and Chrome OS using the alias command.
First of all, I assume you also received a CR-48 notebook and installed Ubuntu on it by following on this page.
This first script is for Ubuntu:
- Open the file named .bashrc in the home folder using your favorite text editor (make sure to show the hidden files by pressing Ctrl+H).
- Add the following line to the end of the file:
alias chromeos=’sudo cgpt add -i 6 -P 0 -S 0 /dev/sda;echo "Switched to Chrome OS, restart the machine to take effect"’
- Open a new terminal window to load the new alias.
- Type chromeos and a message will be displayed stating that you need to restart to switch to Chrome OS
- Restart your device and you are in the Chrome OS.
Now inside the Chrome OS:
- Press Ctrl + Alt + -> (the Forward button in the first row) and login as chronos
- Since Chrome OS also uses bash, we can write to the .profile file, but this time in the chronos home folder.
The command above creates and opens a new file called .profile inside the home folder using the only text editor available in Chrome OS qemacs.
- Insert the following line into .profile
alias ubuntu=’sudo cgpt add -i 6 -P 5 -S 1 /dev/sda;echo "Switched to Ubuntu, restart the machine to take effect"’
- Execute bash to launch another instance of bash, or if you are confused, you could just logoff current session by typing exit command and login again.
- Typing ubuntu command to switch to Ubuntu on the next startup.
- Restart your device to begin using Ubuntu.
In the future, you could just use chromeos and ubuntu commands to switch back and forth between Chrome OS and Ubuntu without changing back to normal mode using the small switch on the back of the battery.
Enjoy the free dual-boot notebook from Google.