Created
January 30, 2025 16:49
-
-
Save bsautner/1f755fe64ab707ca65218118df56025e to your computer and use it in GitHub Desktop.
preparing ubuntu to build nvidia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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