Results 1 to 9 of 9

Thread: How to get VNC Server to work from logon screen?

  1. #1
    Join Date
    Apr 2009
    Beans
    12

    Question How to get VNC Server to work from logon screen?

    Hello there, I use the default vnc server that comes with ubuntu server 8.10, but everytime that the server has to be rebooted I need to log on to get the vnc server working again. I was wondering if there is any way to get the vnc server to start working from the logon screen so even if I have to reboot the server I'll still have remote access after the boot.

  2. #2
    Join Date
    Feb 2008
    Location
    Hamilton, Canada
    Beans
    Hidden!

    Re: How to get VNC Server to work from logon screen?

    Some quick and dirty links:
    I've read about someone using x11vnc to achieve this.

    What might be easier would be setting ubuntu to automatically login. However, this is a security risk.

  3. #3
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: How to get VNC Server to work from logon screen?

    vnc4server doesn't require someone to be logged on locally, because it creates a new session separate from the locally active one.

  4. #4
    Join Date
    Apr 2006
    Location
    Dallas, TX
    Beans
    1,359
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: How to get VNC Server to work from logon screen?

    If you're not too attached to VNC, you could use NX:

    https://help.ubuntu.com/community/FreeNX

  5. #5
    Join Date
    Dec 2006
    Beans
    810

    Re: How to get VNC Server to work from logon screen?

    Quote Originally Posted by Kareeser View Post
    I've read about someone using x11vnc to achieve this.
    Connecting x11vnc to the Login screen is described in the section marked 'Continously' at this link:

    http://www.karlrunge.com/x11vnc/faq....isplay-manager

    You basically add the x11vnc command to the X display manager start script (e.g. /etc/gdm/Init/Default)

  6. #6
    Join Date
    Apr 2009
    Beans
    12

    Exclamation Re: How to get VNC Server to work from logon screen?

    I have tried to install the x11vnc but I'm getting an error message. Some people over the ubuntu channel on irc told me to stop trying to install it, since I wasn't sure of what I was doing. So seems like it's not an easy job to install the x11vnc, but I'll keep trying!


    Thanks for the help.


  7. #7
    Join Date
    Dec 2006
    Beans
    810

    Re: How to get VNC Server to work from logon screen?

    If gdm/gnome is your display manager, put this:
    Code:
    /usr/bin/x11vnc -passwd mysecret -o /var/tmp/x11vnc.log -forever -bg
    in the file
    Code:
    /etc/gdm/Init/Default
    right near the bottom before the 'exit 0' or similar line.

    Also in the file /etc/gdm/gdm.conf make sure this is set:
    Code:
    [daemon]
    KillInitClients=false
    Then restart gdm or reboot. All described here: http://www.karlrunge.com/x11vnc/faq....isplay-manager

  8. #8
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,431

    Re: How to get VNC Server to work from logon screen?

    Well, you got to ask yourself why VNC? It is good for training, where you want the local user to see what the remote user is doing. However, for personal remote access you only need SSH, which is much easier to set up and less intensive on the server and most importantly, SSH is secure.

    Try this from a remote machine:

    Code:
    ssh -X -C -c blowfish user@server gnome-panel
    and go click happy.

    Your server can then remain in runlevel 3 (no X needed on the server). This is exactly why Ubuntu server edition ships without X - you don't need it.

  9. #9
    Join Date
    Jun 2008
    Location
    Up state NY Southern Tier
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: How to get VNC Server to work from logon screen?

    I'm removing this post and will create a new thread.
    Thread title is: "X11vnc remote shift key won't work"
    Thank you for your help

    Shobuz99
    Last edited by Shobuz99; June 5th, 2011 at 03:14 PM. Reason: removing post to start a new thread, adding thread title.

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
  •