LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   DRI / Xwindows / Only working as root? (https://www.linuxquestions.org/questions/slackware-14/dri-xwindows-only-working-as-root-124868/)

hjles 12-11-2003 07:02 AM

DRI / Xwindows / Only working as root?
 
Hey all:

I have a Radeon 7500, and decided to try and get 3D acceleration working. I went to dri.sourceforge.net and downloaded the latest binary snapshot for radeon, and the 'extras' package. I followed the instructions exactly, and everything installed without difficulty.

Next I edited my XF86config-4 file, addiing:

Load "dri"

Section "DRI
Group 0
Mode 0666
EndSection

As root, I can 'startx' without any problems, and 3d acceleration is working. However, as a normal user X will not start. Unfortunately, a log file is not being generated.

Does anyone have some thoughts on this?

-Charlie

hjles 12-11-2003 02:41 PM

suid
 
Hey all:

Well, after much googling, the answer was that the new XFree86 binary installed from the 'Extras' package was not 'suid root'.

I needed to:

chmod 4711 /usr/X11R6/bin/XFree86

and then all was well.

-Charlie

Tinkster 12-11-2003 02:49 PM

The only "mistake" in your first aproach was
the groupid ... you should have set it to 100,
or something common to all users.

And where have you been looking for X's
logfile? I bet it will create a log every time
you run it.


Cheers,
Tink

Misel 12-11-2003 03:47 PM

Re: suid
 
Quote:

Originally posted by hjles
Well, after much googling, the answer was that the new XFree86 binary installed from the 'Extras' package was not 'suid root'.
which package are you talking about? :confused:

hjles 12-11-2003 03:59 PM

'Extras'
 
Hey:

The 'extras' package is available from the downloads section of dri.sourceforge. Basically, I think the binary snapshot for "Radeon" that I downloaded will not work without it, because there is "ABI" incompatibility with the pre-existing slackware Xserver. Keep in mind I am not recompiling Xwindows.

The "extras" is really just a binary XFree86 that use copy to /usr/X11R6/bin, replacing your current XFree86. I originally screwed up as I described before, and Tinkster was so kind to point out!

Of course, I understand very little of all this. I just want 3D to go faster, and now it does!

Tkinkster, isn't the default Slackware XFree86 binary 'suid root'? I'm not sure now...

-Charlie

IanChristie 12-11-2003 04:52 PM

Yup, the default XFree86 in Slackware 9.1 is suid. Full permissions on mine are 4711


All times are GMT -5. The time now is 11:23 AM.