增加 LXDE(Docker Ubuntu+VSCode 最优选择).

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2021-05-21 19:13:17 +08:00
parent ad2ef55f39
commit 9dbb20b10e
1 changed files with 29 additions and 1 deletions

View File

@ -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