轻快好用的Docker版云桌面(不到300M、运行快、省流量)
轻快好用的Docker版云桌面(不到300M、运行快、省流量)
Docker提供了一套非常方便的创建并运行应用容器的方法。本文通过把桌面环境、软件、程序配置一同打包,随用时分发即时启动 经远程RDP/VNC协议访问,形成Linux虚拟云桌面。可广泛部署于X86服务器环境,助您快速构建安全、高性能、低成本的桌面办公环境,应用于安全办公、研发设计、教育等领域。特点:
1.方便,随时随地不需要太复杂的操作可根据需求生成桌面
2.灵活,可支持各种工具连接,包括pc浏览器/rdp/ssh终端,访问完全不受限制
3.安全,数据存储在后端服务器上,不会泄漏
4.方便集成,可与裸机Linux/虚拟化平台等多系统无缝对接
5.降低成本,无需很多运维人员,易部署/多租户
QuickStart
docker run -it --rm --shm-size 1g --net=host infrastlabs/docker-headless:full
BROWSER|OFFICE
wps, chrome/firefox
#BROWSER|OFFICE
# https://blog.csdn.net/u012939880/article/details/89439647 #wps_symbol_fonts.zip
wget https://wdl1.cache.wps.cn/wps/download/ep/Linux2019/10161/wps-office_11.1.0.10161_amd64.deb
sudo apt -y install firefox-esr chromium #chromium-driver
RDP
VNC
- noVnc精简版+完整版
- 多实例支持
- 与rdp桌面共享
- 双密码:可操控+只读
Locale
- LOCALE
- pt_PT es_ES fr_FR de_DE ru_RU it_IT nl_NL cs_CZ tr_TR ar_EG
- zh_CN zh_HK zh_TW ko_KR ja_JP
- TZ
- Asia/Shanghai (default)
- Etc/GMT-8 #东八区
桌面应用
Detail
- Size: latest:
168.347 MB
, slim:88.929 MB
, full:289.581 MB
- User:
headless
, SSHPass:headless
, VNCPass:headless
- Ports
- novnc 6080 > 10081
- xrdp 3389 > 10089
- sshd 22 > 10022
- HotKeys
super: Alt
sup+t
: terminalsup+f
: thunarsup+d
: rofisup+q
: flameshotsup+h
: hide windowsup+up
: max windowsup+down
: cycle windowssup+left
: left workspacesup+right
: right workspace
- Entry: xrdp, novnc, dropbear
- 命令工具:
tree htop gawk expect tmux rsync iproute2
- 图形工具:
sakura tint2 plank flameshot
,gnome-system-monitor engrampa ristretto
- tzdata时区, ttf-wqy-microhei字体, ibus-rime输入法,
- oh-my-bash, docker-dind
开发办公
ENV|IDE
# JAVA
sudo apt -y install openjdk-8-jdk && sudo apt -y install maven
# GO/NODE
wget https://studygolang.com/dl/golang/go1.13.15.linux-amd64.tar.gz
tar -zxf go1.13.15.linux-amd64.tar.gz; mv go go1.13.15.linux-amd64
wget https://npm.taobao.org/mirrors/node/v14.13.1/node-v14.13.1-linux-x64.tar.xz
xz -d node-v14.13.1-linux-x64.tar.xz #tar.xz消失
tar -xvf node-v14.13.1-linux-x64.tar
cat >> /etc/profile <<EOF
# NODE
NODE_HOME=/_ext/down/node-v14.13.1-linux-x64
PATH=\$PATH:\$NODE_HOME/bin
export NODE_HOME PATH
# GO
GO_HOME=/_ext/down/go1.13.15.linux-amd64
GOPATH=/_ext/gopath
PATH=\$PATH:\$GO_HOME/bin:\$GOPATH/bin
export GO_HOME GOPATH PATH
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
EOF
#IDE: vscode, idea-ic
# wget https://vscode.cdn.azure.cn/stable/91899dcef7b8110878ea59626991a18c8a6a1b3e/code_1.47.3-1595520028_amd64.deb
wget https://vscode.cdn.azure.cn/stable/c3f126316369cd610563c75b1b1725e0679adfb3/code_1.58.2-1626302803_amd64.deb #org's down, replace domain to azure.
wget https://download.jetbrains.8686c.com/idea/ideaIC-2016.3.8-no-jdk.tar.gz #run with:openjdk8