LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-08-2006, 08:26 AM   #1
meligon
LQ Newbie
 
Registered: Sep 2006
Posts: 22

Rep: Reputation: 15
Problem Installing Xorg 7


Recently installed Debian (ETCH) on a newly built computer. After installation and reboot received error msg "Failed to start the X server ....".

Details
- ATI Radeon® X1300 Pro Video Card
- Intel D975XBX v304 (975X Chipset)Motherboard
-

Successfully ran the following command extracted from another post:

apt-get update
apt-get dist-upgrade
apt-get install bzip2 build-essential
sudo apt-get install fakeroot
chmod +x ./ati-driver-installer-8.28.8.run

Attempted to run the following command and it failed:

fakeroot ./ati-driver-installer-8.28.8.run --buildpkg Debian/etch


REceived error msg:
MAKE: dh_testdir Command not found
make: *** [build] Error 127



IF the previous command had work I was then going to run the following commands:
  • sudo dpkg -i fglrx-driver_8.29.6-1_i386.deb fglrx-kernel-src_8.28.8-1_i386.deb
  • sudo apt-get install linux-headers-$(uname -r)
  • sudo apt-get install module-assistant
  • cd /usr/src
  • sudo m-a prepare
  • sudo m-a a-i fglrx


Questions:
Can someone help me setup Xorg 7 on a Debian etch installation?

I saw simular issues on another post and they recomended I create a new post to deal with my specific problem.

Can someone help me please. I will monitor this post ...
 
Old 10-08-2006, 11:50 AM   #2
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Before installing the proprietary driver it woul be best to get X working with the xorg driver.

Make sure that the package xserver-xorg-video-ati is installed.

Edit /etc/X11/xorg.conf and change the section "Device" to read

Driver "ati"

Restart the computer and see what happens. If xserver does not start examine /var/log/xorg.0.log which is the log of the last X startup.

The error messages starting with (EE) are the ones you need to resolve.

Post them here and we can progress the matter.
 
Old 10-08-2006, 01:04 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by meligon
Attempted to run the following command and it failed:

fakeroot ./ati-driver-installer-8.28.8.run --buildpkg Debian/etch


REceived error msg:
MAKE: dh_testdir Command not found
make: *** [build] Error 127


You need the debhelper package installed for the dh_testdir to be available for use.
 
Old 10-08-2006, 02:35 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
fakeroot ./ati-driver-installer-8.28.8.run --buildpkg Debian/etch

REceived error msg:
MAKE: dh_testdir Command not found
make: *** [build] Error 127

IF the previous command had work I was then going to run the following commands:

* sudo dpkg -i fglrx-driver_8.29.6-1_i386.deb fglrx-kernel-src_8.28.8-1_i386.deb
Installing one version on top of antother is likely to confuse things. Also a good thing to keep in mind is that any time you upgrade the kernel, you have to get the kernel module working again. Whenever I set out to upgrade the ati driver, I like to first install the newest kernel I can get my hands on to make it last as long as possible. If you get it working, you might want to leave it alone, but if you wind up with another non-working mess, I'll give you my recommendations of how to clean it up in the next post.
 
Old 10-08-2006, 02:45 PM   #5
meligon
LQ Newbie
 
Registered: Sep 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by HappyTux
You need the debhelper package installed for the dh_testdir to be available for use.
Successfully loaded the following:
  • debhelper
  • fakeroot ./ati-driver-installer-8.28.8.run --buildpkg
    Debian/etch
  • sudo dpkg -i fglrx-driver_8.28.8-1_i386.deb fglrx-kernel-src_8.28.8-1_i386.deb


Received an erro loading the following command:
sudo apt-get install linux-headers-$(uname -r)

Error received: "Couldn't find package linux-header-2.6.17-2-686"

Also tried the following command with the same error:
sudo apt-get install kernal-headers-$(uname -r)


Note to davcefai: my xorg.conf DEVICE setting looks like this:

Identifier "ATI ...."
Driver "ati"
BusID "PCI:1:0:0"



Reviewing log.

Do I have to install the following?
  • sudo apt-get install kernal-headers-$(uname -r)
  • sudo apt-get install module-assistant
  • cd /usr/src
  • sudo m-a prepare
  • sudo m-a a-i fglrx
.
 
Old 10-08-2006, 02:54 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by meligon
Successfully loaded the following:
  • debhelper
  • fakeroot ./ati-driver-installer-8.28.8.run --buildpkg
    Debian/etch
  • sudo dpkg -i fglrx-driver_8.28.8-1_i386.deb fglrx-kernel-src_8.28.8-1_i386.deb


Received an erro loading the following command:
sudo apt-get install linux-headers-$(uname -r)

Error received: "Couldn't find package linux-header-2.6.17-2-686"

Also tried the following command with the same error:
sudo apt-get install kernal-headers-$(uname -r)


Note to davcefai: my xorg.conf DEVICE setting looks like this:

Identifier "ATI ...."
Driver "ati"
BusID "PCI:1:0:0"



Reviewing log.

Do I have to install the following?
  • sudo apt-get install kernal-headers-$(uname -r)
  • sudo apt-get install module-assistant
  • cd /usr/src
  • sudo m-a prepare
  • sudo m-a a-i fglrx
.

Install the module-assistant and run the m-a prepare it will then download and link the headers properly once done repeat your previous step.
 
Old 10-08-2006, 03:00 PM   #7
meligon
LQ Newbie
 
Registered: Sep 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by HappyTux
Install the module-assistant and run the m-a prepare it will then download and link the headers properly once done repeat your previous step.
Your command worked but still receiving the same error after running:sudo apt-get install linux-headers-$(uname -r)

Error received: "Couldn't find package linux-header-2.6.17-2-686"


Guys I'm very new to this and just following your command. Thanks for your help.
 
Old 10-08-2006, 03:10 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by meligon
Your command worked but still receiving the same error after running:sudo apt-get install linux-headers-$(uname -r)

Error received: "Couldn't find package linux-header-2.6.17-2-686"


Guys I'm very new to this and just following your command. Thanks for your help.
Sorry you don't need to install the headers now the m-a prepare did that so it is on to then next steps which would be the cd /usr/src and then m-a a-i fglrx ones since the others have already been completed.
 
Old 10-08-2006, 03:44 PM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
This is a "drop back and punt" scenario. Debian now has the version 8.28.8-2 ati driver in unstable, non-free. This package is designed by Debian developers rather than ATI developers, and, in the long run, will be better suited for upgrades than the newer ati driver from the ati website. It is designed for xorg 7.1, which is also in Sid. There is obviously a certain amount of integration between xorg and the fglrx driver, and that integration is handled differently by ati and Debian developers. The bottom line here is that I am suggesting that you install xorg 7.1, the fglrx driver, and the newest kernel from Sid.

This would be my procedure:

# updatedb
# locate fglrx

(Remove every file from your system with "fglrx" in the name. You can use dpkg --purge to get some of them, but it won't get them all. Basically what we want to accomplish here is a completely clean fglrx slate)

(Using a text editor, change etch[testing] to sid[unstable] in /etc/apt/sources.list. Also make sure the repo line includes "contrib non-free")

# aptitude update
# apt-cache search 2.6.18

(This will identify the newest kernel [linux-image-2.6.18-1-...])

# aptitude install linux-image-2.6.18-1-...
# aptitude install linux-headers-2.6.18-1-...
# aptitude remove --purge xorg
# aptitude remove --purge xserver-xorg
# aptitude remove --purge xserver-xorg-core (This one will probably be gone already. Just making sure.)

(Reboot. This will bring you to a login prompt using the new kernel. Login as root.)

# aptitude install xserver-xorg-core
# aptitude install xserver-xorg
# aptitude install xorg
# aptitude install fglrx-control
# aptitude install fglrx-kernel-src
# aptitude install fglrx-driver
# module-assistant prepare
# m-a a-i fglrx
# modprobe -v fglrx

(Using a text editor, check /etc/X11/xorg.conf to make sure the driver section looks something like this:
Code:
Section "Device"
        Identifier      "ATI Technologies, Inc. Radeon Xpress 200 (RS480)"
        Driver          "fglrx"
        BusID           "PCI:1:5:0"
EndSection
Change if necessary. Change sid[unstable] back to etch[testing] in /etc/apt/sources.list.)

# aptitude update

Reboot. Good luck.

Last edited by rickh; 10-08-2006 at 03:46 PM.
 
Old 10-09-2006, 03:21 AM   #10
meligon
LQ Newbie
 
Registered: Sep 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rickh
This is a "drop back and punt" scenario. Debian now has the version 8.28.8-2 ati driver in unstable, non-free...
I will try your steps and let you know.
 
Old 10-09-2006, 12:25 PM   #11
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
Just in case you stumble across missing files like "dh_testdir" again, do

aptitude update
aptitude install apt-file
apt-file update
apt-file --package-only search filename

This will show which package contains the missing file. A very useful command to know on a Debian system.
 
Old 10-26-2006, 01:27 PM   #12
meligon
LQ Newbie
 
Registered: Sep 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks all.

Reinstalled Debian (Unstable version) and Xorg installed successfull for my ATI display card.

Thanks.
 
Old 10-26-2006, 02:26 PM   #13
kabniel
LQ Newbie
 
Registered: Aug 2003
Location: Sweden
Distribution: Debian Squeeze
Posts: 27

Rep: Reputation: 15
rickh:

Thanks for the guide,
Xorg 7.1 was added to Etch/Testing last night and effectively killed my fglrx driver built from ATI's 8.29.6 installer.
But i just followed your steps and am back up and running again
 
Old 04-10-2007, 12:23 AM   #14
zax
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
Does ...

Does all things works in etch Testing ? Cause I follow all stuff and nothing... maybe because I'm whit stable one... please tell me.
 
Old 04-10-2007, 03:04 AM   #15
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
zax: everything should work OK. However nobody can help you unless you give us information.

Post:

1. What exactly is happening, or not happening.
2. What is your graphics card.
3. Open your /etc/X11/xorg.conf file. Copy and paste the sections which start with "device = " (I think you cannot post attachments until you have reached a certain number of posts on this website. If you can then you can post the entire file)
 
  


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
Installing Xorg 7.1 on SUSE 10.0 mir_sheely SUSE / openSUSE 2 09-21-2006 05:57 AM
Xorg gone after installing Gnome kushalkoolwal Debian 1 10-28-2005 04:29 PM
Problem on installing Xorg satimis Linux From Scratch 31 10-23-2005 11:17 PM
Installing an xorg-x11 RPM rfk Linux - General 1 12-06-2004 05:58 PM
Installing Xorg 6.8.1 in Sarge cb951303 Debian 4 10-10-2004 11:58 AM

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

All times are GMT -5. The time now is 02:36 PM.

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