| Xgl on SUSE 10.1 for Gnome and KDE with NVidia Graphics Cards |
Xgl on SUSE 10.1 for Gnome and KDE with NVidia Graphics CardsNovell Cool Solutions: FeatureBy Scott M. Morris Applies to: - SUSE LINUX Enterprise Desktop 10 - NVidia Graphics Acceleration Perhaps the most interesting eye-candy introduced to a mainstream Linux distribution is that of the Xgl 3D desktop environment. Naturally, when seen, it fosters the thought, "How can I do that on my own desktop?" I'll be honest with you, it's not quite as point-and-click as some of the other desktop niceties that we've discussed in the past, such as gdesklets or the gkrellm monitors. That in mind, if you're interested in getting Xgl installed and running on your desktop, you've found the right place. We'll take it a bit at a time and make sure we get you set up. First of all, I need to make sure that you are using this tutorial for a machine running either SUSE Linux 10.1 or SUSE Linux Enterprise Desktop 10, and that you have an NVidia video card. With that, let's get going. Installing the NVidia Kernel ModuleRather than allowing yourself to become anxious because we're going to be messing with the kernel, just kind of take a deep breath and realize that every step I outline here will be very simple. Just read the given instruction and follow it the best that you can. We'll get it working: don't worry, be happy.
The famous YAST installation window appears. In the SEARCH box, type in make and click the SEARCH button. Your results appear at the right. Make sure the checkbox next to the make package is checked:
Back in the SEARCH box do a search for gcc. Make sure the checkbox next to the gcc package is checked:
Head back to the SEARCH box one more time and do a search for kernel-source. Check the box next to the kernel-source package:
Next, click the ACCEPT button in the lower-right corner of that window.
At this prompt, we'll shut down the whole X server with this short command:
After you hit ENTER, you'll see a bunch of output as the screen scrolls up.
When you see that line, just hit ENTER to get back your prompt:
Next, we need to change directories to where we downloaded the NVidia drivers. Keep in mind that you are now root, so you cannot just do a simple "cd ~" and expect to get to your user's home directory. You have to specify the absolute location where the driver file is located:
Now, go ahead and install the driver. We'll do this with another simple command:
A screen will appear that looks something like this:
Notice that DO NOT ACCEPT is highlighted. Press the left arrow to highlight ACCEPT, and then press ENTER.
When you see this, you don't even need to read it. Just press ENTER.
Another few moments, and it announces success:
Just hit the ENTER key and you're dumped back to the command line from whence you came.
Note: That is the number zero not the letter "O".
Your login screen appears (or it may log you in automatically). Go ahead and log in if you're not already. Install xgl and compizNow that we have the NVidia driver installed, we can proceed to install xgl and compiz, the programs that make all the coolness possible.
Search for xgl. When it appears in the results on the right side, check the box next to it:
Then, we'll search for compiz. When it appears in the results on the right side, check the box next to it:
Now, to finalize the deal, click on ACCEPT in the lower-right corner of the window. Edit Config FilesNow, we have to edit some configuration files.
Now, we're going to open /etc/X11/xorg.conf. I'm going to use gedit, but you could just as easily use kate, vim, emacs, or whatever text editor you want:
Look through the file for the "Device" section. It will look something like this:
We need to add one line to this section. That line will say: Option "NoFlip" "True", as in the following example:
Note: Some people report that adding this line is not necessary. However, my sources at Novell recommend doing it, so I'm suggesting it here.
Now, you can save and close the file. Do not close the terminal window, however.
Find the line that says DISPLAYMANAGER_XSERVER="Xorg". Instead of Xorg, we're going to tell it to use Xgl. So, change it to read thus:
Now, find the line that says DISPLAYMANAGER_XGL_OPTS="-accel glx:pbuffer -accel xv:pbuffer". We're going to change the pbuffer there at the very end to say fbo. So, it will look like this:
Save and close the file, but not the terminal window. As superuser still, run SuSEconfig:
You'll see a bunch of output scrolling up the screen.
You can now close the terminal window. We have done a lot of work to get this far, but none of it has been very difficult. We are now done installing Xgl and compiz and configuring the system. Now, we need to configure your desktop environment to run Xgl and compiz when it starts up. The following sections correspond to some of the major desktop environments and window managers. Skip straight to the one that interests you and proceed. Configuring Gnome to Run XglFirst, go ahead and log into Gnome.
You'll see the SESSIONS window come up. Click on the STARTUP PROGRAMS tab:
Click on the ADD button. Type compiz -replace into the box and click OK:
Again, click ADD. Type gnome-window-decorator into the box and click OK:
You should now see the two new additions in the SESSIONS window:
You can now close the SESSIONS window.
The CONFIGURATION EDITOR window appears:
In the left pane of this window, double-click to open each of the following items in this order: apps => compiz => general => allscreens => options. Then, in the right pane, double-click the ACTIVE_PLUGINS item to open it. We just want to make sure that the plugins are all set to load. You should see a list similar to this:
If you do not, you can add them all manually. Configuring KDE to run XglFirst, make sure you are logged into KDE just like normal. We are going to create a quick config file so that KDE knows to load up compiz when X starts up. Open up your favorite editor. Copy and paste the following into a new text document:
Now, we just need to save it. You will need to save it in your /home/user/.kde/Autostart folder, where 'user' is your username. Name the file compiz.desktop. Once this is done, log out of KDE and log back in. You should have functioning Xgl on your shiny new K Desktop Environment. Xgl ShortcutsSome of the features of Xgl are executed when you perform certain functions. Mostly, this is some kind of key combination on your keyboard in addition to some button press and/or movement of your mouse. Below, I have provided a table with the different Xgl options and how to execute each one.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||