增加 Ubuntu20 开启 VNC 服务.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
4e7dfbe9e2
commit
7c05bc2b0f
|
@ -0,0 +1,49 @@
|
|||
# Ubuntu20 开启 VNC 服务
|
||||
|
||||
TODO: 还没有验证通过
|
||||
|
||||
## 1.安装
|
||||
|
||||
```bash
|
||||
# VNC Server
|
||||
apt-get install tigervnc-standalone-server
|
||||
# Cinnamon
|
||||
apt-get install xinit lightdm cinnamon cinnamon-common cinnamon-control-center cinnamon-core cinnamon-session
|
||||
```
|
||||
|
||||
## 2.配置
|
||||
|
||||
可通过编辑 ~/.vnc/xstartup 文件实现对 vnc 服务的配置。
|
||||
|
||||
### 2.1.Cinnamon
|
||||
|
||||
针对 Cinnamon 的配置如下:
|
||||
|
||||
```ini
|
||||
#!/bin/sh
|
||||
|
||||
unset SESSION_MANAGER
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
# For Cinnamon
|
||||
exec dbus-launch cinnamon-session
|
||||
# For Xfce
|
||||
#exec dbus-launch xfce4-session
|
||||
# For GNOME
|
||||
#exec dbus-launch gnome-session
|
||||
```
|
||||
|
||||
## 3.使用
|
||||
|
||||
```bash
|
||||
# 设置 VNC 访问密码
|
||||
vncpasswd
|
||||
# 开启 VNC 服务
|
||||
vncserver :1 -geometry 1920x1080 -depth 24
|
||||
# 停止 VNC 服务
|
||||
vncserver -kill :1
|
||||
```
|
||||
|
||||
## 4.内部参考关键字
|
||||
|
||||
1. VNC
|
||||
2. Remmina
|
Loading…
Reference in New Issue