Last updated: 2019 November 27
- Setting up xiwi
- Run graphical Crouton/chroot
- Run Crouton/chroot shell
- Run a single linux program in a window (already in a chroot shell)
- Remount a card/drive with execute permissions
- Set locales
- Add it to an existing crouton installation:
sudo sh ~/Downloads/crouton -u -t xiwi
- Install the Chrome extension
- Inherit your XFCE settings by adding this line to your user’s
.xiwircfile (this file might not exist yet):
In a totally separate view:
sudo startxfce4 -X xorg
Ctrl + Alt + Shift + ← and
Ctrl + Alt + Shift + → to switch between Chrome OS and Linux.
In a tab/window within Chrome OS:
This requires that you have xiwi installed as part of your crouton setup and the crouton integration extension installed in Chrome.
sudo startxfce4 -X xiwi
(from Crouton Wiki
This gives you a full linux shell that you can run programs from and install things with
Get the names of your chroots:
sudo edit-chroot -a
Mount the chroot and enter the shell: (using whatever
chrootname you got from the first command).
sudo enter-chroot -n chrootname
If you have a single chroot, you should be able to just do
(from Crouton Command Cheat Sheet)
Some programs require an additional flag to run properly, such as Sublime text editor:
xiwi subl -w
I ran into this when trying to run scripts that were stored on my Chromebook’s SD card.
sudo mount -o remount,exec /media/removable/Card
(or wherever the mountpoint of your card/USB device is)
(from Unix StackExchange)
To be minimalistic, locales are not set by default in Chrome OS/crouton. This can cause a problem with filenames or characters not displaying in terminals (or terminals crashing). You can set the locales to stop the madness.
sudo locale-gen en_US sudo locale-gen en_US.utf8 sudo dpkg-reconfigure locales
(First select all, then next select the default as en_US)
It should be reconfigured on reboot.
I started getting a segfault when I try to run any
apt-get commands in crouton on my Chromebook. So I couldn’t update or install. This Github issue comment provided a workaround. It’s not pretty, but it works. Basically, you manually download and re-install
apt, then update and install dependencies.