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 checkout
As soon as you start a login shell for the first time, you will see the first launch setup.
To 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 git
uniget install vscode-cli
echo "code code/add-microsoft-repo boolean true" | sudo debconf-set-selections
Or maybe install directly from https://update.code.visualstudio.com/{version}/linux-x64/stable
sudo add-apt-repository ppa:phoerious/keepassxc
sudo apt update
sudo apt install keepassxc
sudo 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 firefox
Or 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]
See homepage
Update from releases
sudo add-apt-repository ppa:sebastian-stenzel/cryptomator
sudo apt update
sudo apt install cryptomator
-
Configure a swap file or partition
-
Configure
grub
andinitramfs
-
Test with
systemctl hibernate
-
Create a policy:
$ cat /etc/polkit-1/localauthority/50-local.d/hibernate.pkla [Enable hibernate in upower] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes [Enable hibernate in logind] Identity=unix-user:* Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit ResultActive=yes
-
Install Hibernate Status Button