View Full Version : [ubuntu] VNC Without Monitor on Server
June 6th, 2008, 06:52 PM
It's probably an easy fix, but the Great Googly Woogly isn't helping much right now. I can connect to my VNC server just fine if it has a monitor attached, but if it boots without the monitor it gives me a "vncviewer: ConnectToTcpAddr: connect: Connection refused".
Is there a way to fix this problem. Given where I'm putting it I'd rather not need a monitor attached.
Thanks for reading, and any help you can provide.
June 7th, 2008, 02:10 AM
i saw a similar problem few backs back here.. i dont think they got a solution on how to use VNC when the server has no monitor
June 8th, 2008, 12:57 PM
I have the exact same problem and would greatly appreciate a solution if anyone knows one.
June 9th, 2008, 08:26 PM
Is it an X config issue? I can hook a monitor up to the boxes if I have to, but I'd rather reduce the clutter.
June 15th, 2008, 09:51 PM
Similar here, but not quite the same.
When the "server" is connected to a monitor and keyboard all is well and viewing from the remote screen is fine. But detach the monitor and keyboard and the remote viewing window is very small.
Looking at the remote settings the display has reverted to 600X480. Means I can't view settings menus etc.
I also get the message "Connection failed. The server does not accept new connections" from time to time. The answer I've found is to hook up a monitor and mouse and kill the VNC session that seems to persist. After that I can log on "headless". This is the bit that pisses me off the most!
Any answers gratefully accepted!
June 18th, 2008, 08:21 PM
July 18th, 2008, 06:48 PM
Ok I found a solution that worked alright for me so hopefully for you too:
(first make sure vnc4server is installed)
1. ssh/putty into monitorless server
2. enter "vnc4server :1"
3. enter "export DISPLAY=:1"
4. enter "x-session-manager &"
5. exit terminal session and you should now be able to vnc into the server with "vncviewer server_name :1"
July 21st, 2008, 06:47 AM
Thanks for the update! I'll give this a try when I'm at home tomorrow morning and report back.
It's really appreciated that you came back to post this, as this forum shows up a LOT in Google searches for Ubuntu topics so this will likely help others in the future.
February 13th, 2009, 03:27 PM
Great! Thanks a lot! I had a problem with dispaying vnc view of my monitorless server. Now it works perfect. I didn't even suppose it can looks so nice ;)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.