Comments on: Install and Configure VNC Server in CentOS 7 and RHEL 7 https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/ Tue, 15 Jun 2021 10:56:43 +0000 hourly 1 By: rajendra kumar manthan https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-23376 Tue, 15 Jun 2021 10:56:43 +0000 http://www.linuxtechi.com/?p=3276#comment-23376 Thanks for the post. I was struggling as in other links where it was mention,
$ su –
$ vncpasswd

but as in your post step-5,
#su –
#vncserver
It works for me. i.e. “vncserver” command.

my vncserver service unit file is

[vncu1@vnc-test ~]$sudo cat /etc/systemd/system/vncserver@:6.service

#####################################################
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=simple

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’
ExecStart=/usr/bin/vncserver_wrapper %i
ExecStop=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’

[Install]
WantedBy=multi-user.target
#####################################################

here Type=simple

]]>
By: Timothy Wahlstrom https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-21205 Fri, 31 Jul 2020 18:42:36 +0000 http://www.linuxtechi.com/?p=3276#comment-21205 vncserver@:2.service – Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:2.service; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since Fri 2020-07-31 14:38:01 EDT; 3min 1s ago
Process: 5814 ExecStart=/sbin/runuser -l copuser -c /usr/bin/vncserver :2 -geometry 1280×1024 (code=exited, status=0/SUCCESS)
Process: 5810 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :2 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)

Jul 31 14:37:58 dev-rhel8-tew.gccsj.nn.c2fse.northgrum.com systemd[1]: Starting Remote desktop service (VNC)…
Jul 31 14:38:01 dev-rhel8-tew.gccsj.nn.c2fse.northgrum.com systemd[1]: vncserver@:2.service: Can’t open PID file /home/copuser/.vnc/dev-rhel8-tew.gccsj.nn.c2fse.northgrum.com:2.pid (yet?) after start: No such file or directory
Jul 31 14:38:01 dev-rhel8-tew.gccsj.nn.c2fse.northgrum.com systemd[1]: vncserver@:2.service: Failed with result ‘protocol’.
Jul 31 14:38:01 dev-rhel8-tew.gccsj.nn.c2fse.northgrum.com systemd[1]: Failed to start Remote desktop service (VNC).

]]>
By: Timothy Wahlstrom https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-21204 Fri, 31 Jul 2020 18:27:45 +0000 http://www.linuxtechi.com/?p=3276#comment-21204 Works for root user but unable to duplicate the process for any other user on the system.

]]>
By: Mike https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-21188 Thu, 30 Jul 2020 09:42:55 +0000 http://www.linuxtechi.com/?p=3276#comment-21188 systemctl start vncserver@:1.service
Job for vncserver@:1.service failed because a configured resource limit was exceeded. See “systemctl status vncserver@:1.service” and “journalctl -xe” for details.

run below command to resolve this issue

rm -f /tmp/.X11-unix/X1
systemctl start vncserver@:1.service

]]>
By: Jorge Salazar https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-19674 Mon, 13 Apr 2020 00:32:01 +0000 http://www.linuxtechi.com/?p=3276#comment-19674 I’m using VNC Viewer 6.20 to connect with success, using gnome graphical user interface on Red Hat 7.7 server. Connection completes with success but when I want to logout it ask for confirmation on the first attempt, with a timeout of 60 seconds to automatically disconnect.

If I wait on the 60 seconds it disconnects but when I try to reconnect again I’m not able to connect, seems like session becomes frozen.
If I don’t wait on the 60 seconds, and press the option to disconnect the session does not disconnect, and I still able to work on it but when I try to logout once again seems like the option has been disabled. If I just close the VNC viewer window and re-open the session, it comes right where I left when I closed the window.

My question is: How I can make this VNC Viewer session to behave as expected when requesting the logout from the gnome interface?

Thank you!

]]>
By: Jean https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-18328 Sat, 11 Jan 2020 20:15:20 +0000 http://www.linuxtechi.com/?p=3276#comment-18328 Thank You!
Good article!

]]>
By: Santosh V https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-17276 Sun, 24 Nov 2019 15:33:39 +0000 http://www.linuxtechi.com/?p=3276#comment-17276 I am getting the following error:
Job for vncserver@:3.service failed because the control process exited with error code . See “Systemctl status vncserver@:3.service ” and “journalctl -xe” for details

]]>
By: Rob https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-13882 Mon, 26 Aug 2019 19:31:09 +0000 http://www.linuxtechi.com/?p=3276#comment-13882 I had to create a vnc password for my user before the service would start properly on my RHEL 7.6 system. I created the user using vncpasswd while logged in with that user account.

]]>
By: JohnW https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-12647 Sat, 27 Jul 2019 19:14:54 +0000 http://www.linuxtechi.com/?p=3276#comment-12647 How about a light duty Window Manager. I dont want all the gnome stuff running on my server. TWM is not on the list anymore?

]]>
By: Marco https://www.linuxtechi.com/install-configure-vnc-server-centos-7-rhel-7/#comment-12635 Sat, 27 Jul 2019 10:24:49 +0000 http://www.linuxtechi.com/?p=3276#comment-12635 Thank you, very useful.

]]>