opening files different ways

Asked by catapolt

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
catapolt (d-root-clanmofo-net) said :
#1

k i just tried a new way wich seems to work a bit better so im slowly getting there though i still need help plz i type this in the terminal
sudo -s /home/catapolt/ts2/setup.sh
and using that should be admin though im getting permission denied

Revision history for this message
Olivier (olivier-lacroix) said :
#2

Hi !

try

sudo sh /home/catapolt/ts2/setup.sh

Revision history for this message
Luky Winarto (luckyborneo) said :
#3

perhaps you have to change the file into executable:
$ sudo chmod +x /home/catapolt/ts/setup.sh

then type:
$ cd /home/catapolt/ts
$ sudo ./setup.sh

Can you help with this problem?

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

To post a message you must log in.