-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Xenial Minimal Install
A. Create the ability to have a GUI
sudo sh ~/Downloads/crouton -r xenial -t x11
(The above will take a little while)
B. When the above completes, enter your chroot
sudo enter-chroot
Test the install with this command
xinit
A small xterm window will open against a black background. Press ctrl-d to exit
C. Install openbox
sudo apt-get install openbox menu nano
(The above will take a little while)
D. We need to create a few configuration files
nano .Xresources
xterm*font:10x20
xterm*geometry:80x25
xterm*background:black
xterm*foreground:green
nano .xinitrc
xsetroot -solid teal &
xrdb .Xresources &
exec openbox
Test your new GUI with the same command we used before
xinit
You will see a teal-colored background and a cursor. right-click using the touchpad, then click on the top item, Terminal Emulator. A very nice xterm will open up with easily readable green letters against a black background.
Congratulations! You can now install anything else you wish from the terminal. What follows is merely a suggestion.
First, update your chroot with sudo sh ~/Downloads/crouton -n xenial -t keyboard,extension
The above will not add any heavy overhead or space, and will enable url handling, copy & paste, Chromebook keys, etc.
Now we will use some "spare parts" from LXDE to create a more usable environment. While still in the terminal, or after exiting the "desktop" and now back in the chroot, type this command
sudo apt-get install lxsession lxterminal lxsession-edit lxappearance leafpad
After the above, we need to tweak the .xinitrc file so it appears like this
nano .xinitrc
xrdb .Xresources &
croutonpowerd -i &
syndaemon -i 2 -K -d &
xscreensaver -no-splash &
pcmanfm --desktop --profile LXDE &
lxpanel --profile LXDE &
lxpanel &
exec openbox
After saving the changes, you now need to exit openbox, if you haven't already: close your terminal with ctrl-d, then right-click on the "desktop" and choose Exit.
Finally, from within the chroot, execute
xinit
You will now see the LXDE menu at the bottom of the page. Click on its start icon (it looks like a grey terminal), choose Preferences, and Configure Look and Feel. Under the widgets tab, change to Clearlooks, and under Icons, choose the Humanity theme, and apply/click . Click on the start icon again, choose Preferences, Desktop Preferences, and choose a background color. Under Advanced, click "Show menus provided by window managers" and apply the changes, click ok.
At this point, you have a more usable system! You can tweak other settings similar as you would in LXDE, and add other packages, without encountering the errors associated with installing the LXDE "target" from crouton.