|
RED='\033[0;31m' |
|
NC='\033[0m' # No Color |
|
|
|
#1: Scarico dipendenze |
|
echo "${RED} Downlaod Dipendenze & installazione ... ${NC}" |
|
apt-get install -y --force-yes automake autoconf-archive libtool libssl-dev libgcrypt11-dev libp11-kit-dev libcurl4-gnutls-dev libusb-1.0 libzip-dev libfuse-dev clutter-1.0 clutter-gtk-1.0 libreadline5-dev libreadline-dev |
|
|
|
|
|
#1.2: Cython |
|
echo "${RED} Cython ${NC}" |
|
curl --silent --location http://cython.org/release/Cython-0.23.4.zip -o cython.zip |
|
unzip cython.zip |
|
cd Cython-0.23.4 |
|
python setup.py install |
|
cd .. |
|
|
|
#1.4: OpenSsl |
|
echo "${RED} OpenSSl ${NC}" |
|
curl --silent --location https://github.com/openssl/openssl/archive/master.zip -o openssl.zip |
|
unzip openssl.zip |
|
cd openssl-master |
|
./config --prefix=/usr/ |
|
make && make test |
|
sudo make install |
|
cd .. |
|
|
|
echo "${RED} Dipendenze completate... ${NC}" |
|
echo "${RED} Clean dipendenze ${NC}" |
|
rm openssl.zip # Rimuovo lo zip |
|
rm -r openssl* # Rimuovo la cartella |
|
rm cython.zip # Rimuovo lo zip |
|
rm -r Cython* # Rimuovo la cartella |
|
|
|
|
|
#1: Creo cartella libimobiledevice |
|
|
|
mkdir libimobiledevice |
|
cd libimobiledevice |
|
|
|
#2: Scarico pacchetti |
|
echo "${RED} Download In corso Libimobile Device Full... ${NC}" |
|
curl --silent --location https://github.com/libimobiledevice/libplist/archive/master.zip -o libplist.zip |
|
curl --silent --location https://github.com/libimobiledevice/libusbmuxd/archive/master.zip -o libusbmuxd.zip |
|
curl --silent --location https://github.com/libimobiledevice/libimobiledevice/archive/master.zip -o libimobiledevice.zip |
|
curl --silent --location https://github.com/libimobiledevice/libideviceactivation/archive/master.zip -o libimobiledeviceactivation.zip |
|
curl --silent --location https://github.com/libimobiledevice/libirecovery/archive/master.zip -o libirecovery.zip |
|
curl --silent --location https://github.com/libimobiledevice/idevicerestore/archive/master.zip -o idevicerestore.zip |
|
curl --silent --location https://github.com/libimobiledevice/ideviceinstaller/archive/master.zip -o ideviceinstaller.zip |
|
curl --silent --location https://github.com/libimobiledevice/ifuse/archive/master.zip -o ifuse.zip |
|
|
|
echo "${RED} Download Completato... ${NC}" |
|
|
|
#3: Libplist |
|
echo "${RED} Libplist ${NC}" |
|
unzip libplist.zip |
|
cd libplist-master |
|
./autogen.sh --prefix=/usr/ |
|
make && sudo make install |
|
cd .. |
|
|
|
#4: Libusbmuxd |
|
echo "${RED} Libusbmuxd ${NC}" |
|
unzip libusbmuxd.zip |
|
cd libusbmuxd-master |
|
./autogen.sh --prefix=/usr/ |
|
make && sudo make install |
|
cd .. |
|
|
|
|
|
#5: Libimobiledevice |
|
echo "${RED} Libimobiledevice ${NC}" |
|
unzip libimobiledevice.zip |
|
cd libimobiledevice-master |
|
./autogen.sh --prefix=/usr/ |
|
make && sudo make install |
|
cd .. |
|
|
|
#6: libimobiledeviceactivation |
|
echo "${RED} libimobiledeviceactivation ${NC}" |
|
unzip libimobiledeviceactivation.zip |
|
cd libideviceactivation-master |
|
./autogen.sh --prefix=/usr/ |
|
make && sudo make install |
|
cd .. |
|
|
|
#7: Ideviceinstaller |
|
echo "${RED} Ideviceinstaller ${NC}" |
|
unzip ideviceinstaller.zip |
|
cd ideviceinstaller-master |
|
./autogen.sh --prefix=/usr/ |
|
make && sudo make install |
|
cd .. |
|
|
|
#8: Ifuse |
|
echo "${RED} Ifuse ${NC}" |
|
unzip ifuse.zip |
|
cd ifuse-master |
|
./autogen.sh --prefix=/usr/ |
|
make && sudo make install |
|
cd .. |
|
|
|
#: Libirecovery |
|
echo "${RED} Libirecovery ${NC}" |
|
unzip libirecovery.zip |
|
cd libirecovery-master |
|
./autogen.sh |
|
make && sudo make install |
|
cd .. |
|
ln -s /usr/local/lib/libirecovery.so.2 /usr/lib/libirecovery.so.2 |
|
|
|
#: Idevicerestore |
|
echo "${RED} Idevicerestore ${NC}" |
|
unzip idevicerestore.zip |
|
cd idevicerestore-master |
|
./autogen.sh |
|
make && sudo make install |
|
cd .. |
|
|
|
echo "${RED} Clean Installer ${NC}" |
|
rm libplist.zip |
|
rm libusbmuxd.zip |
|
rm libimobiledevice.zip |
|
rm libimobiledeviceactivation.zip |
|
rm ifuse.zip |
|
rm libirecovery.zip |
|
rm idevicerestore.zip |
|
rm ideviceinstaller.zip |
|
# Cancello le cartelle che non serviranno più |
|
rm -r ifuse* |
|
rm -r libusb* |
|
rm -r libplist* |
|
echo "${RED} Configurazione finita. |
|
Made By Genhack && Abeltramo #GsmIta {$OUT} ${NC}" |