Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Cheat sheet

From posixlycorrect wiki

This is a simple list of useful commands for use in the VPS. Some of the commands are self-explanatory and no description is needed.

Commands
Command Description
nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps Deploy server

Use --build-host root@posixlycorrect.com to compile inside the vps

sudo -u postgres psql
sudo ss -tpn Check current connections
nix flake lock --commit-lock-file --update-input homepage Deploy homepage
fail2ban-client unban nginx-bad-request <banned ip>
systemd.services.<service name>.serviceConfig.LoadCredential = [ <file name>:<full file path> ]; Load credential with systemd. Example:

systemd.services.tiddlywiki.serviceConfig.LoadCredential = [ credentials.csv:/var/trust/tiddlywiki/credentials.csv ];

nixos-rebuild repl --flake .\#vps Open a repl with server config loaded
lib.fakeSha256
https://matrix.posixlycorrect.com/_matrix/client/versions url to monitor matrix

Notable pages

MediaWiki:Citizen-footer-tagline

MediaWiki:Citizen-footer-desc