Krfb not working after fresh EOS install

Made a fresh install of Endeavour OS with KDE/Plasma, then installed Krfb. However can’t remote connect to it (says Connection refused). With Manjaro it was working perfectly.

[user@EOS ~]$ sudo pacman -Suy krfb
 
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
 
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
 
[sudo] password for user: 
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
:: There are 5 providers available for xdg-desktop-portal-impl:
:: Repository extra
   1) xdg-desktop-portal-gnome  2) xdg-desktop-portal-gtk  3) xdg-desktop-portal-kde
:: Repository community
   4) xdg-desktop-portal-lxqt  5) xdg-desktop-portal-wlr
 
Enter a number (default=1): 3
looking for conflicting packages...
 
Package (5)                   New Version  Net Change  Download Size
 
extra/geoclue                 2.6.0-3        1,51 MiB       0,21 MiB
extra/libvncserver            0.9.13-1       0,67 MiB       0,22 MiB
extra/xdg-desktop-portal      1.15.0-1       1,90 MiB       0,36 MiB
extra/xdg-desktop-portal-kde  5.26.3-1       0,78 MiB       0,22 MiB
extra/krfb                    22.08.3-1      2,45 MiB       1,34 MiB
 
Total Download Size:   2,35 MiB
Total Installed Size:  7,32 MiB
 
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 geoclue-2.6.0-3-x86_64                                                    217,0 KiB   390 KiB/s 00:01 [-------------------------------------------------------------] 100%
 libvncserver-0.9.13-1-x86_64                                              228,9 KiB   386 KiB/s 00:01 [-------------------------------------------------------------] 100%
 xdg-desktop-portal-kde-5.26.3-1-x86_64                                    223,3 KiB   375 KiB/s 00:01 [-------------------------------------------------------------] 100%
 xdg-desktop-portal-1.15.0-1-x86_64                                        369,1 KiB   476 KiB/s 00:01 [-------------------------------------------------------------] 100%
 krfb-22.08.3-1-x86_64                                                    1372,4 KiB  1567 KiB/s 00:01 [-------------------------------------------------------------] 100%
 Total (5/5)                                                                 2,4 MiB  2,48 MiB/s 00:01 [-------------------------------------------------------------] 100%
(5/5) checking keys in keyring                                                                         [-------------------------------------------------------------] 100%
(5/5) checking package integrity                                                                       [-------------------------------------------------------------] 100%
(5/5) loading package files                                                                            [-------------------------------------------------------------] 100%
(5/5) checking for file conflicts                                                                      [-------------------------------------------------------------] 100%
:: Processing package changes...
(1/5) installing libvncserver                                                                          [-------------------------------------------------------------] 100%
(2/5) installing geoclue                                                                               [-------------------------------------------------------------] 100%
Optional dependencies for geoclue
    libnotify: Demo Agent [installed]
(3/5) installing xdg-desktop-portal-kde                                                                [-------------------------------------------------------------] 100%
(4/5) installing xdg-desktop-portal                                                                    [-------------------------------------------------------------] 100%
(5/5) installing krfb                                                                                  [-------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/7) Creating system user accounts...
Creating group 'geoclue' with GID 967.
Creating user 'geoclue' (Geoinformation service) with UID 967 and GID 967.
(2/7) Reloading system manager configuration...
(3/7) Creating temporary files...
(4/7) Arming ConditionNeedsUpdate...
(5/7) Reloading system bus configuration...
(6/7) Updating icon theme caches...
(7/7) Updating the desktop file MIME type cache...

Any help please?

EndeavourOS, by default, installs and enables a firewall.

If you have an active firewall running on the “host” machine, you will need to open port 5900.

:eye: https://userbase.kde.org/Krfb

Look into how you open a port in firewalld

https://discovery.endeavouros.com/applications/firewalld/2022/03/

Here is a recent example:

I don’t use firewalld myself so I’m afraid I couldn’t be of much more help than this.

Good luck!

3 Likes

Right that was the issue. After either stopping the firewall with sudo systemctl stop firewalldor adding the vnc-server service exception for both Runtime and Permanent under public serviced just did it.

Seems a little bit intrusive to have a firewall by default…

1 Like

Great! Good to hear that!
Happy desktop sharing!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.