Created
May 6, 2021 22:00
-
-
Save uchks/e2bed4a45294797ef6fae185e6fa1630 to your computer and use it in GitHub Desktop.
THEOS on Windows 10 with WSL 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Ubuntu (20.0.4) via the Command Below in Windows Terminal / CMD / Powershell | |
wsl --install -d Ubuntu # Wait for the initial install to finish, and then follow the prompts to setup your user account. | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install fakeroot git perl build-essential libtinfo5 | |
sudo update-alternatives --set fakeroot /usr/bin/fakeroot-tcp # Fixes FakeRoot | |
echo "export THEOS=~/theos" >> ~/.profile # Adds $THEOS | |
# As stated on the Theos wiki page, you must restart your shell for the THEOS var to take effect. | |
# Close out your current Terminal and type the following in a new window: | |
echo $THEOS # Ensure the path is something of likes of "/home/username/theos" | |
git clone --recursive https://github.com/theos/theos.git $THEOS | |
curl -LO https://github.com/sbingner/llvm-project/releases/download/v10.0.0-2/linux-ios-arm64e-clang-toolchain.tar.lzma | |
TMP=$(mktemp -d) | |
tar --lzma -xvf linux-ios-arm64e-clang-toolchain.tar.lzma -C $TMP | |
mkdir -p $THEOS/toolchain/linux/iphone | |
mv $TMP/ios-arm64e-clang-toolchain/* $THEOS/toolchain/linux/iphone/ | |
rm -rf $TMP linux-ios-arm64e-clang-toolchain.tar.lzma | |
rm -rf $THEOS/sdks/ | |
git clone https://github.com/theos/sdks $THEOS/sdks/ | |
# Simply open Ubuntu and navigate to your desired directory (using cd /path/to/folder) | |
# and type "$THEOS/bin/nic.pl" to open the instance generator! | |
# Fixing Control Error Permissions = 777 | |
sudo nano /etc/wsl.conf | |
[automount] | |
options="metadata" | |
# Restart WSL (LxssManager Service) | |
## References | |
# https://github.com/theos/theos/wiki/Installation-Linux | |
# https://www.reddit.com/r/jailbreakdevelopers/comments/iumuh8/tutorial_theos_on_windows_using_wsl_arm64arm64e/ | |
# https://gist.github.com/JohnCoates/ea7b8002b77ab7c1c758384e55538603 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment