multipass networks
multipass set local.bridged-network="WLAN 2"
multipass launch -n ubuntu20 -c 4 -m 8G -d 20G --network bridged
multipass list
网络测试
multipass exec ubuntu20 ping baidu.com
进入系统
multipass shell ubuntu20
设置root密码
sudo passwd
转为root账户
su root
停止虚拟机
multipass stop ubuntu20
删除虚拟机并永久清除
multipass delete ubuntu20 --purge
创建用户,并给予sudo权限
sudo adduser ken
sudo usermod -aG sudo ken
更新源
sudo apt-get update
安装桌面
sudo apt-get install ubuntu-desktop xrdp -y
清华源 /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb focal main restricted universe multiverse
# deb-src focal main restricted universe multiverse
deb focal-updates main restricted universe multiverse
# deb-src focal-updates main restricted universe multiverse
deb focal-backports main restricted universe multiverse
# deb-src focal-backports main restricted universe multiverse
deb focal-security main restricted universe multiverse
# deb-src focal-security main restricted universe multiverse
golang1.17.7
wget
sudo tar -xvf go1.17.7.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME/Projects/GoProjects
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
source /etc/profile
阅读(1126) | 评论(0) | 转发(0) |