Jump to content

Bad interpreter error in terminal


Go to solution Solved by Rook,

5 posts in this topic

Recommended Posts

Posted

Hello peoples :p

I have created a shell script that is supposed to install theos. However I get this error in terminal: http://i.imgur.com/jEr9RpI.jpg

 

Here is the code.

 

Hidden Content

    #!/bin/bash
    
    echo "Installing $THEOS"
    echo
    git clone git:­//github.com/coolstar/theos.git
    echo
    echo "Installing Ryan petrich's dumped $THEOS headers"
    echo
    git clone git:-//github.com/rpetrich/iphoneheaders.git
    echo
    echo "Installing SDK..."
    echo
    curl -k -L 'http://iphone.howett.net/sdks/dl/iPhoneOS7.1.sdk.tbz2' | tar -x -j -v -C
    echo
    echo "Installing required debian dependencies"
    echo
    apt-get install libgcc
    echo
    apt-get install org.coolstar.iostoolchain
    echo
    apt-get install org.coolstar.cctools
    echo
    apt-get install git
    echo
    apt-get install org.coolstar.perl
    echo
    apt-get install curl
    echo
    echo "$THEOS and all iphoneos building dependencies have been configured! This script was developed by KingRalph. Extra credit goes to DiDA and BlackHippy for their help with installing debian dependencies"
    echo
    reboot 

 

Any pointers, as to what I am doing wrong?

 

Ps. If you leak my script, I will execute judgement as I see fit ^_^

  • Solution
Posted

Try something like this:

#!/bin/sh
cd /var
echo "Installing THEOS"
echo
/usr/bin/git clone git:­//github.com/coolstar/theos.git && echo "Done."
echo
echo "Installing Ryan petrich's dumped $THEOS headers"
echo
cd /var/theos/headers
/usr/bin/git clone git://github.com/rpetrich/iphoneheaders.git
echo
echo "Installing SDK..."
echo
mkdir /var/theos/sdks/
cd /var/theos/sdks/
wget http://iphone.howett.net/sdks/dl/iPhoneOS7.1.sdk.tbz2 -q
bzip2 -d iPhoneOS7.1.sdk.tbz2
tar xfv iPhoneOS7.1.sdk.tbz2 -C /var/theos/sdks/
rm /var/theos/sdks/iPhoneOS7.1.sdk.tbz2
echo


-----------------------
Now you need to add Coolstar's repo using postinst, modifying the etc/apt/sources.list.d/cydia.list and adding coolstar's repo then running apt-get update then you would run the commands below.

We can work on this but try the above so far. :)


apt-get install libgcc
echo
apt-get install org.coolstar.iostoolchain
echo
apt-get install org.coolstar.cctools
echo
apt-get install git
echo
apt-get install org.coolstar.perl
echo
apt-get install curl
echo
echo "$THEOS and all iphoneos building dependencies have been configured! This script was developed by KingRalph. Extra credit goes to DiDA and BlackHippy for their help with installing debian dependencies"
echo
reboot 

You can set dependencies in the control file also (wget, rsync, iostoolchain). Without those the installation will not proceed. But it would be better if they were inside the postinst script. :D

Posted

You are a genius :worship:

One more question, where can I find a nic template for creating a deb with a postinst, prerm, preinst, etc?

I do not think you can find one like that. For me the easiest way to add those files then package the deb is to:

 

1. Start a new theos project, get everything ready then make package command.

 

2. Enter the newly created "_" folder and then DEBIAN.

 

3. Create and add your postinst, preinstm prerm, postrm files inside there and set the permissions correctly.

 

4. Now you can just "dpkg -b _" so it packages the folder into a .deb ready to install.

 

 

Did you test the postinst above?

Posted

I do not think you can find one like that. For me the easiest way to add those files then package the deb is to:

 

1. Start a new theos project, get everything ready then make package command.

 

2. Enter the newly created "_" folder and then DEBIAN.

 

3. Create and add your postinst, preinstm prerm, postrm files inside there and set the permissions correctly.

 

4. Now you can just "dpkg -b _" so it packages the folder into a .deb ready to install.

 

 

Did you test the postinst above?

I haven't tested the postinst solution yet. I wanted to see if I could find a nic template for postinst first. Thank you for your help! :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • DEAD TARGET: FPS Zombie Games v6.153.0 [ +10 Cheats ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 17 replies
    • DEAD TARGET: FPS Zombie Games v6.153.0 [ +10 Jailed ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 29 replies
    • Run! Goddess v1.0.22 [+4 Jailed Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4



      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
      • 94 replies
    • Run! Goddess v1.0.22 [+4 Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4

       

      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
       
      • 80 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 15 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 27 replies
    • Legend of Survivors V1.2.8 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 49 replies
    • Legend of Survivors V1.2.8 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
      • 132 replies
    • Kitchen Masters v15.0.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4


      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
      • 6 replies
    • Kitchen Masters v15.0.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4
       

      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
      • 11 replies
    • Score Masters v2.2 [ +7 Jailed ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
      • 5 replies
    • Score Masters v2.2 [ +7 Cheats ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
      • 8 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines