My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?

I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu?


7 Answers 7


Occasionally, some applications and games (eg. some from the Humble Indie Bundle) have .run installers. Before installing using these, check to see if:

  1. it is available from the Software Centre
  2. it is available as a .deb file, which will open in the Software Center

You can install .run files from the graphical interface, but using a terminal is more likely to give you useful feedback. To install a .run file you need to:

  1. make it executable.
  2. execute it

This is because .run files are just executable programs that do some unknown magic to install the program. This is similar to what .exe installers do on Windows and is different to the normal methods (at best, using the Software Centre, at worst using .deb files) in which applications are installed in a standard way and can be easily removed.

Graphical Method

  1. Right click on the file in the file manager and click 'Properties'. Click the 'Permissions' tab and tick the box that says 'Allow executing file as program'.
  2. Double click the file to execute it.

If this method doesn't work, try using the terminal method.

Terminal Method

Assume the file is called some-app.run and is in the folder /home/user/Downloads. You will need to modify these instructions to fit your situation.

  1. Open a terminal (Applications->Accessories->Terminal).

  2. enter cd /home/user/Downloads

  3. enter chmod +x some-app.run

  4. enter ./some-app.run

  5. if step 4 fails with a message including 'permission denied', try entering sudo ./some-app.run (you will need to enter your password for this).


  • Sometimes you will come across .bin files. These are similar to .run files from the user's point of view.
  • The method to install .run files can be used to execute any file (as long as it has some sort of executable code in it.
  • Be careful using sudo and only use it when absolutely required. Translated into English, it means 'Run this command but allow it to do anything it wants to my computer'. This is why you are prompted for your password.
  • What can i do in the last step if i have an AMD driver? You said to enter: sudo nvidia-xconfig --add-argb-glx-visuals, but that won't work for me cuz i have AMD :/ Commented Mar 4, 2014 at 15:12
  • 2
    It tells me sudo ./filename.run command not found after I enter my sudo password
    – Ky -
    Commented Apr 15, 2015 at 1:18
  • 3
    I just want to say, this is a great answer format. Few assumptions and shortcuts taken. Thank you for spending quality time on it! Commented Jul 1, 2016 at 0:25
  • 3
    @andrew ./filename means filename is a file in the CURRENT directory, execute it. This is to protect us from - imagine we are in a directory with a malicious executable called ls; we do a ls command to see what files are there, but instead call the executable. Thus the need for './'.
    – Vorac
    Commented Dec 14, 2018 at 21:19
  • 1
    @Ky I had the same issue (maybe because I used -x instead of +x), check that you have executable permissions by looking for an x in the ls -l filename.run output. If not, you can try chmod with sudo
    – Alex Li
    Commented Apr 11 at 20:57

Installing .run files in ubuntu:

  • Open a terminal(Applications>>Accessories>>Terminal).

  • Navigate to the directory of the .run file.

  • If you have your *.run in your desktop then type the following in terminal to get into Desktop and press Enter.

    cd ~/Desktop

  • Then type chmod +x filename.run and press Enter.

  • Now type ./filename.run and press Enter, and the installer will run.

  • 3
    Installing drivers by .run files is not recommended for unexperienced users. See dv3500ea's answer.
    – Takkat
    Commented Dec 25, 2010 at 12:35
  • 1
    @Takkat Ya i know that.But his question was how to install .run files that's why i answered that part alone.
    – karthick87
    Commented Dec 25, 2010 at 12:44
  • 1
    perfectly o.k. :) I just felt a comment on this may save some support time ;)
    – Takkat
    Commented Dec 25, 2010 at 21:33
  • It tells me sudo ./filename.run command not found after I enter my sudo password
    – Ky -
    Commented Apr 15, 2015 at 1:18

To run the file, open a terminal and enter:

sudo chmod +x /path/to/file.run
sudo /path/to/file.run


sudo sh "path to your .run file"

-Worked for installing MyEclipse


open new terminal

sudo -s -H

then browse to the .run file

chmod +x xampp-linux-1.8.2-0-installer.run

In a Linux based OS there are no .exe files, and Linux is fully permission based. Whatever you want to do, you first need to give permission.

You are asking how to install .run file?

By default, files you copy on the system don't get the executable permission because by default in Linux the umask is set to 022.

To make your .run file executable or working:

sudo chmod +x filename.run

Then it will ask for the password.

  • sudo is a way to authenticate and run commands as the superuser.
  • chmod +x gives executable permission to that file to all type of users.
  • 3
    @Dishank Often sudo is unnecessary for changing permissions on a .run file--sometimes these files need to be run as root, but usually they're owned by the user's non-root account (because they're usually downloaded in a web browser or with a command like wget, run as the non-root user). Commented Aug 18, 2014 at 18:08

The NVIDIA "runfile" you get with the CUDA Toolkit is a Makeself shell script that is a self-extracting installer. It is used by making the shell script executable with chmod +x and then running the script like ./cuda_xx_linux.run. As proof, here are the first few lines of the file:

# This script was generated using Makeself 2.1.4



You must log in to answer this question.