Page 1 of 6 123 ... LastLast
Results 1 to 10 of 637

Thread: HOWTO: Set up VNC server with resumable sessions

Hybrid View

  1. #1
    Join Date
    May 2005
    Beans
    75
    Distro
    Ubuntu 10.04 Lucid Lynx

    Smile Re: HOWTO: Set up VNC server with resumable sessions

    Here are the instructions I use, and they work in v8.04.

    VNC Server w/Resumable Sessions on Ubuntu
    Works in Ubuntu 7.04, 7.10, 8.04, and Mint 4 (Daryna)


    Make these changes while logged into gnome:

    • Go to System -> Administration -> Login Window (General tab) and uncheck "Disable multiple logins for a single user."
    • Now go to the Remote tab. Change Style: to "Same as Local"
    • Still on the Remote tab, click "Configure XDMCP," then uncheck "Honor indirect requests."
    • Enable Universe repositories in Synaptic. (this wasn't necessary in Ubuntu 8.04)


    The remaining changes can be made while SSH'd into the system, or in a terminal window:

    • Edit /etc/gdm/gdm.conf-custom

    Code:
    sudo nano /etc/gdm/gdm.conf-custom
    add the following two lines to the existing [security] and [xdmcp] sections:
    Code:
    [security]
    DisallowTCP=false
    [xdmcp]
    Enable=true
    • Install packages:

    Code:
    sudo apt-get install vnc4server xinetd
    • Set the VNC password

    Code:
    sudo vncpasswd /root/.vncpasswd
    • Create a new file Xvnc to add the vnc service to xinetd:

    Code:
    sudo nano /etc/xinetd.d/Xvnc
    Paste these contents into the file:
    Code:
    service Xvnc
    {
            type = UNLISTED
            disable = no
            socket_type = stream
            protocol = tcp
            wait = yes
            user = root
            server = /usr/bin/Xvnc
            server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
            port = 5901
    }
    • Reboot


    That's it. I've used these exact instructions on three Ubuntu 8.04 installs without a hitch, as well as 7.04, 7.10, and Mint 4. Good luck.
    Last edited by popie; June 21st, 2008 at 01:03 AM.

  2. #2
    Join Date
    Dec 2004
    Beans
    1,068
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: HOWTO: Set up VNC server with resumable sessions

    Just so I'm clear on this, is there a way to set up VNC on Kubuntu so that the remote user has the option of logging in using their own session and logging into the existing session to take control of the PC?

    I could do with being able to use both options.

  3. #3
    Join Date
    Mar 2008
    Beans
    24

    Re: HOWTO: Set up VNC server with resumable sessions

    Code:
    vncpasswd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
    Why do I keep getting this when I try to change the password??

    I can download that library as it says it doesn´t exist...

  4. #4
    Join Date
    Feb 2008
    Beans
    36

    Re: HOWTO: Set up VNC server with resumable sessions

    Quote Originally Posted by mikeduffy13 View Post
    Code:
    vncpasswd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
    Why do I keep getting this when I try to change the password??

    I can download that library as it says it doesn´t exist...
    Search your computer for .vncpasswd
    Maybe it's not in /root

  5. #5
    Join Date
    Mar 2008
    Beans
    24

    Re: HOWTO: Set up VNC server with resumable sessions

    I don't get any results when searching for .vncpasswd.

    If I search for just vncpasswd I get:
    Code:
    user@machine:~$ locate vncpasswd
    /etc/alternatives/vncpasswd.1.gz
    /etc/alternatives/vncpasswd
    /home/rnccadmin/Desktop/vnc-4_1_2-x86_linux/vncpasswd
    /home/rnccadmin/Desktop/vnc-4_1_2-x86_linux/vncpasswd.man
    /usr/bin/vncpasswd
    /usr/bin/realvncpasswd
    /usr/bin/realvncpasswd.real
    /usr/local/bin/vncpasswd
    /usr/share/man/man1/vncpasswd.1.gz
    /usr/share/man/man1/realvncpasswd.real.1.gz
    /usr/share/man/man1/realvncpasswd.1.gz
    /var/lib/dpkg/alternatives/vncpasswd
    If I just try and start the Xvnc I get the same library error message...
    Last edited by mikeduffy13; June 26th, 2008 at 04:44 PM.

  6. #6
    Join Date
    Feb 2008
    Beans
    36

    Re: HOWTO: Set up VNC server with resumable sessions

    Maybe try creating .vncpasswd in root?

  7. #7
    Join Date
    Mar 2008
    Beans
    24

    Re: HOWTO: Set up VNC server with resumable sessions

    Even if I create .vncpasswd in /root, still when I issue the command
    :~$sudo vncpasswd /root/.vncpasswd I get the same library error...

  8. #8
    Join Date
    Feb 2008
    Beans
    36

    Re: HOWTO: Set up VNC server with resumable sessions

    Perhaps their's a problem with your C compiler's tool chain?

    Are you able to install binaries with
    Code:
    .configure
    and
    Code:
    make
    ?

  9. #9
    Join Date
    Mar 2008
    Beans
    24

    Re: HOWTO: Set up VNC server with resumable sessions

    When I first installed unbuntu I could...I haven't tried lately. Where can I find a .bin file to install for a test? sourceforge?

    ...sorry, i'm still new to linux...

  10. #10
    Join Date
    Feb 2008
    Beans
    36

    Re: HOWTO: Set up VNC server with resumable sessions

    Sorry, I meant source not binaries.

    I found this in the Ubuntu forums... you can try to build and install nano from source:

    Code:
    If you have gcc installed you can download nano's source 
    (http://www.nano-editor.org/) 
    
    Then type:
    
    tar -xzf file-name
    cd new-directory
    ../configure
    make
    make install
    Last edited by chelrob; June 27th, 2008 at 09:47 PM.

Page 1 of 6 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
  •