LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-02-2024, 12:13 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Rep: Reputation: 177Reputation: 177
Recommended VNC server for Linux/Slackware


For many years I used x11vnc which worked great and had some features I liked. I could remote in to the server host and run x11nvc as root and then log in as anybody from any platform and it would connect just fine.

Unfortunately, x11vnc hasn't been maintained in years and no longer works with Slackware 15.0 due to changes in libraries.

I'd like recommendations on what a good VNC server program would be for me. I work remotely on Linux Virtual Machine host computers and need to see the Linux KDE desktop to start/stop the VirtualBox guest VMs (Windows), and configure the VM using the VirtualBox Manager. I'd need to be able to start the VNC server from a remote location. I can get to the Linux host via ssh.

Slackware ships with TigerVNC, but I've not used that and have no idea if it would work for what I want. I intend to do some experimentation with that today, but I don't want to invest a lot of time in that if LQ folks don't really think that's going to work for what I need.

I've also heard that the Remote Desktop connection is available on Linux. Is there any truth to that?

THX
 
Old 03-02-2024, 12:19 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Slackware provides tigervnc in the extra/ directory of the install dvd. Why not try that?
 
Old 03-02-2024, 12:45 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by business_kid View Post
Slackware provides tigervnc in the extra/ directory of the install dvd. Why not try that?
It would not install on my first attempt, but I did a slackpkg update, then tried again and it installed.

I'll experiment with it.

Last edited by mfoley; 03-02-2024 at 12:49 PM.
 
Old 03-02-2024, 01:21 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Mark this solved?
 
Old 03-02-2024, 04:04 PM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
So, here's my experience thus far ... I recalled some of the reason I didn't use tigerVNC way back when. The documentation is pretty tough to figure out how to start the server. After a couple of hours of surfing I did get it started. One site said to use 'vncserver :1', but that command isn't even listed at the official https://tigervnc.org/ site. That site listed different server commands, vncsession, x0vncserver, Xvnc, and it took some experimenting to settle on "x0vncserver -PasswordFile=.vnc/passwd". The -PasswordFile parameter was needed even though vncpassword created the file in the default location. Furthermore, there is a plethora of options to the x0vncserver command and no simple example was given. Anyway after spending more time than I wanted reseaching this, I got the server running.

Even though this is a new install of tigerVNC, vncviewer doesn't run all all:
Code:
$ vncviewer
vncviewer: error while loading shared libraries: libfltk_images.so.1.3: cannot open shared object file: No such file or directory
So, I tried REAL VNC viewer on both Linux/KDE and Windows. That did connect, however I get the following message on the client screen every 5-10 seconds:
Code:
Attempting to reconnect to VNC Server... 
Protocol error bad xrle data (or sometimes "bad hextile data)
Not sure about the "xrle" bit, the font is too small for that to be legible. On the server side when this happens I get:
Code:
Sat Mar  2 16:59:28 2024
 VNCSConnST:  Failed to flush remaining socket data on close: write: Broken
              pipe (32)
 VNCSConnST:  closing 192.168.0.2::55495: write: Connection reset by peer (104)
 EncodeManager: Framebuffer updates: 7
 EncodeManager:   Hextile:
 EncodeManager:     Indexed RLE: 20 rects, 27.568 kpixels
 EncodeManager:                  47.2607 KiB (1:2.28354 ratio)
 EncodeManager:     Full Colour: 393 rects, 1.90389 Mpixels
 EncodeManager:                  6.67411 MiB (1:1.08887 ratio)
 EncodeManager:   ZRLE:
 EncodeManager:     Indexed RLE: 34 rects, 2.0736 Mpixels
 EncodeManager:                  109.524 KiB (1:18.4927 ratio)
 EncodeManager:     Full Colour: 34 rects, 2.0736 Mpixels
 EncodeManager:                  2.53645 MiB (1:3.11874 ratio)
 EncodeManager:   Total: 481 rects, 6.07866 Mpixels
 EncodeManager:          9.36367 MiB (1:1.84341 ratio)
 Connections: closed: 192.168.0.2::55495
 ComparingUpdateTracker: 296.525 Mpixels in / 195.845 Mpixels out
 ComparingUpdateTracker: (1:1.51408 ratio)

Sat Mar  2 16:59:29 2024
 Connections: accepted: 192.168.0.2::55509
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 6 (8bpp) rgb222
This makes it almost impossible for me to actually use the remote session.

So, no, not ready to close the topic. Advice on either making tigerVNC actually work, or suggestions on another VNC package still appreciated.

Last edited by mfoley; 03-02-2024 at 11:17 PM.
 
Old 03-02-2024, 05:20 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
With all the vnc choices is there a clear winner or just choices.

(a bit off topic)
 
Old 03-02-2024, 11:13 PM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by jefro View Post
With all the vnc choices is there a clear winner or just choices.
With "all the vnc choices" I was hoping for some recommendations as a place to start rather than exploring all the choices one-by-one. It took me a couple of hours to test tigerVNC and clearly it is not workable -- or possibly is with more hours of tweaking.

If someone out there is using a VNC server program successfully, that would be a useful recommendation. Recommendations from someone not actually using a VNC server are not useful.
 
Old 03-03-2024, 01:50 AM   #8
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
I've continued my experimentation. It appears that the "Attempting to reconnect to VNC Server... / Protocol error bad xrle data (or sometimes "bad hextile data)" error I reported in post #5 is not related to tigerVNC. I got x11vnc server to work and tried a new download of RealVNC Viewer on a different Windows computer. I got the same error. So I tried TightVNC on that same Windows computer (with x11vnc server on Linux). That worked much better, but still an error. After some period of time (a minute-ish) the viewer terminates with "pseudo encoding is not supported". I've tried encoding options "Tight", "Hextile" and "Raw" and they all terminate the viewer with that error. I've found this error on the web, so I'll continue searching for a solution. Also, I'll try using the TigerVNC server and see if that makes any difference. I'll report back ...

Last edited by mfoley; 03-03-2024 at 01:53 AM.
 
Old 03-03-2024, 03:50 AM   #9
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,806

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by mfoley View Post
Code:
$ vncviewer
vncviewer: error while loading shared libraries: libfltk_images.so.1.3: cannot open shared object file: No such file or directory
Code:
$ ls -1 ~ftp/slackware64-15.0/extra/tigervnc
the_fltk_package_must_also_be_installed
tigervnc-1.12.0-x86_64-5_slack15.0.txt
tigervnc-1.12.0-x86_64-5_slack15.0.txz
tigervnc-1.12.0-x86_64-5_slack15.0.txz.asc
$ ls -1 ~ftp/slackware64-15.0/extra/fltk    
fltk-1.3.8-x86_64-1.txt
fltk-1.3.8-x86_64-1.txz
fltk-1.3.8-x86_64-1.txz.asc
 
1 members found this post helpful.
Old 03-03-2024, 07:35 AM   #10
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Rep: Reputation: 37
Quote:
Originally Posted by mfoley View Post
If someone out there is using a VNC server program successfully, that would be a useful recommendation. Recommendations from someone not actually using a VNC server are not useful.
TigeVNC works fine here (on Slackware64-15.0, -current and aarch64) and I haven't tested any other VNC solution so far.

For the connection I'm using SSH port forwarding, so the entry in my ~/.ssh/config on the client machine looks like this:
Code:
Host myserver
  Hostname <INTRANET_DOMAIN_OR_IP>
  LocalForward 9001 localhost:5901

Host myserver-ext
  Hostname <INTERNET_DOMAIN>
  LocalForward 9001 localhost:5901
Most of the time I'm using the same user name on the remote machine as on the client machine and use su on the server if I need to change the user.
When connected via SSH (as users), I'm starting the VNC server on the remote machine using
Code:
vncserver :1
and the VNC viewer on the client machine (also as user) I'm using
Code:
vncviewer -PasswordFile ~/.vnc/pwd-myserver.auth localhost:9001
For this line I've created an alias to prevent me from remembering and typing every time.

Last edited by slacksam; 03-03-2024 at 07:44 AM.
 
1 members found this post helpful.
Old 03-03-2024, 11:12 AM   #11
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Petri Kaukasoina View Post
Code:
$ ls -1 ~ftp/slackware64-15.0/extra/tigervnc
the_fltk_package_must_also_be_installed
Yes, I just checked 'slackpkg search' and it says fltk is uninstalled. Surprising it didn't get installed when I installed the tigerVNC package. Normally slackpkg is pretty good about installing dependencies. I'll probably do this, but I'm not really using tigerVNC as a client.
Quote:
Originally Posted by slacksam View Post
TigeVNC works fine here (on Slackware64-15.0, -current and aarch64) and I haven't tested any other VNC solution so far.
Thanks slacksam. I appreciate the feedback from someone who's done this. Just a while ago I decided to try tigerVNC on Linux as server and TightVNC as viewer on the remote Windows machine. This worked much better than the x11nvc server / TightVNC viewer combination. I've not received that "pseudo encoding is not supported" error at all. At one point I did get "Failed to recv data from socket" with the tigerVNC/TightVNC combo, but it's been running for aboutn 1/2 an hour now and no problem. On the Linux/server side I use:
Code:
x0vncserver -display=:0 -PasswordFile=.vnc/passwd
This is as a normal user who has an X session open on the host. That's not a big problem because this computer boots with KDE set to auto-login the user in order to AutoStart the Virtual Machine. Before Slackware 15.0 x11vnc would start without needing an existing X session running. This was convenient as I could start x11vnc as root at boot-time and then connect remotely at my leisure. But as of 15.0 that didn't work and I haven't used VNC much since. Lately, however, I've needed VNC, hence this thread.

I think I have a working combination now. Normally I don't need VNC since this Linux machine hosts a Windows VM and I just Remote Desktop into it. But, if I need to tweak VM settings on the VirtualBox Manager I need the Linux desktop.

Thanks to all who contributed!

Last edited by mfoley; 03-03-2024 at 11:16 AM.
 
Old 03-04-2024, 02:08 AM   #12
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Rep: Reputation: 37
Quote:
Originally Posted by mfoley View Post
Normally slackpkg is pretty good about installing dependencies.
No, slackpkg does not support dependency resolution. On a full Slackware installation you get all packages installed, also the needed dependencies. That's why a full install is recommended to get a working system (see https://docs.slackware.com/slackware:install#install). But the packages in extra/, like TigerVNC, aren't included in the full install, so you need to check the dependencies manually. So that's no bug in slackpkg.
 
Old 03-06-2024, 10:21 PM   #13
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by slacksam View Post
No, slackpkg does not support dependency resolution. On a full Slackware installation you get all packages installed, also the needed dependencies. That's why a full install is recommended to get a working system (see https://docs.slackware.com/slackware:install#install). But the packages in extra/, like TigerVNC, aren't included in the full install, so you need to check the dependencies manually. So that's no bug in slackpkg.
Huh, I guess I'm just used to using 'sgq -p' to build a dependency queue for sbopkg. I don't know that I've ever tried installing slackpkg extra packages with dependencies before. I suppose "checking the dependencies manually" means trying to run it and see what happens!
 
Old 03-07-2024, 02:16 AM   #14
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Rep: Reputation: 37
Quote:
Originally Posted by mfoley View Post
Huh, I guess I'm just used to using 'sgq -p' to build a dependency queue for sbopkg. I don't know that I've ever tried installing slackpkg extra packages with dependencies before. I suppose "checking the dependencies manually" means trying to run it and see what happens!
If the failing application is a binary, missing .so libraries, then the dependencies usually can be found by running ldd, like so:
Code:
ldd /usr/bin/vncviewer | grep -i found

Last edited by slacksam; 03-07-2024 at 02:17 AM.
 
1 members found this post helpful.
Old 03-07-2024, 03:26 PM   #15
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I looked at this question and never got a great answer for my own use. I considered ones that supported game mode or 3d but haven't installed one.
 
  


Reply

Tags
recommendations, vncserver



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC viewer showing black screen. unable to connect VNC server remotely on the server? cyberdome Linux - Server 1 08-01-2014 08:21 AM
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
VNC Over SSH | Linux laptop -> Linux SSH Server -> Windows VNC Server jakestaby Linux - Networking 3 01-28-2009 02:33 PM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration