ubuntu 16.04 配置 vnc4server

安装

# apt install -y  gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal xbase-clients x-window-system-core;
apt install -y vnc4server xinetd;

启动

root@xxoo:~# vnc4server 

You will require a password to access your desktops.

Password:
Verify:

New 'xxoo:1 (root)' desktop is xxoo:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xxoo:1.log

配置

# cd /root/.vnc/
# cp xstartup xstartup.bak
# vi xstartup

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

杀掉 vncserver 的pid,重新启动 vncserver

# vnc4server -kill :1
# vnc4server

连接

windows 本地使用 VNC-Viewer-5.1.1-Windows-64bit.exe 去连接

参考:
https://www.linuxprobe.com/ubuntu-vnc-gnome.html

你可能感兴趣的:(#,linux,debian,ubuntu)