Ubuntu 16.04 fabric

前端之家收集整理的这篇文章主要介绍了Ubuntu 16.04 fabric前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


一、配置环境。

1、关闭自动更新:

修改配置文件/etc/apt/apt.conf.d/10periodic 然后0是关闭,将所有值改为0
vietc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
2>、界面操作
菜单栏点 系统 ---》首选项 ---》启动应用程序 ---》更新提示 前面的钩打掉,从不更新 关闭即可

2、更新国内源
cd /etc/apt
sudo cp sources.list.list.bak
sudo vi sources.list
删掉原有内容,替换为

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

deb-srchttp://archive.ubuntu.com/ubuntuxenialmainrestricted#Addedbysoftware-properties

debhttp://mirrors.aliyun.com/ubuntu/xenialmainrestricted

deb-srchttp://mirrors.aliyun.com/ubuntu/xenialmainrestrictedmultiverseuniverse#Addedbysoftware-properties

debhttp://mirrors.aliyun.com/ubuntu/xenial-updatesmainrestricted

deb-srchttp://mirrors.aliyun.com/ubuntu/xenial-updatesmainrestrictedmultiverseuniverse#Addedbysoftware-properties

debhttp://mirrors.aliyun.com/ubuntu/xenialuniverse

debhttp://mirrors.aliyun.com/ubuntu/xenial-updatesuniverse

debhttp://mirrors.aliyun.com/ubuntu/xenialmultiverse

debhttp://mirrors.aliyun.com/ubuntu/xenial-updatesmultiverse

debhttp://mirrors.aliyun.com/ubuntu/xenial-backportsmainrestricteduniversemultiverse

deb-srchttp://mirrors.aliyun.com/ubuntu/xenial-backportsmainrestricteduniversemultiverse#Addedbysoftware-properties

debhttp://archive.canonical.com/ubuntuxenialpartner

deb-srchttp://archive.canonical.com/ubuntuxenialpartner

debhttp://mirrors.aliyun.com/ubuntu/xenial-securitymainrestricted

deb-srchttp://mirrors.aliyun.com/ubuntu/xenial-securitymainrestrictedmultiverseuniverse#Addedbysoftware-properties

debhttp://mirrors.aliyun.com/ubuntu/xenial-securityuniverse

debhttp://mirrors.aliyun.com/ubuntu/xenial-securitymultiverse

sudo apt-get update

3、cURL

cURL是利用URL语法在命令行方式下工作的开源文件传输工具。

cURL是利用URL语法在命令行方式下工作的开源文件传输工具。支持DICT,FILE,FTP,FTPS,Gopher,HTTP,HTTPS,IMAP,IMAPS,LDAP,LDAPS,POP3,POP3S,RTMP,RTSP,SCP,SFTP,SMTP,SMTPS,Telnet and TFTP。

cURL支持SSL证书,HTTP POST,HTTPPUT,FTP上传,基于HTTP的形式上传,代理,cookies,用户+密码验证(基本,摘要,NTLM,协商,Kerberos...),文件传输简历,代理隧道和总线负载

sudo apt-get install openssl

sudo apt-get install libssl-dev

sudo apt-get install curllibcurl3

如果提示没有curl源

  1. sudoadd-apt-repositoryppa:costamagnagianfranco/ettercap-stable-backports
  2. sudoapt-getupdate
  3. sudoapt-getinstallcurl

4、docker 以及 docker-compose

升级pip

pip install --upgrade pip

pip install docker docker-compose

docker版本高于17.03 docker-compose 版本高于1.8


5、go 1.9版本以上

wget https://www.golangtc.com/static/go/1.9/go1.9.linux-amd64.tar.gz

 tar -C /usr/local -xzf go1.9.linux-amd64.tar.gz

vim~/.bashrc 添加

export GOPATH=/opt/go
export GOROOT=/usr/local/go
export GOARCH=386
export GOOS=linux
export GOBIN=$GOROOT/bin/
export GOTOOLS=$GOROOT/pkg/tool/
export PATH=$PATH:$GOBIN:$GOTOOLS

source ~/.bashrc

猜你在找的Ubuntu相关文章