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?
Occasionally, some applications and games (eg. some from the Humble Indie Bundle) have .run installers. Before installing using these, check to see if:
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:
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
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.Open a terminal (Applications->Accessories->Terminal).
enter
cd /home/user/Downloads
enter
chmod +x some-app.run
enter
./some-app.run
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).Notes
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.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.To run the file, open a terminal and enter:
Try:
-Worked for installing MyEclipse
open new terminal
then browse to the .run file
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:
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.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: