Created
April 7, 2020 08:00
-
-
Save timxor/2220b106266641244a2df5d67a97d710 to your computer and use it in GitHub Desktop.
linux debian 10 ec2 setup
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
#!/bin/bash | |
# date: 04/07/2020 | |
# file: aws_debian_10_setup.sh | |
# author: tim siwula <tim@acceptance.ai> | |
# | |
# | |
# build: chmod +x aws_debian_10_setup.sh | |
# execute: ./aws_debian_10_setup.sh | |
# | |
# description: installs deps and configures debian os | |
# ... | |
# update and upgrade system | |
sudo apt update && sudo apt-get upgrade | |
# restart server | |
# sudo /sbin/reboot | |
# update package manager stuff | |
sudo apt install software-properties-common | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB9B1D8886F44E2A | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EA8CACC073C3DB2A | |
sudo add-apt-repository ppa:linuxuprising/java | |
# install jenv & set default java version | |
cd /usr/lib/jvm | |
jenv add /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 | |
jenv versions | |
jenv global openjdk64-1.8.0.242 | |
java -version | |
sudo apt install default-jre | |
java -version | |
sudo apt install default-jdk | |
javac -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment