Installing Nvidia drivers on new Centos Install - can't blacklist Nouveau

by Bachalo   Last Updated September 16, 2019 16:01 PM

Using the following instructions to install Nvidia drivers on a new Centos 7 + MATE install

Attempting to blacklist nouveau by issuing the following command

sudo echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf

I get the following returned

bash: /etc/modprobe.d/blacklist.conf: Permission denied

Not sure why. I am logged in as admin as well.

Answers 2

# echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf

# indicates that you already log in as root. Try again when you already logged as a root by typing sudo su first.

Rizky Wp
Rizky Wp
December 19, 2016 09:01 AM

The reason you are getting permission denied is because you are running two commands. sudo echo 'blacklist nouveau' and >> /etc/modprobe.d/blacklist.conf

Notice the second command isn't sudo anything. You are attempting to write to the file with your own user permissions. The correct way to write to a file as root using echo would be

echo 'blacklist nouveau' | sudo tee -a /etc/modprobe.d/blacklist.conf
Daniel Owsley
Daniel Owsley
September 16, 2019 15:33 PM

Related Questions

ffmpeg compile error with Nvidia Cuda 9.0

Updated March 04, 2018 16:01 PM

CentOS 7.2 "X server "/bin/X" cannot be executed"

Updated April 13, 2018 18:01 PM