Debian Installation Guide: Difference between revisions

From cchtml.com
 
(fglrx hit non-free :-))
Line 1: Line 1:
== Which method? ==
As of November 2005, ATI's drivers are in the non-free area of Debian. Make sure your /etc/apt/sources.list contains "contrib non-free" as well as main. You will, however, have to build your own kernel modules.
There are two methods that can be used to install the fglrx driver in Debian. The first, and recommended way is to build native Debian packages directly from the ATI installer. The second, which may be easier for some, but is not recommended in general, is to convert the RedHat RPMs to Debian packages and then install.  Both methods are documented here.


== Method 1: Generating/Installing Debian packages for the newer 8.19.x drivers ==
=== Install the driver ===
=== Download the ATI driver installer ===
You download the driver packages directly from [http://www.ati.com ATI].
 
=== Build the Debian packages ===
Change to the download directory.  You might get some errors regarding dependencies during the dpkg process.  You can ignore them since they should be resolved when you run the ''upgrade'' step.
<pre>
<pre>
sudo apt-get install module-assistant build-essential fakeroot dh-make debconf
sudo apt-get update
sudo sh ./ati-driver-installer-8.19.10-i386.run --buildpkg Debian/sarge (or sid, etch, etc.)
sudo apt-get install module-assistant fglrx-driver
sudo dpkg -i fglrx-control_8.19.10-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.19.10-1_i386.deb
sudo dpkg -i xorg-driver-fglrx_8.19.10-1_i386.deb
sudo apt-get -f upgrade
</pre>
</pre>


Line 39: Line 29:
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)
</pre>
</pre>
== Method 2: Installing from RPM with Alien ==
'''Note: This is a quick guide and it needs a rewrite.  But it works'''
=== Download the RPMs ===
This is the way I prefer but it's not the best way. Download one of the .rpm packages. Than convert it to an .deb package with alien.
<pre>
alien -d fglrx-*.rpm
</pre>
=== Install the converted Debian package ===
Now install it with
<pre>
dpkg -i --force-all ./fglrx_*.deb
</pre>
Replace the ''*'' with the version string of the package.
=== Build the kernel driver ===
Now you must change do the following.
<pre>
cd /lib/modules/fglrx/build_mod/
sh make.sh
cd ..
sh ./make_install.sh
</pre>
This will build and install the kernel module.
=== Update the X server config file ===
<pre>
sudo aticonfig --initial
</pre>
Now restart X, or reboot for the driver changes to take effect.
=== Why isn't this way recommended? ===
The ''--force-all'' parameter ignores all errors from the package system. This is necessary because there is a conflict with one package from the X-Window system.  When you update your Debian system and if there is an update for the X-Server, then apt will stop the update process. Now you need to look at which packages caused the update process to stop.  Go to ''/var/cache/apt/archives/'' and than do ''dpkg -i --force-all my-broken-package'' where ''my-broken-package'' should be replaced by the package that interrupted the update process. Now you can finish updating the rest of your system as you did before. However, after this you will have to re-install the fglrx package, as above.


[[Category:Installation Documentation]]
[[Category:Installation Documentation]]

Revision as of 21:33, 20 November 2005

As of November 2005, ATI's drivers are in the non-free area of Debian. Make sure your /etc/apt/sources.list contains "contrib non-free" as well as main. You will, however, have to build your own kernel modules.

Install the driver

sudo apt-get update
sudo apt-get install module-assistant fglrx-driver

Compile the kernel driver

sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant a-i fglrx

Update the xorg.conf file

sudo aticonfig --initial

Now restart X, or reboot for the driver changes to take effect.

Confirm that it worked

$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)