Skip to content

Instantly share code, notes, and snippets.

@genhack
Last active September 30, 2021 20:48
Show Gist options
  • Save genhack/0b528e0351c27b1cb96f to your computer and use it in GitHub Desktop.
Save genhack/0b528e0351c27b1cb96f to your computer and use it in GitHub Desktop.
Readame.libi.sh
RED='\033[0;31m'
NC='\033[0m' # No Color
OUT="/tmp/libimobiledeviceinstallation.log"
#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
#1.2: Cython
echo "${RED} Cython ${NC}"
curl --silent --location 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 ..
#1.5 Curl
echo "${RED} Curl ${NC}"
curl --silent --location http://curl.haxx.se/download/curl-7.44.0.tar.gz -o curl.tar.gz
tar -zxvf curl.tar.gz
cd curl-7.44.0
make && make test
sudo make install
cd ..
echo "${RED} Dipendenze completate... ${NC}"
echo "${RED} Clean dipendenze ${NC}"
rm curl.tar.gz
rm openssl.zip
rm cython.zip
rm bzip2.tar.gz
#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/Chronic-Dev/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
#7: Ideviceinstaller
echo "${RED} Ideviceinstaller ${NC}"
unzip ideviceinstaller.zip
cd ideviceinstaller-master
./autogen.sh --prefix=/usr/
make && sudo make install
#8: Ifuse
echo "${RED} Ifuse ${NC}"------> No problema sul make
unzip ifuse.zip
cd ifuse-master
./autogen.sh --prefix=/usr/
make && sudo make install
#: Libirecovery
echo "${RED} Libirecovery ${NC}"------> No problema sul make
unzip libirecovery.zip
cd libirecovery-master
./autogen.sh --prefix=/usr/
make && sudo make install
#: Idevicerestore
echo "${RED} Idevicerestore ${NC}"------> No problema sul make
unzip idevicerestore.zip
cd idevicerestore-master
./autogen.sh --prefix=/usr/
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
echo "${RED} Configurazione finita. Se non dovesse funzionare puoi vedere il file di log al seguente indirizzo: /tmp/libimobiledeviceinstallation.log
Made By Genhack && Abeltramo #GsmIta {$OUT} ${NC}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment