PDA

View Full Version : Need help installing


Master_Frag
November 16th, 2006, 05:16 PM
Im runing Ubuntu Dapper i have allready installed the packeges from the repository. What do i do next???

RYX
November 16th, 2006, 05:20 PM
Hi, Master_Frag!

First you need to make sure if you have XGL, AIGLX or the NVIDIA-drivers installed to be able to use hardware-accelerated rendering. Then you can either install and run gnome-compiz-manager (I assume you are using gandalfn's repos) or you run compiz from a terminal with:
compiz --replace gconf &

And then run the window-decorator with:
gtk-window-decorator -- replace &

Master_Frag
November 16th, 2006, 05:28 PM
I dont have XGL i did a serch with google and the only verions i found were Opensuse SUSE and Gentoo

Master_Frag
November 16th, 2006, 05:36 PM
Ok i ran the comand lines nothing has happend i tryed restarting the XServer nothing what am i dong wrong

RYX
November 16th, 2006, 06:10 PM
You can install XGL with:sudo apt-get install xserver-xgl
But if you have an NVIDIA-graphics-card you can use the "non-free" nvidia-driver instead of XGL - much more comfortable because no second X (XGL) needed ...

Master_Frag
November 16th, 2006, 06:18 PM
I have the Nvidia drivers but dont know how to start the compiz service

RYX
November 16th, 2006, 07:09 PM
If you have installed the nvidia-glx from Ubuntu, it will not work without XGL - you need the official ones from nvidia.com (version 9629) to make it work without using XGL.

If you have the nvidia.com-drivers, you can start compiz by opening a terminal and entering the commands I posted above ... Press enter twice after entering the command, then it should output something ... if there are any errors, please post them here.

If you want to use XGL and the nvidia-glx-driver, try this tutorial (http://forum.beryl-project.org/topic-4861-howto-install-beryl-dapper-nvidia-using), It is for beryl, but the important parts (so Nvidia/XGL-setup) should work ...

(btw: I really recommend updating your system to the current Ubuntu-version Edgy Eft, it offers nice new features)

:)

Master_Frag
November 16th, 2006, 07:23 PM
ok no errors but service does not start
this is what commands responces were


kevin@THE-Computer:~$ compiz --replace gconf &
[1] 12465
[1]+ Done compiz --replace gconf
kevin@THE-Computer:~$ compiz.real: No composite extension

kevin@THE-Computer:~$
kevin@THE-Computer:~$ gtk-window-decorator -- replace &
[1] 12483
kevin@THE-Computer:~$ bash: gtk-window-decorator: command not found

[1]+ Exit 127 gtk-window-decorator -- replace
kevin@THE-Computer:~$

mikedee
November 16th, 2006, 07:28 PM
Check that you have this setting in your xorg.conf file.

Section "Extensions"
Option "Composite" "Enable"
EndSection

if you do and you are using nVidia then you may need to add this line to the Device section.

Option "AllowGLXWithComposite" "true"

Master_Frag
November 16th, 2006, 07:35 PM
Section extensions does not exist

mikedee
November 16th, 2006, 07:36 PM
Add it at the bottom of the file ;)

Master_Frag
November 16th, 2006, 07:44 PM
now how do i save it

im in nano

mikedee
November 16th, 2006, 07:49 PM
Make sure you are logged in as root.

The control for nano is Ctrl+w or just press ctrl+x to exit then hit y to save.

Master_Frag
November 16th, 2006, 07:55 PM
ok what next

RYX
November 16th, 2006, 08:09 PM
Any time you have edited your xorg.conf, you need to restart the X-server. You can do that by hitting Strg+Alt+Backspace (the unfriendly way) or by hitting Strg+Alt+F1 and entering "sudo /etc/init.d/gdm restart" ...
No matter which way you choose: Close all open applications first and save your data!!!!

When X is restarted, try to start compiz again. If it still not works (or locks up your screen), post the result here ...

:)

Master_Frag
November 16th, 2006, 08:24 PM
ok when i restarted x-server the GUI crashed i rebooted gnome loaded i loaded the first comand it restarted x socond one result was same as before

RYX
November 16th, 2006, 08:26 PM
Have you these two lines in the "Screen"-section of your xorg.conf?

Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"

If not, add them. Then use the second method of restarting X (not Strg+Alt+backspace). Then try again!

mikedee
November 16th, 2006, 08:27 PM
It didnt crash, you killed it :D

The first log out is what you were expecting, now you are logged back in what happens if you type

compiz --replace gconf

Master_Frag
November 16th, 2006, 08:40 PM
ok where do i insert the text in xorg.conf

mikedee
November 16th, 2006, 08:42 PM
You can put it anywhere as long as it isnt within another section, at the bottom is common.

Master_Frag
November 16th, 2006, 08:53 PM
was this:compiz --replace gconf suposed to restart x because a have done evey thing you have told me to do but i see no signs of a 3d desktop

Master_Frag
November 16th, 2006, 08:57 PM
i also now have graphicl problems pics load fine but text does not apear unless i scrol my mouse onto it

Master_Frag
November 16th, 2006, 09:13 PM
is there a way to reversers this

RYX
November 16th, 2006, 09:17 PM
ok where do i insert the text in xorg.conf
You have to add the text within the block beginning with 'Section "Screen"' ...

RYX
November 16th, 2006, 09:18 PM
is there a way to reverse this
Yes, you can enter "metacity --replace &" in a terminal to start the default gnome-window manager (or "kwin --replace &" if you use KDE) ...

Master_Frag
November 16th, 2006, 09:23 PM
ok maybe thats the sorce of this odd behaver

Master_Frag
November 16th, 2006, 09:35 PM
ok nothing is working i need to fix the computer the text is still acting odd Need help here

Master_Frag
November 16th, 2006, 09:44 PM
is it possible to use remote desktop to fix this

RYX
November 16th, 2006, 10:17 PM
Could you maybe post your xorg.conf, maybe you have some mistake in there. Otherwise it's difficult to say what's wrong. And I have no knowledge about using remote-dektops ...

(I'd really recommend you to make a backup of all your important data (at least a backup of your home-directory). You should maybe download/install an iso-image of Ubuntu 6.10 (Edgy Eft) and not use Dapper anymore ... because Edgy has more up-to-date components).

Master_Frag
November 16th, 2006, 10:27 PM
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "UseFBDev" "true"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV34 [GeForce FX 5200]"
Monitor "Generic Monitor"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"

SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection

RYX
November 17th, 2006, 12:25 AM
Remove: Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection


Change "Device"-Section this way:
Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nvidia"
# BusID "PCI:1:0:0"
# Option "UseFBDev" "true"
EndSection
So comment out BusID and the "UseFBDev"-option.

mikedee
November 17th, 2006, 12:33 AM
For reference, here is my device section to

Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nvidia"
Option "RenderAccel" "true"
Option "DisableGLXRootClipping" "True"
Option "AddARGBGLXVisuals" "True"
Option "AllowGLXWithComposite" "true"
Option "DRI" "true"
Option "UseEdidDpi" "FALSE"
EndSection

I have both the dri and the extension blocks in my config file so I do not think it is that. The UseFB dev line may be the cause.

RYX
November 17th, 2006, 01:03 AM
Looks like we all have the same graphics chip but still need different setups - that's odd. I have only the Identifier and Driver in my Device-Section. I think DisableGLXRootClipping and AddARGBGLXVisuals belong into the Screen-section. No clue what dri does but I don't use it - and never missed it ... and I also have no 'Load "dri"' in my Module-Section. But things work fine and hw-accel works like a charm ...

I think the Composite-option was only needed for XGL, but is deprecated with the nvidia-driver.

rememo
November 17th, 2006, 01:49 AM
Hi Master_Frag,

The xorg.conf looks ok. Not sure about the composite section, at least for XGL you won't need it and in Edgy (Xorg 7.1) it is enabled by default. But if you keep it, it won't hurt. I'm not sure about the DRI things: IMHO the "dri" module should not be loaded and therefore you will not need the "dri" section (at least this is true for the newest nvidia drivers). You may also add

Option "AllowGLXWithComposite" "true"

to the "Devices" section. But this is minor and should not be needed until you try to run open-gl applications besides compiz.

Anyways, I think the problem is something different. So let's clarify some things before. Keep in mind that I'm not an expert to all this stuff, but this is how I understand it.
Compiz needs an extension which is called GLX_ext_texture_from_pixmap (GLX_ext_tfp) to work properly and do all that eyecandy stuff. The difficult thing is that there are currently 3 ways this extension is provided.

1. XGL:
XGL is a X-server that has build in GLX_ext_tfp. It was mainly written by David Reveman (Novell), who is also the father of compiz. The advantage of XGL is that it runs on nearly every graphics card. The common way to use XGL is on top of your normal X-server. Its setup is not that easy (but it's also not that hard), but you schould find howto's on the web. Because XGL is using gl acceleration to paint your whole screen output (remember it runs on top of your normal X-server) you will need drivers for your card that support hardware acceleration. I have seen you are using the proprietary nvidia drivers (probably the old Dapper ones) and they provide hardware acceleration, so you will only have to setup XGL.

2. AIGLX:
AIGLX is an extension to your NORMAL X-Server that provides GLX_ext_tfp support (through DRI(Direct Rendering Infrastructure), but thats minor). It was initiated by RedHat. The problem is that it won't run on many graphic cards drivers. It will be used by the official open source "radeon" driver (for older ati cards, luckily I own one). The proprietary ati driver "fglrx" does not support it. The nvidia drivers never took advantage of open source AIGLX and DRI (they've got there own closed Rendering Infrastructure), thats why the AIGLX way is not the right one for you and you can now forget everything about it :wink:

3. Newest NVIDIA-Beta driver (yawn!!!, how I hate my ati card)
The newest proprietary nvidia driver has build in GLX_ext_tfp support through their own rendering infrastructure. This is pretty cool because you will not have to install XGL as an nvidia user. But there are two problems: First, you will have to install the driver and modules on your own (keep in mind: Dapper provides you with an older nvidia proprietary driver through its repos). Second, you will need Xorg 7.1. (which is in edgy) for it to run.

To sum it up: You've got two possible ways to go...

1. Use XGL on your Dapper system (if you insist on not upgrading to edgy). Search the web for howto setup XGL on the older proprietary Dapper-nvidia drivers (or use the howto RYX posted before).

2. Upgrade to edgy. This way you will have Xorg 7.1. Maybe the newest nvidia driver is also in the repos (I doubt), if not, install it manually and use the following howto (http://www.nvnews.net/vbulletin/showthread.php?t=77030) from james jones (nvidia guy who surely knows what he is doing) to setup compiz.

I hope this helps...(huh, this has become a long post)

@others: feel free to correct me if I got something wrong