- Install generally useful server utils:
-
sudo apt update && apt install -y zip gzip iputils-ping traceroute htop tmux neovim tcpdump gh wireguard resolvconf build-essential zip btop
-
- Log into github
-
gh auth login
-
- Install docker
-
curl -fsSL https://get.docker.com | sh
-
- Install golang
-
curl -fsSLo- https://s.id/golang-linux | bash
-
- Install tailscale
-
curl -fsSL https://tailscale.com/install.sh | sh tailscale up
-
- Set up subdomains with SSL:
- Install nginx and certbot
sudo apt install -y nginx certbot python3-certbot-nginx apache2-utils
- Set
/etc/nginx/sites-enabled/default
to:
server { listen 80; server_name subdomain1.domain.com; # Require basic authentication for all requests auth_basic "Restricted Area"; auth_basic_user_file /etc/nginx/.htpasswd; # Proxy requests location / { proxy_set_header Host $host; proxy_pass http://127.0.0.1:3434; proxy_redirect off; } } server { listen 80; server_name subdomain2.domain.com; # Require basic authentication for all requests auth_basic "Restricted Area"; auth_basic_user_file /etc/nginx/.htpasswd; # Proxy requests location / { proxy_set_header Host $host; proxy_pass http://127.0.0.1:3435; proxy_redirect off; } } ...
-
htpasswd -c /etc/nginx/.htpasswd admin sudo certbot --nginx -d subdomain1.domain.com -d subdomain2.domain.com sudo service nginx restart
- Generate random passwords
-
openssl rand -hex 16
-
- Move files around
- Compress files
tar -czvf files.tar.gz /path/src
- SCP files between hosts
scp /local/dst user@remote:/src
- Decompress files
tar -xvzf files.tar.gz -C /local/dst
-
Notifications
You must be signed in to change notification settings - Fork 0
B00TK1D/setup
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A collection of quick-reference commands for managing linux servers
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published