Showing posts with label chrome os. Show all posts
Showing posts with label chrome os. Show all posts
Tuesday, October 6, 2015
Install Ubuntu On Your Chromebook Using Crouton
I recently got a Chromebook and decided to install Ubuntu on it. There are two ways (that I know of) of doing this: using Crouton, which uses a chroot environment and lets you run both Chrome OS and Ubuntu in the same time and you can switch between the two using a keyboard shortcut, and ChrUbuntu, which works you can dual boot with Chrome OS but it only supports x86-based Chromebooks.
Since I have an ARM-based Chromebook (HP Chromebook 11 - it's not on sale currently due to some issues with the charger), I've used Crouton. I actually prefer Crouton for the way it allows switching between Chrome OS and Ubuntu without having to restart.
If you own a Chromebook and want to install Ubuntu using Crouton, here's how to do it. I've tested this on HP Chromebook 11, but it should work on any Chromebook.
Demo video
Below you can watch a quick demo of Ubuntu (Xfce) running on my ARM Chromebook in chroot using Crouton:
(direct video link)
Note: The video is laggy because my ARM Chromebook can't do a proper screencast using ffmpeg do the the CPU. Chrome OS / Ubuntu don't lag when using the Chromebook.
How to install Ubuntu on your Chromebook using Crouton
Warning: following the instructions below may void warranty!
1. The first thing you need to do is enable Developer Mode on your Chromebook:
a) Firstly, you need to reboot the Chromebook in Recovery Mode. To do this, press and hold the Esc and Refresh keys and then press the Power button while holding the other two keys (on older Chromebooks there's a physical switch for this).
After it reboots, you should see a yellow exclamation point on the screen - press Ctrl + D (there's no prompt - you have to know to do it).
b) You'll be asked if you want to enable Developer Mode - confirm and after doing so, wait. It will take a while and a new screen will pop up and then the Chromebook will reboot, starting the process that enables the Developer Mode. This should take about 15 minutes.
c) After it's done, you'll see a screen with a red exclamation point. You don't need to do anything, just wait until your Chromebook reboots into Chrome OS.
Now each time your Chromebook starts, you'll see a warning screen telling you that OS verification is OFF. This adds extra time to the boot process but you can skip it by pressing Ctrl + D.
You can also find instructions on enabling Developer Mode for each Chromebook model, HERE.
2. Install Ubuntu with Crouton
a) Download Crouton
You can download Crouton from HERE. Make sure the downloaded file is saved in the Downloads folder.
b) Install Ubuntu
Start the terminal on your Chromebook by pressing Ctrl + Alt + T. Then type "shell" in the terminal.
You can now begin installing Ubuntu. Before proceeding, I'll briefly explain the commands below:
- by default, Crouton will install Ubuntu 12.04 LTS (Precise) but I added "precise" to the first command below so you can see how you can change the Ubuntu version. You can see a list of supported Ubuntu versions by running "sh -e ~/Downloads/crouton -r list"
- in Developer Mode, the default configuration is completely insecure and you won't be prompted for a password when using "sudo" in the Chrome OS terminal. For this reason, I recommend encrypting the chroot by using "-e"
- "-t" means "targets" which is what Crouton uses to decide what to install. The target can be the desktop environment (in the two commands below) such as "unity", "xfce" and so on or other "packs" like "touch" for instance. Use "sh -e ~/Downloads/crouton -t help" to see all the available targets and find out more about this.
- If you're using a Chromebook with a touch screen, also add the "touch" target, like this (example for Xfce): "-t xfce,touch". More tips for Chromebook Pixel HERE.
For ARM Chromebooks: it's important to note that Unity only works in Ubuntu 12.04 (because only Unity 2D works due Xephyr lacking EGL support).
![]() |
| Ubuntu 12.04 with Unity running on HP Chromebook 11 |
To install Ubuntu 12.04 with Unity (2D) and enable encryption, use the following command:
sudo sh -e ~/Downloads/crouton -r precise -t unity -e![]() |
| Ubuntu 13.10 with Xfce running on HP Chromebook 11 |
To install Ubuntu 14.04 with Xfce and enable encryption, use the command below:
sudo sh -e ~/Downloads/crouton -r trusty -t xfce -eIn the same way, you can also install gnome (GNOME Shell), cinnamon, kde or lxde.
The installation should now start and it will take a while. When it finishes, you'll be prompted to enter an username and password for your new Ubuntu installation.
c) Start Ubuntu
To start Unity, in the Chrome OS terminal (Ctrl + Alt + T), type "shell" and then:
sudo startunityOr, to start Xfce, open the Chrome OS terminal (Ctrl + Alt + T), type "shell" (if you didn't already) and then:
sudo startxfce4You can switch between Chrome OS and Ubuntu on ARM by using: Ctrl + Alt + Shift + Back and Ctrl + Alt + Shift + Forward (on x86-based Chromebooks, the keyboard shortcuts are: Ctrl + Alt + Back or Ctrl + Alt + Forward and then also press Ctrl + Alt + Refresh).
To exit the Ubuntu desktop, simply select "Logout".
For more information, see Crouton @ GitHub.
Removing Ubuntu / Crouton
There are two ways of removing Ubuntu / Crouton. You can either reboot your Chromebook, press SPACE when the boot screen prompts you to disable the Developer Mode and follow the instructions - this will clean up everything, including any changes you've made to your Chrome OS.
Or you can remove all the chroots - to do this, exit Ubuntu (exit Unity/Xfce or whatever you're using) and use the following command in the Chrome OS terminal (Ctrl + Alt + T, then type "shell"):
cd /usr/local/chroots
sudo delete-chroot *
sudo rm -rf /usr/local/binTomorrow I'll publish a new article with some things to do after installing Ubuntu on your Chromebook, like installing some "base" applications, getting Ubuntu Software Center to work and some other fixes. Stay tuned!
Update - also see: Things To Do After Installing Ubuntu On A Chromebook Using Crouton
Things To Do After Installing Ubuntu On A Chromebook Using Crouton
Yesterday I wrote about installing Ubuntu on your Chromebook using Crouton. However, Crouton only installs a few apps so here's what you should install on your new Ubuntu installation running on top of Chrome OS and a few thing that you may want to fix, like the brightness and volume keys or how to get Ubuntu Software Center to work.
Note: Below I'll only cover Unity and Xfce but there are some generic tips as well.
1. Install extra applications
Ubuntu installed using Crouton ships with just a few apps (file manager, Xterm and a couple more) so let's install some extra applications.
For Unity, I recommend installing gnome-terminal, file-roller and Gedit. Open Xterm and install them using the following commands:
sudo apt-get install gnome-terminal file-roller geditFor Xfce, you'll want a text editor (leafpad) and a music player (I recommend Audacious):
sudo apt-get install leafpad audaciousAnd for both Xfce and Unity, you'll probably want to install bash completion, a video player (VLC), ubuntu-restricted-extras as well as the Ubuntu Font, Ubuntu Software Center which you can later use to install many other applications and Synaptic (in case USC doesn't work for you):
sudo apt-get install bash-completion vlc ubuntu-restricted-extras ttf-ubuntu-font-family software-center synapticImportant note: don't launch Ubuntu Software Center from the menu / Dash. You must run it with "gksu" - either edit its desktop file or simply open a terminal and type:
gksu software-centerIf you don't do this, Ubuntu Software Center will start, but you won't be able to install any applications using it. The application screenshots in USC don't seem to work though.
If you're using an ARM Chromebook, note that not all applications support ARM. You can install GIMP, LibreOffice and so on but you won't be able to install Skype or Steam for example.
2. Updating the chroot
Ubuntu may stop working after a Chrome OS update. If that's the case, update all the installed targets using the following command (in Chrome OS, open a terminal using Ctrl + Alt + T, then type "shell"):
sudo sh -e ~/Downloads/crouton -u -n chrootnameWhere "chrootname" is the name of the chroot you want to update. The default chrootname is the codename for the Ubuntu version you've installed (regardless of the desktop environment you've installed). For example, if you've installed Ubuntu 12.04 Precise, the default chrootname is "precise".
3. Xfce tweaks
On Xfce, I suggest changing the GTK/icon theme and enabling font anti-aliasing because the defaults are kind of ugly. You should also remove Xscreensaver as it causes issues.
Before:
After:
To fix the font, open Settings Manager > Appearance, on the "Fonts" tab check the "Enable anti-aliasing" box and under "hinting", select "slight":
You may also want to change to the Ubuntu Font which you've installed if you've followed all the steps in our previous article. If you didn't install it already, use:
sudo apt-get install ttf-ubuntu-font-familyTo change the GTK theme (tested on Ubuntu 13.10 and 14.04, Numix may not be available for older releases):
- Settings Manager > Appearance > Style: select Numix or Greybird;
- Settings Manager > Window Manager > Style: select Numix or Greybird.
Install the Xubuntu icon theme (in the Xfce4 terminal):
sudo apt-get install xubuntu-icon-themeTo change the icon theme (default is Tango): Setting Manager > Appearance > Icons: select Elementary Xfce dark.
To remove XScreensaver which causes some issues, use the following command (in the Xfce4 terminal):
sudo apt-get purge xscreensaverUpdate for Xfce under Ubuntu 14.04: Whisker Menu, a cool menu for Xfce which is now used by default in Xubuntu, is available in the official repositories (and thus, is available for ARM too) so I recommend you install it. Also, the Xfce4 Panel has support for Unity AppIndicators so I recommend you install this plugin as well and the Sound Menu indicator. Here's a screenshot with Whisker Menu and the Sound Indicator:
To install both, use the commands below:
sudo apt-get install xfce4-whiskermenu-plugin xfce4-indicator-plugin
sudo apt-get install --no-install-recommends indicator-soundOnce installed, right click the Xfce Panel (or simply select Panel from the Xfce Settings), select Panel > Add New Items, then select "Whisker Menu" and click "Add", then do the same for the "Indicator Plugin". You can re-arrange the items from the panel preferences, on the Items tab:
Also, I also recommend removing the Action Buttons plugin since the logout / shutdown, etc. options are now available in the Whisker Menu.
4. Fix brightness and volume keys
By default, the brightness and volume keys don't work. To fix them, you can install the "keyboard" target. Exit Ubuntu, open the Chrome OS terminal by pressing Ctrl + Alt + T, then type "shell" and then use the command below:
sudo sh -e ~/Downloads/crouton -r ubuntuversion -t keyboard -uWhere "ubuntuversion" is the Ubuntu version you've installed ("precise", "trusty", etc.)This will add the "keyboard" target to the existing chroot.
Then, start Ubuntu and use:
- Search key + volume keys to change the volume;
- Search key + brightness keys to change the brightness.
For me (on HP Chromebook 11), the volume keys worked but the brightness keys didn't work properly under Unity (both volume and brightness keys worked under Xfce).
If this occurs for you too, there's another tweak you can use. Crouton installs a brightness script you can use to change the brightness. You can do this either via a terminal:
-increase the brightness:
brightness up-decrease the brightness:brightness downOr you can assign keyboard shortcuts for the two commands mentioned above: System Settings > Keyboard > Shortcuts tab > Custom Shortcuts: click "+" and:
- for increasing the brightness: under "Name" enter "Brightness Up" and under command: "brightness up";
- for decreasing the brightness (click "+" again): under "Name" enter "Brightness Down" and under command, use: "brightness down".
Then, assign these custom shortcuts the brightness keys (you can directly assign the brightness keys or use Search key + brightness keys, so it's consistent with the volume keys).
Important: if you're using an ARM Chromebook, please note that most Launchpad PPAs won't work. That's because by default, Launchpad PPAs don't support ARM and only a few currently built ARM packages (a special permission is required to build ARM packages on Launchpad).
For more tips, see Crouton's GitHub readme | wiki.
Subscribe to:
Posts (Atom)









