Ubuntu 14.04上安装和配置Rstudio-Server

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 14.04上安装和配置Rstudio-Server相关的知识,希望对你有一定的参考价值。

参考技术A Rstudio-Server 相对于桌面版 Rstudio 更高效实用,可多人协作,多平台访问,只需要一个浏览器,多台电脑办公不需要重复去安装各种包。

Ubuntu 14.04 安装 Rstudio-Server 具体步骤描述如下:

在安装 Rstudio-server 前需要先在服务器上安装 R ,我的服务器版本为ubuntu 14.04,R版本为3.4.1;如果ubuntu中R版本过旧,可以先按照下面的方法操作更新 R :

在 Rstudio-Server 的 官方网站 ,有安装教程,选择正确自己的系统;

安装完成以后,可以先查看 Rstudio-Server 是否在运行,因为安装完后会自动启动:

出现 rstudio 开头的字符表示启动了;

也可以使用官方命令验证安装是否正确:

没有报错就表示安装是正确的。

Rstudio-Server的默认端口是8787,所以直接在命令行检查端口的使用情况:

出现在8787的应用是rserver表明端口已经被rstudio-server在使用了。

一般情况下, ubuntu 对于防火墙还是蛮注重的,所以确保 8787 端口在它的防火墙中是 ACCEPT :

查看下 /tmp/rstudio-rsession/ 的 owner ,如果是 root 的话就改成 rstudio-server :

因为每次尝试连接 ip:8787时,rstudio-server 会尝试创立一个 rsession,但是如果tmp下的 rstudio-rsession 文件夹被 root 用户拥有,则 rstudio-server 无法建立 rsession,就无法连接 8787。

通过本地机器的浏览器登录服务器上的 Rstudio-server ,输入你对应的 IP 地址和 port 端口,然后输入服务器的主机的用户名和密码即可登录:

请享用吧!

Download RStudio Server for Debian & Ubuntu

保存iptable规则并开机自动加载

rstudio download-server

ubuntu10.10无法更新

W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/binary-i386/Packages.gz 500 Internal Server Error
, E:Some index files failed to download, they have been ignored, or old ones used instead.
弹出 检查Internet连接
而且在安装是勾了跟新语言包也没有跟新
求教

手动更换apt-get的源列表配置

修改/etc/apt/sources.list文件内容为如下内容即可正常更新。

## Major bug fix updates produced after the final release of the
## distribution.

参考技术A 我的也出现了这个问题。网络连接完全没有问题,我想是不是服务器的问题啊。下面是我的出错信息:
错误 http://cn.archive.ubuntu.com maverick/main Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/restricted Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/universe Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/multiverse Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/main i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/restricted i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/universe i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/multiverse i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/main Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/restricted Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/universe Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/multiverse Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/main i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/restricted i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/universe i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/multiverse i386 Packages
500 Internal Server Error
W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz 500 Internal Server Error

E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
OK了!!我修改了源,让它选择最佳下载服务器。我的是:http://ubuntu.srt.cn/ubuntu本回答被提问者采纳
参考技术B 首先你要判断你的计算机是否接入网络。能否打开例如www.baidu.com的网站。
如果不能上网当然就会出现“检测internet连接”的提示。
如果连不上网,什么都下载不下来再怎么更新也都是无效的。
所谓的500错误是不可恢复的网络连接。楼主还是先检查看看计算机是不是能上网再说吧。
如果能上网,那就到网上搜索 ubuntu 10.10 更新源 的关键词。网上有大量的更新教材可查。
参考技术C 源的问题,换个源吧,最好是用台湾源,比其它的源要快要新,而且速度也很快,一般我选台湾源里的前三个,速度都不错。 参考技术D 换个源试试

以上是关于Ubuntu 14.04上安装和配置Rstudio-Server的主要内容,如果未能解决你的问题,请参考以下文章

为 Ubuntu 14.04 安装和配置 xampp

Ubuntu14.04安装和配置Tomcat8.0.12

Ubuntu 14.04远程登录服务器--ssh的安装和配置

magento没有安装在ubuntu 14.04上,数据库没有配置

Ubuntu14.04安装vsftpd

在Ubuntu 14.04安装和使用Docker