Issue with Arch's Linux AUR

64 views
Skip to first unread message

terryer

unread,
Feb 27, 2024, 10:43:14 AM2/27/24
to TurboVNC User Discussion/Support
I'm looking for any hints that might help resolve the problems we see when using TurboVNC in Arch/Manjaro. This is how far I managed to investigate (comment in AUR):
Trying `vncviewer my_ssh_config_host` I got `Could not execute /opt/TurboVNC/bin/vncserver -sessionlist, is TurboVNC server installed in /opt/TurboVNC ?`. And there is no `/opt/TurboVNC` dir. I started to link the following into a freshly created `/opt/TurboVNC/bin`: vncserver, Xvnc, vncpassword, webserver. Now the error remaining is:
```
libjawt.so path: /usr/lib/jvm/java-21-openjdk/lib
Session Manager Error:
Could not execute
    /opt/TurboVNC/bin/vncpasswd -o -display :1
on host node1:
    The X display ":1" does not support VNC one-time passwords
```
Any hint welcome.

Thanks

DRC

unread,
Feb 27, 2024, 11:36:00 AM2/27/24
to turbovn...@googlegroups.com

The TurboVNC Viewer has two modes of operation.

When you pass only a hostname or IP address to the TurboVNC Viewer, it tries to use the TurboVNC Session Manager.  The TurboVNC Session Manager connects to the TurboVNC host using the viewer's built-in SSH client and obtains a list of all TurboVNC sessions currently running under your user account on the host.  If no TurboVNC sessions are running, then it starts a new session and connects to it.  Otherwise, the Session Manager presents you with a list of running sessions, allowing you to choose the session to which to connect.  When connecting to a TurboVNC session using the TurboVNC Session Manager, the RFB connection is automatically tunneled through SSH by default, and authentication is automatically implemented by generating and exchanging a one-time password with the session through SSH (so effectively you only have to authenticate with the SSH server.)  However, this mode of operation requires the TurboVNC Server to be installed on the host, and it expects the TurboVNC Server to be installed under /opt/TurboVNC by default.  It sounds like you have the TigerVNC Server installed on the host, and the TigerVNC Server isn't compatible with the TurboVNC Session Manager.

When you pass a hostname or IP address as well as a VNC display number, TCP post, or Unix domain socket path to the TurboVNC Viewer, it acts as a regular VNC viewer, connecting directly to the VNC server listening on the specified interface on the host.  This mode of operation is compatible with the TigerVNC Server and other VNC servers, but it doesn't have session management capabilities, nor does it have automatic authentication and SSH tunneling.

--
You received this message because you are subscribed to the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbovnc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/turbovnc-users/b25d079e-6244-4b3e-a08e-7ab9c48ed2een%40googlegroups.com.

terryer

unread,
Feb 27, 2024, 12:17:18 PM2/27/24
to TurboVNC User Discussion/Support
Thank you for the reply. I started it again with `-loglevel 110`, and the client didn't show anything obvious but noticed in the server log file `sh: line 1: /opt/TurboVNC/bin/xstartup.turbovnc: No such file or directory`.  This solved the issue: `sudo ln -s /usr/bin/xstartup.turbovnc /opt/TurboVNC/bin/xstartup.turbovnc`. Now `vncviewer -sshport 1234 -sshuser myuser hostname` work. Thank you again for all the support. I'll update the AUR issue.

DRC

unread,
Feb 27, 2024, 12:29:57 PM2/27/24
to turbovn...@googlegroups.com

Ah, OK, so it actually is using TurboVNC on the server, but TurboVNC is installed under /usr rather than under /opt/TurboVNC.  In that case, you don't even need to do the symlinking.  You can just set TVNC_SERVERDIR=/usr in the environment on the client prior to invoking the TurboVNC Viewer.

terryer

unread,
Feb 27, 2024, 1:05:20 PM2/27/24
to TurboVNC User Discussion/Support
Oh, nice, thanks, will add that to AUR.
Reply all
Reply to author
Forward
0 new messages