# Workstation - [Workstation](#workstation) - [Base Tools](#base-tools) - [ZSH](#zsh) - [Podman](#podman) - [Docker](#docker) - [QEMU/KVM](#qemukvm) - [Arch Guests](#arch-guests) - [Kubernetes](#kubernetes) - [VSCode](#vscode) - [Shell](#shell) - [Fonts](#fonts) - [Navigation](#navigation) - [Extensions](#extensions) - [Wireguard](#wireguard) - [Remote Desktop](#remote-desktop) - [Transmission](#transmission) - [VLC](#vlc) - [Bitwarden](#bitwarden) - [Nextcloud](#nextcloud) - [Insomnia](#insomnia) - [QMK](#qmk) - [Initialization](#initialization) - [Development](#development) - [Cura](#cura) - [AWS CLI](#aws-cli) - [NSlookup](#nslookup) ## Base Tools ```bash pacman -S rsync which git iperf3 pwgen ``` ## ZSH ```bash pacman -S zsh grml-zsh-config chsh -s $(which zsh) echo "autoload -U compinit; compinit" > ~/.zshrc ``` ## Podman Install with the following `pacman -S podman buildah cni-plugins slirp4netns podman-dnsname aardvark-dns` Then you can run rootless containers like so: ```bash podman pull docker.io/library/python:3.11 podman run -it python:3.11 bash podman network create test podman pod create --network test --publish 8000:8000 test1 podman run -it --pod test1 python:3.11 bash ``` You can also deploy pods with kubernetes yamls. ```bash podman network create test podman kube play --network test podman-deploy.yaml --replace ``` ## Docker ```bash podman -Sy docker docker-compose usermod -aG docker ducoterra ``` logout, log back in to use docker as non-root user. You can use btrfs as your storage driver by following these instructions: ## QEMU/KVM 1. Install virtualization capabilties ```bash pacman -S qemu-full libvirt iptables-nft dnsmasq virt-manager qemu-desktop swtpm usermod -aG libvirt ducoterra ``` 2. Edit /etc/libvirt/libvirtd.conf ```conf ... unix_sock_group = 'libvirt' ... unix_sock_rw_perms = '0770' ... ``` 3. Edit /etc/libvirt/qemu.conf ```conf # Some examples of valid values are: # # user = "qemu" # A user named "qemu" # user = "+0" # Super user (uid=0) # user = "100" # A user named "100" or a user with uid=100 # user = "ducoterra" # The group for QEMU processes run by the system instance. It can be # specified in a similar way to user. group = "ducoterra" ``` 4. `sudo systemctl enable --now libvirtd` 5. `sudo virsh net-autostart default` If you get a blank screen when launching a VM check that you've used the correct bios - either secboot or not secboot. This is the most common problem. ### Arch Guests In order to get drivers for spice you'll need the guest spice drivers: ```bash sudo pacman -S qemu-guest-agent spice-vdagent ``` ## Kubernetes ```bash pacman -S kubectl helm ``` ## VSCode For the open source version of code install `code`: ```bash sudo pacman -S code ``` For the proprietary version of vscode install `yay` and then: ```bash yay -S visual-studio-code-bin ``` ### Shell Edit settings.json ```json { "terminal.integrated.defaultProfile.linux": "zsh", } ``` ### Fonts Intel One Mono is designed to be easily readable for developers. Download and extract the ttf.zip ```bash mkdir ~/.local/share/fonts rsync -av /path/to/download/*.ttf ~/.local/share/fonts/ ``` Edit settings.json ```json { "editor.fontFamily": "Intel One Mono", "editor.fontLigatures": true, "terminal.integrated.fontFamily": "Intel One Mono", } ``` ### Navigation The best navigation shortcut ever is alt+left and alt+right to move the cursor to it's previous positions. ```json [ { "key": "alt+left", "command": "workbench.action.navigateBack", "when": "" }, { "key": "alt+right", "command": "workbench.action.navigateForward", "when": "" } ] ``` ### Extensions To save a list of installed extensions run: ```bash code --list-extensions >> vscode_extensions.txt ``` To install that list of extensions run: ```bash cat vscode_extensions.txt | xargs -L 1 code --install-extension ``` ## Wireguard Wireguard requires `linux-headers`. If that isn't installed or is misconfigured your vpn likely won't activate. ```bash pacman -S wireguard-tools ``` ## Remote Desktop ```bash pacman -S remmina freerdp ``` ## Transmission ```bash pacman -S gtk4 transmission-gtk ``` ## VLC ```bash pacman -S vlc ``` ## Bitwarden ```bash mv ~/Downloads/Bitwarden*.AppImage ~/Applications/Bitwarden.AppImage chmod +x ~/Applications/*.AppImage ``` ```conf [Desktop Entry] Name=Bitwarden Exec=/home/ducoterra/Applications/Bitwarden.AppImage Icon=/home/ducoterra/.icons/bitwarden.png Type=Application ``` ## Nextcloud ```bash mv ~/Downloads/Nextcloud*.AppImage ~/Applications/Nextcloud.AppImage chmod +x ~/Applications/*.AppImage ``` ```conf [Desktop Entry] Name=Nextcloud Exec=/home/ducoterra/Applications/Nextcloud.AppImage Icon=/home/ducoterra/.icons/nextcloud.png Type=Application ``` ## Insomnia ```bash mv ~/Downloads/Insomnia*.AppImage ~/Applications/Insomnia.AppImage chmod +x ~/Applications/*.AppImage ``` ```conf [Desktop Entry] Name=Insomnia Exec=/home/ducoterra/Applications/Insomnia.AppImage Icon=/home/ducoterra/.icons/insomnia.png Type=Application ``` ## QMK ### Initialization I have a mirror and a fork of the mirror on my personal Gitea. For this strategy you'll need to checkout the fork and add the mirror. This ensures I'll always have an up-to-date mirror of qmk while also giving me a repo to make changes for my personal keyboards. ```bash git clone git@gitea.reeseapps.com:ducoterra/qmk_firmware.git cd qmk_firmware git remote add mirror git@gitea.reeseapps.com:mirrors/qmk_firmware.git git fetch mirror git rebase mirror/master pacman -S qmk qmk setup sudo cp /home/ducoterra/qmk_firmware/util/udev/50-qmk.rules /etc/udev/rules.d/ qmk config user.keyboard=keychron/q11/ansi_encoder qmk config user.keymap=ducoterra ``` ### Development Every time you start a project you'll want to sync with the mirror. ```bash git fetch mirror git rebase mirror/master ``` Commit to master while you're in the fork. ## Cura ```bash mv ~/Downloads/*Cura*.AppImage ~/Applications/Cura.AppImage chmod +x ~/Applications/*.AppImage ``` ```conf [Desktop Entry] Name=Cura Exec=/home/ducoterra/Applications/Cura.AppImage Icon=/home/ducoterra/.icons/cura.png Type=Application ``` ## AWS CLI ```bash # Install less if you don't have it already pacman -S less curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install ``` Add the following to your .zshrc: ```bash complete -C '/usr/local/bin/aws_completer' aws ``` ## NSlookup ```bash pacman -Syu bind ```