This paper extracts and collates the information of installing and configuring VNC Service program for Ubuntu system on the Internet.
Ps:ubuntu practice version of Ubuntu 16.04 LTS
Updating the operating system software package
Apt-get Updateapt-get Upgrade
Installing Gnome and Vnc4server
Apt-get Install Gnome-panel Gnome-settings-daemon metacity nautilus gnome-terminalapt-get Install Vnc4server
Start Vncserver for the first time and set the VNC password as prompted
Vncserver:1
Configure the ~/.vnc/xstartup file, after the configuration file contents are as follows
#!/bin/shexport xkl_xmodmap_disable=1 unset session_manager unset dbus_session_bus_address Gnome-panel & Gnome-set Tings-daemon & Metacity & Nautilus & gnome-terminal &
Then restart Vncserver.
Vncserver-kill:1vncserver:1
Set Vncserver self-boot
touch /etc/init.d/vncserver chmod +x /etc/init.d/vncservercat > /etc/init.d/ vncserver << eof#!/bin/bash ### begin init info# provides: vnc4server# Required-Start: $local _fs $network # required-stop: $local _fs# default-start: 2 3 4 5# default-stop: 0 1 6# short-description: vnc# description: vnc Service### END INIT INFOcase " instart" #su -c "Vncserver -depth 32 -geometry 1024x768 " rootsu -c " Vncserver -geometry 1440x900 " root#su -c " Vncserver " root;; Stop) vncserver -kill :1;; *) echo $ "Usage: $0&nbsP {Start|stop} "exit 1esaceofupdate-rc.d vncserver defaults 99
Set Vncserver self-boot (not verified)
Http://blog.chinaunix.net/uid-8657589-id-3457101.html
Http://blog.chinaunix.net/uid-20528014-id-4714397.html
http://blog.csdn.net/alvin969/article/details/6170884
http://blog.csdn.net/jink12/article/details/23088659 (verified, 1604 self-booting has a problem)
http://blog.csdn.net/a105421548/article/details/46379049 (verified, interface background gray)
Ubuntu Remote Management (Vnc4server settings)