How To Deal With .sh Files in Ubuntu

I tried Thinkfree office suit yesteday and decided to download the offline version. The file had .sh extension which I had no clue what to do.  I finally found the solution on Ubuntu forum.

To install .sh file, you need to use terminal.

Execute .sh files

  1. Open Terminal: Ctrl+Shift+T or Applications -> Accessories -> Terminal
  2. Navigate to where you save your file. Make sure you save your file where you want to install the application.
  3. Make your file executable.

    chmod +x yourfile.sh

  4. Execute the file

    sudo ./yourfile.sh

    Replace the name of the .sh file into “yourfile.” Make sure you type everything in correctly, including the file name, the period and lash before the file.

  5. Enter your password and the file will be executed.

Have fun!

About these ads

5 Responses

  1. When I run the command chmod +x yourfile.sh, i get
    chmod: cannot access `yourfile.sh’: No such file or directory

    what do I do?

  2. Attention!
    Script significantly changes the desktop.
    If a previous version of Macbuntu-10.04 is installed it will be overwritten.

    Checking Ubuntu version…
    Passed

    Checkin script user…
    Failed.
    Root user not allowed, please run this script as a regular user.
    Exiting…
    ubumio@miol:~/Downloads/Macbuntu-10.04$

  3. Thanks man. Should have figured that out though.

  4. Thank you! Very helpful, and worked for this Ubuntu newbie first try.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: