From 9dbb20b10e511b355f833abd6cef78b64f0e0963 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 21 May 2021 19:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20LXDE(Docker=20Ubuntu+VSCod?= =?UTF-8?q?e=20=E6=9C=80=E4=BC=98=E9=80=89=E6=8B=A9).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Ubuntu/Ubuntu20/Ubuntu20_开启_VNC_服务.md | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Software/System/Linux/Editions/Ubuntu/Ubuntu20/Ubuntu20_开启_VNC_服务.md b/Software/System/Linux/Editions/Ubuntu/Ubuntu20/Ubuntu20_开启_VNC_服务.md index be2b0b6..90181bb 100644 --- a/Software/System/Linux/Editions/Ubuntu/Ubuntu20/Ubuntu20_开启_VNC_服务.md +++ b/Software/System/Linux/Editions/Ubuntu/Ubuntu20/Ubuntu20_开启_VNC_服务.md @@ -7,10 +7,15 @@ ```bash # VNC Server apt install tightvncserver +# LXDE(Docker Ubuntu+VSCode 最优选择) +apt install lxde lxsession +apt install lubuntu-desktop # Mate apt install ubuntu-mate-desktop # Xfce apt install xubuntu-desktop +# Cinnamon +apt install cinnamon-desktop-environment ``` ## 2.配置 @@ -23,7 +28,7 @@ chmod u+x ~/.vnc/xstartup 然后可通过编辑 ~/.vnc/xstartup 文件实现对 vnc 服务的配置。 -### 2.1.Mate +### 2.1.LXDE 针对 Mate 的配置如下: @@ -32,6 +37,29 @@ chmod u+x ~/.vnc/xstartup unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS +# For LXDE +exec lxsession & +# For Mate Desktop +#exec mate-session & +# For Cinnamon Desktop +#exec cinnamon-session & +# For Xfce Desktop +#exec xfce4-session & +# For GNOME Desktop +#exec gnome-session & +``` + +### 2.2.Mate + +针对 Mate 的配置如下: + +```ini +#!/bin/sh + +unset SESSION_MANAGER +unset DBUS_SESSION_BUS_ADDRESS +# For LXDE +#exec lxsession & # For Mate Desktop exec mate-session & # For Cinnamon Desktop