Last active
August 29, 2015 14:09
-
-
Save cl4rk3/d63fe5b2c245c54d0240 to your computer and use it in GitHub Desktop.
atlantic.net bash commands for Ubuntu 14.04
This file contains 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
vi /etc/ssh/sshd_config | |
#edit to change port and disallow root login | |
adduser <USERNAME> | |
service sudo start | |
visudo | |
service ssh restart | |
apt-get update | |
apt-get upgrade | |
apt-get dist-upgrade | |
shutdown -r now | |
apt-get remove x11-common | |
service remove x11-common | |
# set timezone data | |
dpkg-reconfigure tzdata | |
#make a big swap | |
fallocate -l 4G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
vi /etc/fstab | |
#install ntp | |
apt-get install ntp | |
#Install Oracle JDK 7 | |
add-apt-repository ppa:webupd8team/java | |
apt-get update | |
apt-get install oracle-jdk7-installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment