Note: Currently, ATI Drivers for AMD64 are only available in Hoary
Warty Warthog (Ubuntu 4.10)

1.

Install the following package for Warty:

sudo apt-get install fglrx-driver

2.

echo fglrx | sudo tee -a /etc/modules
*

This command won't have any effect until you reboot. To load the kernel module immediately, run sudo depmod -a ; sudo modprobe fglrx, but this will only work if you have already rebooted since upgrading the kernel. If it doesn't work, perform the next step (below) and then reboot.
3.

Edit /etc/X11/XF86Config-4 and change "ati" to "fglrx", perhaps with a command like:
*

This command won't have any effect until you reboot. To load the kernel module immediately, run sudo depmod -a ; sudo modprobe fglrx, but this will only work if you have already rebooted since upgrading the kernel. If it doesn't work, perform the next step (below) and then reboot.
3.

Common issue: If you have an nforce2 chipset motherboard or if your Xorg.0.log reveals troubles when initialising AGP, put this in the Device section of /etc/X11/xorg.conf: Option "UseInternalAGPGART" "no"

Note (optional): If you are going to compile 3d applications, you will want to install the fglrx-driver-dev package

Note If you are having problems related to DRI or 3d acceleration and the following lines show up in your /var/log/Xorg.0.log

then make sure you have linux-restricted-modules installed for your kernel (type sudo apt-get install linux-restricted-modules-$(uname -r)).

Note (optional): You might want to install the fglrx-control package, which provides a control panel to configure graphics card options such as dual-head display (two monitors).

Note If your screen goes blank after the reboot and your card has two outputs... try connecting your monitor to the other output. Or you can make the card send the same image to both outputs by adding the following line in your /etc/X11/xorg.conf file, in the same section where you put fglrx: Option "MonitorLayout" "Auto,Auto"

ATI driver version 8.12.10 is available in breezy, which should fix this problem + have a decent performance improvement.
Troubleshooting

2.
echo fglrx | sudo tee -a /etc/modules
*
This command won't have any effect until you reboot. To load the kernel module immediately, run sudo depmod -a ; sudo modprobe fglrx, but this will only work if you have already rebooted since upgrading the kernel. If it doesn't work, perform the next step (below) and then reboot.
此命令只有再你重启后才能生效。如果要立即装载内核模块，可以运行
sudo depmod -a; sudo modprobe fglrx
但是这只能在你升级内核并重启后才有效。如果它没有运行，执行以下步骤然后重启

2.
echo fglrx | sudo tee -a /etc/modules
*
This command won't have any effect until you reboot. To load the kernel module immediately, run sudo depmod -a ; sudo modprobe fglrx, but this will only work if you have already rebooted since upgrading the kernel. If it doesn't work, perform the next step (below) and then reboot.
此命令只有再你重启后才能生效。如果要立即装载内核模块，可以运行
sudo depmod -a; sudo modprobe fglrx
但是这只能在你升级内核并重启后才有效。如果它没有运行，执行以下步骤然后重启
3.
Edit /etc/X11/xorg.conf and change "ati" to "fglrx", perhaps with a command like:
编辑 /etc/X11/XF86Config-4并将"ati"改成"fglrx"，或许可以用这样的命令：
sudo sed -i -e 's/"ati"/"fglrx"/' /etc/X11/xorg.conf.
Alternatively, just use your favourite text editor, or use sudo dpkg-reconfigure xserver-xorg and select "fglrx" instead of "ati".
反之，就用你的文本编辑器，或者用sudo dpkg-reconfigure xserver-xfree86并且将"fglrx"改成"ati"

4.
Restart your machine
重启你的电脑

Notes
摘记
Common issue: If you have an nforce2 chipset motherboard or if your Xorg.0.log reveals troubles when initialising AGP, put this in the Device section of /etc/X11/xorg.conf: Option "UseInternalAGPGART" "no"
常见问题：如果你有一块nforce2芯片的主板或者你的Xorg.0.log显示在初始化AGP的时候有问题。
在/etc/X11/xorg.conf中的Device Section 中加上Option "UseInternalAGPGATRT" "no"

Note (optional): If you are going to compile 3d applications, you will want to install the fglrx-driver-dev package
摘记 (可选):如果你要编译3D程序,你将要安装fglrx-driver-dev
Note If you are having problems related to DRI or 3d acceleration and the following lines show up in your /var/log/Xorg.0.log
摘记:如果你在DRI或3D加速方面有问题,而且如下的内容出现在你的/var/log/Xorg.0.log中
(WW) fglrx(0): Kernel Module version does *not* match driver.
(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work

Note (optional): You might want to install the fglrx-control package, which provides a control panel to configure graphics card options such as dual-head display (two monitors).
摘记(可选): 你可能要安装fglrx-control包.它能够给你提供控制面板用来设置你的显卡的选项如双头显示(两个显示器)
Note If your screen goes blank after the reboot and your card has two outputs... try connecting your monitor to the other output. Or you can make the card send the same image to both outputs by adding the following line in your /etc/X11/xorg.conf file, in the same section where you put fglrx:
摘记:如果你的屏幕在你重启后没有显示而且你的显卡又有两个输出端...试着将你的显示器连接到另一个输出口上.或者你可以让你的显卡向两个输出端发送同样的图像,如下设置你的/etc/X11/xorg.conf文件，就在你写入fglrx的同一个部分(Section)
Option "MonitorLayout" "Auto,Auto"

ATI driver version 8.12.10 is available in breezy, which should fix this problem + have a decent performance improvement.
ATI驱动的8.12.10版本在breezy中已经有了，不但修复了这个问题而且在性能上有不错的提升。
Troubleshooting
问题解决:
execute the command:
运行命令
fglrxinfo

If it doesn't, something is wrong. One solution is to try installing the drivers while X is stopped.
如果没有,就有问题了.一个解决办法是试着在关闭X时安装驱动
1. Press Ctrl+Alt+F1 to bring up a command-line terminal.
1.按Ctrl+Alt+F1进入命令行终端
2. Login as root.
2.以root登陆
3. Execute the command:
3.运行命令
/etc/init.d/gdm stop