Skip to content

Instantly share code, notes, and snippets.

@samqi
Last active December 27, 2021 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samqi/d324630e910b095c9fe3d31b762ff99d to your computer and use it in GitHub Desktop.
Save samqi/d324630e910b095c9fe3d31b762ff99d to your computer and use it in GitHub Desktop.
AWS
sudo timedatectl set-timezone "Asia/Kuala_Lumpur"
# update OS & install necessary stuff
sudo apt update -y && sudo apt install byobu multitail htop iftop screen -y
#vim environment to be windows friendly colorscheme
echo "syntax on
colorscheme desert" > ~/.vimrc
# check date adn time
date
# enable UFW
ufw enable
# allow a set of default ports - ssh from office IP range and web ports
ufw allow 80
ufw allow 443
# reload configuration
ufw reload
exit
#########################
@samqi
Copy link
Author

samqi commented Dec 27, 2021

sudo hostnamectl set-hostname p2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment