From f9296e62b2de1f6e5e93e89acc938e649a77e462 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 9 Jul 2020 15:15:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20gnome=20=E6=A1=8C=E9=9D=A2?= =?UTF-8?q?=20=E6=8C=87=E5=AE=9A=E5=88=86=E8=BE=A8=E7=8E=87=E8=BF=90?= =?UTF-8?q?=E8=A1=8C;=20=E5=BC=BA=E8=B0=83=20xstartup=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Manjaro/Manjaro_安装图形界面及开启_VNC.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Software/System/Linux/Editions/Manjaro/Manjaro_安装图形界面及开启_VNC.md b/Software/System/Linux/Editions/Manjaro/Manjaro_安装图形界面及开启_VNC.md index ae826ff..20f1870 100644 --- a/Software/System/Linux/Editions/Manjaro/Manjaro_安装图形界面及开启_VNC.md +++ b/Software/System/Linux/Editions/Manjaro/Manjaro_安装图形界面及开启_VNC.md @@ -56,8 +56,13 @@ systemctl enable lightdm.service ## 安装和开启 tigervnc ```bash +# 安装 pacman -S tigervnc +# 运行服务(首次运行需要输入初始密码) vncserver +# 运行服务并指定分辨率 +vncserver -geometry 1280x1024 +vncserver -geometry 1920x1080 ``` 第一次使用需要按提示输入密码,开启后会提示一个 \ 号,num 与 VNC 的默认监听端口有一定对应关系,一般 num=0 时 VNC 默认监听 5900,num=1 时 VNC 默认监听 5901,以此类推。如果要关闭 vnc 可使用如下命令: @@ -79,6 +84,14 @@ unset DBUS_SESSION_BUS_ADDRESS #exec dbus-launch cinnamon-session # For Xfce exec dbus-launch xfce4-session +# For GNOME +#exec dbus-launch gnome-session +``` + +最后设置 xstartup 文件的访问权限,否则可能造成 vncserver 服务异常,远程访问黑屏: + +```bash +chmod 777 ~/.vnc/xstartup ``` ## 远程访问