Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-28-2010, 08:28 PM   #1
LQ Newbie
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
VNC start without a monitor attached

I'm fairly new to RHEL but my boss has asked me to set him up a machine with RHEL 5.3 for some performance testing. He wants to access via VNC which isn't a problem as I've got that sorted.

Problem is, the PC is sitting in the computer room with just the power and lan connections, no monitor etc. When I boot the PC with a monitor attached you can VNC into the server, but if I boot it without a monitor attached, VNC doesn't work?

Any ideas how to get it so it always works when a monitor is not attached?

I used this guide to get it setup in the first place -


Old 04-28-2010, 11:21 PM   #2
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
it's very easy.
via ssh:
# yum install vnc-server.i386
# vncserver
Old 04-28-2010, 11:43 PM   #3
LQ Newbie
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Originally Posted by troop View Post
it's very easy.
via ssh:
# yum install vnc-server.i386
# vncserver

Thanks but I've already done that, but once I boot it without a monitor VNC doesn't work. I try starting it via SSH but still nothing.

If I boot it with a monitor attached it works fine.

I've managed to get it working by editing /etc/sysconfig/vncservers with

VNCSERVERS="1:user1 2:user2"
VNCSERVERARGS[1]="-geometry 640x480"
VNCSERVERARGS[2]="-geometry 640x480"

but what I wanted was the full login screen to so can chop and change between any users.

Thanks anyway.
Old 04-29-2010, 12:18 AM   #4
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
You can also set up so that you log via VNC server as regular user (not root) if you create another instance of vncserver specially for that user.

- edit /etc/sysconfig/vncservers. There is example inside. Read about options for vncserver to se what does what (-localhost comes to mind).
- Setting 'VNCSERVERS="5:username"' will make it listen on 5905 port only for that user, make sure firewall is open.
- edit /home/username/.vnc/xstartup and un-comment "#unset SESSION_MANAGER" and "exec /etc/......"
- Restart vncserver, log in from console/GUI as that user and set vncpassword for that user (it's separate from others) and I think it should work.

I think this should be it. You can do this for multiple users and use that, or any other server/PC as practically thin client server (broadly understood) to keep old PC clients in use and cut costs. Just take note of regular user access to system files (read-only but still...)

EDIT: you can create simple bash script with "case" menu that will allow users to choose desired user and set vnc port accordingly then run vnc client connection. Distribute this on your client PC's and you are set to go.

Last edited by DrLove73; 04-29-2010 at 12:22 AM.


rhel, vnc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't auto-login without monitor attached Bob Jones Linux - Software 1 03-11-2010 11:30 AM
Attached monitor not functioning in X - help with xorg please crazytigger Linux - Laptop and Netbook 1 10-21-2007 10:44 AM
Will a VAIO still boot without an attached monitor? cygnus-x1 Linux - Laptop and Netbook 3 09-10-2007 07:18 AM
Linux won't boot without monitor attached RogueWave Linux - Hardware 7 01-24-2004 05:03 PM
Lost LAN connection when booting without keyboard, monitor,mouser attached gavinc Linux - Networking 3 08-27-2003 08:02 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration