Home » Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6

Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6

by blackMOREOps
74 comments

UPDATE: 05/03/2015 – Please follow the final guide instead of this one to Install AMD ATI proprietary fglrx driver in Kali Linux 1.0.6 running Kernel version 3.12.6 – Final

 

Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6.

Kali Linux release it’s new version 1.0.6  which installed new Kernel 3.12.6 in early January 2014. Since then every AMD proprietary graphics card driver stopped working as the existing version in repository was not compatible with new Kernel. Well, to be honest, the existing AMD ATI proprietary fglrx driver in repo was broken anyway and needed patching for Kernel 3.7. We’ve tried anything and everything that we could find and finally found a workable solution that worked for new Kernel 3.12.6 in Kali Linux 1.0.6. Obviously this solution is still new and we would like more people to test it and confirm that this is working for them. Like any solution, there’s a fair chance this might not work for you, but then again, fglrx proprietary driver is already broken and there’s no sign that either AMD or Kali developers going to work on it and release a fix. The main problem with AMD ATI fglrx driver was that it was breaking CAL++ and Pyrit as Kali Linux 1.0.6 couldn’t detect a fglrx driver and didn’t use the graphics card properly. But this is not entirely Kali Linux issue, this is actually an AMD driver issue. Open source driver (vesa) worked just fine in Kali Linux 1.0.6, but from the discussions and digging what we found that AMD pretty much repacked an old driver and modified a few files without checking it against some of the big names in Linux (Debian). I am not sure if we can blame AMD either, the driver did work in Ubuntu based distributions and I guess because Ubuntu is more supported and focused by Hardware vendors, that’s all that matters to them.

Install AMD ATI Driver (fglrx) in Kali Linux 1.0.6 with Kernel 3.12-6 fglrx version 13.251 - blackMORE Ops

But like every similar case, Debian guru’s jumped in and started testing it in Debian Jessie (Jessie is the new testing release after Wheezy). I accidentally found that AMD ATI proprietary fglrx driver from Debian Jessie works in Kali Linux. I wanted to test it first myself and ensure it wasn’t breaking anything else in my existing Kali Linux installation. So far I have found no issues.

I have tested the following applications after I’ve implemented this change and they worked just fine:

  • Metasploit Framework
  • SQLmap
  • Burpsuite
  • Aircrack-ng
  • Wireshark
  • nmap
  • owasp-zap
  • maltego
  • wpscan
  • john
  • hydra
  • wifite
  • pyrit
  • oclhashcat
  • beef
  • Armitage
  • Setoolkit

Following instructions were tested on 64-bit Kali Linux 1.0.6 running Kernel version 3.12.6:

lsb_release -a

Output:

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux Kali Linux 1.0.6
Release:    Kali Linux 1.0.6
Codename:   n/a

 

Step 1 (add official Kali Linux Repositories)

Check your /etc/apt/sources.list. If it’s anything different to the following, you need to fix it. You can follow this guide to add official Kali Linux Repositories if you’re not too sure on how to do it. For the sake of clarity I will keep things simple here.

leafpad /etc/apt/sources.list

Remove or comment out existing lines and add the following:

## Kali Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

 

Step 2 (update with apt-get)

Now we need to update and make sure we get the latest list from Kali Linux official repositories. So perform an apt-get update.

apt-get update

STOP: NVIDIA users after driver installation and cuda/pyrit related issues go here: How to Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux

Also those who would like to use Graphics card processing power to crunch data (such as recovering wii password faster) see the following posts:

  1. Helpful ATIconfig fglrx commands
  2. How to install Pyrit in Kali Linux?
  3. How to install CAL++ in Kali Linux?
  4. How to install AMD APP SDK in Kali Linux?

 

Step 3 (install Linux headers and recommended softwares)

Now that we have the correct repositories we can add these following recommended apps. The most important part is to add the correct headers.

apt-get install firmware-linux-nonfree 
apt-get install amd-opencl-icd 
apt-get install linux-headers-$(uname -r)

NOTE: You should be able to get all these from Kali Linux repositories as added/updated from Step 1 above. When this guide was written, all these were available in the Kali Repositories.

 

Step 4 (change repositories to Debian Jessie).

So far so good.

This part I wouldn’t usually recommend, but we will only add few specific software’s from Debian Jessie Repositories and quickly remove them once we’re done. I have added this myself and removed them once the following steps are completed. I went in and checked as many software’s I could, but it seems only updating a few packages doesn’t break anything. (So far!! You are most welcome to try it).

Now comment out Kali Repositories in your /etc/apt/sources.list and add Debian Jessie (Another name for Debian Jessie is Debian testing) repositories.

You should be able to use leafpad to do it quickly.

leafpad /etc/apt/sources.list

Remove or comment out existing lines and add the following:

## Kali Regular repositories
#deb http://http.kali.org/kali kali main non-free contrib
#deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Source repositories
#deb-src http://http.kali.org/kali kali main non-free contrib
#deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

## Debian Main
deb http://ftp.debian.org/debian testing main contrib non-free
deb-src http://ftp.debian.org/debian testing main contrib non-free
## Debian Updates
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
## Debian Security
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

 

Step 5 (update with apt-get)

Now we need to update and make sure we get the latest list from Debian Jessie repositories. So perform an apt-get update.

apt-get update

 

Step 6 (install fglrx drivers and control)

Almost done, just install fglrx drivers and control. The best part is that it’s all you need to do. Debian Jessie fixed the issues with fglrx and latest driver, so once you install these drivers, everything just works.

apt-get install fglrx-atieventsd fglrx-driver fglrx-control fglrx-modules-dkms -y

NOTE: At this point, you will see bunch of popups (we see those hardly in Linux, but aptitude pops up with request to update some libraries(opencl and glx) and restart services such as network etc., I have chosen YES to all of them. My installation of Kali is still working and I am yet to find a problem. Your experience might be different.

Once the installation if finished, we need to test if it was all good.

 

Step 7 (testing your installation and generate xorg.conf file)

Now that our installation is all good and went without an error, we need to test fglrx drivers. You can test fglrx using the following two commands:

fglrxinfo 
fgl_glxgears

 

fglrxinfo - Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6 - blackMORE Ops

 

But I would like to go a bit far and test glx as well. Use the following commands to test GLX. (The reason I tested this is because original AMD Drivers broke them previously.

 

glxinfo
glxgears 

 

fgl_glxgears - Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6 - blackMORE Ops

 

If everything worked well, you can generate xorg.conf file using the following command

aticonfig --initial -f

xorg.conf file will be located at /etc/X11 folder.

 

Step 8 (update grub.cfg file and reboot)

Almost there. AMD cards needs the following parameters passed into grub.cfg during boot. Let’s do that: Edit the grub.cfg file:

leafpad /boot/grub/grub.cfg

you see this:

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.12-kali1-amd64' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root 129deb3c-0edc-473b-b8e8-507f0f2dc3f9
    echo    'Loading Linux 3.12-kali1-amd64 ...'
    linux    /boot/vmlinuz-3.12-kali1-amd64 root=UUID=129deb3c-0edc-473b-b8e8-507f0f2dc3f9 ro initrd=/install/gtk/initrd.gz quiet
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-3.12-kali1-amd64
}

add radeon.modeset=0 in the end of the following line

linux    /boot/vmlinuz-3.12-kali1-amd64 root=UUID=129deb3c-0edc-473b-b8e8-507f0f2dc3f9 ro initrd=/install/gtk/initrd.gz quiet radeon.modeset=0

So the line above becomes this:

linux    /boot/vmlinuz-3.12-kali1-amd64 root=UUID=129deb3c-0edc-473b-b8e8-507f0f2dc3f9 ro initrd=/install/gtk/initrd.gz quiet radeon.modeset=0

Note: 129deb3c-0edc-473b-b8e8-507f0f2dc3f9 UUID would be different for every PC. Use your one here.

grub.cfg - Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6 - blackMORE Ops

Save and exit. Then reboot.

reboot

Once you reboot, your should be able to login in GUI and enjoy your AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6.

 

Step 8.a (interesting findings)

I found something interesting while doing this change. If you check your lsb_release -a output, it shows

Description:    Debian GNU/Linux testing (unknown.new.testing)

 

root@kali:~# lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux testing (unknown.new.testing)
Release:    testing
Codename:    unknown.new.testing

Other version details shows Kali GNU/Linux 1.0.6

root@kali:~# cat  /etc/issue
Kali GNU/Linux 1.0.6 \n \l
root@kali:~# linux-version list
3.12-kali1-amd64
3.7-trunk-amd64
root@kali:~# cat /proc/version 
Linux version 3.12-kali1-amd64 ([email protected]) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Debian 3.12.6-2kali1 (2014-01-06)

Really puzzling.

 

Step 9 (Revert to official Kali Linux Repositories)

At this point you should be logged in to your Kali Linux. But remember that we still have Debian Jessie repositories in our /etc/apt/sources.list file. We need to change it back to Kali Linux Repositories as otherwise you will end up getting testing updates which WILL BREAK STUFFS.  So just open your sources.list using your favorite editor and remove all Debian Jessie repositories.

leafpad /etc/apt/sources.list

Remove or comment out existing lines and add the following:

## Kali Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

This is what your sources.list should look like after this change.You might want to remove Debian Jessie Lines completely.

sources.list - Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6 - blackMORE Ops

Now let’s check lsb_release -a output again to confirm version is shown correctly:

lsb_release -a

Output:

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux Kali Linux 1.0.6
Release:    Kali Linux 1.0.6
Codename:   n/a

Looks good to me.

 

Step 10 (run ATI Catalyst Control Center)

Run ATI Catalyst Control Center from Applications Menu > System Tools > Preferences > ATI Catalyst Control Center.

You should be able to launch amdcccle and make changes as required.

There’s more that you can do using Aticonfig. You can change fan speed or setup multiple monitors or directly check GPU temperatures. I have show them in another post with a compilation of useful aticonfig commands. However, I found that some commands were removed from this version aticonfig. (AMD does it everytime they release a new driver). But most of the commands work. So feel free to check and report them back.

 

Disclaimer: This guide uses Debian Jessie which is testing repositories to make fglrx work. You are advised to remove these from your sources.list file as soon you implement this change. We have tested this method as much as possible, but as always there’s always a possibility something else might be affected. We take no responsibility. Like Linux itself, you use these information’s as it is.

Thanks for reading.

If this helped your issue running AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6, then please share and like us on Facebook/Twitter.

 

You may also like

74 comments

loneranger June 21, 2014 - 3:55 pm

i have intel vedio card so which of your tutorial shoul i follow to intall intel drivers
i m nobbie plz help

Reply
loneranger June 21, 2014 - 4:09 pm

have intel vedio card so which of your tutorial shoul i follow to intall intel drivers
i m nobbie plz help

fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) G33 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 8.0.5

Reply
blackMORE Ops June 21, 2014 - 4:16 pm

You don’t need to do anything for Intel cards. They just work (gfx) but unfortunately Intel cards doesn’t support video acceleration.

Reply
loneranger June 22, 2014 - 8:49 pm

ty mate

Reply
Sutr96 July 7, 2014 - 3:18 am

Works Thanks!!!! :)

Reply
Dragoon August 7, 2014 - 1:05 am

root@localhost:~# apt-get install fglrx-atieventsd fglrx-driver fglrx-control fglrx-modules-dkms -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package fglrx-driver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package fglrx-atieventsd
E: Package ‘fglrx-driver’ has no installation candidate
E: Unable to locate package fglrx-control
E: Unable to locate package fglrx-modules-dkms

Reply
blackMORE Ops August 7, 2014 - 9:51 am

This is an old guide, you didn’t read Line # 1 of it. You are also missing repositories.

Reply
brazenjim August 12, 2014 - 11:19 pm

I am getting the same results and I did not miss Line #1. is there an updated version for this?

Reply
syn August 14, 2014 - 1:28 pm

Adding the following to my sources.list fixed the issue with missing packages:

deb http://ftp.debian.org/debian experimental main non-free contrib

I don’t know if its stable, doubtful considering its marked experimental. It’s working for me at the moment.

Reply
ShadowKali August 24, 2014 - 5:59 pm

Hi guys
i’ve done everting correctly until step 6,it told me “there is no version of fglrx …. to be installed”
what to do then?

Reply
blackMORE Ops August 25, 2014 - 1:45 pm

Check repositories. Hope you’re not using VirtualBox/VMware

Reply
matthew savanh September 26, 2014 - 10:39 am

man i floow every step but when i reboot its seems like hd is active but black screen only

Reply
Kyouma September 29, 2014 - 2:03 am

Hi! Your tuto is very nice and very clear. Great job!
I have one little question though : By chance would you know how I can make it work for hybrid graphics (Intel/Ati 6990m) ? My ati card is off (DynOff) and I would like to benefit from video acceleration… Thank very much!

Reply
Karl October 11, 2014 - 10:08 pm

Worked like a charm, thank you!

Reply
jefti October 24, 2014 - 6:04 pm

Did the full tutorial, (thanks for it) but now Kali is very very slow. Sometimes it freezes for a couple of seconds doing very basic tasks like typing in command or anything. This was right after this install so i think it has to do with this. Any help on this?

Reply
blackMORE Ops October 24, 2014 - 6:15 pm

Disable Tear Free Desktop and then enable Always On [vertical refresh] under the 3D options of Catalyst Control Center.

Reply
jefti October 24, 2014 - 10:01 pm

Thanks for the quick reply. No luck yet, even typing is slow. Also, the gears show at around 50-60 fps. Any other options? Btw, i followed the new tutorial, not this one actually.

Reply
jefti October 31, 2014 - 6:45 pm

Im still experiencing the same difficulties. Linux is allmost unworkable slow. Could you please give me some hints where to look for a solution?

THanks!

Reply
sindbad December 13, 2014 - 7:24 pm

i’m using kali linux 1.09 but my grub.cfg is diffrent from yours
linux /boot/vmlinuz-3.14-kali1-amd64 root=UUID=0e1fe55f-edfb-434b-a6ff-56182e09f446 ro quiet
can you tell me please should i make it like yours or what

Reply
Jens Müller December 30, 2014 - 12:32 pm

Everything worked fine not until i started geting these errors on step 7…..What could possibly be the problem?

root@root:~# fglrxinfo
Segmentation fault
root@root:~# fgl_glxgears
Using GLX_SGIX_pbuffer
Segmentation fault
root@root:~# glxinfo
name of display: :0.0
Segmentation fault
root@root:~# glxgears
Segmentation fault
root@root:~# aticonfig –initial -f
aticonfig: No supported adapters detected
root@root:~#

Reply
michael December 31, 2014 - 8:56 pm

root@kali:~# apt-get install fglrx-atieventsd fglrx-driver fglrx-control fglrx-modules-dkms -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
fglrx-atieventsd : Depends: glx-alternative-fglrx
Recommends: acpid but it is not going to be installed
fglrx-driver : Depends: libfglrx (= 1:14.9+ga14.201-2) but it is not going to be installed
Depends: glx-alternative-fglrx (>= 0.4.1~)
Recommends: libgl1-fglrx-glx (= 1:14.9+ga14.201-2) but it is not going to be installed
Recommends: libgl1-fglrx-glx-i386
fglrx-modules-dkms : Depends: dkms (>= 2.1.0.0) but it is not going to be installed
libc6-i686:i386 : PreDepends: libc6:i386 (= 2.13-38+deb7u6) but 2.19-13 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

Whats going on?

Reply
sid January 26, 2015 - 7:08 pm

I am getting this error can you please help me resolve it

root@localhost:~# apt-get install fglrx-atieventsd fglrx-driver fglrx-control fglrx-modules-dkms
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ppp : Breaks: network-manager (< 0.9.8.8-7~) but 0.9.4.0-10 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@localhost:~#

Reply
linux user February 13, 2015 - 1:49 pm

after i installed fglrx i type fglrxinfo
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 136 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 12
Current serial number in output stream: 12
even that my laptop have a ati graphic card
lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02)
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Manhattan [Mobility Radeon HD 5400 Series] [1002:68e0]
i stell dont get the problem couid any one plz explan
and how can i fix it
i am using kali linux 1.0.9 amd64

Reply
sidsidhsarthain February 15, 2015 - 3:54 pm

Gives me a error can you help me here.

root@SidMaximusJay:~# apt-get install fglrx-atieventsd fglrx-driver fglrx-control fglrx-modules-dkms -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ppp : Breaks: network-manager (< 0.9.8.8-7~) but 0.9.4.0-10 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Reply
Shanky February 18, 2015 - 12:19 am

in the step of generate xorg.conf file , when i use this command ” aticonfig –initial -f ” ( without quotes ) , it said

aticonfig: No supported adapters detected

please help me if u can……….

Reply
Aman February 22, 2015 - 6:16 pm

Can u help me how to install amd hd radeon driver in kali linux 1.1.0 pls

Reply
mp March 25, 2015 - 4:44 pm

In step 3, last command is not working and shows me message like this,”
apt-get install linux-headers-$(uname -r)
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-headers-3.12-kali1-amd64
E: Couldn’t find any package by regex ‘linux-headers-3.12-kali1-amd64’

pls help as soon as you read this..

Reply
blackMORE Ops March 25, 2015 - 4:59 pm

What version of Kali? Do you have correct official repositories added?

Reply
goracio May 2, 2015 - 1:57 am

Thanks for the tutorial anyway, but I have one strage problem.
I am running Kali linux 1.1.0 (as a root user) and I have installed AMD ATI proprietary fglrx driver completely and carefuly following this instruction (eg added line radeon.modeset=0 etc)
At the end of installation process I executed commands:
fglrxinfo
fgl_glxgears
And they worked perfectly, I saw the cube with the gears moving and FPS was counting in terminal. I have created xorg, added the necessary line in GRUB, entered control center. Then I rebooted and wanted to install AMD APP SDK. As I followed the instruction I checked if my AMD ATI properitary driver is ok, so I executed a command:
lsmod | grep fglrx
…and it returned nothing.
Then I executed another commands:
fglrxinfo
lsmod | grep radeon
…they both have returned me the error:
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 139 (ATIFGLEXTENSION)
Minor opcode of failed request: 66 ()
Serial number of failed request: 13
Current serial number in output stream: 13

It also can’t find the amdconfig command and lsmod shows no radeon modules (only some kvm_amd but i guess it is not the matter)
I have googled about my problem but hardly find anything useful.
Could somebody help me?

OR Should i follow THIS guide:
http://www.blackmoreops.com/2013/10/22/install-amd-ati-driver-fglrx-in-kali-linux-1-x/

??

Reply
Horus September 27, 2015 - 9:54 pm

This is my ERROR:
root@Horus:~# fglrxinfo
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 17
Current serial number in output stream: 18

Can you help me?

Reply
1 2

Leave your solution or comment to help others. Comment don't need registration or real email, so feel free.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Us

blackMORE Ops - touch-icon-72x72

blackMORE Ops” does not promote, encourages and excite hackers, its purpose is to make people aware that what is going around. Know Hacking but No Hacking!

Feature Posts

Newsletter