Thứ Ba, 15 tháng 10, 2013

ChrUbuntu for New Chromebooks: Now with more Ubuntu

Since I started ChrUbuntu back in December of 2010, it's always been necessary to utilize the Chrome OS Linux kernel with Ubuntu in order to solve some compatibility issues with the Chromebook architecture. That's changed with the Chromebook Pixel and the newer Haswell-based Chromebooks like the Acer C720 and HP Chromebook 14. Each of these models supports booting from a more traditional PC BIOS mode which makes it simple to use stock Ubuntu kernels on them.

This ChrUbuntu release is a preview that will only support x86-based Chromebooks, Pixel and newer (read: the ARM-based HP Chromebook 11 is not supported, nor are the older Acer C7, Samsung 550, etc. Use the old s9ryd script for these devices). I hope to eventually wrap this script back in to the main sr9yd ChrUbuntu install script but for now, I recommend this script on these newer devices over the old one.

Note: The trackpad is only supported with 13.10 and higher. I'm working to backport the trackpad drivers to 12.04. For now stick with 13.10 or use a USB mouse.

Here are the steps to install ChrUbuntu on a Pixel or Haswell-based Chromebook:
  1. To get started, make sure your Chromebook is in developer mode. Model-specific instructions can be found here.
  2. Start with your Chrome device turned off. Turn it on but do not login. Make sure you have a WiFi or Ethernet connection configured at this point. 3G/4G is not recommended. Press CTRL+ALT+=> (=> is the forward arrow where the F2 key would be on a PC). Do not use the normal CTRL+ALT+T method to get a shell. Use the CTRL+ALT+=> method while no one is logged in.
  3. Login as user chronos, no password is needed.
  4. As the chronos user and without having changed directories or run other commands, run:

    curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs

    Make sure you have the command exactly right. The -O and -L after curl are both capital letters. 9sgchs is all lowercase letters and numbers and would sound like "nine ess gee see aich ess" if you said it out loud. If you get a "not found" error, make sure you have Internet connectivity and you're typing the command correctly.
  5. You'll be prompted with some information about your Chromebook and the version of ChrUbuntu to be installed. Press Enter to continue.
  6. The Chrome OS stateful partition where your data and settings are stored is just short of 11gb by default (except for the Pixel which has a 32 or 64gb SSD), the script shrinks the stateful partition to make room for ChrUbuntu. You can choose to give ChrUbuntu from 5gb up to 10gb in 1gb increments (Note: If you've installed a larger SSD in your Chrome device, your max number and recommended max will be larger). I recommend not going higher than 9 as 10 leaves Chrome OS with very little free space (less than 1gb).
  7. Once you've entered a number, your hard drive will be repartitioned. After awhile it will reboot and re-initialize the stateful partition. This process takes 2-15 minutes and then the Chromebook reboots again and shows you the Welcome screen you got when you first turned on your Chromebook out of the cardboard box.

    Pro Tip: don't like Ubuntu or any of it's variants? You can stop now and plug a ready to go Linux USB Boot disk for Fedora, Debian, Mint or pretty much any other distro in the drive. Then hit CTRL+L to initiate the legacy boot. Format and install the OS to the /dev/sda7 partition and make sure GRUB is installed to /dev/sda and you should be good to go!
  8. Go through the Chrome OS setup process again until you get to the Google login page. You'll need to have a WiFi or Ethernet connection again at this point. Now follow steps 2 through 5 again. This time the script will see that you've already made room for Ubuntu and start downloading ChrUbuntu.

    Pro Tip: Here's where you can install other versions of Ubuntu! To see what options you have run:

    curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs -h

    An example custom installation would be:

    curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs -m xubuntu-desktop -u lts -a i386

    which would install the 32-bit version of Xubuntu and the latest LTS release (12.04.3 as of writing) rather than a 64-bit 13.10 Unity desktop (which is the default). Some possible flavor alternatives to Unity (-m option) are:

    default  -- ubuntu-desktop
    kubuntu-desktop
    lubuntu-desktop
    xubuntu-desktop
    edubuntu-desktop
    ubuntu-standard  -- no GUI installed

    some possible versions (-u option) are:

    lts -- latest LTS Ubuntu release, 12.04.3 as of this writing
    latest -- latest official release, currently 13.10
    dev -- unstable development Ubuntu release. Experts only! If this breaks, don't be surprised.
    12.10 -- Ubuntu 12.10 release

    the possible architectures (-a option) are:

    amd64  -- default
    i386

    the -t target desk option is completely untested right now!
  9. During the installation (within the first 5-15 minutes). You'll see a few prompts to select your encoding, locale and language. For most people, the defaults should be fine, just press Enter but change them if you'd like. Later on, you'll be prompted to decide where GRUB should be installed. YOU MUST CHECK THE BOX NEXT TO /dev/sda in order for boot to work!
  10. After all of the Ubuntu files have been downloaded, installed and configured, the script will make a few more updates and then prompt you to reboot.
  11. At the scary developer mode screen, hit CTRL+L instead of CTRL+D. You'll see ChrUbuntu start up! The username is "user" and the password is "user".
That's it! Now you can just press CTRL+L to boot ChrUbuntu (L as in Legacy, traditional OS) or CTRL+D to boot Chrome OS (D as in Default OS on Disk).

Last but least, I want to give a big thank you to +Bill Richardson, +Ron Minnich, +Stefan Reinauer and other Googlers who work on the low-level Chrome OS hardware/software and have made a truly incredible, powerful and open Chrome OS platform! Great work guys!