LinuxQuestions.org
Review your favorite Linux distribution.
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 11-09-2015, 01:34 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
x11vnc -loop and -bg exclusive?


I'm running x11vnc 0.9.13 on Ubuntu 14.04 and tightVNC viewer 2.7.10 on Windows 7.

the x11vnc option -loop says, "Create an outer loop restarting the x11vnc process whenever it terminates. -bg and -inetd are ignored in this mode (however see -loopbg below)."

However, -loopbg -bg doesn't actually put x11vnc into the background and it appears to restart the connection every 500ms.

On screen
Code:
PORT=5900
SSLPORT=5900

 --- x11vnc loop: sleeping 500 ms ---


 --- x11vnc loop: 2 ---

 --- x11vnc loop: waiting for: 18989

PORT=5900
SSLPORT=5900

 --- x11vnc loop: sleeping 500 ms ---


 --- x11vnc loop: 3 ---

 --- x11vnc loop: waiting for: 19128
Using just -loop by itself does not do this repeating thing. It just waits for a connection and allows me to log back in after I've logged out on the Windows 7 viewer. However, it can't use -bg if using -loop. Without -loop, the viewer cannot reconnect after logging out.

Has anyone figured out how to get xllvnc to loop (permit viewer reconnections) in the background without the sleep/waiting every 500ms?

Last edited by mfoley; 11-09-2015 at 01:35 PM.
 
Old 11-10-2015, 01:22 PM   #2
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
I haven't used those options, but I do use x11vnc on my LAN. Basically I ssh to the remote machine and start x11vnc as root, which then can show me the xfce login greeter remotely and the connection survives over login/logout.

Maybe this kind of alternative will help your situation.
 
Old 11-11-2015, 02:09 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Doug G View Post
I haven't used those options, but I do use x11vnc on my LAN. Basically I ssh to the remote machine and start x11vnc as root, which then can show me the xfce login greeter remotely and the connection survives over login/logout.

Maybe this kind of alternative will help your situation.
No, I'm doing that now and it works, but what I need is for the x11vnc task to start at boot time and stay up with repeated connections/disconnections. The idea is to simulate Windows Remote Desktop.

I can probably start it from rc.local with '&': `x11vnc --loop --otheroptions &`, but I'm looking for something a bit cleaner. There must be some combination that works; surely the developer(s) tested the -loopbg and -bg options?

btw, the --forever option appears to do nothing. Your experience?

Perhaps most importantly: is there a listserver or website for support for x11vnc? I haven't found one. The author appears to be Karl Runge and his various websites (e.g. http://www.karlrunge.com/x11vnc/) ask for debugging reports and comments, but I find nowhere to submit such things.

Last edited by mfoley; 11-11-2015 at 02:15 PM.
 
Old 11-11-2015, 02:30 PM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
more testing: using -loopbg -forever -bg -ssl options restart the connection every 500ms *and* create a new certificate each time! That's crazy; can't be right.
 
  


Reply

Tags
x11vnc



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
how to loop over text file lines within bash script for loop? johnpaulodonnell Linux - Newbie 9 07-28-2015 03:49 PM
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

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

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