个人工具

UbuntuHelp:LuminocityHowTo

来自Ubuntu中文

重定向页面
跳转至: 导航, 搜索

Luminocity is obsolete, use CompizFusion If you are like me, you probably like to have some eye candy and the Luminocity demos enticed you. All those effect look great, but what good are they if we have to wait years for the effect to get into Gnome? I created this howto to help people like myself install Luminocity now in order to try out the new effects. It does alright on my Pentium 4 with an ATI card (newest fglrx drivers installed), but using a mouse wheel seems to make it crash (anyone got a work around?). This is fun to play with (I really like the desktop switcher) but it's not a functional window manager like Metacity. It's only to be looked at. So don't show this off to all your Windows buddies (unless you say "this is the future of Linux") because they will be disappointed when they switch to use it only to find out it's basically a demo. This howto was created by adding this Gentoo one to this wikipage: http://64.233.167.104/search?q=cache:2ai6TpucWhoJ:forums.gentoo.org/viewtopic-t-313926.html+install+luminocity&hl=en&lr=&client=firefox&strip=1 For future note, every time you see bold, it is a new command line to enter. I will only use the bold for bash commands. First we need to install some things. apt-get install cvs libtool libxxf86vm-dev build-essential docbook-xsl automake1.7 libglib2.0-dev libgtk2.0-dev x11proto-gl-dev Now lets make a directory:

mkdir luminocity
cd luminocity/

Now we need to install jhbuild:

cvs -d :pserver:[email protected]:/cvs/gnome get jhbuild
cd jhbuild/
make
make install

I don't really get this part but its needed to work:

cvs -d :pserver:[email protected]:/cvs/gnome get luminocity/luminocity.modules
cp luminocity/luminocity.modules modulesets/

Now get out of that directory

cd ..

and start gedit:

gedit

Add the following quoted text to the new gedit file. Be sure to change where it says "username" to your username.

import os

moduleset = 'luminocity'
modules= [ 'luminocity' ]

cvsroot = ':pserver:[email protected]:/cvs/gnome'
checkoutroot = '/home/username/luminocity/src/luminocity/'
prefix = '/home/username/luminocity/opt/luminocity'
autogenargs='--enable-maintainer-mode --disable-static'

os.environ['INSTALL'] = os.path.join(os.environ['HOME'], 'bin', 'install-check')

Save the file as jhbuildrc-luminocity Now to make more directories

mkdir ~/luminocity/src/
mkdir ~/luminocity/opt/

And tell your computer to use the older version of automake (the 1.9 version won't work apparently).

export AUTOMAKE=automake-1.7
export ACLOCAL=aclocal-1.7

Now its time to install Luminocity.

~/bin/jhbuild -f ~/luminocity/jhbuildrc-luminocity build xserver luminocity

Hit enter when it asks for a CVS password. You are now building Luminocity. It took 30 minutes on my Pentium 4. If you have no error, Luminocity is installed. Time to use it. First enter this command (this must be done everytime):

~/bin/jhbuild -f ~/luminocity/jhbuildrc-luminocity shell

Now its time for the xfake line. I will take this and its explination straight from the Gentoo guide: "If you want to change the window size, start Xfake with:

Xfake -screen <width>x<height*number_of_workspaces>x<bpp>

It's also a good thing to add "-nolisten tcp" to Xfake arguments to improve safety. For example, this would make luminocity to open in 1024x768 window when using 4 workspaces:

Xfake -ac -nolisten tcp -screen 1024x3072x32 :1 &

Then you need to say what windows to stick in Luminocity using a command. This example is for Gxine:

DISPLAY=:1 gxine &

Now its time to start Luminosity:

luminocity :1

Here is the explanation for that command from the Gentoo forum: "You can change the number of workspaces by starting luminocity with "-d <number_of_workspaces>" argument. It's also possible to add background image to luminocity by simply adding background path after luminocity start command:"

luminocity :1 -d 4 /path/to/background 

Well...thats about it. I hope you enjoy it.I can't wait till this stuff is actually part of Gnome. I'm estimating two more releases before that happens...but that is probably optimistic. I'm glad we can try it out today! Viva la OSS! In terms of usability, it's a tad unresponsive on my Radeon 9200SE and only marginally less so than it was on my Radeon Mobility 9000. For some reason using my scrollwheel crashes the whole shebang. Other than that it's sweet and as a sign of things to come it's fantastic.