Skip to content

Instantly share code, notes, and snippets.

@bsautner
Created January 30, 2025 16:49
Show Gist options
  • Save bsautner/1f755fe64ab707ca65218118df56025e to your computer and use it in GitHub Desktop.
Save bsautner/1f755fe64ab707ca65218118df56025e to your computer and use it in GitHub Desktop.
preparing ubuntu to build nvidia
dpkg --add-architecture i386
apt update && sudo apt upgrade -y
uname -r
ls /usr/src/linux-headers-$(uname -r)
apt install --reinstall build-essential dkms linux-headers-$(uname -r) wget -y
sudo bash -c "echo 'blacklist nouveau' > /etc/modprobe.d/blacklist-nouveau.conf"
sudo bash -c "echo 'options nouveau modeset=0' >> /etc/modprobe.d/blacklist-nouveau.conf"
sudo update-initramfs -u
apt install libc6:i386 libvulkan1
sudo rm -rf /lib/modules/$(uname -r)/build/* && sudo apt install --reinstall linux-headers-$(uname -r)
#reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment