sh

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
McQ
Level 1
Level 1
Posts: 2
Joined: Sun Mar 08, 2009 7:39 am

sh

Postby McQ » Sun Mar 15, 2009 3:02 pm

Trying to install PunkBuster manually update. Downloaded the file "pbsetup.run" put it in the pb folder. Open the folder as root.
Opened the terminal (I am root), wrote "sh pbsetup.run" (without ") Got a "18: Syntax error: "(" unexpected" .
What am I doing wrong? :?: And how to do right? Grateful for some help.

User avatar
rbanavara
Level 4
Level 4
Posts: 230
Joined: Mon Jun 02, 2008 9:07 am

Re: sh

Postby rbanavara » Sun Mar 15, 2009 10:18 pm

its a problem with the pbsetup.run program or you may not be executing the way it needs to be run (I dont have knowledge on PunkBuster, I am talking purely from shell script perspective). try this:

cd <path to pbsetup.run folder>
sudo sh ./pbsetup.rn

If this still doens not help, you may have check line 18 of pbsetup.run file.
Don't fix it if it ain't broken, don't break it if you can't fix it -Husse

User avatar
garda
Level 5
Level 5
Posts: 743
Joined: Sat Aug 30, 2008 2:55 am
Location: /root

Re: sh

Postby garda » Sun Mar 15, 2009 10:29 pm

You have to 'decompress' the pbsetup script with upx-ucl. Therefore, install the said package using Synaptic or apt then execute it like this:

Code: Select all

cd /path/to/the/script/directory/

Code: Select all

upx -d pbsetup.run

Code: Select all

sudo ./pbsetup.run

If the last command does not work, try this one:

Code: Select all

sudo sh ./pbsetup.run

Good luck.

User avatar
McQ
Level 1
Level 1
Posts: 2
Joined: Sun Mar 08, 2009 7:39 am

Re: sh

Postby McQ » Thu Mar 19, 2009 2:52 pm

Thx for the help!
I really feel like the noobie I am :oops:
Just to right click the file, "preferences", "rights" and "make the file executable" So easy! :oops:


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 8 guests