WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to make x11vnc work multiple times  (Read 1681 times)

Offline nam

  • Newbie
  • *
  • Posts: 6
How to make x11vnc work multiple times
« on: January 17, 2013, 02:04:16 PM »
Hi,

I have a script in my .X.d folder that goes like this:

x11vnc -rfbauth ~/.vnc/passwd -bg - cursor arrow &

When TC launches, this command gets executed.  From other maches, I am able to VNC into this machine.  But when I try to connect for the second time, I am not able.  It appears the the x11vnc process has been terminated.

When I do

ps | grep x11vnc

before connecting from a remote machine, I see that it is running.  After connecting then disconnecting with VNC from another machine, I no longer see this process running.

I'm thinking, either I need this process running in loop, or I need to set it up so that the process doesn't terminate.  I would love some help in either case.

Thanks.

Offline nam

  • Newbie
  • *
  • Posts: 6
Re: How to make x11vnc work multiple times
« Reply #1 on: January 17, 2013, 02:21:03 PM »
Figured out a solution to my own problem:

x11vnc -rfbauth ~/.vnc/passwd -bg -forever -cursor arrow &