软件安装问题

R

# configure: error: No Fortran compiler found
// 缺少编译器
sudo yum -y install gcc-gfortran
# configure: error: --with-readline=yes (default) and headers/libs are not available
sudo yum install readline-devel
// 没有启用x windows 选择yes
./configure  --with-x=no
# configure: error: zlib library and headers are required
sudo yum install zlib-devel
configure: error: bzip2 library and headers are required
sudo yum install bzip2-devel
// 还碰到缺这缺那得,原来有一步到位的办法
// 只需要两步,开心啊
sudo yum install epel-release
sudo yum install R
R --version
// 有root权限就是舒服

yum才是正道

Rstudio

//Released:  2019-04-08
wget https://download2.rstudio.org/server/centos6/x86_64/rstudio-server-rhel-1.2.1335-x86_64.rpm
sudo yum install rstudio-server-rhel-1.2.1335-x86_64.rpm

#### 使用 ####
// 打开root用户
rstudio-server start
// 防火墙开启8787端口
iptables -I INPUT -p tcp --dport 8787 --syn -j ACCEPT
service iptables save
// 检查端口是否开启
netstat -an | grep 8787
//登录 RStudio Server
http://IP:8787

jupyter

// 安装,anaconda会撞上
pip install ipython
pip install jupyter
// 生成配置文件
jupyter notebook --generate-config
# /home/dengqiuyang/.jupyter/jupyter_notebook_config.py
// 生成密码
$ ipython
In [2]: passwd()
// 输出
Out[2]: sha1:5fab1ab07d67:a0d534f06d3fd3e0d9637c66124e551d5d74bec0
$ vi /home/dengqiuyang/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*' #设置访问notebook的ip,*表示所有IP,这里设置ip为都可访问  
c.NotebookApp.allow_remote_access = True
c.NotebookApp.password = 'sha1:5df252f58b7f:bf65d53125bb36c085162b3780377f66d73972d1' #填写刚刚生成的密文  
c.NotebookApp.open_browser = False # 禁止notebook启动时自动打开浏览器(在linux服务器一般都是ssh命令行访问,没有图形界面的。所以,启动也没啥用)  
c.NotebookApp.port =8888 #指定访问的端口,默认是8888
// 防火墙开启8888端口
iptables -I INPUT -p tcp --dport 8888 --syn -j ACCEPT
service iptables save
// 打开jupyter
$ jupyter notebook
// 浏览器打开
http://IP:8888

shadowsocks

// 安装
pip install shadowsocks
// 配置参数,新建并编辑文件
vim /etc/shadowsocks.json
// 拷贝如下配置:
{
"server":"0.0.0.0",
"server_port":8388,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"password",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false,
"workers":1
}
# 主要参数说明:server_port表示开放VPS服务端口,password表示登录密码。

//启动服务
ssserver -c /etc/shadowsocks.json

启动成功结果如下

conda

// 换回官方源只需要下面一行命令
conda config --remove-key channels
  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值