下载

更新并安装桌面

 Enter the username “ubuntu” and the password “ubuntu”
 
 sudo vim /etc/apt/sources.list
 更新源:
 http://ports.ubuntu.com/
 替换为
 https://mirrors.aliyun.com
 或者使用下面的命令:
 sudo sed -i 's#http://ports.ubuntu.com#https://mirrors.aliyun.com#g' /etc/apt/sources.list
 
 sudo apt update
 sudo apt upgrade
 
如果遇到lock的错误,尝试关闭python的自动更新进程
sudo systemctl stop apt-daily.service
sudo systemctl stop apt-daily.timer
sudo systemctl stop apt-daily-upgrade.service
sudo systemctl stop apt-daily-upgrade.timer
sudo systemctl disable apt-daily.service
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily-upgrade.service
sudo systemctl disable apt-daily-upgrade.timer

轻量化的桌面:
sudo apt install xubuntu-desktop
或者
sudo apt install lubuntu-desktop

不推荐下面桌面,毕竟资源有限:
mate桌面
sudo apt install ubuntu-mate-desktop
gnome桌面
sudo apt install ubuntu-gnome-desktop

安装golang环境

$ sudo apt install golang
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct

安装开发环境

sudo apt install -y vim curl wget git net-tools
sudo apt install -y build-essential 
sudo apt install -y p7zip-full

ffmpeg

sudo add-apt-repository ppa:djcj/hybrid
sudo apt-get update
sudo apt-get install ffmpeg -y

vnc server

关闭防火墙

#安装轻量级桌面
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

#安装vncserver
sudo apt install tigervnc-standalone-server 

#配置/etc/vnc.conf
注释掉默认配置
#$vncStartup = "/etc/X11/Xvnc-session";

#启动VNCServer
vncserver :1
提示输入用户密码和vncserver,并生成初始 ./vnc/Xvnc-session

#编辑
vim ./vnc/Xvnc-session
内容如下:
#! /bin/sh
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec startxfce4 

#启动VNCServer
vncserver :1 -geometry 1920x1080 -dpi 100 -localhost no

#关闭VNCServer
vncserver -kill :1