Skip to content

Instantly share code, notes, and snippets.

@matteyeux
Last active October 7, 2021 17:40
Show Gist options
  • Save matteyeux/c8cab78a16545fda0dea2e61e6c2368a to your computer and use it in GitHub Desktop.
Save matteyeux/c8cab78a16545fda0dea2e61e6c2368a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Script to build futurerestore for GNU/Linux
# tested on Debian 9 and Ubuntu 18.04.
# Install libimobiledevice before running this script
# (https://gist.github.com/matteyeux/d7d8041a41ee8d664aaf5c3b99556ada)
# install liblzfse
git clone https://github.com/lzfse/lzfse.git
make -C lzfse && sudo make -C lzfse install
# install libfragmentzip needed by futurerestore
git clone https://github.com/encounter/libfragmentzip.git
cd libfragmentzip
./autogen.sh
make && sudo make install
cd ..
# clone
git clone https://github.com/s0uthwest/futurerestore.git
cd futurerestore
# download submodules
git submodule update --init
# there is a submodule in a submodule
cd external/tsschecker
git submodule update --init
cd ../..
# tricky fix because of missing inclusion
content=$(cat external/img4tool/img4tool/lzssdec.c)
echo -en "#include <sys/types.h>\n$content)" > external/img4tool/img4tool/lzssdec.c
./autogen.sh
make
sudo ldconfig
echo "futurerestore for Linux should be in $(pwd)/futurerestore/futurerestore"
@iambenmitchell
Copy link

Could you make one for southwests tssaver too

@matteyeux
Copy link
Author

As it is needed for futurerestore, it is built in external/tsschecker.

@salvatore8686
Copy link

Thanks

@Alosonga71
Copy link

it ask me for username and pass, But why when i entered them it refuse to continue

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