Skip to content

Instantly share code, notes, and snippets.

@zhangyuan
Last active August 25, 2022 13:16
Show Gist options
  • Save zhangyuan/e3b8d522f85c5d2534b925c551c9d177 to your computer and use it in GitHub Desktop.
Save zhangyuan/e3b8d522f85c5d2534b925c551c9d177 to your computer and use it in GitHub Desktop.
setup devbox with multipass

Launch the instance

multipass launch --name devbox  -d 100G -m 4G

Shell into the instance:

multipass shell devbox

Update source list

Edit /etc/apt/sources.list and replace the content to the below:

deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse

Update package sources:

sudo apt-get update

Install docker and docker-compose

Install GUI

sudo apt-get install ubuntu-desktop xrdp -y
sudo snap install code --classic

Install packages for development

ubuntu 20.04

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment