Skip to content

Instantly share code, notes, and snippets.

@Devjam81
Forked from kirb/README.md
Last active August 29, 2015 14:22
Show Gist options
  • Save Devjam81/54ab109704ff28683bfa to your computer and use it in GitHub Desktop.
Save Devjam81/54ab109704ff28683bfa to your computer and use it in GitHub Desktop.

Theos installer for Linux

by Ad@m; based on installsdk3 and installtheos3 by BigBoss

NOTE: This isn't any better than using the on-device toolchain. You should really use that instead.

Usage

Download the script and pipe it to bash as root, like so:

curl git.io/linuxtheos -kL | sudo bash

Once the script returns you to the bash prompt, Theos is ready to go! Check out the iPhone Dev Wiki for more on how Theos works.

#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment