From 69d26a06d79ab27370252a45597d9f7f4d775cdc Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Tue, 15 Jun 2021 16:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=86=85=E5=AE=B9,=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=A0=BC=E5=BC=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../VNC/Fedora29_开启_VNC_远程桌面服务.md | 36 ++++++++++++------- .../VirtualBox/Virtualbox_高级配置.md | 6 +++- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/Software/Applications/VNC/Fedora29_开启_VNC_远程桌面服务.md b/Software/Applications/VNC/Fedora29_开启_VNC_远程桌面服务.md index 2e89a86..aeb58bd 100644 --- a/Software/Applications/VNC/Fedora29_开启_VNC_远程桌面服务.md +++ b/Software/Applications/VNC/Fedora29_开启_VNC_远程桌面服务.md @@ -4,35 +4,47 @@ VNC 远程 Gnome 环境没有成功,远程 MATE 桌面环境配置倒是非常 ## 安装 - sudo dnf grouplist - sudo dnf groupinstall "MATE 桌面环境" - sudo dnf install tigervnc tigervnc-server +```bash +sudo dnf grouplist +sudo dnf groupinstall "MATE 桌面环境" +sudo dnf install tigervnc tigervnc-server +``` ## 配置 - vncserver :1 - vncserver -kill :1 +```bash +vncserver :1 +vncserver -kill :1 +``` 之后在 ~/.vnc 目录下自动产生 xstartup 文件,修改该文件的最后一行如下 - #exec /etc/X11/xinit/xinitrc - exec /usr/bin/mate-session - #exec /usr/bin/cinnamon-session +```bash +#exec /etc/X11/xinit/xinitrc +exec /usr/bin/mate-session +#exec /usr/bin/cinnamon-session +``` ## 防火墙 设置防火墙: - firewall-cmd --add-service=vnc-server --permanent - firewall-cmd --reload +```bash +firewall-cmd --add-service=vnc-server --permanent +firewall-cmd --reload +``` 或临时关闭防火墙: - systemctl stop firewalld.service +```bash +systemctl stop firewalld.service +``` ## 使用 - vncserver :1 -geometry 1920x1080 -depth 24 +```bash +vncserver :1 -geometry 1920x1080 -depth 24 +``` 之后使用 MobaXterm 或 VNC Viewer 连接到 IP:5901 即可。 diff --git a/Software/Applications/VirtualBox/Virtualbox_高级配置.md b/Software/Applications/VirtualBox/Virtualbox_高级配置.md index 291ce23..26f6f9e 100644 --- a/Software/Applications/VirtualBox/Virtualbox_高级配置.md +++ b/Software/Applications/VirtualBox/Virtualbox_高级配置.md @@ -73,7 +73,11 @@ VBoxManage startvm --type headless 之后使用 Remmina VNC 连接即可。 -## 3.外部参考资料 +## 3.内部参考关键字 + +1. Remmina + +## 4.外部参考资料 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)