- Install necessary pkgs
pkg install aria2c wget python git
- Download webui for aria2c
This manual describes how to install, use and extend NixOS, a Linux distribution based on the purely functional package management system Nix, that is composed using modules and packages defined in the Nixpkgs project.
This section describes how to obtain, install, and configure NixOS for first-time use.
NixOS ISO images can be downloaded from the NixOS download page. There are a number of installation options. In this manual we will assume that the chosen option is Minimal ISO image (64bit).
You can burn it on a USB stick with:
| # If we're not in screen, resume the existing session | |
| if [[ "$TERM" != screen* ]]; then | |
| # Clean up old sessions | |
| screen -wipe > /dev/null | |
| # See if there are sessions available | |
| screen -q -ls | |
| if [[ "$?" -ge "10" ]]; then | |
| # Reconnect if there are | |
| exec screen -x |
| version: "2" | |
| services: | |
| sabnzbd: | |
| environment: | |
| - PGID=1000 | |
| - PUID=1000 | |
| image: linuxserver/sabnzbd | |
| container_name: sabnzbd | |
| # keeps servers up and running and starts on boot |
Locking down a linux machine is getting easier by the day. Recent advancements in systemd-boot have enabled a host of features to help users ensure that their machines have not been tampered with. This guide provides a walkthrough of how to turn on many of these features during installation, as well as reasoning for why certain features help improve security.
The steps laid out below draw on a wide variety of existing resources, and in places I'll point to them rather than attempt to regurgitate full explanations of the various security components. The most significant one, which I highly encourage everyone to read, is Rod Smith's site about secure boot, which is the most comprehensive and cogent explanation of UEFI, boot managers and boot loaders, and secure boot. Another incredibly useful resources is Safeboot, which encapsulates many of the setup steps below in a Debian application.
| # Default termtype. If the rcfile sets $TERM, that overrides this value. | |
| set -g default-terminal screen-256color | |
| # support logging out and back in | |
| set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" | |
| # pbcopy support | |
| set-option -g default-command "reattach-to-user-namespace -l bash" | |
| # vi mode |
| Section "InputClass" | |
| Identifier "touchpad" | |
| Driver "libinput" | |
| MatchIsTouchpad "on" | |
| Option "Tapping" "on" | |
| Option "TappingButtonMap" "lmr" | |
| EndSection |
Terminator, ZSH (+ .zshrc) + Oh My Zsh + Powerlevel9k + plugins, Rust, FNM + VSCode (+ext) and Nerd Font
To setup Linux for WSL2, see this gist