Page 8 of 8 FirstFirst ... 678
Results 71 to 75 of 75

Thread: HOWTO: Share desktops with x11vnc instead of Built in Remote Desktop

  1. #71
    Join Date
    Feb 2008
    Beans
    43

    Re: HOWTO: Share desktops with x11vnc instead of Built in Remote Desktop

    I'm trying to use X11. When Ubuntu boots up it says VNC port 5901.
    I can't connect to 5901 but I can connect to 5900. I can't copy paste from windows so I'm guessing there is a different VNC server running on Ubuntu that I'm connecting to. How can I stop the other VNC server so I can connect to X11?

    docfxit@UbuntuAsterisk:~$ ps ux
    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    docfxit 5578 0.0 0.7 27688 7296 ? Ssl 09:46 0:00 x-session-manag
    docfxit 5619 0.0 0.0 4432 540 ? Ss 09:46 0:00 /usr/bin/ssh-ag
    docfxit 5621 0.0 0.3 6740 3960 ? S 09:46 0:00 /usr/lib/libgco
    docfxit 5631 0.0 0.0 5012 652 ? S 09:46 0:00 /usr/bin/gnome-
    docfxit 5633 0.0 0.1 2904 1088 ? Ss 09:46 0:00 dbus-daemon --f
    docfxit 5635 0.0 0.9 38136 9852 ? Sl 09:46 0:00 /usr/lib/gnome-
    docfxit 5654 0.0 1.0 17896 10368 ? S 09:46 0:00 /usr/bin/metaci
    docfxit 5656 0.0 1.6 42436 17036 ? S 09:46 0:00 gnome-panel --s
    docfxit 5658 0.0 1.7 79464 17644 ? S 09:46 0:00 nautilus --no-d
    docfxit 5662 0.0 0.4 19468 4976 ? Ss 09:46 0:00 gnome-volume-ma
    docfxit 5667 0.0 0.3 40880 3136 ? Ssl 09:46 0:00 /usr/lib/bonobo
    docfxit 5686 0.0 0.3 8724 3396 ? S 09:46 0:00 /usr/lib/gnome-
    docfxit 5689 0.0 0.6 19208 6796 ? S 09:46 0:00 vino-session --
    docfxit 5690 0.0 0.2 16460 2664 ? Ss 09:46 0:00 gnome-screensav
    docfxit 5695 0.0 0.5 13292 5432 ? S 09:46 0:00 bluetooth-apple
    docfxit 5697 0.0 1.1 34560 12000 ? S 09:46 0:00 update-notifier
    docfxit 5704 0.0 0.9 68940 9840 ? Sl 09:46 0:00 /usr/lib/evolut
    docfxit 5706 0.0 0.7 27704 7296 ? SNl 09:46 0:00 trackerd
    docfxit 5709 0.0 0.1 3716 1572 ? S 09:46 0:00 autocutsel
    docfxit 5720 0.0 1.1 44124 11552 ? S 09:46 0:00 nm-applet --sm-
    docfxit 5723 0.0 1.1 22816 11704 ? S 09:46 0:00 python /usr/sha
    docfxit 5725 0.0 0.7 22164 7668 ? Ss 09:46 0:00 gnome-power-man
    docfxit 5730 0.0 1.5 21592 16156 ? Ss 09:46 0:02 x11vnc -nap -bg
    docfxit 5737 0.0 0.9 36428 9404 ? Sl 09:46 0:00 /usr/lib/evolut
    docfxit 5744 0.0 0.8 65024 9116 ? S 09:46 0:00 /usr/lib/gnome-
    docfxit 5760 0.0 0.6 65952 6436 ? Sl 09:46 0:00 /usr/lib/evolut
    docfxit 5762 0.0 0.0 2664 896 ? S 09:46 0:00 /usr/lib/nautil
    docfxit 5768 0.0 1.2 43976 12436 ? Sl 09:46 0:00 /usr/lib/gnome-
    docfxit 5783 0.0 2.7 64520 28384 ? Sl 09:46 0:00 /usr/bin/python
    docfxit 5805 0.0 1.1 34456 11500 ? S 09:46 0:00 /usr/lib/fast-u
    docfxit 5814 0.0 0.9 30772 10180 ? S 09:46 0:00 /usr/lib/notifi
    docfxit 6236 0.0 1.8 61732 18948 ? Rl 10:41 0:00 gnome-terminal
    docfxit 6238 0.0 0.0 2668 744 ? S 10:41 0:00 gnome-pty-helpe
    docfxit 6239 0.0 0.3 5992 3348 pts/0 Ss 10:41 0:00 bash
    docfxit 6289 0.0 1.0 31560 10916 ? S 10:48 0:00 gksudo /opt/dou
    docfxit 6995 0.0 0.0 2624 1004 pts/0 R+ 11:37 0:00 ps ux

    netstat -a
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 *:netbios-ssn *:* LISTEN
    tcp 0 0 *:5900 *:* LISTEN
    tcp 0 0 *:5038 *:* LISTEN
    tcp 0 0 *:sieve *:* LISTEN
    tcp 0 0 localhost:ipp *:* LISTEN
    tcp 0 0 *mniorb *:* LISTEN
    tcp 0 0 *:microsoft-ds *:* LISTEN
    tcp 0 0 UbuntuAsterisk.loc:5900 netblock-75-79-6-:16001 ESTABLISHED
    tcp6 0 0 *:ssh *:* LISTEN
    udp 0 0 *:32768 *:*
    udp 0 0 UbuntuAsteri:netbios-ns *:*
    udp 0 0 *:netbios-ns *:*
    udp 0 0 UbuntuAster:netbios-dgm *:*
    udp 0 0 *:netbios-dgm *:*
    udp 0 0 *:2727 *:*
    udp 0 0 *:4520 *:*
    udp 0 0 *:sip *:*
    udp 0 0 *:iax *:*
    udp 0 0 *:mdns *:*
    udp6 0 0 *dmcp *:*

    Thank you,

    Docfxit

  2. #72
    Join Date
    Jul 2006
    Location
    USA
    Beans
    118
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO: Share desktops with x11vnc instead of Built in Remote Desktop

    Whoops, just realized this was the wrong topic.

    Sorry.

    Please see: http://ubuntuforums.org/showthread.p...6#post10820136
    Last edited by war59312; May 15th, 2011 at 10:40 PM. Reason: Wrong Topic

  3. #73
    Join Date
    Jul 2006
    Location
    USA
    Beans
    118
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO: Share desktops with x11vnc instead of Built in Remote Desktop

    Last edited by war59312; May 15th, 2011 at 10:39 PM.

  4. #74
    Join Date
    Nov 2007
    Beans
    187

    Re: HOWTO: Share desktops with x11vnc instead of Built in Remote Desktop

    Quote Originally Posted by vanstrien View Post
    You may want to add '-shared' to the line in the original posting. This allows you to connect more than one viewer to the server. This is especially important if your connection dies for some reason and you need to reconnect. Otherwise you'll get kicked out until something in the original VNC connection times out.

    Code:
    x11vnc -nap -bg -many -shared -rfbauth ~/.vnc/passwd -desktop "VNC ${USER}@${HOSTNAME}"
    Don't confuse this with '-many', which tells VNC to allow more connections, not exit after the first connection exits.
    Hi!

    I have the problem you describe (I cannot login again if a sesion hangs until I add -shared).
    Is there a way to tell to x11vnc to accept the last connection and kill all previous connections rather than consuming resources keeping track of hanging sessions?

    thank you!

    ps. to make it easier for people to find this solution, I add the error from the logs:

    01/11/2011 20:02:09 -dontdisconnect: Not shared & existing client
    01/11/2011 20:02:09 refusing new client 192.168.100.163
    01/11/2011 20:02:09 client_count: 1
    01/11/2011 20:02:09 Client 192.168.100.163 gone
    01/11/2011 20:02:09 Statistics events Transmit/ RawEquiv ( saved)
    01/11/2011 20:02:09 TOTALS : 0 | 0/ 0 ( 0.0%)
    01/11/2011 20:02:09 Statistics events Received/ RawEquiv ( saved)
    01/11/2011 20:02:09 TOTALS : 0 | 0/ 0 ( 0.0%)
    Last edited by alfonso78; November 1st, 2011 at 08:03 PM.

  5. #75
    Join Date
    Dec 2006
    Beans
    810

    Re: HOWTO: Share desktops with x11vnc instead of Built in Remote Desktop

    I have the problem you describe (I cannot login again if a sesion hangs until I add -shared).
    Is there a way to tell to x11vnc to accept the last connection and kill all previous connections rather than consuming resources keeping track of hanging sessions?
    I think something like this will work:

    Code:
    x11vnc -forever -nevershared
    plus any other unrelated options.

Page 8 of 8 FirstFirst ... 678

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
  •