LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-11-2003, 07:02 AM   #1
hjles
Member
 
Registered: Jan 2003
Posts: 64

Rep: Reputation: 15
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
 
Old 12-11-2003, 02:41 PM   #2
hjles
Member
 
Registered: Jan 2003
Posts: 64

Original Poster
Rep: Reputation: 15
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
 
Old 12-11-2003, 02:49 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 12-11-2003, 03:47 PM   #4
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Question 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?
 
Old 12-11-2003, 03:59 PM   #5
hjles
Member
 
Registered: Jan 2003
Posts: 64

Original Poster
Rep: Reputation: 15
'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
 
Old 12-11-2003, 04:52 PM   #6
IanChristie
Member
 
Registered: Oct 2003
Posts: 39

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
some help getting my video card working with dri please maq Linux - Software 1 05-09-2005 08:36 PM
DRI not working on Savage Trurl Linux - Hardware 2 01-24-2005 09:22 PM
Xwindows freezes on exit, but only for root geomatt Slackware 13 10-09-2004 05:42 PM
DRI not working moneyshotz Linux - Software 7 07-10-2004 10:40 PM
DRI not working d1rtfarm Linux - Hardware 2 04-27-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration