This repository contains my dotfiles. Please mind that my dotfiles are strongly opinionated.
The following commands create a checkout in your home directory. For this, a detached head is used with the .git directory stored in ~/.cfg.
git clone --bare https://github.com/nicholasdille/dotfiles $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
rm ~/.bash_logout ~/.bashrc ~/.profile
config checkoutTo create a new distribution, download a root filesystem, e.g. Ubuntu Hirsute, then import it using wsl.exe --import my_name c:\wsl\ubuntu ~\Downloads\hirsute-server-cloudimg-amd64-wsl.rootfs.tar.gz. Afterwards set a username as documented here.
For pretty prompts (based on powerline) you need to install a proper terminal emulator and fonts. I recommend the Windows Terminal with Cascadia Code.
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install gitFollow the official documentation
sudo add-apt-repository ppa:phoerious/keepassxc
sudo apt update
sudo apt install keepassxcsudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F
sudo apt-add-repository "deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu focal main"
sudo apt update
sudo apt install firefoxOr maybe download directly from https://download-installer.cdn.mozilla.net/pub/firefox/releases/{version}/linux-x86_64/en-US/firefox-{version}.tar.bz2
Find latest version:
curl -fI 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US' | grep -o 'firefox-[0-9.]\+[0-9]sudo add-apt-repository ppa:sebastian-stenzel/cryptomator
sudo apt update
sudo apt install cryptomator-
Disable Secure Boot
-
Swap partition with minimum size of RAM
-
Encrypted swap is highly recommended
-
If you are using LUKS and LVM but your swap partition is too small:
lvresize -L -50GB --resizefs /dev/mapper/vgzorin-root lvresize -L +50GB /dev/mapper/vgzorin-swap_1 mkswap /dev/mapper/vgzorin-swap_1
-
Modify
/etc/default/grubso thatGRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/vgzorin-swap_1" -
Create
/etc/initramfs-tools/conf.d/resumewith content:RESUME=/dev/mapper/vgzorin-swap_1 -
Test hibernation as superuser:
sudo systemctl hibernate -
Create a policy in
/etc/polkit-1/rules.d/hibernate.rulesto allow hibernate by users:polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.login1.hibernate" || action.id == "org.freedesktop.login1.hibernate-multiple-sessions" || action.id == "org.freedesktop.upower.hibernate" || action.id == "org.freedesktop.login1.handle-hibernate-key" || action.id == "org.freedesktop.login1.hibernate-ignore-inhibit") { return polkit.Result.YES; } }); -
Test hibernation as user:
systemctl hibernate -
Install Hibernate Status Button