补充内容,调整格式.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
ed0df0d428
commit
69d26a06d7
|
@ -4,35 +4,47 @@ VNC 远程 Gnome 环境没有成功,远程 MATE 桌面环境配置倒是非常
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
|
```bash
|
||||||
sudo dnf grouplist
|
sudo dnf grouplist
|
||||||
sudo dnf groupinstall "MATE 桌面环境"
|
sudo dnf groupinstall "MATE 桌面环境"
|
||||||
sudo dnf install tigervnc tigervnc-server
|
sudo dnf install tigervnc tigervnc-server
|
||||||
|
```
|
||||||
|
|
||||||
## 配置
|
## 配置
|
||||||
|
|
||||||
|
```bash
|
||||||
vncserver :1
|
vncserver :1
|
||||||
vncserver -kill :1
|
vncserver -kill :1
|
||||||
|
```
|
||||||
|
|
||||||
之后在 ~/.vnc 目录下自动产生 xstartup 文件,修改该文件的最后一行如下
|
之后在 ~/.vnc 目录下自动产生 xstartup 文件,修改该文件的最后一行如下
|
||||||
|
|
||||||
|
```bash
|
||||||
#exec /etc/X11/xinit/xinitrc
|
#exec /etc/X11/xinit/xinitrc
|
||||||
exec /usr/bin/mate-session
|
exec /usr/bin/mate-session
|
||||||
#exec /usr/bin/cinnamon-session
|
#exec /usr/bin/cinnamon-session
|
||||||
|
```
|
||||||
|
|
||||||
## 防火墙
|
## 防火墙
|
||||||
|
|
||||||
设置防火墙:
|
设置防火墙:
|
||||||
|
|
||||||
|
```bash
|
||||||
firewall-cmd --add-service=vnc-server --permanent
|
firewall-cmd --add-service=vnc-server --permanent
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
|
```
|
||||||
|
|
||||||
或临时关闭防火墙:
|
或临时关闭防火墙:
|
||||||
|
|
||||||
|
```bash
|
||||||
systemctl stop firewalld.service
|
systemctl stop firewalld.service
|
||||||
|
```
|
||||||
|
|
||||||
## 使用
|
## 使用
|
||||||
|
|
||||||
|
```bash
|
||||||
vncserver :1 -geometry 1920x1080 -depth 24
|
vncserver :1 -geometry 1920x1080 -depth 24
|
||||||
|
```
|
||||||
|
|
||||||
之后使用 MobaXterm 或 VNC Viewer 连接到 IP:5901 即可。
|
之后使用 MobaXterm 或 VNC Viewer 连接到 IP:5901 即可。
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,11 @@ VBoxManage startvm <uuid|vmname> --type headless
|
||||||
|
|
||||||
之后使用 Remmina VNC 连接即可。
|
之后使用 Remmina VNC 连接即可。
|
||||||
|
|
||||||
## 3.外部参考资料
|
## 3.内部参考关键字
|
||||||
|
|
||||||
|
1. Remmina
|
||||||
|
|
||||||
|
## 4.外部参考资料
|
||||||
|
|
||||||
1. [Commands Overview](https://docs.oracle.com/en/virtualization/virtualbox/6.0/user/vboxmanage-cmd-overview.html)
|
1. [Commands Overview](https://docs.oracle.com/en/virtualization/virtualbox/6.0/user/vboxmanage-cmd-overview.html)
|
||||||
2. [Chapter 7. Remote Virtual Machines](https://www.virtualbox.org/manual/ch07.html#vrde-videochannel)
|
2. [Chapter 7. Remote Virtual Machines](https://www.virtualbox.org/manual/ch07.html#vrde-videochannel)
|
||||||
|
|
Loading…
Reference in New Issue