Last active
May 6, 2021 22:00
-
-
Save JohnCoates/ea7b8002b77ab7c1c758384e55538603 to your computer and use it in GitHub Desktop.
THEOS on Windows 10 with Linux subsystem
This file contains hidden or 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
# Turn on Developer Mode | |
# Open Settings -> Update and Security -> For developers | |
# Don't reboot yet | |
# Run in powershell administrator: | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
# accept reboot | |
## Install Ubuntu | |
# run in powershell administrator: | |
lxrun /install /y | |
bash | |
apt-get update | |
sudo apt-get install -y build-essential git unzip libio-compress-perl | |
sudo git clone --recursive git://github.com/theos/theos.git /opt/theos | |
cd /opt/theos/toolchain | |
sudo wget https://developer.angelxwind.net/Linux/ios-toolchain_clang%2bllvm%2bld64_latest_linux_x86_64.zip -O LinuxToolchain.zip | |
sudo unzip LinuxToolchain.zip && sudo rm -f LinuxToolchain.zip | |
sudo rm -rf /opt/theos/sdks/* | |
git clone https://github.com/theos/sdks /opt/theos/sdks | |
# Add $THEOS | |
echo export THEOS="/opt/theos" >> ~/.bashrc | |
echo export PATH="\$THEOS/bin:\$PATH" >> ~/.bashrc | |
echo alias theos="\$THEOS/bin/nic.pl" >> ~/.bashrc | |
echo "umask 0022" >> ~/.bashrc | |
source ~/.bashrc | |
# install newer libstdc++ | |
cd /tmp | |
wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb -O libstdc++.deb | |
dpkg-deb -x libstdc++.deb libstdc++ | |
cp libstdc++/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 /usr/lib/x86_64-linux-gnu/ | |
cd /usr/lib/x86_64-linux-gnu/ | |
ln -sf libstdc++.so.6.0.21 libstdc++.so.6 | |
# fix fakeroot | |
sudo sed -i 's/\$(FAKEROOT) -r/fakeroot-tcp/g' /opt/theos/makefiles/package/deb.mk | |
## References | |
# https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
# https://docs.microsoft.com/en-us/windows/wsl/install-win10#for-anniversary-update-and-creators-update-install-using-lxrun | |
# https://github.com/Akebu/Theos-on-WSL#workaround-for-fakeroot | |
# http://bbs.iosre.com/t/windows-10-theos/7139 |
so after that how to start working?
Answering @shayshtern, you just type: "theos" on a desired working folder.
I, myself, create a folder on my linux home:
# mkdir ~/tweaks
then:
# cd ~/tweaks
# theos
Does anyone knows how to fix the SDKs issues? That doesn't compile the code?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 33, the link is broken to download libstdc++, here is another official link: http://ubuntu.mirrors.tds.net/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb