Grdctl vnc server not listening on 5900

I was trying to set up a vnc server on manjaro/GNOME, for which I choosed gnome-remote-desktop following the GNOME wiki, as it seems to require the least tinkering.

But after setting up

$ grdctl vnc disable-view-only
$ grdctl vnc set-password 123456
$ grdctl vnc enable
$ grdctl status
    Status: enabled
    Auth method: prompt
    View-only: no
    Password: (hidden)

the vnc port (5900) does not seem to be listened on:

$ sudo lsof -i -P -n | grep LISTEN | grep 5900

This issue has been reported in the forums of many other distros but remains basically unanswered.

So, is grdctl supposed to function at all? If so, is port 5900 supposed to be listened on when it’s functioning?

5900 may not be available - try 5901 instead

there’s a few sshd/dockerd listening but no 59?? at all :frowning:

You need to start the systemd service. At least this is what I did and it worked with VNC.

To find the service name:

$ pacman -Ql gnome-remote-desktop | grep .service
gnome-remote-desktop /usr/lib/systemd/user/gnome-remote-desktop.service

To start it:

systemctl --user start gnome-remote-desktop

Now lsof will show something on port 5900 (or 5901?).
My problem is that it doesn’t show anything for RDP, if I enable RDP…

I was able to make RDP work by adding WaylandEnable=true in the [daemon] section of /etc/gdm/custom.conf and rebooting.

Once rebooted, Gnome’s Settings->Sharing->Remote Desktop was working properly, it would stay on, and RDP would work fine when enabled.

1 Like

It’s already enabled by default:

❯ systemctl --user status gnome-remote-desktop.service | grep preset
     Loaded: loaded (/usr/lib/systemd/user/gnome-remote-desktop.service; enabled; preset: enabled)