PDA

View Full Version : [SOLVED] Ubuntu Headless Server with GUI for VNC with no monitor issues


IAmNotAUser
January 10th, 2010, 06:58 PM
I have a Ubuntu Server running 9.10 that I wish to use remotely using VNC.

I have installed GNOME and everything else I need to use VNC to log in remotely. GDM is set up to automatically log into the account on boot, and then lock.

However, when I try to boot without the monitor, to begin with I was getting a 'Ubuntu is using low graphics' error. I've established this is Bulletproof-X kicking in and forcing it to this dialogue.

I've tried deleting the xorg.conf.filesafe, I've tried creating a xorg.conf file containing this

Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "DDC" "False"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSectionI've tried to do

sudo dpkg-reconfigure -plow xserver-xorgwhich was apparently meant to ask me questions about auto-detection, but just goes back to the terminal input with no output.

Now when I try reboot without the monitor, it boots back to the CLI logon, no error, but no X either. I have both xorg.conf and xorg.conf.failsafe deleted still, and I cannot restore the failsafe as I did not make a backup and I cannot find it online.

What else can I do to fix this? My only option now is to reboot with a monitor attached and then remove the monitor, but this is not practical moving the monitor between rooms.

HermanAB
January 11th, 2010, 02:03 AM
Hmm, VNC is mainly a Windows thing. On Linux, it is almost always the wrong solution and on a server it definitely is not a good idea and may get your machine hacked before you know it.

You are on the right track though. With Gnome installed you now have a bunch of graphical programs at the ready, but you don't actually need to run X or Gnome and you can kill or disable X11. Install ssh server and then log in remotely like this:

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

or

$ ssh -X -C -c blowfish user@server "gedit /etc/fstab"
to do something specific remotely.

Malac
May 10th, 2010, 04:12 PM
I posted my idea on brainstorm.ubuntu.com if you'd like to check it out or comment or promote the idea here's the link:
http://brainstorm.ubuntu.com/idea/24380/image/2/ (http://brainstorm.ubuntu.com/idea/24380/)

nodnerb
June 16th, 2010, 07:12 PM
Hi,
Just a thought - if you have an nvidia card and are using the proprietary drivers, you can use the ConnectedMonitor option in the config file.

More information here:
http://www.sorgonet.com/linux/nv-online/help.html#ConnectedMonitor

It works for me. Don't know if there's equivalent options for ATI cards.

Hope that helps!

Brendon

Groodles
June 17th, 2010, 07:38 AM
http://ubuntuforums.org/showthread.php?p=9235045#post9235045

IAmNotAUser
June 23rd, 2010, 02:41 PM
http://ubuntuforums.org/showthread.php?p=9235045#post9235045

This has done it, thanks so much! :D