Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following problem: Let's say I have an X11 server (it is the Xvfb) set to run at a resolution of 1024x768. Now I want to run inside it the Gnome desktop, not at the resolution of 1024x768 but, lets say, 640x480 with the condition that the Gnome desktop is centered inside the X11 space. Anyone knows how to do that? I have tried passing gnome-session the parameter --geometry but it does not like it. Just In case it matters: The system is a Centos 5.5 with the latest updates installted. Thanks in advance!

share|improve this question

migrated from stackoverflow.com Apr 8 '11 at 10:08

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

Clearly not a programming question. – unwind Apr 7 '11 at 12:03
yep, i realize now. sorry for this. can you point me to a place where to ask this question? thanks! – crom Apr 7 '11 at 12:15
Looks like XY problem mywiki.wooledge.org/XyProblem – gelraen Oct 6 '11 at 7:40

Why not just set the Xvfb to the correct size to begin with?

I suppose you could run a nested X server like Xephyr or Xnest inside the Xvfb, and have it at the right resolution and position, but that's a lot of extra work vs. just running Xvfb -screen 0 640x480x24

share|improve this answer

Your Answer


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.