Last active
May 16, 2021 05:27
-
-
Save garygan89/9a8c024037d1e81d402658f702060a0f to your computer and use it in GitHub Desktop.
Script that install utilities to run on newly setup dedicated server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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