Skip to content

noahbaculi/dotfiles

Repository files navigation

dotfiles

Dotfiles for development, etc.

Linux / WSL

  1. Install Fish shell

  2. Make Fish shell default

echo /usr/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/bin/fish

exec $SHELL  # restart shell
  1. Install GitHub CLI

Authenticate

I have been using SSH lately

gh auth login
  1. 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

MacOS

  1. Install Fish shell
brew install fish
  1. Make Fish shell default
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish

exec $SHELL  # restart shell
  1. 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

Windows

winget install Git.Git
winget install twpayne.chezmoi

New Machine

chezmoi init --apply noahbaculi

Chezmoi User Guide

Enable SSH from WSL

  1. Enable SSH from within WSL.
  2. Confirm that WSL can be connected to via SSH on the same computer: ssh [wsl_username]@localhost
  3. 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.

Linux Customization

Enable UncomplicatedFirewall

sudo apt install ufw
sudo apt enable ufw

Enable SSH

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

Enable Samba File Sharing

Samba Ubuntu guide

Enable Plex Remote Access

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

Add support for 8BitDo Ultimate controller

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

iOS

Note that many system-level keymaps are not supported. (CAPSLOCK -> ESC)

  1. Download a Nerd Font .zip archive locally.
  2. Install the iFont app and install the font from the downloaded archive.
  3. Install the iSH apphttps://ish.app/) and select the installed Nerd Font in the iSH in-app settings.
  4. In iSH, install SSH: apk add openssh
  5. In iSH, SSH to any host for development 🥳

About

Dotfiles for development, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published