Skip to content

Instantly share code, notes, and snippets.

@ravage
Last active May 10, 2017 15:30
Show Gist options
  • Save ravage/59fef2153cf2d4d7951cb2b94852bb30 to your computer and use it in GitHub Desktop.
Save ravage/59fef2153cf2d4d7951cb2b94852bb30 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Running /etc/rc.local" >> /var/log/messages
control_file=/etc/.rc.local.done
if [ -f $control_file ]; then exit 0; fi
# Install Oracle JVM 8
apt-get -y install software-properties-common
add-apt-repository ppa:webupd8team/java
apt-get -y update
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
apt-get -y install oracle-java8-installer
#Install Maven2
apt-get -y install maven2
#Install Screen
apt-get -y install screen
touch $control_file
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment