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
sudo apt-get update | |
sudo apt-get install default-jre | |
sudo apt-get install default-jdk |
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
ssh -i ~/aws-mumbai.pem ubuntu@ec2-52-66-8-51.ap-south-1.compute.amazonaws.com |
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
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
Permissions 0644 for '/Users/Karthik/aws-mumbai.pem' are too open. | |
It is required that your private key files are NOT accessible by others. | |
This private key will be ignored. | |
bad permissions: ignore key: /Users/Karthik/aws-mumbai.pem | |
Permission denied (publickey). |
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
chmod 400 ~/aws-mumbai.pem |
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
sudo adduser karthiaru | |
sudo gpasswd -a karthiaru sudo | |
sudo su - karthiaru |
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
#update packages | |
sudo apt-get update | |
#add trusty to our sources.list | |
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list' | |
#add the public keys | |
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 | |
gpg -a --export E084DAB9 | sudo apt-key add - | |
#install R | |
sudo apt-get update | |
sudo apt-get -y install r-base |
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
#install pre-requisites | |
sudo apt-get -y install libapparmor1 gdebi-core | |
#replace the following two lines with the code from RStudio Server downloads page | |
wget https://download2.rstudio.org/rstudio-server-0.99.903-amd64.deb | |
sudo gdebi rstudio-server-0.99.903-amd64.deb |
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
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | |
sudo /sbin/mkswap /var/swap.1 | |
sudo /sbin/swapon /var/swap.1 | |
sudo sh -c 'echo "/var/swap.1 swap swap defaults 0 0 " >> /etc/fstab' |
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
#devtools dependencies | |
sudo apt-get -y install libcurl4-gnutls-dev | |
sudo apt-get -y install libxml2-dev | |
sudo apt-get -y install libssl-dev |
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
#install all your R packages here | |
sudo su - -c "R -e \"install.packages(c('devtools','data.table','magrittr','stringi','stringr','ggplot2','dplyr'), dependencies=TRUE, INSTALL_opts = c('--no-lock'), repos='http://cran.rstudio.com/')\"" |
OlderNewer