How to Run a .run File as Root

command linedriversroot

I downloaded a .run file for a Nvidia driver, but when I run it in the terminal it tells me it must be run as root.

I'm a complete noob and I barely even know what root is. I think it's somewhere around the equivalent of admin in windows.
driver run as root

Well, I got the file to run but it turns out that the driver will not recognize my card.
I've heard about other problems with Nvidia cards not working right with 64 bit versions of 12.04.

Best Answer

You need to do two things; both from a Terminal prompt:

  1. Change to the directory where you have the .run file stored.
  2. Type: chmod 755 filename.run
  3. Type: sudo ./filename.run

The above commands will make the file executable and will launch the executable with root-level permissions.

Related Question