From 1df3d7fe9bc24487995e9c79baab75708b048d34 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Tue, 12 Nov 2019 17:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=B9=B6=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- .../Manjaro/Manjaro_安装图形界面及开启_VNC.md | 52 ++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/Software/System/Linux/Manjaro/Manjaro_安装图形界面及开启_VNC.md b/Software/System/Linux/Manjaro/Manjaro_安装图形界面及开启_VNC.md index 1c3400c..738ca2a 100644 --- a/Software/System/Linux/Manjaro/Manjaro_安装图形界面及开启_VNC.md +++ b/Software/System/Linux/Manjaro/Manjaro_安装图形界面及开启_VNC.md @@ -1,9 +1,17 @@ # Manjaro 安装图形界面及开启 VNC -## 安装 Xorg、xfce4 和 lightDM +## 安装 Xorg 和 lightDM ```sh -pacman -S xorg xorg-xinit lightdm lightdm-gtk-greeter xfce4 xfce4-goodies +pacman -S xorg xorg-xinit lightdm lightdm-gtk-greeter +``` + +## 安装 xfce4 或 cinnamon + +```sh +pacman -S xfce4 xfce4-goodies +# 或 +pacman -S cinnamon ``` ## 使能 lightDM 登陆管理器 @@ -12,10 +20,42 @@ pacman -S xorg xorg-xinit lightdm lightdm-gtk-greeter xfce4 xfce4-goodies systemctl enable lightdm.service ``` -## 安装和开启 x11vnc +## 安装和开启 tigervnc ```sh -pacman -S x11vnc -startx -x11vnc -display :0 -rfbauth ~/.vnc/passwd +pacman -S tigervnc +vncserver +``` + +第一次使用需要按提示输入密码,开启后会提示一个 \ 号。如果要关闭 vnc 可使用如下命令: + +```sh +vncserver -kill : +``` + +## 配置 VNC + +修改 ~/.vnc/xstartup 文件如下: + +```sh +#!/bin/sh + +unset SESSION_MANAGER +unset DBUS_SESSION_BUS_ADDRESS +#exec dbus-launch cinnamon-session +exec dbus-launch xfce4-session + +#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup +#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources +#xsetroot -solid grey +#vncconfig -iconic & +#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & +#x-window-manager & +#gnome-session & +#xfce4-terminal & +#sesion-manager & xfdesktop & xfce4-panel & +#xfce4-menu-plugin & +#xfsettingsd & +#xfconfd & +#xfwm4 & ```