title: Install RStudio on AWS EC2 instance
body: <p>I managed to create an <em>EC2</em> instance <em>Amazon Linux AMI 2017.09.1</em> (randomly chosen) on <em>Amazon Web Services</em> (<em>AWS</em>).
  I can send and receive files from my local desktop to <em>AWS</em> properly.</p>
  
  <p>Now I would like to install <em>R</em> (<em>RStudio Server</em>) on <em>AWS</em>.
  When searching for an answer, I found the script below that is to be written into <em>Putty</em>:</p>
  
  <pre><code># install R base
  $ sudo yum install r-base
  
  #install RStudio-Server 1.1.442
  $ sudo yum install gdebi-core
  $ wget https://download2.rstudio.org/rstudio-server-1.1.442-amd64.deb
  $ sudo gdebi rstudio-server-1.1.442-amd64.deb
  
  #add user(s)
  useradd username
  echo username:password | passwordtest
  </code></pre>
  
  <p>But the answer I get each time is: "No package r-base available" or also "No package gdebi-core available".</p>
  
  <p>Are they some prerequisite steps that I am missing?
  Thanks.
  M</p>