Skip to content

Instantly share code, notes, and snippets.

@garygan89
Last active May 16, 2021 05:27
Show Gist options
  • Select an option

  • Save garygan89/9a8c024037d1e81d402658f702060a0f to your computer and use it in GitHub Desktop.

Select an option

Save garygan89/9a8c024037d1e81d402658f702060a0f to your computer and use it in GitHub Desktop.
Script that install utilities to run on newly setup dedicated server
#!/bin/bash
# General Config
SSH_PORT=1022
TIMEZONE="America/New_York" # run timedatectl list-timezones | egrep -o "Asia/B.*" to get the list
# File system tools
sudo apt install lvm2
# Networking tools
sudo apt install vnstat bwm-ng -y
# Configure timezone
timedatectl set-timezone "America/New_York"
# Firewall rule
# allow ssh
sudo apt install ufw
sudo ufw allow $SSH_PORT
sudo ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment