ubuntu工具安装系列-Ethereum
Readme
声明:笔记中的部分网址可能需要翻墙才能访问,并且可能由于环境的不同会有错误
安装环境:本机环境为win10x64,虚拟机为ubuntu18.04.1
- 安装vmare tools
- 右键安装,然后复制到桌面
- 用root权限安装vmare-install.pl
- 更新国内源
- 复制源文件,进行备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
- 更新源为阿里云源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse - 更新软件列表和软件包
sudo apt-get update
sudo apt-get upgrade
- 复制源文件,进行备份
- 安装git
sudo apt-get install git
- 配置以太坊安装环境
- 用git从github上获取ethereum二进制源码
git clone https://github.com/ethereum/go-ethereum.git
- 安装配置go语言
- 安装truffle与testrpc
- 安装npm
- 下载源码文件链接
- 由于编译时需要用到python,所以如果没有python的话,就需要安装
sudo apt-get install python
- 解压下载好的nodejs,解压为node
cd node
./configure
make
-
make install
用root权限
- 安装truffle
- 设置淘宝源
npm config set registry https://registry.npm.taobao.org
npm install -g truffle
-
truffle version
查看版本
- 设置淘宝源
- testrpc 生成测试账号、监听测试
- 安装
- 老版
npm install -g ethereumjs-testrpc
- 升级版
npm install -g ganache-cli
- 老版
- 安装
- 安装npm
- 安装google浏览器
- 添加依赖
sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
- 导入公钥
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- 更新依赖
sudo apt-get update
- 安装软件
sudo apt-get install google-chrome-stable
- 启动Google浏览器
/usr/bin/google-chrome-stable
- 添加依赖
- 安装remix-ide(源码安装)
git clone https://github.com/ethereum/remix-ide.git
cd remix-ide
npm install
npm run setupremix
npm start
- 用git从github上获取ethereum二进制源码