Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We bought a small box as our server and we installed ubuntu linux.

We don't plug any display to it, instead, we remote desktop/vnc to the server (using TightVNC).

However, the display by default is around 1024x768 and our local display is usually much larger.

How could we change the resolution on the server without a display? Preferably, it is setup during the boot time. It is also OK to change at VNC time.

( when we plug a display, it works perfectly )

share|improve this question

migrated from stackoverflow.com Apr 22 '11 at 9:30

This question came from our site for professional and enthusiast programmers.

    
The monitor's name is showing as "Laptop" for some reason. –  Tom Fishman Oct 8 '11 at 15:38
add comment

2 Answers 2

Perhaps try creating an /etc/X11/xorg.conf file with something like:

Section "Device"
Identifier "VNC Device"
Driver "vesa"
EndSection

Section "Screen"
Identifier "VNC Screen"
Device "VNC Device"
Monitor "VNC Monitor"
SubSection "Display"
Modes "1280x1024"
EndSubSection
EndSection

Section "Monitor"
Identifier "VNC Monitor"
HorizSync 30-70
VertRefresh 50-75
EndSection

... where 1280x1024 would be replaced by the resolution you want.

I did not test it myself; this is from http://ubuntuforums.org/showthread.php?p=8636175 (first post).

share|improve this answer
    
It doesn't work for me. My ubuntu is using remote desktop sharing for me to vnc. So the resolution is pre-determined at booting time. xorg.conf doesn't seem to affect the resolution so far. –  Tom Fishman Oct 8 '11 at 15:33
add comment

When you start the TightVNC server, one of the options is geometry. According to the manual page for vncserver, this is what determines the resolution.

-geometry widthxheight
Specify the size of the VNC desktop to be created. Default is 1024x768

share|improve this answer
    
It doesn't work for me. My ubuntu is using remote desktop sharing for me to vnc. So the resolution is pre-determined at booting time. this "geometry" option doesn't affect the result. –  Tom Fishman Oct 8 '11 at 15:35
    
"My ubuntu is using remote desktop sharing for me to vnc." Can you try to explain this in more detail? How is TightVNC started? –  sciurus Oct 9 '11 at 15:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.