Hint: You can use "Edit > Paste" in VMWare to paste commands until the shared clipboard is operational.
Install most barebone server version.
Tested with Ubuntu 22.04 LTS
Important: Ensure you allocate enough virtual machine memory, so that a decent amount of swap space is allocated.
sudo apt-get update
sudo apt-get install xterm xorg xinit xmonad xmobar
We need to disable super keys to allow xmonad shortcuts to work.
Install
sudo apt-get install gconf2
and run gconftool-2 --set "/apps/compiz-1/plugins/unityshell/screen0/options/show_launcher" --type string ""
Now restart the OS so the settings are loaded.
mkdir ~/Downloads
cd ~/Downloads
wget https://github.com/simlu/xmonad/archive/master.zip
sudo apt-get install unzip
unzip master.zip
rm master.zip
Ensure dotglob is enabled by running
shopt -s dotglob
It should now be safe to copy the configurations:
cp -a ~/Downloads/xmonad-master/config/. ~/
Details on what the different files are for can be found here.
Some files need to be merged after copying them. So we need to run for all prepend files, e.g.
cat ~/.bashrc >> ~/.bashrc-prepend
mv --force ~/.bashrc-prepend ~/.bashrc
You should be good to start xmonad now using startx
.
- Instuctions for VMware Tools here
- Instructions for VirtualBox Guest Additions here
- If you are using physical hardware you can skip this step
To allow for mouse button 4 and 5 to operate, please edit the vmware VM *.vmx file and append
mouse.vusb.enable = "TRUE"
mouse.vusb.useBasicMouse = "FALSE"
usb.generic.allowHID = "TRUE"
Instructions here. Feel free to install another browser like Firefox instead.
Copy skeleton .profile
file into home.
cp /etc/skel/.profile ~/.profile
Append the following to ~/.profile
:
# start xmonad on login
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
. startx
logout
fi
Recompile xmonad
xmonad --recompile && xmonad --restart
and restart
sudo reboot -h now
Install instructions for some selected programs can be found here.