Skip to content

Instantly share code, notes, and snippets.

@benjiao
Created October 17, 2016 07:58
Show Gist options
  • Save benjiao/9e45daeb99430240ac38f8bd35eda2ab to your computer and use it in GitHub Desktop.
Save benjiao/9e45daeb99430240ac38f8bd35eda2ab to your computer and use it in GitHub Desktop.
sudo timedatectl set-timezone Asia/Manila
sudo yum install ntp && \
sudo systemctl start ntpd && \
sudo systemctl enable ntpd && \
sudo service ntpd restart
# Setup Swapfile
sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB && \\
sudo chmod 600 /swapfile && sudo mkswap /swapfile && \\
sudo swapon /swapfile && \\
sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab'
# Reboot!
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment