Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How do I run .sh files in Terminal?

I've been trying to install the altitude.sh file I got from altitudegame.com. but I don't know how to install it. And it is not in the Software Center either. I found the game here.

share|improve this question
add comment

marked as duplicate by Eliah Kagan, jokerdino, Mitch, devav2, Tom Brossman Oct 7 '12 at 11:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 4 down vote accepted

First you need to go through GUI, when you right click on the file and goto permissions tab then you get an option to make the file executable as in the picture. enter image description here

and then you have two methods to install the game.

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)

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.

share|improve this answer
1  
Method 1 works after making the file executable. –  Rinzwind May 5 '11 at 20:58
    
@Rinzwind Yes, and first I described how to make it executable. –  Binarylife May 5 '11 at 21:04
    
This is good if you are not as familiar to a terminal. :) –  Alvar May 5 '11 at 22:27
add comment

Htorque told me to type in a terminal when I had the file in my home folder.

chmod +x altitude.sh

And then type

./altitude.sh

And now it works great, thanks!

share|improve this answer
    
I prefer this way, I don't like the graphic way too much, sorry. –  Alvar May 5 '11 at 21:33
    
This is useful too , and it's as you like and prefer –  Binarylife May 5 '11 at 22:01
    
Next time just specify your requirements in your original question. If your questions are vague you'll get different answers. –  Jorge Castro May 5 '11 at 22:41
    
I know I have some questions that are vague, but is this question vague? –  Alvar May 6 '11 at 8:38
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.