Installere nvidia skjermkort på 64-bit kali linux
første forsøk med nvidias egne drivere gikk ikke. Se deler av den metoden her:
følger denne nå:
http://www.blackmoreops.com/2014/06/27/kali-linux-1-0-7-kernel-3-14-install-proprietary-nvidia-driver/
root@kali:/home/nr1# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.14-kali1-amd64 is already the newest version.
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@kali:/home/nr1# apt-get install nvidia-kernel-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
glx-alternative-mesa glx-alternative-nvidia glx-diversions nvidia-alternative nvidia-kernel-common nvidia-modprobe
Suggested packages:
nvidia-driver
The following NEW packages will be installed:
glx-alternative-mesa glx-alternative-nvidia glx-diversions nvidia-alternative nvidia-kernel-3.14-kali1-amd64
nvidia-kernel-common nvidia-modprobe
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,757 kB/6,783 kB of archives.
After this operation, 21.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/contrib nvidia-modprobe amd64 334.16-1kali1 [16.5 kB]
Get:2 http://http.kali.org/kali/ kali/non-free nvidia-alternative amd64 331.67-2kali1 [120 kB]
...
Setting up glx-alternative-mesa (0.4.1kali1) ...
update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in auto mode
Setting up glx-alternative-nvidia (0.4.1kali1) ...
update-initramfs: deferring update (trigger activated)
Setting up nvidia-kernel-common (20131102+1~bpo70+1) ...
update-rc.d: We have no instructions for the nvidia-kernel init script.
update-rc.d: It looks like a non-network service, we enable it.
update-initramfs: deferring update (trigger activated)
Setting up nvidia-modprobe (334.16-1kali1) ...
Setting up nvidia-alternative (331.67-2kali1) ...
Processing triggers for nvidia-alternative ...
update-alternatives: using /usr/lib/nvidia/current to provide /usr/lib/nvidia/nvidia (nvidia) in auto mode
Processing triggers for glx-alternative-nvidia ...
update-initramfs: deferring update (trigger activated)
Setting up nvidia-kernel-3.14-kali1-amd64 (331.67+kali1+2kali1+3.14.4-1kali1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64
root@kali:/home/nr1#
OBS! DET KAN HENDE DU SKAL HOPPE OVER DENNE dkms-greia OG GÅ RETT TIL INSTALLASJON AV nvidia-settings
root@kali:/home/nr1# sudo apt-get install nvidia-kernel-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
dkms libgl1-nvidia-glx libgl1-nvidia-glx:i386 libgl1-nvidia-glx-i386:i386 libnvidia-ml1 libvdpau1
linux-headers-amd64 nvidia-driver nvidia-support nvidia-vdpau-driver xserver-xorg-video-nvidia
Suggested packages:
nvidia-kernel-dkms:i386 nvidia-kernel-source:i386
Recommended packages:
linux-image nvidia-settings libgl1-nvidia-glx-i386
The following NEW packages will be installed:
dkms libgl1-nvidia-glx libgl1-nvidia-glx:i386 libgl1-nvidia-glx-i386:i386 libnvidia-ml1 libvdpau1
linux-headers-amd64 nvidia-driver nvidia-kernel-dkms nvidia-support nvidia-vdpau-driver xserver-xorg-video-nvidia
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.0 MB/33.1 MB of archives.
After this operation, 118 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/non-free libgl1-nvidia-glx amd64 331.67-2kali1 [10.2 MB]
...
Conflicting nouveau kernel module loaded │
│ │
│ The free nouveau kernel module is currently loaded and conflicts with the non-free nvidia kernel module. │
│ │
│ The easiest way to fix this is to reboot the machine once the installation has finished. │
│
OK
┌──────────────────────────────┤ Configuring xserver-xorg-video-nvidia ├───────────────────────────────┐
│ │
│ Manual configuration required to enable NVIDIA driver │
│ │
│ The NVIDIA driver is not yet configured; it needs to be enabled in xorg.conf before it can be used. │
│ │
│ Please see the package documentation for instructions. │
│ │
│ <Ok> │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────┘
OK
...
update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64
Setting up nvidia-support (20131102+1~bpo70+1) ...
Setting up libgl1-nvidia-glx:amd64 (331.67-2kali1) ...
Setting up libgl1-nvidia-glx:i386 (331.67-2kali1) ...
Setting up libnvidia-ml1:amd64 (331.67-2kali1) ...
Setting up libvdpau1:amd64 (0.4.1-7) ...
Setting up xserver-xorg-video-nvidia (331.67-2kali1) ...
Setting up nvidia-vdpau-driver:amd64 (331.67-2kali1) ...
Setting up dkms (2.2.0.3-1.2) ...
Setting up nvidia-kernel-dkms (331.67-2kali1) ...
Loading new nvidia-current-331.67 DKMS files...
First Installation: checking all kernels...
Building only for 3.14-kali1-amd64
Building initial module for 3.14-kali1-amd64
Done.
nvidia-current:
Running module version sanity check.
Error! Module version 331.67 for nvidia-current.ko
is not newer than what is already found in kernel 3.14-kali1-amd64 (331.67).
You may override by specifying --force.
nvidia-uvm.ko:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/3.14-kali1-amd64/updates/dkms/
depmod....
DKMS: install completed.
Setting up nvidia-driver (331.67-2kali1) ...
Setting up libgl1-nvidia-glx-i386 (331.67-2kali1) ...
Setting up linux-headers-amd64 (3.14+57+kali1) ...
root@kali:/home/nr1#
root@kali:/home/nr1# apt-get install nvidia-xconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
nvidia-xconfig
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/86.4 kB of archives.
After this operation, 197 kB of additional disk space will be used.
Selecting previously unselected package nvidia-xconfig.
(Reading database ... 362076 files and directories currently installed.)
Unpacking nvidia-xconfig (from .../nvidia-xconfig_304.48-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up nvidia-xconfig (304.48-1) ...
root@kali:/home/nr1#
reboot
vil ikke starte x, får opp tekstbasert innlogging
root@kali #
prøver å
apt-get install nvidia-settings
slik han foreslår
root@kali:~$ sudo apt-get install nvidia-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libxnvctrl0
The following packages will be REMOVED:
libgl1-nvidia-glx libgl1-nvidia-glx:i386 libgl1-nvidia-glx-i386:i386 nvidia-alternative nvidia-driver
nvidia-kernel-3.14-kali1-amd64 nvidia-kernel-dkms xserver-xorg-video-nvidia
The following NEW packages will be installed:
libxnvctrl0 nvidia-settings
0 upgraded, 2 newly installed, 8 to remove and 0 not upgraded.
Need to get 848 kB of archives.
After this operation, 135 MB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/contrib libxnvctrl0 amd64 304.88-1 [16.8 kB]
Get:2 http://http.kali.org/kali/ kali/contrib nvidia-settings amd64 304.88-1 [831 kB]
Fetched 848 kB in 1s (697 kB/s)
(Reading database ... 362080 files and directories currently installed.)
Removing nvidia-driver ...
Removing xserver-xorg-video-nvidia ...
Removing libgl1-nvidia-glx:amd64 ...
Removing libgl1-nvidia-glx-i386 ...
Removing libgl1-nvidia-glx:i386 ...
Removing nvidia-kernel-dkms ...
-------- Uninstall Beginning --------
Module: nvidia-current
Version: 331.67
Kernel: 3.14-kali1-amd64 (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
nvidia-current.ko:
- Uninstallation
- Deleting from: /lib/modules/3.14-kali1-amd64/
rmdir: failed to remove `': No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
nvidia-uvm.ko:
- Uninstallation
- Deleting from: /lib/modules/3.14-kali1-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
------------------------------
Deleting module version: 331.67
completely from the DKMS tree.
------------------------------
Done.
Removing nvidia-kernel-3.14-kali1-amd64 ...
Removing nvidia-alternative ...
Processing triggers for man-db ...
Processing triggers for glx-alternative-nvidia ...
update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in auto mode
update-initramfs: deferring update (trigger activated)
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64
Selecting previously unselected package libxnvctrl0.
(Reading database ... 361826 files and directories currently installed.)
Unpacking libxnvctrl0 (from .../libxnvctrl0_304.88-1_amd64.deb) ...
Selecting previously unselected package nvidia-settings.
Unpacking nvidia-settings (from .../nvidia-settings_304.88-1_amd64.deb) ...
Processing triggers for menu ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Setting up libxnvctrl0 (304.88-1) ...
Setting up nvidia-settings (304.88-1) ...
Processing triggers for menu ...
nr1@kali:~$
tester om det er blitt installert og kjører en modul til nvidia
oot@kali:/home/nr1# lsmod | grep nvidia
nvidia 10651813 0
i2c_core 24265 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvidia,videodev
ser sånn ut
sjekker om nouveau fortsatt kjører:
root@kali:/home/nr1# lsmod | grep nouveau
root@kali:/home/nr1#
ser ikke sånn ut
cat: /etc/modprobe.d/nvidia.conf: No such file or directory
root@kali:/home/nr1# cat /etc/modprobe.d/nvidia-kernel-common.conf
alias char-major-195* nvidia
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_DeviceFileMode=0660
# To enable FastWrites and Sidebus addressing, uncomment these lines
# options nvidia NVreg_EnableAGPSBA=1
# options nvidia NVreg_EnableAGPFW=1
root@kali:/home/nr1# cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf
cat: /etc/modprobe.d/nvidia-blacklists-nouveau.conf: No such file or directory
ser ut som alt skal funke da
reboot
logger inn.
tester: nvidia-settings
msgbox:
"You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server. "
f..k!
nvidia-xconfig
reboot
no gui! didnt work!
Siste jeg prøvde var å:
installere grafikk-kort driver fra Synaptic Packet Manager
søkte på nvidia
Fant den siste for amd64 og installerte, da fjernet den nvidia-settings.
sjekker:
nr1@kali:~$ lsmod | grep nouveau
nr1@kali:~$ lsmod | grep nvidia
nvidia 10651813 0
i2c_core 24265 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvidia,videodev
nr1@kali:~$
nr1@kali:~$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
...
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_MESA_copy_sub_buffer, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
seems that it worked, but didnt try out on game or anything yet.