Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

  1. #1
    Join Date
    Oct 2007
    Location
    USA Chicago IL
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    I have been using Ubuntu 8.04 Hardy installed with;
    Print Server
    Drupal
    VMWare - hosting 4 virtual OS such as Win03K, FreePBX, Vista,
    File Sharing

    I was using vncserver X11vnc for remote desktop to Ubuntu 8.04 thru SSH and worked great.

    I desided to make the machine headless so I removed the Monitor, Keyboard & Mouse but as soon as ran my usual command to login remotely I got the screen I normally get but its blank.

    This is probably because I removed the monitor right?

    So my question is how can I continue to use vncviewer to remote into Hardy 8.04 headless?

    This is my command I run;

    Step1
    ssh -t -L 5900:localhost:5900 www.example.com -p 3022 'x11vnc -localhost -display :1'

    Step2
    vncviewer -x11cursor -geometry 900x700 -encodings "copyrect tight zrle hextile" localhost:0

  2. #2
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    How about:

    1) ssh -XC www.example.com -p 3022
    2) vncviewer -x11cursor -geometry 900x700 -encodings "copyrect tight zrle hextile" localhost:0

    The X switch forwards the remote X server and C gives you compression. That way you'll be using the vncviewer from the server rather than the local machine, but same results.

  3. #3
    Join Date
    Apr 2007
    Beans
    617
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    I would use nx its easier and should work fine headless

  4. #4
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    Actually, if it's only a print/www/vmware server, there are web tools to take care of all that stuff without the overhead of piping a complete desktop over ssh.
    Last edited by dmizer; May 28th, 2009 at 07:57 AM.

  5. #5
    Join Date
    Oct 2007
    Location
    USA Chicago IL
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    Thanks for the fast replies!

    dmizer -

    I used your command "1) ssh -XC www.example.com -p 3022" but it doesn't work. That's okay I don't have a problem connecting with my command even in slow remote connections so I'll continue to use mine (ssh -t -L 5900:localhost:5900 www.example.com -p 3022 'x11vnc -localhost -display :1')

    I read your links for suggestions 1,2,3,4,5 & 6 very nice!! I have those things working well samba, vfstpd, etc.

    Honestly the only reason why I need to get this Display to show up properly is because I'm not 100% confident using terminal yet.

    I agree that a server should have no Desktop for performance reasons.

    Example - I have another server Setup to use Sendmail with Nail for Fax to email. This is what I did; I plugged in a Serial Modem to my server, installed gtk-efax, and added a script to email received faxes received via analog phone line. For this I wouldn't know how to put the gtk-efax on standby to receive faxes. I need to start gtk-efax and click on standby cause if I don't it doesn't automatically go into standby when started.

    I would love to just do all this in terminal but my experience is not there yet.

    I have helped about 7 people convert from Wins to Ubuntu and I tell you once they open up port 22 on their firewall I have no problem helping them with issues they had. Of course the first thing I do is change the port 22 on firewall, Ubuntu & install fail2ban, x11vnc, tightvncserver vnc4server - Fast & easy.

    Cybergalves - I did install NX but I get a "Host not found" error which I posted here with no replies yet; http://ubuntuforums.org/showthread.php?t=736509&page=9

    ****I followed all the steps again from beginning and I encounter 1 error when I enter;

    ssh localhost

    ssh: localhost: Name or service not known

    I'm running this command remotely on the machine I want to control via SSH.

    I'm guessing this is my main problem.

    any help is appreciated***


    Anyway my Display problem is probably due to the fact that I removed the Monitor and my command works but it gives me a gray color desktop. I'm sure it would work if I add back the Monitor.

    Any Suggestions??

  6. #6
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    I understand the desire to avoid the terminal. But for VMware, you have a web interface: https://help.ubuntu.com/community/VM...Install%20Only)
    Just connect to your server via proxy, set your sox proxy in firefox, and you can browse to https://localhost:8333 to manage vmware.
    For your print server: http://localhost:631
    For your www/drupal server, there's ebox: http://ebox-platform.com/ (available in the repos)

    All of the above tools will give you as much functionality as you would get with a full desktop, and almost as much functionality as you would get from the CLI.

    What doesn't work about the command I gave you? Did you get an error, or are you using SSH from a Windows machine?

  7. #7
    Join Date
    Oct 2007
    Location
    USA Chicago IL
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    I'm using your suggestions for VMware & Print already I did not know about ebox http://ebox-platform.com/ but I'm on it!!

    This is the error I get;

    $vncviewer -x11cursor -geometry 900x700 -encodings "copyrect tight zrle hextile" localhost:0
    vncviewer: ConnectToTcpAddr: connect: Connection refused
    Unable to connect to VNC server

  8. #8
    Join Date
    Oct 2007
    Location
    USA Chicago IL
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    Is ebox functionality similar to Webmin you think? I already have Webmin installed.

  9. #9
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    Webmin has not been supported in Ubuntu for a while due to the fairly profound differences between Webmins config and what Ubuntu needs, so it tends to cause more problems than it solves. Ebox is being recomended as a replacement for Webmin. I have not used it, but I believe it should be functionally similar and even go beyond what you can do in Webmin.

    According to that error, it simply looks like you don't have your vnc server configured correctly. Did you configure it via webmin?

    Edit:
    There's a live CD for ebox if you'd like to test it without installing it: http://ebox-platform.com/download/
    Last edited by dmizer; May 28th, 2009 at 05:21 PM.

  10. #10
    Join Date
    Oct 2007
    Location
    USA Chicago IL
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Ubuntu Desktop Converted to Headless Server - No display via SSH VNC

    I did not configure vnc server via Webmin.

    What do I need to do to configure vnc server appropriately?

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