Kali: Difference between revisions

From cchtml.com
(added aticonfig option --adapter=all in case there's multiple videocards, without this it will onnly add one)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Read Me First==
==Read Me First==
Look into http://wiki.cchtml.com/index.php/Debian for more info.  
Look into [[Debian]] for more info.  


Separate Discussion here: http://forums.kali.org/showthread.php?17681-Install-AMD-ATI-Driver-in-Kali-Linux-1-x
Original Authors post here: [http://www.blackmoreops.com/?p=1 Install AMD ATI Driver (fglrx) in Kali Linux 1.x ]


Following instructions are for Kali Linux 1.0
Following instructions are for Kali Linux 1.0
Line 33: Line 33:
Install the appropriate linux-headers
Install the appropriate linux-headers
  apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')  
  apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')  
Install the fglrx-driver packages
Install the fglrx-driver packages, if you are using 64-bit Kali Linux, also install the 32-bit fglrx-glx-ia32 libraries for use with 32-bit programs.  
apt-get install fglrx-driver fglrx-control fglrx-glx fglrx-atieventsd fglrx-modules-dkms
  apt-get install fglrx-driver fglrx-control fglrx-glx fglrx-atieventsd fglrx-modules-dkms fglrx-glx-ia32
If you are using 64-bit Kali Linux, install the 32-bit fglrx libraries for use with 32-bit programs.  
  apt-get install fglrx-glx-ia32
  ...
  ...
  Error! Bad return status for module build on kernel: 3.7-trunk-amd64 (x86_64)
  Error! Bad return status for module build on kernel: 3.7-trunk-amd64 (x86_64)
Line 45: Line 43:
Now we need to patch the kernel. Download patch from(I've personally used this path but users are advised to check/verify it before installing.)
Now we need to patch the kernel. Download patch from(I've personally used this path but users are advised to check/verify it before installing.)


https://docs.google.com/file/d/0B4VfWnVnFzi4a3R6N2xnOC1TWlU/edit?pli=1
[http://www.blackmoreops.com/wp-content/uploads/2013/10/fglrx-3.71.patch fglrx-3.7.patch]


Download the file '''fglrx-3.7.patch''' and copy to /root
Download the file '''[http://www.blackmoreops.com/wp-content/uploads/2013/10/fglrx-3.71.patch fglrx-3.7.patch]''' and copy to /root


Copy the file '''fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb''' (check if amd64 architecture or i386, based on which version you're using filename might be slightly different)
Copy the file '''fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb''' (check if amd64 architecture or i386, based on which version you're using filename might be slightly different)
Line 91: Line 89:


Generate xorg configuration
Generate xorg configuration
  aticonfig --initial -f
  aticonfig --initial -f --adapter=all


==Add Grub options for radeon and reboot==
==Add Grub options for radeon and reboot==
Line 116: Line 114:
Save and exit
Save and exit
   reboot
   reboot
==Extra goodies==
Cheers 'n enjoy, @[http://www.blackmoreops.com/ blackMORE Ops]
Enable Laptop mode to save power and lower CPU temp:
leafpad /proc/sys/vm/laptop_mode
If you have '''0''' in the file, that means laptop mode is disabled.


Replace the number with '''5'''.
Save and exit.
==Automated Script==
Our user 'skysploit' created this fantastic script to automate the whole process (except modifying grub.cfg file). Download the script, save anywhere
https://docs.google.com/file/d/0B3s5DO68wWL-X1BEb0tOTXRPS1k/edit?usp=sharing
Make it executable and run it:
chmod +x amdinstall_kali_linux.sh
./amdinstall_kali_linux.sh
Follow on screen instructions.
Source: [http://forums.kali.org/showthread.php?17681-Install-AMD-ATI-Driver-in-Kali-Linux-1-x Kali Linux Forums]
Cheers 'n enjoy, @blackMORE
[[Category:Distributions]]
[[Category:Distributions]]

Latest revision as of 14:01, 26 October 2013

Read Me First

Look into Debian for more info.

Original Authors post here: Install AMD ATI Driver (fglrx) in Kali Linux 1.x

Following instructions are for Kali Linux 1.0

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

Remove any old fglrx drivers

apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx

Adding Correct Repo

Check your /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130425-10:30]/ kali contrib main non-free 
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130425-10:30]/ kali contrib main non-free 
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

Do and apt-get update

apt-get update

Install Linux Headers and Drivers from Repo

Install the appropriate linux-headers

apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') 

Install the fglrx-driver packages, if you are using 64-bit Kali Linux, also install the 32-bit fglrx-glx-ia32 libraries for use with 32-bit programs.

apt-get install fglrx-driver fglrx-control fglrx-glx fglrx-atieventsd fglrx-modules-dkms fglrx-glx-ia32
...
Error! Bad return status for module build on kernel: 3.7-trunk-amd64 (x86_64)
Consult /var/lib/dkms/fglrx/12-6+point/build/make.log for more information.

Download patch and patch .deb.file

Now we need to patch the kernel. Download patch from(I've personally used this path but users are advised to check/verify it before installing.)

fglrx-3.7.patch

Download the file fglrx-3.7.patch and copy to /root

Copy the file fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb (check if amd64 architecture or i386, based on which version you're using filename might be slightly different)

to /root

from

/var/cache/apt/archives

cp /var/cache/apt/archives/fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb /root

Patch and repack to a new .deb

mkdir -p extract/DEBIAN
dpkg-deb -x fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb extract/
dpkg-deb -e fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb extract/DEBIAN
cp fglrx-3.7.patch extract/usr/src/fglrx-12-6+point/
cp Downloads/fglrx-3.7.patch extract/usr/src/fglrx-12-6+point/
cd extract/usr/src/fglrx-12-6+point/
patch -p0 < fglrx-3.7.patch
patching file firegl_public.c
Hunk #1 succeeded at 3890 (offset -2 lines).
Hunk #2 succeeded at 3920 (offset -2 lines).
Hunk #3 succeeded at 3935 (offset -2 lines).
Hunk #4 succeeded at 3944 (offset -2 lines).
Hunk #5 succeeded at 3982 (offset -2 lines).
Hunk #6 succeeded at 4013 (offset -2 lines).
Hunk #7 succeeded at 4023 (offset -2 lines).
Hunk #8 succeeded at 4044 (offset -2 lines).
cd /root
mkdir build
dpkg-deb -b extract/ build/
dpkg-deb: building package `fglrx-modules-dkms' in `build//fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb'.
cd build
dpkg -i *.deb
...
DKMS: install completed.

Generate xorg configuration

aticonfig --initial -f --adapter=all

Add Grub options for radeon and reboot

leafpad /boot/grub/grub.cfg

you see this:

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.7-trunk-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 7f79eea2-1668-407f-b7ed-d5613fecd26c
	echo	'Loading Linux 3.7-trunk-amd64 ...'
	linux	/boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.7-trunk-amd64
 }

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

linux	/boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet

So the line above becomes this:

linux	/boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet radeon.modeset=0

Note: "fee64a58-2e36-43f5-962d-8c33f936d452" UUID would be different for every PC. Use your one here. Save and exit

 reboot

Cheers 'n enjoy, @blackMORE Ops