Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xvfb standalone
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cinderblock
n00b
n00b


Joined: 18 Jan 2008
Posts: 11
Location: Menlo Park, CA

PostPosted: Wed Apr 22, 2009 1:25 am    Post subject: Xvfb standalone Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3788
Location: sleeping in the bathtub

PostPosted: Wed Apr 22, 2009 2:21 am    Post subject: Reply with quote

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
View user's profile Send private message
cinderblock
n00b
n00b


Joined: 18 Jan 2008
Posts: 11
Location: Menlo Park, CA

PostPosted: Wed Apr 22, 2009 2:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3788
Location: sleeping in the bathtub

PostPosted: Wed Apr 22, 2009 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
cinderblock
n00b
n00b


Joined: 18 Jan 2008
Posts: 11
Location: Menlo Park, CA

PostPosted: Thu Jul 09, 2009 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
wyv3rn
Apprentice
Apprentice


Joined: 18 Aug 2005
Posts: 154
Location: USA

PostPosted: Sat Aug 08, 2009 8:10 pm    Post subject: Reply with quote

Re-merge xorg-server and it should pull in media-fonts/font-cursor-misc:

https://bugs.gentoo.org/show_bug.cgi?id=278487
Back to top
View user's profile Send private message
cinderblock
n00b
n00b


Joined: 18 Jan 2008
Posts: 11
Location: Menlo Park, CA

PostPosted: Sun Aug 09, 2009 2:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum