Connecting to remote desktop in Budgie 24.04 through VNC

I have a local computer at home and a remote computer at work, both running Ubuntu Budgie 24.04. I want to connect form my local computer to the remote computer, and have access to the desktop. Both computers are in the same network.

I see in the internet that a possible way to do this is through VNC. This requires to instal a VNC server in the remote computer and a VNC client in the local computer.

So, I installed Tigervnc in the remote computer and Remmina in the local computer. Specifically:

At remote: sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer

At local: sudo apt install remmina remmina-plugin-vnc

Then, I followed a tutorial to configure and start the VNC server in the remote computer.

First: vncpasswd

Second: tigervncserver -xstartup /usr/bin/budgie-session -SecurityTypes VncAuth,TLSVnc -passwd ~/.vnc/passwd -geometry 800x600 -localhost no :1

And this later command results in the following error:

New Xtigervnc server 'poincare:1 (froig)' on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /tmp/tigervnc.yg9wqv/passwd poincare:1 to connect to the VNC server.

=================== tail /home/froig/.vnc/poincare:1.log ===================
============================================================================

Session startup via '/usr/bin/budgie-session' cleanly exited too early (< 3 seconds)!

Maybe try something simple first, e.g.,
	tigervncserver -xstartup /usr/bin/xterm
The X session cleanly exited!
Killing Xtigervnc process ID 194928... success!

Thus, the VNC server is not starting for some reason. And this is the contents of the log file:

Xvnc TigerVNC 1.13.1 - built 2024-04-01 08:26
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101011

Wed Sep 18 18:44:57 2024
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
[mi] mieq: warning: overriding existing handler (nil) with 0x5f57e0e0e580 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x5f57e0e0e580 for event 3
3NI3X0 New Xtigervnc server 'poincare:1 (froig)' on port 5901 for display :1.
3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /tmp/tigervnc.yg9wqv/passwd poincare:1 to c
onnect to the VNC server.

Wed Sep 18 18:44:58 2024
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)

Does anybody know what is going on?

Also, if there is an alternative way to connect to the remote desktop, I would appreciate any help.

Thanks!

Hi @fvroig!

Rather than bothering to master TigerVNC, why not use the inbuilt VNC server, as @fossfreedom advised back in December 2020?

Thanks @jlb

That could be an option, if somebody here can explain me how to activate the inbuilt VNC server.

Because when I open the Budgie Control Center, the only options that appear to me in the Sharing tab are theses:

No desktop or screen sharing available. And even with the sharing activated (i.e. the switch at the top of the window). there is no VNC server running in the machine.

The inbuilt VNC support for 24.04 was withdrawn from budgie-control-center because GNOME devs changed “gnome-remote-desktop” to only support GNOME Shell.

We have a script though available that we developed for our raspi image to enable a budgie-desktop to remote onto the raspi. It does work for desktop to desktop as well.

This uses x11vnc - so I would uninstall tigervnc and install x11vnc

Then (assuming you have budgie-arm-environment installed) run

/usr/lib/budgie-desktop/arm/scripts/budgie-vnc.sh setup password

run /usr/lib/budgie-desktop/arm/scripts/budgie-vnc.sh for the various options available to control access

This will initialise x11vnc with a password of “password”

Connect with remmina using vnc.

In the same folder there is a budgie-xrdp.sh script - so you could use xrdp instead and connect via RDP.

Hope that helps

2 Likes

Wow! That’s fantastic! And so smooth!
Thanks a lot @fossfreedom