6

ubuntu 14.04 RVM安装

 3 years ago
source link: http://quangelab.com/ubuntu14.04/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

1、apt-get update 404

修改/etc/apt/sources.list里面的内容 deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

2、RVM 及ruby bundle rails 安装

http://quangelab.com/rails-setup/

###3、RVM is not a function, selecting rubies with ‘rvm use …’ will not work.

终端右键配置文件—-配置文件首选项—标题和命令—-命令—以登录shell方式运行命令

docker 安装

通过系统自带包安装(可能不是最新版)

$ sudo apt-get update 
$ sudo apt-get install -y docker.io 
$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker 
  1. 通过Docker源安装最新版本
$ sudo apt-get install apt-transport-https 
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 
$ sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" 
$ sudo apt-get update 
$ sudo apt-get install lxc-docker

#####免 sudo 使用 docker

如果还没有 docker group 就添加一个:

sudo groupadd docker

将用户加入该 group 内。然后退出并重新登录就生效啦。

sudo gpasswd -a ${USER} docker

重启docker服务

sudo service docker restart

切换当前会话到新 group 或者重启 X 会话

newgrp - docker

pkill X

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK