LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2022, 09:21 AM   #1
H25E
LQ Newbie
 
Registered: Jul 2022
Posts: 6

Rep: Reputation: 1
Question x11vnc -reflect listen:5900 it's bugged. What are my options?


Hello everybody,

What I'm trying to do is to "shield" a low resources PC (including low and limited connectivity) behind a more powerful server with optic fiber. I want to share the PC physical display meanwhile avoiding duplicated connections to it. All the clients are going to connect to the server, and the server is going to do a single connection to the PC.

To achieve that, I'm using the -reflect option of x11vnc in the server side. This way, the server side VNC server looks for the VNC server in the PC and connects to it. Then acts as a shield to the PC avoiding duplicated connections arriving to it. Cheff kiss.

But, I would really prefer to have the PC act as "client" and connect to the server side, avoiding open ports in the PC side. To do that I should add -reflect listenort in the server side and -connect serveriport. But with this configuration, x11vnc crashes saying "read (9: Bad file descriptor)". Tested in debian 11 and openSuse 15.4. You can check my serverfault post with more extended info about the bug/failure

So, what can I do now? I have found no solution and seems that x11vnc it's a litle bit abandoned and bugs in their github page aren't getting any atention. Also, I absolutely don't have the required knowledge to fix the source code by myself. So, what are my chances? There is any other VNC software that allows me to do that? I have checked tigerVNC that seems much more up to date, but seems that it's mainly used for virtual displays instead of real ones. Their x0vncserver for physical displays it's more like a demo than something prod ready. Also lacks the reflect option.

Maybe some other software with different protocol from VNC could work, but my clients are connecting through noVNC, so it should be compatible with that.

It's my first post so if there is anything off tell me and I will fix it! Thanks for your time!
 
Old 07-21-2022, 07:46 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
If this is a smaller server with all connections going to the large server then the large server making a connection to the smaller, less powerful one, I have to wonder why you need something like a graphical display.

Unless this is your desktop machine and you will be working with it full time, why does it need to run graphics? Why do you need to see the graphics remotely?

For a server, most are run headless and managed remotely by tools such as ssh.

Gnome now has rdp functional that allows sharing and remote control as well but you have not mentioned what graphical environment you wish to use.
 
Old 07-22-2022, 02:35 AM   #3
H25E
LQ Newbie
 
Registered: Jul 2022
Posts: 6

Original Poster
Rep: Reputation: 1
The low resources PC is not a server. It's a PC with a physical display running a graphical custom kiosk app without desktop environment in opensuse 15.4. I need to see the graphics remotely because sometimes there is the need to visualize or control the kiosk app remotely.

So, there is no DE. Only the X server, kwin as window manager, the kiosk app and x11vnc.

If there is any extra doubts, don't hesitate to tell me!
 
Old 07-22-2022, 09:50 AM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by H25E View Post
The low resources PC is not a server. It's a PC with a physical display running a graphical custom kiosk app without desktop environment in opensuse 15.4. I need to see the graphics remotely because sometimes there is the need to visualize or control the kiosk app remotely.

So, there is no DE. Only the X server, kwin as window manager, the kiosk app and x11vnc.

If there is any extra doubts, don't hesitate to tell me!
The kwin environ is the DE with its graphical display, no matter how restricted it might be.

Now you are providing details that might allow us to make meaningful suggestions. At least now we know that a solution to allow remote display and management of the kwin environ is needed (and that it is running on opensuse 15.4). I have to assume this means the main server is debian 11.

Last edited by computersavvy; 07-22-2022 at 09:53 AM.
 
Old 07-24-2022, 01:01 PM   #5
H25E
LQ Newbie
 
Registered: Jul 2022
Posts: 6

Original Poster
Rep: Reputation: 1
I thought kwin was a window manager instead of a DE.

It's kwin, but it could be any other window manager available. In fact, at the beginning the kiosk app was running without any window manager, only the X server, but the dialogs generated by the kiosk app were missing the title bar, and I used kwin which was already installed in the system to provide title bar to the kiosk dialog windows. So the presence of kwin it's only cosmetic and to allow users to close the dialogs from the right top cross button.

And yes, the main server is debian 11.

Don't hesitate to ask any further question.
 
Old 07-24-2022, 02:06 PM   #6
openbsd98324
Member
 
Registered: Feb 2022
Posts: 72

Rep: Reputation: 5
Quote:
Originally Posted by H25E View Post
Hello everybody,

What I'm trying to do is to "shield" a low resources PC (including low and limited connectivity) behind a more powerful server with optic fiber. I want to share the PC physical display meanwhile avoiding duplicated connections to it. All the clients are going to connect to the server, and the server is going to do a single connection to the PC.

To achieve that, I'm using the -reflect option of x11vnc in the server side. This way, the server side VNC server looks for the VNC server in the PC and connects to it. Then acts as a shield to the PC avoiding duplicated connections arriving to it. Cheff kiss.

But, I would really prefer to have the PC act as "client" and connect to the server side, avoiding open ports in the PC side. To do that I should add -reflect listenort in the server side and -connect serveriport. But with this configuration, x11vnc crashes saying "read (9: Bad file descriptor)". Tested in debian 11 and openSuse 15.4. You can check my serverfault post with more extended info about the bug/failure

So, what can I do now? I have found no solution and seems that x11vnc it's a litle bit abandoned and bugs in their github page aren't getting any atention. Also, I absolutely don't have the required knowledge to fix the source code by myself. So, what are my chances? There is any other VNC software that allows me to do that? I have checked tigerVNC that seems much more up to date, but seems that it's mainly used for virtual displays instead of real ones. Their x0vncserver for physical displays it's more like a demo than something prod ready. Also lacks the reflect option.

Maybe some other software with different protocol from VNC could work, but my clients are connecting through noVNC, so it should be compatible with that.

It's my first post so if there is anything off tell me and I will fix it! Thanks for your time!

what about running a tunnel ?

You can then startx or xvfb and do x11vnc + xtightvncviewer over the tunnel.

this is x1000 faster than anything.
 
Old 07-25-2022, 02:11 AM   #7
H25E
LQ Newbie
 
Registered: Jul 2022
Posts: 6

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by openbsd98324 View Post
what about running a tunnel ?

You can then startx or xvfb and do x11vnc + xtightvncviewer over the tunnel.

this is x1000 faster than anything.
I'm already running starrtx and x11vnc. I don't know what would the tunnel be for in my situation.
 
Old 07-25-2022, 05:13 AM   #8
openbsd98324
Member
 
Registered: Feb 2022
Posts: 72

Rep: Reputation: 5
Quote:
Originally Posted by H25E View Post
I'm already running starrtx and x11vnc. I don't know what would the tunnel be for in my situation.
A tunnel is nice to use with x11vnc. x11vnc is super fast, even with Xorg X-forward.

I dont see so much the -reflect idea behind.

x11vnc is very light and fast.
tigervnc might do the job, likely, actually it is standard to use tigervnc on bsd.

I recommend x11vnc on linux, it is up to date, and we actually do not much more.

It works fine on devuan, it needs no further dev. on it. bit like blackbox --- finished and polished --- forever, until Wayland take over your monitor.
 
Old 07-25-2022, 12:10 PM   #9
H25E
LQ Newbie
 
Registered: Jul 2022
Posts: 6

Original Poster
Rep: Reputation: 1
-reflect it's the core of the question. The question wouldn't make sense without it because without -reflect, x11vnc works flawlessly but doesn't meet my requirements (deduplicate connections).
 
Old 07-25-2022, 12:55 PM   #10
openbsd98324
Member
 
Registered: Feb 2022
Posts: 72

Rep: Reputation: 5
Quote:
Originally Posted by H25E View Post
-reflect it's the core of the question. The question wouldn't make sense without it because without -reflect, x11vnc works flawlessly but doesn't meet my requirements (deduplicate connections).
i use -share or -shared something usually. kinda same no?
 
Old 07-25-2022, 05:03 PM   #11
H25E
LQ Newbie
 
Registered: Jul 2022
Posts: 6

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by openbsd98324 View Post
i use -share or -shared something usually. kinda same no?
No, it isn't. Shared allows multiple connections. So it's basically the opposite of what I want.

Reflect allows to an intermediate server to deduplicate n connections to a single one to the final VNC server.
 
1 members found this post helpful.
  


Reply



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
x11vnc error: Only root will have read permission for the file, and so x11vnc must be yogesh_attarde Linux - Software 7 09-23-2014 06:30 AM
SO_RCVBUF does not reflect increasing listen queue size barunparichha Linux - Networking 1 07-14-2010 07:37 PM
SuSE 8.2 WHOA!! Networking is Bugged!! HandyAndy0 Linux - Networking 0 09-24-2003 10:14 PM
Totally bugged up on installing Epson Printer WhiteTornado Linux - Hardware 1 08-24-2003 05:22 PM
KDE bugged? Brother Michael Linux - Newbie 1 08-18-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:02 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