Last active
June 16, 2016 00:44
-
-
Save BrianAdams/6a0b53a179375198ce68 to your computer and use it in GitHub Desktop.
Add Java to Scaleway Instance
This file contains hidden or 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
# install add-apt-repository | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common | |
# install oracle jdk8 | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install -y oracle-java8-installer | |
adduser --disabled-password jenkins | |
su jenkins | |
mkdir .ssh | |
chmod 700 .ssh | |
touch .ssh/authorized_keys | |
chmod 600 .ssh/authorized_keys | |
cat publickey.pub >> .ssh/authorized_keys | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also need to add jenkins to the sudo group
http://stackoverflow.com/questions/21659637/how-to-fix-sudo-no-tty-present-and-no-askpass-program-specified-error