-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ansible-desktop
provisions your Debian based development machine using ansible.
Read the Getting started guide for a quick introduction to how the project is structured and how to make your own customizations.
Below is information about specific customisation's I have made to default key bindings etc.
Ubuntu is installed on an 512MB M.2 drive. The second hardrive (Hybrid 1TB SATA) was unformatted.
"Disks" (gnome-disks) kept crashing, so I used gparted to partition the drive as ext4
.
- To find its UUID and mountpoint I used
sudo blkid
. You can also use the "Disks" application. - Create a directory to use as a mount point;
sudo mkdir /data
. - Manually mount, as a test, with
sudo mount /dev/sda1 /data
. - Then
chown -R kris:kris /data
so I could read/write files without being root. - This worked so I added an entry to
/etc/fstab
so the disk was automatically mounted at boot:
UUID=XXXX-XXXX-XXXX-XXXX /data ext4 defaults 0 0
I moved some directories from home to the significantly larger second drive and symlinked them back.
ln -s /data/VirtualBox\ VMs ~/VirtualBox\ VMs
ln -s /data/Downloads ~/Downloads
ln -s /data/Desktop ~/Desktop
ln -s /data/Videos ~/Videos
ln -s /data/Pictures ~/Pictures
ln -s /data/Music ~/Music
ln -s /data/Keys ~/Keys
ln -s /data/gnome-boxes ~/.local/share/gnome-boxes
ln -s /data/bin ~/bin
Basically symlink every folder to the matching on on the second drive (mounted at /data
).
This way I can nuke my main drive and reinstall Ubuntu from fresh without having to worry about my important data.
I also keep my Documents and passwords (encrypted using GPG, managed via pass
) in Dropbox which is on the second drive:
ln -s /data/Dropbox ~/Dropbox
ln -s /data/Dropbox/Documents ~/Documents
ln -s /data/Dropbox/password-store ~/.password-store
Keys are not kept on Dropbox, but kept locally with a backup on a USB pen stored elsewhere.
To restore a copy of Thunderbird email on the second disk:
mkdir ~/.thunderbird
ln -s /data/thunderbird/rym3nnaz.default ~/.thunderbird/rym3nnaz.default
thunderbird --profilemanager
Create a new profile (delete the existing default profile if there is one), and choose the folder location ~/.thunderbird/rym3nnaz.default
(which is symlinked to the copy on the data drive).
Restore Firefox settings:
ln -s /data/firefox ~/.mozilla/firefox
See Gist.
Getting Virtualbox to work took some extra steps, firstly Virtualbox requires kernel modules to be installed, which due to secure boot in ubuntu 16.04 required the modules to be manually signed first. Secondly I had to enable "Intel Virtualization Technology" within the BIOS.
I downloaded some Microsoft Virtual Machines to test Internet Explorer.