Sometimes when you need to install a software on Ubuntu, the installation package only comes in .sh files instead of standard .deb package for Debian. Well the .sh itself has to be executable, however when you got it from internet repository its attribute is set to non-executable. To change this file attribute you need to either Right Click the .sh file from your file explorer, select file property -> file permission and make it is executable.
You can also change it via the command line console in your Ubuntu.
Open a Terminal Window. If you downloaded the file to your Ubuntu desktop you probably need to
cd /home/userid/Desktop
ls to see if the file exists.
chmod 777 /path/some_linux_installation.sh
After you changed the file attribute, you can execute those file directly via terminal window or click it when you use file manager. Your installation file should be working now.












4 comments for this entry ↓
1 dc // Nov 18, 2008 at 9:39 am
it did not work
terminal loads 3 lines
terminal disappears
…please advise
2 serge // Dec 28, 2008 at 10:55 am
In my case (when netbeans were installed) it worked.
Thank you.
3 zhang // Mar 31, 2009 at 2:17 pm
thanks ,it is very useful to me now
4 Ram // Apr 11, 2009 at 8:56 am
fine man ……….. i got the problem of .sh file while installing netbeans 6.5 ………… when i followed the steps you told here ………… i installed it …………….great post continue……………thank you very much
Leave a Comment