~avz

administrando el sitio elpolla.net junto con su branding elpolla soluciones y telecomunicaciones 2025

Previo

Método 1

Funciona en Debian

Método 2

Funciona en MX Linux (a medias)

sudo apt install nvidia-driver linux-image-amd64

Método 3

sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https dkms curl -y
curl -fSsL https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/nvidia-drivers.gpg > /dev/null 2>&1
echo 'deb [signed-by=/usr/share/keyrings/nvidia-drivers.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /' | sudo tee /etc/apt/sources.list.d/nvidia-drivers.list
sudo apt update
sudo apt install nvidia-driver nvidia-kernel-open-dkms nvidia-smi nvidia-settings

Método 4 (manual de Debian)

Método 5

  1. Descarga el driver desde la página de NVIDIA
  2. chmod +x /ruta/de/NVIDIA-Linux-*.run
  3. su - o sudo su para ser root.
  4. apt update && apt upgrade
  5. apt autoremove $(dpkg -l *nvidia* | grep ii | awk '{print $2}')
  6. apt reinstall xserver-xorg-video-nouveau
  7. reboot
  8. apt install linux-headers-amd64 gcc make acpid dkms libglvnd-core-dev libglvnd0 libglvnd-dev dracut libc-dev
  9. echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
  10. Agrega el parámetro rd.driver.blacklist=nouveau en la línea de GRUB_CMDLINE_LINUX_DEFAULT= en el archivo /etc/default/grub.
  11. update-grub2 o grub-mkconfig -o /boot/RUTA/AL/grub.cfg
  12. mv /boot/initrd.img-$(uname -r) /boot/initrd.img-$(uname -r)-nouveau para hacer un backup.
  13. dracut -q /boot/initrd.img-$(uname -r) $(uname -r)
  14. reboot y hacer el apartado Cambiar runlevel en GRUB de [[Runlevels]] poniendo el runlevel 3.
  15. su - o sudo su para ser root.
  16. ./ruta/a/NVIDIA-Linux-*.run para abrir el binario de NVIDIA. Prestar atención:
    1. Yes en "[...] register the kernel module parameters with DKMS [...]"
    2. Yes en "Install NVIDIA's 32-bit compatibility libraries?"
    3. Yes en "[...] run the nvidia-xconfig utility [...]"



Troubleshooting

1. Me ha tirado a TTY y no me abre Xorg

lspci -k. Si te sale algo como esto:

01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
Subsystem: Acer Incorporated [ALI] Device 153a
Kernel modules: nouveau, nvidia_drm, nvidia

y al hacer sudo modprobe nvidia se queda colgado, prueba a agregar ibt=off al final de la línea linux en GRUB:

  1. Pulsa una flecha cuando estés en GRUB para parar la cuenta atrás, y pulsa la tecla e para editar los parámetros.
  2. Ve a la línea que pone linux, y pulsa la tecla Fin o ve al final de la línea. Añade un espacio eibt=off.
  3. Pulsa ctrl+x o F10 para arrancar.

Más información.