Before installing on a new machine, need to sync an ssh key with github. Paste the following:
# 1. We need to create an ssh key, so that Github lets us clone this repo.
echo -e "\n\nGenerate an ssh key:"
# may have to set hostname manually!
ssh-keygen -t ed25519 -C key-thor-$(hostname)
ssh-add ~/.ssh/
# 2. Install github communication and keychain CLIs. Tell github about the ssh key.
sudo apt install -y gh hub keychain
echo "will open a browser and authenticate with Github."
gh auth login
gh ssh-key add ~/.ssh/id_ed25519.pub
echo "confirm our new key is listed."
echo "is the comment set correctly to key-thor-HOSTNAME?"
gh ssh-key list
# 3. Install stuff.
git clone [email protected]:thor314/.setup.git
Then work through the parts.
This setup script is slow and Not Fun, but does reduce reproducibility issues down the line.
- 2024-01-26 next major update: separate the high-interactive parts from the not-so-interactive parts, so we can parallelize them.
- eg. logging into all the GUIs annoying and have few dependencies, do that while apt/cargo etc. install themselves.
- 2024-12-24 refactored keybind set script. Test the refactored keybind script more on next install.
- known issue: will not unbind system keybinds, have to do that manually.
Figure out where to include these in the install script:
## these settings have not been tested
# set caps lock to ctrl
gsettings set org.gnome.desktop.input-sources xkb-options "['caps:ctrl_modifier']"
# revert: gsettings reset org.gnome.desktop.input-sources xkb-options
# or mannualy: Open Gnome Tweaks to map Capslock to Ctrl
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll true
gsettings set org.gnome.desktop.wm.keybindings minimize "['<Super>h']"
git config --global user.name "Thor Kampefner"
git config --global user.email "$EMAIL"
If issues with system keyboard not-dvorak persist:
# localectl list-x11-keymap-variants # see list of keymap options
sudo localectl set-x11-keymap dvorak
sudo update-initramfs -u # update initial ramdisk to apply changes at boot time
- 2024-01-26 - I should have a changelog