Sometimes when you download any application on Ubuntu or any other Linux distro, they are .sh files. You double-click on them, nothing happens. And there is no mention to install .sh files in help as well. So how do you install applications with .sh installers/scripts.
There are couple of ways of doing that:
Method 1:
- Open Terminal.
- Go to the directory you have the file.
- Type ‘./filename.sh’ and hit Enter.
- Or you can type ‘bash filename.sh’.
Method 2: (Easiest way)
- Right-click on the file.
- Go to Properties. And then the ‘Permissions’ tab.
- Check ‘Allow executing file as program’. Say OK.
- Now double-click on the file the way you open any other file.
- That should install the application by running the script in .sh file.
- Follow the prompts (if any) while installation which should look the same as they look in Windows.
- That’s it. You are all set.
Hope this quick tip helped you install the application.






![6 Must Read Articles on the web Jan 29 – Feb 4, 2012 : [Knowliz Weekly]](http://www.knowliz.com/wp-content/uploads/2012/01/business-articles-50x50.jpg)


[...] http://www.knowliz.com/2008/08/how-to-installrun-sh-file-in-linux.html [...]
I’m trying to install Brasero on a ubuntu 9.10 notebook remix, and when I do the ./configure, it does what it’s supposed to, but when I try to do the make, it wont work!
[...] How to install/run .sh file in Linux? [...]
Still cant understand the first method, but method two worked perfectly. Thank you so much for that answer, I have been combing the Internet for hours looking for this.
Hi There Carlos,
Actually in first method, you have to type in the directory location of the file. For example, if you saved the file on Desktop then you will enter the following command in terminal:
foobar: cd ~/Desktop
and then follow the rest steps mentioned above.
Not sure if that is what you asked.
Please reply if it answered your doubt.
Cheers
Anurag Bansal
How to install/run .sh file in Linux?: Sometimes when you download any application on Ubuntu or any other.. http://tinyurl.com/5abfju