Install R in Ubuntu is extremely easy if you don’t meet any exception, but if you meet, then you’d better be a very advanced linux user :-)
Install R
Because the Ubuntu official source R version is usually half of years older than R-project official source, so it is recommanded to using r-project.org official source to install the latest R system.
vi /etc/apt/sources.list
123
# append below line to end of sources.list
# you can view mirror at http://cran.r-project.org/mirrors.html
deb http://ftp.ctex.org/mirrors/CRAN/bin/linux/ubuntu precise/
apt-get install libssl0.9.8 # must install even you have newer versionapt-get install libapparmor1 apparmor-utils
wget http://download2.rstudio.org/rstudio-server-0.96.331-i386.deb
dpkg -i rstudio-server-0.96.331-i386.deb
rstudio-server verify-installation
Do some RStudio Server setting
123456
echo'rsession-memory-limit-mb=1000' > /etc/rstudio/rserver.conf
echo'rsession-stack-limit-mb=4' >> /etc/rstudio/rserver.conf
echo'rsession-process-limit=20' >> /etc/rstudio/rserver.conf
# Only pass below if you will using proxy modeecho'www-address=127.0.0.1' >> /etc/rstudio/rserver.conf
groupadd rstudio
Setting the proxy server for RStudio server
This section is optional, assured already install nginx in server.
没有评论:
发表评论