1.0 由于国内无法下载到以太坊的docker,so选择超级账本来作为ubuntu的基础架构
1.准备基础工具:虚拟机VMware10,安装ubuntu镜像,开启虚拟机,替换Ali源,更新基础包
1.1目前单机很好用的虚拟机VMware,下载安装方便快捷,激活码g8de:
链接: https://pan.baidu.com/s/1EaGUfC9_fs9A6GZuPlkd-w 提取码: bxub
链接: https://pan.baidu.com/s/1r7UVHAsuhPMcT0zFGTYz5Q
1.2开启虚拟机
ubuntu镜像:链接:https://pan.baidu.com/s/1H-4sAa0QexcAfXcJnI91AA 密码:22cw
1.3配置虚拟机
傻瓜式安装,选择操作系统时,选下载到的镜像就OK,网络选NAT
1.4启动并替换源
源的作用:资源列表,其中包含开源的常用软件及工具(可以理解为应用商店)
为什么换:默认软件源在国外,所以下载更新软件的时候速度会比较慢;添加软件源之后可以选择国内的软件源,这样下载网速会快很多
vim /etc/apt/sources.list //ubuntu自带vim编辑器:e进入->i编辑->复制并粘贴下边的源在文件最后->:wq 保存并退出(冒号+w+q)
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
sudo apt-get update //更新即可