Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: HOWTO: x11vnc (vnc for display :0)

  1. #11
    Join Date
    Aug 2005
    Location
    Connecticut
    Beans
    46

    Re: HOWTO: x11vnc (vnc for display :0)

    Any reports if this will work for a dual head configuration using FGLRX drivers? I am using the default VINO right now, and we all know how buggy that is.
    Custom Built Machine -or-
    Lenovo 3000 N100
    Fedora 7

  2. #12
    Join Date
    Aug 2006
    Location
    Wisconsin, USA
    Beans
    1,484
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: x11vnc (vnc for display :0)

    Thanks ErikTheRed. Worked on the first try.

    I am using a Radeon 9800 using fglrx drivers in case anyone is wondering.

    Cheers!

  3. #13
    Join Date
    Aug 2005
    Location
    Connecticut
    Beans
    46

    Re: HOWTO: x11vnc (vnc for display :0)

    I dont seem to have a /etc/xinetd directory. When I go to create the file as specified, it won't let me saying the directory does not exist. sure enough ls /etc shows there is not xinetd directory.

    I am trying to get this running! Can anyone help?
    Custom Built Machine -or-
    Lenovo 3000 N100
    Fedora 7

  4. #14
    Join Date
    Dec 2006
    Beans
    810

    Re: HOWTO: x11vnc (vnc for display :0)

    You probably have a /etc/inetd.conf based inetd.

    Here is how I do these this sort of thing on those systems. Add a single line to that file like this:

    Code:
    5900    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/local/bin/x11vnc.sh
    where, for simplicity, I just put the x11vnc call and its option in the shell script /usr/local/bin/x11vnc.sh

    Then something like: /etc/init.d/inetd restart
    to restart inetd, and of course if your system filrewall blocks port 5900 you will have to poke a hole in it.

    More info: http://www.karlrunge.com/x11vnc/faq.html#faq-inetd
    Last edited by krunge; January 28th, 2009 at 02:21 AM.

  5. #15
    Join Date
    Aug 2005
    Location
    Connecticut
    Beans
    46

    Re: HOWTO: x11vnc (vnc for display :0)

    I don't have that file either. Should I?
    Custom Built Machine -or-
    Lenovo 3000 N100
    Fedora 7

  6. #16
    Join Date
    Dec 2006
    Beans
    810

    Re: HOWTO: x11vnc (vnc for display :0)

    I don't have that file either. Should I?
    If you want to run inetd (you can find manpages and other documention for it on the web) you will need to install some package probably named "inetd" or "xinetd".

    In 24 years of using unix I've never seen a machine w/o inetd (except perhaps for some locked down boxes where it was forcibly removed after install), but I guess there is a first time for everything

  7. #17
    Join Date
    Aug 2005
    Location
    Connecticut
    Beans
    46

    Re: HOWTO: x11vnc (vnc for display :0)

    Well, I really don't want to go through a thousand hoops to make this work. VINO works right now, albeit very buggy.

    I had kind of thought this would be a fairly simple, install a package, start a service at startup thing. Guess not.
    Custom Built Machine -or-
    Lenovo 3000 N100
    Fedora 7

  8. #18
    Join Date
    Dec 2006
    Beans
    810

    Re: HOWTO: x11vnc (vnc for display :0)

    I had kind of thought this would be a fairly simple, install a package, start a service at startup thing. Guess not.
    No, it's pretty easy. You don't need inetd stuff like the people in this thread are talking about.

    You just need to install the x11vnc package (see the beginning of this thread or http://www.karlrunge.com/x11vnc/bins) and
    type "x11vnc" in a window or if you ssh in remotely type "x11vnc -display :0" to point it
    at the X session display you are logged into.

    At that point it is the same service as vino. If you want it to always be available put it in your gnome or kde "Startup Programs". You should give it the "-forever" option to keep listening after the first client disconnects.

  9. #19
    Join Date
    Feb 2007
    Location
    Alabama
    Beans
    74
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: x11vnc (vnc for display :0)

    Quote Originally Posted by ErikTheRed View Post
    x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.

    1. Install the package
    Code:
    sudo aptitude install x11vnc
    2. Run the following command
    Code:
    ps wwaux | grep auth
    This command should output something like this:
    Code:
    root      3838 10.1  1.7  13308  8840 tty7     Ss+  15:35   2:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-LliKdB
    erik      5156  0.0  0.1   2800   752 pts/0    R+   15:57   0:00 grep auth
    Note the bolded path after -auth, as you will need this for the next step

    3. Add x11vnc service to xinetd
    Code:
    sudo nano /etc/xinetd.d/x11vnc
    Enter this into the new file:
    Code:
    service x11vnc
    {
            port            = 5900
            type            = UNLISTED
            socket_type     = stream
            protocol        = tcp
            wait            = no
            user            = root
            server          = /usr/bin/x11vnc
            server_args     = -inetd -o /var/log/x11vnc.log -display :0 -auth /var/run/xauth/A:0-LliKdB -many -bg
            disable         = no
    }
    Notice the bolded path, this is where you put the path you found in step 2.

    4. Restart xinetd
    Code:
    sudo /etc/init.d/xinetd restart
    5. You can now connect to display :0 from another machine by using a VNC client. For example:
    Code:
    sudo vncviewer vnchost:0
    A lot of this is thanks to Tichondrius' great VNC HOW-TO which is here. His post on using x11vnc is on page 7 of that thread. In his HOW-TO there was an issue where the connection would drop out whenever you logged in or out, but I believe I have rectified this problem by using the new method to find the path to use with the -auth option.

    Please let me know if there are any problems with this HOW-TO.
    This is a great HOWTO, but there is one part missing to get it completely working in KDE.

    Code:
    ps wwaux | grep auth
    will return a different file every time you reboot, unless you add the setting in /etc/kde3/kdm/kdmrc under [X-:*-Core]

    Code:
    AuthFile=A:0-LliKdB
    You can change the AuthFile to be something different, just make sure you have the same file in your server_args in your Xvnc services file

    I hope this helps someone

    B
    Last edited by bdogg64; March 30th, 2007 at 08:17 PM.
    Gateway MT6451 - AMD Turion 64 X2 TL-50, 1 gig ram, ATI Radeon Xpress 1150 (200M) using fglrx 8.32.5, 80 gig Windows Vista, and 20 gig Ubuntu Feisty with ndiswrapper 1.38 for Broadcom 4311, XGL and Beryl

  10. #20
    Join Date
    Dec 2005
    Beans
    43

    Question Re: HOWTO: x11vnc (vnc for display :0)

    Is there a way to automatically lock gnome session when I exit vncviewer? Because I don't want to have accessible session if somebody comes to my computer.

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •