Dotfiles for development, etc.
-
Install Fish shell
-
Make Fish shell default
echo /usr/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/bin/fish
exec $SHELL # restart shell
- Install GitHub CLI
Authenticate
I have been using SSH lately
gh auth login
- Install Chezmoi
sh -c "$(curl -fsLS get.chezmoi.io)"
fish_add_path ./bin
mkdir ~/.local/bin
fish_add_path ~/.local/bin
mkdir ~/.local/share/mise
fish_add_path ~/.local/share/mise
- Install Fish shell
brew install fish
- Make Fish shell default
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish
exec $SHELL # restart shell
- Install Chezmoi
sh -c "$(curl -fsLS get.chezmoi.io)"
fish_add_path ./bin
fish_add_path ~/.local/bin
fish_add_path ~/.local/share/mise
fish_add_path .cargo/bin
fish_add_path /opt/homebrew/bin
- Install
winget
from Microsoft Store
winget install Git.Git
winget install twpayne.chezmoi
chezmoi init --apply noahbaculi
- Enable SSH from within WSL.
- Confirm that WSL can be connected to via SSH on the same computer:
ssh [wsl_username]@localhost
- From another computer, the WSL instance can be connected with the following chain (jump) command:
ssh -J [windows_username]@[windows_destination] [wsl_username]@localhost
Note that the WSL usernames should be unique across all the network WSL usernames with SSH enabled to avoid collisions.
sudo apt install ufw
sudo apt enable ufw
sudo apt install openssh-server
sudo systemctl enable ssh
sudo ufw limit 22/tcp comment "SSH" # Limit SSH port 22 through the firewall
sudo systemctl status ssh
sudo ufw status numbered
Must manually specify port
32400
in Plex settings.
sudo ufw allow 32400/tcp comment "Plex" # Allow Plex port through the firewall
sudo ufw status numbered
printf "ACTION==\"add\", ATTRS{idVendor}==\"2dc8\", ATTRS{idProduct}==\"3106\", RUN+=\"/sbin/modprobe xpad\", RUN+=\"/bin/sh -c 'echo 2dc8 3106 > /sys/bus/usb/drivers/xpad/new_id'\"" | sudo tee /etc/udev/rules.d/99-8bitdo-xinput.rules
sudo udevadm control --reload
Source: Linux Mint Forum & Gist
Note that many system-level keymaps are not supported. (CAPSLOCK -> ESC)
- Download a Nerd Font
.zip
archive locally. - Install the iFont app and install the font from the downloaded archive.
- Install the iSH apphttps://ish.app/) and select the installed Nerd Font in the iSH in-app settings.
- In iSH, install SSH:
apk add openssh
- In iSH, SSH to any host for development 🥳