Last active
August 29, 2015 14:03
-
-
Save rhoconlinux/71e373a66cb671209f1b to your computer and use it in GitHub Desktop.
32 Bits Atraci Installer
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
#!/bin/bash | |
clear; | |
echo "Checkeando Instalaciones Previas e Instalando dependencias..." | |
rm -R $HOME/.installer-atraci/ ; | |
clear; | |
rm -R /tmp/.installer-atraci/ ; | |
clear; | |
echo "Eliminando instalaciones de Atraci en el sistema" | |
sudo rm /usr/share/applications/atraci.desktop; | |
sudo rm /usr/bin/atraci; | |
sudo rm /usr/share/icons/atraci.svg; | |
clear; | |
echo "Checkeando Instalaciones Previas e Instalando dependencias..." | |
sudo apt-get install libudev1 nodejs -y ; | |
sudo apt-get install -f -y ; | |
sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /usr/lib/libudev.so.0; | |
clear; | |
echo "Dependencias e Instalaciones Previas... ✓" | |
echo "Instalación:descargando Atraci... (46mb)" | |
mkdir -p $HOME/.installer-atraci && cd $HOME/.installer-atraci && pwd | |
wget https://s3.amazonaws.com/Atraci/linux32/Atraci.tgz -O atraci.tgz | |
clear; | |
echo "Dependencias e Instalaciones Previas... ✓" | |
echo "Instalación: descargando... ✓" | |
echo "Instalación: descomprimiendo... " | |
tar -xvzf atraci.tgz | |
clear; | |
echo "Dependencias e Instalaciones Previas... ✓" | |
echo "Instalación: descargando... ✓" | |
echo "Instalación: descomprimiendo... ✓" | |
echo "Instalación: recursos extra... " | |
cd Atraci && chmod +x Atraci && curl --header 'Host: copy.com' --header 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --header 'DNT: 0' --header 'Referer: https://www.copy.com/browse/copy/public/posts/atraci.svg' --header 'Cookie: __utma=173282865.340412318.1391722809.1393588446.1395351525.10; __utmz=173282865.1395351525.10.6.utmcsr=askubuntu.com|utmccn=(referral)|utmcmd=referral|utmcct=/questions/299443/how-do-i-install-copy-file-syncing-software; COPY_AUTH=%7B%22a%22%3A%22z%22%2C%22www.copy.com%22%3A%22ATU-f7884d8695e0118c64824676d1fda2de04cc8ded%22%2C%22apiweb.copy.com%22%3A%22ATU-f7884d8695e0118c64824676d1fda2de04cc8ded%22%2C%22copy.com%22%3A%22ATU-f7884d8695e0118c64824676d1fda2de04cc8ded%22%7D' --header 'Connection: keep-alive' 'https://copy.com/web/users/user-4279217/copy/public/posts/atraci.svg?download=1' -o 'atraci.svg' -L && touch atraci.sh && echo '#!/bin/bash' >> atraci.sh && echo 'cd ~/.installer-atraci/Atraci/' >> atraci.sh && echo './Atraci' >> atraci.sh && wget https://gist.githubusercontent.com/rhoconlinux/1ab3038a719f77eebb7f/raw/a00a82efaa5869dd9ad7741c463b89d9b8cdbb74/generic-desktop-file -O atraci-desktop && sudo sed -i 's/=generico/=atraci/g' atraci-desktop && mv atraci-desktop atraci.desktop && cat atraci.desktop | |
clear | |
echo "Dependencias e Instalaciones Previas... ✓" | |
echo "Instalación: descargando... ✓" | |
echo "Instalación: descomprimiendo... ✓" | |
echo "Instalación: recursos extra... ✓" | |
echo "Instalación: en el sistema... " | |
sudo mv atraci.sh /usr/bin/atraci ; sudo chmod +x /usr/bin/atraci && sudo cp atraci.svg /usr/share/icons ; sudo cp atraci.desktop /usr/share/applications ; sudo chmod +x /usr/share/applications/atraci.desktop | |
clear | |
echo "Dependencias e Instalaciones Previas... ✓" | |
echo "Instalación: descargando... ✓" | |
echo "Instalación: descomprimiendo... ✓" | |
echo "Instalación: recursos extra... ✓" | |
echo "Instalación: en el sistema... ✓" | |
echo ">>> Listo!" | |
echo ">>> Disfruta atraci ejecutándolo desde el Menú de Aplicaciones. :)" | |
echo ">>> Instalador por: rhoconlinux.wordpress.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment