There are also some other very handy targets you will want to install into the chroot:
Install steam, vlc, leafpad, and minecraft (using the same instructions as chrubuntu).
So I wouldn't have to run that everytime I started crouton I created my own little shell script called startcrouton and save it in /usr/local/bin. That's where startxfce4 is located.
Use leafpad and save that or vi or whatever text editor you want to use. Then mark it executable:
From now on just sudo startcrouton instead of startxfce4 and that should set it up for steam streaming.
Streaming performance is great and you can stream even non steam games like diablo 3. I just added the battle.net launcher to steam and it works just fine. To exit the launcher just click the top right corner where the X would be except you can't see it. It will still close the launcher and after a few seconds you go back to your local steam client. I'm using a cheap Logitech M510 wireless mouse when gaming.
Other things I tested were exFat and citrix receiver which both work well in crouton. Once you have everything setup the way you like make sure you backup the chroot and copy the tarball to somewhere safe.
This was my first experience with chroot and the unique way it handles multiple environments sharing the same kernel. Performance is way better than typical virtualization since everything runs natively. I highly recommend installing crouton. It adds a ton of functionality and performs really well. It's really convenient and you don't give up the superior browser experience in chromeos. Besides, what else are you going to use that 16GB of ssd space for? There's really not much you can do with it on the chromeos side of things.
UPDATE: 6/4/2014
- updated XBMC to gotham. The target only installs 12.0.
Just follow the steps here:
sudo enter-chroot
sudo apt-get install python-software-properties pkg-config
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install xbmc
I could not get HDMI passthrough working at all in XBMC. I hooked the chromebook to my receiver but there was never a passthrough setting, there was no hdmi option in audio output device, and I couldn't even add my own custom audio output device. I think this just might be a limitation of crouton.
You can start xbmc directly without running xfce first by using the command:
sudo startxbmc
- Installed some more targets.
sudo sh -e ~/Downloads/crouton -t cli-extra -u -r trusty
List available targets:
sudo sh -e ~/Downloads/crouton -t help
- Updated crouton:
From inside chroot check version (sudo enter-chroot
):
croutonversion -u
From outside run:
sudo sh -e ~/Downloads/crouton -u -n trusty
- Backup chroot:
sudo edit-chroot -b trusty
- Speaker volume adjustment (search + volume up/down) is dependent on what the volume is set in chromeos. So you will want to max the volume in chromeos before launching crouton if you want the full volume range in linux.
- update ubuntu:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
UPDATE 9/4/2014: Crouton, Steam, and Removable Storage
I finally got steam to install to a SD CARD under crouton. Here are the steps:
1. Make sure you have crouton fully updated.
2. Install the program Disks from the ubuntu software center. Install leafpad too if you haven't already.
3. Exit crouton and while in chromeos insert your sd card or usb storage.
4. In chromeos file manager EJECT the removable storage you just plugged in.
5. Start crouton. Start Disks. Find your removable storage and I recommend deleting any existing partitions and creating a new Ext4 one. I figure it might help with performance being a native linux format. When it finishes creating the partition and formatting it will give some error about too many symbolic links to mount. That's ok since we are going to mount the partition a different way anyways.
6. Open a terminal and find a path where you would like to have the mount point. I used /media/yourusername/
Under that folder I created a new folder: sdb1 so the final path looks like:
/media/yourusername/sdb1
Now change permission on sdb1:
sudo chdmod 777 /media/yourusername/sdb1
7. cd /etc
backup rc.local:
sudo cp rc.local rc.oldlocal
now we need to edit rc.local:
sudo leafpad rc.local
add this line before exit 0:
sudo mount yourdevice yourmountpoint
example:
sudo mount /dev/sdb1 /medial/yourusername/sdb1
Save it. exit crouton. To find your device name you can run:
sudo libkid
and it should list it. Mine was the last entry.
8. Double check and make sure the usb storage is still NOT mounted in chromeos. If it is eject it again. start crouton. Change permissions on your mount point one last time (you only have to do it this one last time):
sudo chdmod 777 /media/yourusername/sdb1
9. Fire up steam. Disable in game steam overlay for a bit of a performance boost. Under downloads | steam library folders add a new library: navigate to /media/yourusername/sdb1 and create a new folder: SteamLibrary there. If this step worked you are good to go. Now go install all your games to this new library.
So in the future to play your steam games off of removable storage all you have to do is plug in your storage, eject it from chromeos, start crouton and steam and begin playing. That's it. I also tested leaving the storage device out, firing up steam (maybe for streaming) and of course your installed games show they are not installed. I then plugged back in the sd card, did the steps above, and steam recognized and played all my installed games fine. So steam handles libraries on removable media pretty gracefully. Chromeos also likes to remount your storage when coming out of sleep so remember to eject again after that.
I also tried this on my
asus chromebox with a usb 3.0 flash drive and it worked fine there too. Here are the games I've installed to my 32GB sd card. I tried each briefly at default settings unless otherwise noted. Try to close all other applications/browser tabs if at all possible in chromeos and crouton to free up as much memory as possible. I had about 5.4GB free on the SD card after installing all the below games.
Amnesia: The Dark Descent
Antichamber - Takes a while to load but runs fine.
Awesomenauts
BattleBlock Theater
Beat Hazard
Counter-Strike: Source - benchmarks at around 84 fps. In game shows around 70fps. Very smooth.
Don't Starve
Dungeons of Dredmor
Dust: An Elysian Tail - A bit of chop during dialogue. Turn down some of the settings and it runs fine.
FEZ
Fortix 2
Frozen Synapse
FTL
Galcon Fusion
Gratuitous Space Battles
Jazzpunk
Mark of the Ninja - Turn down the settings and it runs pretty well.
Papers, Please
Proteus
Race the Sun
Reus
Rogue Legacy
Space Pirates and Zombies
Space Run - Intro screen is choppy but actual game runs just fine. You might also want to turn some settings down.
System Shock 2
Ticket to Ride
This chromebook is a pretty nice linux gaming laptop!
-Installed wine:
sudo apt-get install wine
installed dropbox and sync only the 1password folder
installed 1password 4 for windows which runs under wine just fine. Now I can finally update my passwords on the chromebook. Space is really tight now so I think I'm going to upgrade the SSD next.
- Tried out Sir you are being hunted which runs pretty well at 720p on the chromebox.
UPDATE 9/9/2014: Upgrade the SSD
- So after installing wine and 1password I was left with < 3GB free. For performance reasons I like to keep 10-15% free and this was cutting it rather close. I picked up a
128GB M.2 SSD from amazon when it was on sale for $60. That seemed like a more reasonable upgrade price for a $200 chromebook. M.2 form factor is really small as in the size of half a stick of gum. This is a pretty good
guide on doing the hardware upgrade. This
youtube video is helpful too. Overall, it's a very simple process and takes all of 10 min at most.
- So I created a recovery image using the recovery app (not imageburn) first so I would have the latest. I backed up my chroot and put it on a usb flash drive too. Also, backup anything you want in your downloads directory.
- Swap the SSD
- When you fire it back up CTRL-D and then insert the recovery usb flash drive you created and that should restore chromeos. This process does NOT remove developer mode which is nice.
- Once you login to google and let everything sync back down it's time to restore that chroot. You might need to recreate any VPN connections since those don't sync down.
- I first verified I had around 99GB free which was a nice sight. Fire up the browser and
download crouton again. I copied the chroot backup from the usb flash drive to my download directory since I think restoring will go faster with everything on the ssd. Fire up a shell and change directory to where the tarball is and just enter:
sudo sh ~/Downloads/crouton -f mybackup.tar.gz
After a few minutes the restore was complete. Now, I did have to re-create my startcrouton script since that lived on the chromeos side of things. But other than that I fired up crouton and everything seemed to work fine. I went ahead and installed
WPS office to give it a try as an alternative to libreoffice. For some reason I had issues installing the deb package through software center and instead had to do it through
command line:
sudo dpkg -i DEB_PACKAGE
WPS looks and feels REALLY close to microsoft office. It doesn't quite have as many apps as libre (like an Access database clone) but for spreadsheets, presentation, and word processing it seems fine.
I re-installed all my steam games to the ssd and boy do they load much faster now. Having this much local storage to work with makes this a fantastic inexpensive linux laptop. I highly recommend the upgrade if it is in the budget.