image-1669187910481

在Dokcer中安装桌面环境,可作为临时跳板机访问内网服务

Github地址:https://github.com/gotoeasy/docker-ubuntu-desktop

在ubuntu:18.04的基础上,安装中文桌面环境,支持SSH和VNC远程连接以及Win远程桌面

  • 预装中文输入法
  • 预装谷歌浏览器chrome
  • 预装数据库客户端mysql-workbench

安装前建议打开swap虚拟内存,这样浏览器内存占用会走虚拟内存

Docker安装

# 以后台方式运行容器,指定VNC端口为10023,默认密码为4xx.me
docker run -d -p 10023:5900 -e PASSWD=4xx.me gotoeasy/ubuntu-desktop

TigerVNC下载安装

Github地址:https://github.com/TigerVNC/tigervnc

下载地址:https://sourceforge.net/projects/tigervnc/files/stable/1.12.0/

Windows下载这个,单文件免安装
image-1669188416939

连接远程VNC

  1. 填写远程地址、端口

image-1669188506360

  1. connect连接,输入密码

image-1669188562533

  1. 正常使用

image-1669188648927

image-1669188860426

资源占用

image-1669188736153

整体资源占用情况还行,1c 512M机器也能跑(开swap)