问题描述
有什么办法来自动在Linux系统上安装的R-Studio?它会自动检测到操作系统和所需的依赖安装R和R-Studio中。
谢谢..
Is there any way to automate the Installation Of R-Studio on Linux Systems? It should automatically detect operating system and install R and R-Studio with required dependencies.Thanks..
推荐答案
我有prepared下面的shell脚本,使此安装完全自动化。
I have prepared the following shell script to make this installation fully automated.
#!/bin/bash
# ******************************************
# Program: R-Studio Installation Script
# Developer: Pratik Patil
# Date: 16-04-2015
# Last Updated: 16-04-2015
# ********************************************
if [ "`lsb_release -is`" == "Ubuntu" ] || [ "`lsb_release -is`" == "Debian" ]
then
sudo apt-get -y install r-base gdebi-core libapparmor1;
sudo wget http://download2.rstudio.org/rstudio-server-0.98.1103-amd64.deb;
sudo gdebi rstudio-server-0.98.1103-amd64.deb;
elif [ "`lsb_release -is`" == "CentOS" ] || [ "`lsb_release -is`" == "RedHat" ]
then
sudo yum -y install R openssl098e;
sudo wget http://download2.rstudio.org/rstudio-server-0.98.1103-x86_64.rpm;
sudo yum -y install --nogpgcheck rstudio-server-0.98.1103-x86_64.rpm;
else
echo "Unsupported Operating System";
fi
sudo rm -f rstudio-server-*;
sudo rstudio-server verify-installation;
如何启动的R-Studio在Ubuntu或Debian的系统?
在终端上输入以下命令:
How to Launch R-Studio in Ubuntu or Debian Systems?Enter the following command on the terminal:
rstudio;
如何启动的R-Studio中的CentOS或RedHat系统中?
在浏览器中打开以下网址:
How to Launch R-Studio in CentOS or RedHat Systems?Open the Following URL in browser:
http://localhost:8787
之后登录提示会出现&安培;然后与当前系统用户凭据登录。
After that Login prompt will appear & then Login with the current system user credentials.
这篇关于使用shell脚本的R-Studio的自动安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!