[SOLVED] shell scripts don't run?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] shell scripts don't run?

Postby cheerfulcharlie » Jul 1st, '16, 23:43

I am running Mageia 5.x. I recently downloaded the Pale Moon browser installer. This has a script, pminstaller.sh Pale moon suggests running this as a user, not root. I opened a terminal, (alt - ctrl - f2) and logged in as a user. I changed to the directory where I had downloaded that installer and untar'd it. I changed owner to the user. I chmodded it, chmod 777, to make it usable. But running the pminstaller.sh does not work. Bash sees it, bright green and all, it simply won't run it. Is there something about Mageia 5.x and bash I don't know? This is a new install. Any ideas? Has anybody else tried loading the Pale Moon browser this way?
Last edited by cheerfulcharlie on Jul 3rd, '16, 00:46, edited 1 time in total.
cheerfulcharlie
 
Posts: 7
Joined: Jul 1st, '16, 23:33

Re: shell scripts don't run?

Postby doktor5000 » Jul 2nd, '16, 17:30

Can you actually post the command you run, together with the output you got and the prompt so others can take a look what "it simply won't run it" means in particular?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: shell scripts don't run?

Postby ozky » Jul 2nd, '16, 17:48

It will try call sudo by default you need to run it as root.
I didn't call cmod at all.
Code: Select all
LC_ALL=C ./pminstaller.sh

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for ozky: Sorry, try again.
[sudo] password for ozky:
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: shell scripts don't run?

Postby cheerfulcharlie » Jul 2nd, '16, 23:57

I got everything running again. I was trying to install Pale Moon browser with the pminstaller.sh shell script. Apparently a corrupt download wedged everything. I rebooted, download a new example, and the installer detected a botched install that apparently wedged everything. It allowed me to delete it and install anew and all was well. A reboot and wipe out the old .sh script and try again seems to have done the trick. One of those bizarre little problems that makes computer usage so fun.

emily-litella/
Never mind!
/
cheerfulcharlie
 
Posts: 7
Joined: Jul 1st, '16, 23:33

Re: shell scripts don't run?

Postby isadora » Jul 3rd, '16, 00:19

Please cheerfulcharlie, don't forget to mark the topic [SOLVED].
You can do so, by editing the subject/title in the first message in this topic.
Write [SOLVED] to the left of subject/title, thanks ahead. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest