#查看OS的版本及Arch
$ uname -a
#至https://golang.org/dl/ 下載符合的binary檔
$ wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz
#解壓下載回來的壓縮檔, 並把 binary 檔放到 /usr/local
$ tar xvf go1.12.7.linux-amd64.tar.gz
$ mv go /user/local
$ vim ~/.profile
------在.profile檔中加入以下內容--------------
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
#重新配置環境變數
$ source ~/.profile
$ apt-get update
$ apt-get install apt-transport-https ca-certificates curl gnupg-agent \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg |
apt-key add -
$ add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
$ apt-get update
$ apt-get install docker-ce docker-ce-cli containerd.io
$ cat > /etc/docker/daemon.json <<EOF
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
EOF
$ mkdir -p /etc/systemd/system/docker.service.d
$ systemctl daemon-reload
$ systemctl restart docker
#查看cpu是否支持,有vmx输出即可
$ grep vmx /proc/cpuinfo
$ apt-get install qemu-kvm libvirt-binvirtinst bridge-utils (virt-manager kvm qemu virt-viewer)
$ systemctl restart libvirt-bin
下載github 專案
$ git clone https://github.com/project-eve/eve.git
構建build-tools/bin的環境
$ cd eve
$ make build-tools
構建 EVE image
$ make live
建構 EVE 所有package
$ make pkgs
在qemu上運行一個完整的EVE
$ make run