Skip to content

Instantly share code, notes, and snippets.

@kirb
Last active October 18, 2022 03:26
Show Gist options
  • Save kirb/2353599 to your computer and use it in GitHub Desktop.
Save kirb/2353599 to your computer and use it in GitHub Desktop.
Install Theos on Linux

Please don't use this. It's old and didn't really even work in the first place. Just keeping it around for historical value.

#!/bin/bash
# based on BigBoss' installsdk3 and installtheos3, included with
# the BigBoss Recommended Tools package. works on machines with
# apt-get. currently untested but probably works.
if [[ "$(whoami)" != "root" ]]; then
echo "Please run this script as root"
[[ -f "/usr/bin/sudo" ]] && sudo "$0" || su "$0"
exit 1
fi
mkdir /var/sdk
pushd /var/sdk
wget http://thebigboss.org/hostedfiles/sdk3.tar.gz -O/tmp/sdk.tar.gz
tar xfv /tmp/sdk.tar.gz
rm /tmp/sdk.tar.gz
popd
pushd /var/sdk/usr/lib
ln -s libgcc_s.1.dylib libgcc_s.10.5.dylib
ln -s dylib1.o dylib1.10.5.o
ln -s crt1.o crt1.10.5.o
ln -s libstdc++.6.0.9.dylib libstdc++.6.dylib
ln -s libstdc++.6.0.9.dylib libstdc++.dylib
ln -s libobjc.A.dylib libobjc.dylib
ln -s libSystem.B.dylib libSystem.dylib
popd
pushd /
wget http://pjtrix.com/iphone/presentations/OSCON2009/iphone-toolchain-linux.tgz -O/tmp/toolchain.tar.gz
tar xfv /tmp/toolchain.tar.gz
rm /tmp/toolchain.tar.gz
popd
ln -s /usr/local/bin/arm-apple-darwin9-gcc /usr/local/bin/arm-apple-darwin-gcc
apt-get update
apt-get -y --force-yes install curl wget git make nano rsync perl build-essential
pushd /var
git clone git://github.com/DHowett/theos.git
popd
@stufever
Copy link

stufever commented Jun 3, 2012

line 27 is wrong, it should be
tar xfv /tmp/toolchain.tar.gz
line 32, no package named "top" in ubuntu 12.04

@kirb
Copy link
Author

kirb commented Jun 3, 2012

@stufever fixed, thanks

@dawncold
Copy link

sdk3.tar.gz means which sdk version?

Copy link

ghost commented Jun 7, 2013

@dawncold it means iOS 3 SDK

@aimon90
Copy link

aimon90 commented Jan 30, 2014

when i paste this curl git.io/linuxtheos -kL | sudo bash nothing happens plz help guys am new at this.

@thedj21
Copy link

thedj21 commented Jun 17, 2014

Your current SYSROOT, "/opt/iphone-sdk-3.0/sysroot", appears to be missing.

How te repair that ? when i execute make ?

@kylefmohr
Copy link

Thank you! This helped me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment