


Note: the installation in gnome environment may not be successful. Then, manually add the rule of opening port 52 to the firewall rule as follows: sudo iptables -I INPUT -p tcp -dport 5952 -j ACCEPTĪfter opening the port, the VNC Viewer can access the VNC corresponding to port 52. You can get that the port number of desktop 52 is 5952 If you are not sure or in order to be safe, you can use the following command to view the port numbers of all vncs under individual users. The default port of VNC starts from 5901, that is, the port of Desktop 1 is 5901 and the port number of corresponding desktop 52 is 5952. Since the port of desktop 52 was not opened in the previous rules, it was opened manually.įirst, you need to obtain the port number of desktop 52. There are only rules for 09 in the previous rules, and 52 in the figure is added later.

The two ports in the figure are VNC related ports, one is the port of desktop 52 and the other is the port of desktop 9. Just manually open the corresponding port number in the server, and VNC Viewer can access it.įirst view the rules of the current firewall: #To view the current rule and corresponding number, you need to use root permission The server may have a firewall open, and some services cannot be accessed through the external IP of the server, resulting in connection timeout. First, consider whether it is caused by the wrong input of server IP or VNC port number.Īfter troubleshooting, confirm that the IP and port numbers are correct, and find the problem after trying various methods: service files (gnome-settings-daemon:3080): color-plugin-WARNING **: failed to obtain -profile auth (gnome-settings-daemon:3080): PackageKit-WARNING **: failed to set proxy: GDBus.Error.UnknownMethod: Traceback (most recent call last): File '/usr/lib/python3/dist-packages/dbus/service.py', line 654, in _message_cb (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name) File '/usr/lib/python3/dist-packages/dbus/service.py', line 246, in _method_lookup raise UnknownMethodException('%s is not a valid method of interface %s' % (method_name, dbus_interface)) : .UnknownMethod: Unknown method: SetProxy is not a valid method of interface (gnome-settings-daemon:3080): updates-plugin-WARNING **: failed to set proxies: GDBus.Error.UnknownMethod: Traceback (most recent call last): File '/usr/lib/python3/dist-packages/dbus/service.py', line 654, in _message_cb (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name) File '/usr/lib/python3/dist-packages/dbus/service.py', line 246, in _method_lookup raise UnknownMethodException('%s is not a valid method of interface %s' % (method_name, dbus_interface)) : .UnknownMethod: Unknown method: SetProxy is not a valid method of interface connecting to the virtual desktop through VNC Viewer, the connection timeout occurs. service files ** (process:3169): WARNING **: GDBus.Error.ServiceUnknown: The name was not provided by any. 08/05/16 15:13:03 See for information on TightVNC 08/05/16 15:13:03 Desktop name 'X' (NAS:1) 08/05/16 15:13:03 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t 08/05/16 15:13:03 Listening for VNC connections on TCP port 5901 Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring /home/charley/.vnc/xstartup: 2: /home/charley/.vnc/xstartup: def: not found /home/charley/.vnc/xstartup: 9: /home/charley/.vnc/xstartup: gnome-panel: not found (gnome-settings-daemon:3080): rfkill-plugin-WARNING **: Could not open RFKILL control device, please verify your installation (gnome-settings-daemon:3080): media-keys-plugin-WARNING **: Unable to inhibit keypresses: GDBus.Error.AccessDenied: Permission denied ** (gnome-settings-daemon:3080): WARNING **: Unable to register client: GDBus.Error.ServiceUnknown: The name was not provided by any.

Xstartup #!/bin/sh def export XKL_XMODMAP_DISABLE=1 unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS metacity & gnome-settings-daemon & gnome-panel & nautilus & gnome-terminal & gnome-session -session=gnome-core &
