View previous topic :: View next topic |
Author |
Message |
cinderblock n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jan 2008 Posts: 11 Location: Menlo Park, CA
|
Posted: Wed Apr 22, 2009 1:25 am Post subject: Xvfb standalone |
|
|
I'm trying to get Xvfb running on my server. (Headless Xen)
Any way to do a minimal compile for only Xvfb?
My end goal is actually to run a small windows app in Wine which has a GUI that I don't ever care to see. (Though if I use Xvfb I'll prolly make myself a screen grab for kicks.)
Do I need to just emerge xorg-server? If so, how many use flags can I take out? USE="-*" ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Wed Apr 22, 2009 2:21 am Post subject: |
|
|
As long as you don't have the minimal USE flag set, it should build Xvfb.
However, the minimal flag actually disables a lot of stuff you probably won't need, as well as a couple of dependencies you might want to be rid of (such as mesa, for one) so if you're comfortable with it you can copy the xorg-server ebuild to an overlay and remove "$(use_enable !minimal xvfb)" line.
Alternatively, you can try the following, may not work but is a simple solution if it does (and it should); Code: | mkdir -p /etc/portage/env/x11-base
echo EXTRA_ECONF=\"--enable-xvfb\" >> /etc/portage/env/x11-base/xorg-server |
_________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cinderblock n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jan 2008 Posts: 11 Location: Menlo Park, CA
|
Posted: Wed Apr 22, 2009 2:35 am Post subject: |
|
|
I'm trying this now. I assume that this is used with the minimal USE flag (reversing where the ebuild turns off xvfb). Can I also get rid of nptl and xorg use flags?
I still have a large list of dependencies, most of which look like I'd never use and shouldn't need. Maybe time to start hacking at the ebuild in an overlay? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Wed Apr 22, 2009 2:53 am Post subject: |
|
|
I'd leave nptl enabled, that won't cost you anything, but you should disable the xorg USE flag as that's what ensures the Xorg server itself is built, which is what you don't want.
Actually, you'll have to do this via an overlay, as the ebuild will error out if you have the minimal flag set without at least one of xorg, dmx or xorg set too.
You could change the ebuild to consider xvfb as a server too, and adding an xvfb use flag, however it'll be a lot easier to simply comment out the "use minimal || ensure_a_server_is_building" line in pkg_setup().
You're going to get stuck with quite a few library dependencies, that's unavoidable.
Don't worry about all the x11-proto packages though, these are nothing but header files and are compile time only dependencies. _________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cinderblock n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jan 2008 Posts: 11 Location: Menlo Park, CA
|
Posted: Thu Jul 09, 2009 6:48 pm Post subject: |
|
|
I know it's been a while but I recently had a chance (and reason) to try doing this again.
Modifyting the ebuild to build only Xvfb was easy (very actually). All you need to do is add xvfb to the list of IUSE_SERVERS and change the use_enable for xvfb:
Code: | --- /usr/portage/x11-base/xorg-server/xorg-server-1.5.3-r6.ebuild 2009-06-23 13:37:53.000000000 -0700
+++ /usr/local/portage/x11-base/xorg-server/xorg-server-1.5.3-r6.ebuild 2009-07-08 18:01:59.000000000 -0700
@@ -99,7 +99,7 @@
video_cards_xgi
video_cards_fglrx
video_cards_nvidia"
-IUSE_SERVERS="dmx kdrive xorg"
+IUSE_SERVERS="dmx kdrive xorg xvfb"
IUSE="${IUSE_VIDEO_CARDS}
${IUSE_INPUT_DEVICES}
${IUSE_SERVERS}
@@ -311,7 +311,7 @@
$(use_enable kdrive)
$(use_enable tslib)
$(use_enable tslib xcalibrate)
- $(use_enable !minimal xvfb)
+ $(use_enable xvfb)
$(use_enable !minimal xnest)
$(use_enable !minimal xtrap)
$(use_enable !minimal record) |
Emerging worked great with USE="minimal xvfb -xorg"
Unfortunately, there are still some dependency issues.
At first I got "could not open default font 'fixed'", and I fixed that with emerge font-misc-misc.
Now I've got "could not open default cursor font 'cursor'"... Working on it, time for a lunch break. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
wyv3rn Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 18 Aug 2005 Posts: 154 Location: USA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cinderblock n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jan 2008 Posts: 11 Location: Menlo Park, CA
|
Posted: Sun Aug 09, 2009 2:57 am Post subject: |
|
|
Sorry, I did get this all working by emerging font-cursor-misc. Good to know that this dependency bug has a workaround for now but that it's X.org's fault...
Now the issue is writing the init script. I have a basic one done but it's buggy. I'll prolly ask what the right way to do this is in the proper forum. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|