Opening installers and other files

Asked by magnettis

I just installed ubuntu on my laptop. Everything was fine until i decided to try and download a program. One of them came as a .zip, so I unpacked it and opened the setup file (usually a .sh file) however, the file opens up as a script in text editor. How do I get it to open the right way? I tried opening it with other applications, but I don't know which to use.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Super (super-man) said :
#1

Hello magnettis,
Well, if you want to install a package, you can use the Synaptic Package Manager located in System > Administration or if you prefer the command line, use a terminal (man apt).
You can take a look here too: https://help.ubuntu.com/

Thanks

Revision history for this message
magnettis (boredstuff) said :
#2

this helps a bit, but when I tried installing something like NDISwrapper and i went into Synaptic, I couldn't find out how to install that program from there.

Revision history for this message
Marshall Scorcio (marshalium) said :
#3

To run a setup script (or any script) you will want to make it executable and run it from the terminal. Like this.

Open up a terminal:
Applications -> Accessories -> Terminal

Change to the directory where the setup script is located:
"cd location-of-script" (replace location-of-script with the directory where you extracted the files)

Make the file executable:
"chmod +x setup.sh" (or whatever the script is called)

Then run it either as root for system wide install:
"sudo ./setup.sh"

Or as a normal user to install to somewhere in your home directory:
"./setup.sh"

I hope that makes sense.

Revision history for this message
Janine (redreactions) said :
#4

I came across this answer before posting my own question and just wanted to say thanks Marshall Scorcio as your answer solved my problem :-)

Can you help with this problem?

Provide an answer of your own, or ask magnettis for more information if necessary.

To post a message you must log in.