sudo apt-get install r-base
sudo apt-get install gdebi-core
sudo apt-get install libapparmor1
wget http://download2.rstudio.org/rstudio-server-0.97.551-i386.deb
sudo gdebi rstudio-server-0.97.551-i386.deb
ref: http://blog.csdn.net/lichangzai/article/details/39376117