Skip to content

Instantly share code, notes, and snippets.

@cl4rk3
Last active August 29, 2015 14:09
Show Gist options
  • Save cl4rk3/d63fe5b2c245c54d0240 to your computer and use it in GitHub Desktop.
Save cl4rk3/d63fe5b2c245c54d0240 to your computer and use it in GitHub Desktop.
atlantic.net bash commands for Ubuntu 14.04
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