VNC Centos 8

Issues related to applications and software problems and general support
ronel
Posts: 20
Joined: 2021/09/27 18:24:17

VNC Centos 8

Post by ronel » 2021/12/22 16:49:54

I am trying to install VNC on Cent OS 8 with xfce but having issues with the installation

I used the below command to install XfCE

"dnf groupinstall Xfce -y"

For VNC I used the below command

"sudo dnf install tigervnc-server tigervnc-server-module -y"

but I get this error (added image in attachment)

Not sure what I am doing wrong here
Attachments
vnc centos8.PNG
vnc centos8.PNG (41.46 KiB) Viewed 3318 times

gerry666uk
Posts: 98
Joined: 2020/02/10 19:06:06

Re: VNC Centos 8

Post by gerry666uk » 2021/12/22 18:40:12

Regarding group Xfce, are you sure it's supported by RHEL?

Regarding 'tigervnc-server-module', I don't know what that is?

Tigervnc should be in 'appstream'

Code: Select all

tigervnc.x86_64                               1.11.0-9.el8                appstream
It requires

Code: Select all

libgnutls.so.30()(64bit)
which is in 'baseos'

Code: Select all

gnutls.x86_64                          3.6.16-4.el8                       baseos
but your terminal is showing an old version of gnutls that is marked as el7_6, as opposed to el8

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VNC Centos 8

Post by TrevorH » 2021/12/22 20:26:18

Is this system the result of an "upgrade" from CentOS 7?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: VNC Centos 8

Post by ronel » 2022/01/06 18:48:25

This is a fresh install of Cent OS 8. Not sure what was done wrong here.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VNC Centos 8

Post by TrevorH » 2022/01/06 19:15:35

Your first post shows it attempting to pull in a bunch of packages with .el7 in their names and those are NOT for CentOS 8. You need to track down how your system is configured to attempt to use repos designed for CentOS 7 and remove them. Also check what is already installed - e.g rpm -qa | grep el7 should show nothing on CentOS 8.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: VNC Centos 8

Post by ronel » 2022/01/06 19:23:30

I issued the command "rpm -qa | grep el7"

and got the following output




libsamplerate-0.1.8-6.el7.x86_64
kdeplasma-addons-4.10.5-5.el7.x86_64
nspr-4.25.0-2.el7_9.x86_64
libXinerama-1.1.3-2.1.el7.x86_64
xcb-util-wm-0.4.1-5.el7.x86_64
grub2-2.02-0.87.el7.centos.x86_64
orc-0.4.26-1.el7.x86_64
libtool-ltdl-2.4.2-22.el7_3.x86_64
libref_array-0.1.5-32.el7.x86_64
firefox-78.8.0-1.el7.centos.x86_64
bea-stax-api-1.2.0-9.el7.noarch
bind-chroot-9.11.4-26.P2.el7_9.3.x86_64
overpass-fonts-2.1-1.el7.noarch
gwenview-libs-4.10.5-5.el7.x86_64
pango-1.42.4-4.el7_7.x86_64
wpa_supplicant-2.6-12.el7.x86_64
virt-manager-1.5.0-7.el7.noarch
libiec61883-1.2.0-10.el7.x86_64
open-vm-tools-11.0.5-3.el7_9.1.x86_64
hsqldb-1.8.1.3-14.el7.noarch
httpd-tools-2.4.6-97.el7.centos.x86_64
nfs4-acl-tools-0.3.3-21.el7.x86_64
okular-4.10.5-9.el7.x86_64
fence-agents-mpath-4.2.1-41.el7_9.3.x86_64
joda-time-2.2-3.tzdata2013c.el7.noarch
resteasy-base-atom-provider-3.0.6-4.el7.noarch
lz4-1.8.3-1.el7.i686
python-smbc-1.0.13-8.el7.x86_64
expat-2.1.0-12.el7.x86_64
libblockdev-swap-2.18-5.el7.x86_64
gdisk-0.8.10-3.el7.x86_64
cyrus-sasl-plain-2.1.26-23.el7.x86_64
deltarpm-3.6-3.el7.x86_64

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VNC Centos 8

Post by TrevorH » 2022/01/06 19:28:08

None of those should be on a CentOS 8 system. Since it's was trying to pull in more as a result of your install, that means you still have whatever repo it was available. It needs to be removed. Check all the files in /etc/yum.repos.d/*.repo and see if any of them have a hard coded version number or path in baseurl= or mirrorlist= lines. Once you've tracked down the problem repo and corrected it, you should probably run yum distro-sync so that all of those packages get replaced by el8 versions.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: VNC Centos 8

Post by ronel » 2022/01/12 16:11:20

I reinstalled CentOS8 but I get this error now

..skipping...
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-01-12 11:00:54 EST; 5s ago
Process: 9563 ExecStart=/sbin/runuser -l user -c /usr/bin/vncserver :1 -geometry 1280x1024 (code=exited, status=98)
Process: 9560 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)

Jan 12 11:00:54 lab systemd[1]: Starting Remote desktop service (VNC)...
Jan 12 11:00:54 lab systemd[1]: vncserver@:1.service: Control process exited, code=exited status=98
Jan 12 11:00:54 lab systemd[1]: vncserver@:1.service: Failed with result 'exit-code'.
Jan 12 11:00:54 lab systemd[1]: Failed to start Remote desktop service (VNC).



sudo systemctl start vncserver@:1
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.


I followed the steps mentioned in below link

https://www.linuxtechi.com/install-conf ... rhel8/amp/

My /etc/systemd/system/vncserver@\:1.service looks like this

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

[Service]
Type=forking
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l user -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/user/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target


Not sure what I did wrong here

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VNC Centos 8

Post by TrevorH » 2022/01/12 16:57:11

Did you set up the necessary vnc credentials file etc?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: VNC Centos 8

Post by ronel » 2022/01/12 17:04:22

Configured
~/.vnc/config
&

/etc/tigervnc/vncserver.users

Do I need to disable SElinux?

Post Reply