Johnathan Kong
Install a LAMP development on Ubuntu
1 | sudo apt-get install lamp-server^ |
Change host name of server
how to change the host name of an ubuntu server
1 2 3 | echo "<name>" > /etc/hostname hostname -F /etc/hostname vi /etc/hosts (add hostname to 127.0.0.1) |
If you are running on a linode server, you will have to edit your /etc/default/dhcpcd and comment out the SET_HOSTNAME=’yes’
Change Time Zone
First install rdate. We will use this to get the latest time
1 | apt-get install rdate |
Then go to the timezone info directory
1 | cd /usr/share/zoneinfo |
Create a link to the desired timezone
1 | ln -sf /usr/share/zoneinfo/Canada/Eastern /etc/localtime |
Sync the time with the web
1 | /usr/bin/rdate -s time-a.nist.gov |
File Compression
Zip file (best compression)
zip -9 -r <zip file> <folder name>
Unzip file
unzip <zip file>
Untar file
tar xvfz <file>.tar.gz