Basic usage 1 2 3 4 5 6 7 8 9 10 11 12 screen screen -a screen -ls screen -r [pid.sessionname] screen -d -m ping 8.8.8.8
Reference https://www.gnu.org/software/screen/manual/screen.html
Method 1 1 2 3 4 5 6 echo "Asia/Hong_Kong" > /etc/timezoneln -snf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime apt-get update apt-get install tzdata dpkg-reconfigure tzdata
Method 2 1 docker run -v /etc/localtime:/etc/localtime:ro
Method 3 1 docker run -e "TZ=Asia/Hong_Kong"
Reference https://github.com/gliderlabs/docker-alpine/issues/136
UFW basic usage 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 sudo ufw status verbose sudo ufw status sudo ufw app list sudo ufw allow 'Nginx HTTP' sudo ufw allow 53/tcp sudo ufw allow 6000:6007/tcp sudo ufw allow from 8.8.8.8 sudo ufw allow from 8.8.8.8 to any port 22 sudo ufw show raw sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw enable
Reference https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04