关于R以及Rstudio的安装过程 64位ubuntu12.04
来源:互联网 发布:mac系统重装多少钱 编辑:程序博客网 时间:2024/06/03 14:21
首先,要安装R
1. Update the repositories to get the latest R distributions:
Use sudo vi /etc/apt/sources.list to add the following:
1
deb http://cran.stat.ucla.edu/bin/linux/ubuntu precise/
OR
1
sudo add-apt-repository "deb http://cran.stat.ucla.edu/bin/linux/ubuntu precise/"
2. Get the repository SSL key and import it in to apt.
1
2
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
3. Update the repositories.
1
2
sudo apt-get update
sudo apt-get install r-base
Now you may go to the command prompt and type R to get the R console.
然后,安装ROracle和DBI
wget http://cran.r-project.org/src/contrib/DBI_0.2-7.tar.gz
R CMD INSTALL DBI_0.2-7.tar.gz
wget http://cran.r-project.org/src/contrib/ROracle_1.1-11.tar.gz
R CMD INSTALL --configure-args='--with-oci-inc=/opt/oracle/instantclient_11_2/sdk/
这两个的过程大致是这个样子的,但是,DBI和ROracle的版本可能不一样的。
这个需要到他们的官方网站上去查看:
http://cran.r-project.org/index.html
最后,安装Rstudio server
(千万要注意,linux的版本是64位的,不能够安装成为32位的了)
$ sudo apt-get install gdebi-core
$ sudo apt-get install libapparmor1 # Required only for Ubuntu, not Debian
$ wget http://download2.rstudio.org/rstudio-server-0.98.501-amd64.deb
$ sudo gdebi rstudio-server-0.98.501-amd64.deb
$ sudo apt-get install libapparmor1 # Required only for Ubuntu, not Debian
$ wget http://download2.rstudio.org/rstudio-server-0.98.501-amd64.deb
$ sudo gdebi rstudio-server-0.98.501-amd64.deb
就是这些过程,其中,需要补充一个 psmisc_22.21-2_amd64.deb的安装
用wget获取包,再用gdebi进行安装就可以了
其后,这个rstudio server setting的设定:
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 mode
echo 'www-address=127.0.0.1' >> /etc/rstudio/rserver.conf
groupadd rstudio
Setting auto restart and PATH
ln -s /usr/lib/rstudio-server/extras/init.d/debian/rstudio-server /etc/init.d/rstudio-servervi /etc/init.d/rstudio-server
# append below line to /usr/lib/rstudio-server/extras/init.d/debian/rstudio-server SCRIPTNAMEORACLE_BASE=/opt/oracleORACLE_HOME=/opt/oracle/instantclient_11_2TNS_ADMIN=/opt/oracle/network/adminNLS_LANG=AMERICAN_AMERICA.AL32UTF8
/etc/init.d/rstudio-server restart
Add a user in RStudio
adduser --ingroup rstudio cindypasswd cindy # setting password
注意,在这个地方,我用的用户名称是tutu,密码吗,你懂的
Update package
Usually it is more good to upgrade the r-base in system wide packages instead of per user.
after run R in root console
update.packages() # select mirror to check
最后检查的时候
http://localhost:8787
登陆上去,就可以看到了
使用linux的用户id和用户的password,当然,如果添加了组,也是可以的。
0 0
- 关于R以及Rstudio的安装过程 64位ubuntu12.04
- Ubuntu12.04 安装 R RStudio
- Ubuntu12.04安装R ,Rstudio, RHive
- Ubuntu12.04下R语言及RStudio安装
- R语言、R扩展包以及RStudio的安装
- 在debian系统下安装R以及Rstudio的经历
- Ubuntu12.04 下安装QQ2012 32位以及64位
- Ubuntu下安装R,升级R版本,安装Rstudio,安装Rstudio Server以及安装Shiny Server
- R的安装与RStudio的安装
- ubuntu12.04-64位系统上安装s2e过程
- R语言及RStudio的安装
- Ubuntu12.04 64位中安装arm-linux-gcc的过程
- Ubuntu16.04安装R及RStudio
- Ubuntu16.04安装R及RStudio
- Ubuntu16.04安装R及RStudio
- Ubuntu 安装R/Rstudio
- R与RStudio安装与学习(二)以及配置问题
- Ubuntu下安装R&RStudio,以及在桌面新建RStudio图标
- UML类图几种关系的总结
- ORACLE 集合(关联数组,嵌套表,VARRAY)
- 当TableView只有几行,但是多于的地方会被分割线占据的解决办法
- 创业要面对一切可能
- 第九周项目六穷举法解决组合问题(3)三色球问题
- 关于R以及Rstudio的安装过程 64位ubuntu12.04
- ubuntu12.04的NFS配置
- 傻瓜式破解linux--root密码
- Bicoloring - UVa 10004 dfs
- mac本地apachectl服务器 阿帕奇服务器
- leetcode - Container With Most Water
- hdu2570(贪心)
- 设置PlaceHolder字体颜色
- HDU 4791 & ZOJ 3726 Alice's Print Service (数学 打表)