Comments on: How to Install and Configure VNC Server on Centos 8 / RHEL 8 https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/ Mon, 17 Jul 2023 10:58:29 +0000 hourly 1 By: Lokesh K https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-56002 Mon, 17 Jul 2023 10:58:29 +0000 https://www.linuxtechi.com/?p=8999#comment-56002 Hi,

How can I authenticate using unixpwd (PAM Authentication), We no need to manage two passwords for user.

System Password and VNC passwd have to be same and if we change the system password vnc should also update.

Please help

Regards,
Lokesh

]]>
By: Mike Landis https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-23139 Fri, 04 Jun 2021 06:19:58 +0000 https://www.linuxtechi.com/?p=8999#comment-23139 my \ got excised… the post should have read…
I’m still experimenting so take this with a grain of salt, but I’ve found that you need to start the daemon with…
“systemctl start vncserver_\@:\.service” to match the name of its config file in /etc/systemd/system/, e.g. /etc/systemd/system/vncserver_\@:\.service

the default resolution of port 5900 (n=0) is 16x1024x768
per: ‘https://wiki.centos.org/HowTos/VNC-Server’

There will also be a /etc/systemd/system/vncserver@.service config file that is not specific to a user or port.

if you want to change the display geometry (e.g. to 1280×1024), you can do something like…
VNCSERVERARGS[]=”-geometry 1280×1024 -localhost”‘

]]>
By: Pradeep Kumar https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-22174 Thu, 29 Oct 2020 04:43:44 +0000 https://www.linuxtechi.com/?p=8999#comment-22174 In reply to Chris.

Thanks Chris, I have fixed the letter x as you mentioned in comments. I hope it helps our readers.

]]>
By: Chris https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-22173 Thu, 29 Oct 2020 04:12:08 +0000 https://www.linuxtechi.com/?p=8999#comment-22173 In reply to Robin.

The x in the example service file isn’t a proper x when you copy and paste the text. Replace the × with an x and it will then give you a new error with SELinux because the first instruction on disabling SELinux doesn’t actually disable it. This tutorial is rife with FAILS.

]]>
By: Carl https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-22168 Wed, 28 Oct 2020 17:58:31 +0000 https://www.linuxtechi.com/?p=8999#comment-22168 In reply to Arash.

I can not start the VNC server which complains geometry 1280×1024.
[root@m2-mapreng-vm167100 ~]# systemctl start vncserver@:1.service
Job for vncserver@:1.service failed because the control process exited with error code.
See “systemctl status vncserver@:1.service” and “journalctl -xe” for details.

Oct 28 09:59:46 m2-mapreng-vm167100 runuser[127322]: vncserver: geometry 1280×1024 is invalid

If I change the ‘x’ between the two number to lower case ‘x’ the VNC server started OK.
[root@m2-mapreng-vm167100 ~]# systemctl status vncserver@:1.service
● vncserver@:1.service – Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2020-10-28 10:20:23 PDT; 42s ago
Main PID: 150965 (Xvnc)
Tasks: 0 (limit: 152821)
Memory: 320.0K
CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
‣ 150965 /usr/bin/Xvnc :1 -auth /root/.Xauthority -desktop m2-mapreng-vm167100:1 (root) -fp catalogue:/etc/X11/fontpath.d -geometry 1280×1024 -pn -rfbauth /root/.vnc/passwd -rfbport 5901 -rfbwait 300>

Oct 28 10:20:20 m2-mapreng-vm167100 systemd[1]: Starting Remote desktop service (VNC)…
Oct 28 10:20:23 m2-mapreng-vm167100 systemd[1]: Started Remote desktop service (VNC).

However, when connect with VNC viewer, after enter password etc, I got black screen.

]]>
By: Arash https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-22116 Sun, 25 Oct 2020 07:25:04 +0000 https://www.linuxtechi.com/?p=8999#comment-22116 GUYS! I found the black screen symptom here!
Make sure the content doesn’t change while copying and pasting which happens for encoding issues or other problems.
That happened to me and the text of geometry 1280×1024 changed to 1280 ^1024. Fix it and reload the daemon and start VNC server again!

]]>
By: Chan https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-21820 Thu, 24 Sep 2020 11:11:06 +0000 https://www.linuxtechi.com/?p=8999#comment-21820 In reply to Luis.

me too. did you solve it?

]]>
By: Chan https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-21819 Thu, 24 Sep 2020 11:06:28 +0000 https://www.linuxtechi.com/?p=8999#comment-21819 In reply to Alik.

me too. I’ve experience this several times, why again?… ahg..

]]>
By: Chan Kim https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-21817 Thu, 24 Sep 2020 08:52:27 +0000 https://www.linuxtechi.com/?p=8999#comment-21817 I followed it, but when I type ‘netstat -tunlp | grep 5901’ there is no entry shown.
actually the vnc server doesn’t respond. What’s wrong?

]]>
By: Robin https://www.linuxtechi.com/install-configure-vnc-server-centos8-rhel8/#comment-21285 Fri, 07 Aug 2020 11:38:27 +0000 https://www.linuxtechi.com/?p=8999#comment-21285 In reply to Roman.

I have the same situation.

]]>