Skip to main content

How to install .run files ?




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).

Notes

  • Sometimes you will come across .bin files. These are basically the same as .run files.
  • 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.

Comments

Popular posts from this blog

Simple Python HTTP Server on Linux

Sometimes we need to share files and folders quickly. Often emailing stuff to people tends to be cumbersome. I have noticed that creating a simple http server comes in really handy in such scenarios. Fortunately in linux, it's really simple to create a http server with Python if you don't want to mess around with apache or the likes. All it takes is a single line of code. Okay, let's cut to the chase. Here's how you do it : 1.Change your pwd to the folder that you would like to share cd /home/some_directory 2.Once you have done that, type in the following: sudo python -m SimpleHTTPServer 80 This will create a http server at port 80 and you will get the following message : Serving HTTP on 0.0.0.0 port 80 ... Now open a browser and type http://192.168.1.2:80 assuming that your ip address is 192.168.1.2 Press ctrl+c to stop the server