crystallfoxx

Hitleap Para Debian 8

Feb 5th, 2016
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.33 KB | None | 0 0
  1. # Instalar Hitleap
  2. apt-get update -y
  3. apt-get install libc6 -y
  4.  
  5. hlvFile='/opt/hitleapviewer.tar.xz'
  6. if [ -d /opt/hitleapviewer ]; then rm -r /opt/hitleapviewer; fi
  7. if (($(uname -m) != 'x86_64')); then echo 'El HitLeap Viewer solo aguanta Linux de 64-bit (x86_64)';
  8. elif wget 'https://hitleap.com/viewer/latest?platform=Linux' -O "$hlvFile"; then
  9.     mkdir -p /opt/hitleapviewer;
  10.     tar xpvf "$hlvFile" -C /opt/hitleapviewer;
  11.     echo rm "$hlvFile";
  12. else echo 'No Se Pudo Descargar el HitLeap Viewer'; fi
  13.  
  14. if [ -d /opt/hitleapviewer ]; then
  15.  
  16. # Crear icono en escritorio del Hitleap
  17. hlvIcon='/usr/share/applications/hitleapviewer.desktop'
  18. echo '[Desktop Entry]' > "$hlvIcon"
  19. {
  20. echo 'Version=1.0';
  21. echo 'Name=HitLeap Viewer';
  22. echo 'Name[es]=Visor HitLeap';
  23. echo 'Comment=HitLeap is a Traffic Exchange service, which automatically delivers free traffic to your website.';
  24. echo 'Comment[es]=HitLeap es un servicio de Intercambio de Trafico, el cual entrega automaticamente trafico gratis a tu sitio.';
  25. echo 'GenericName=Traffic Exchange Application';
  26. echo 'GenericName[es]=Aplicacion de Intercambio de Trafico';
  27. echo "Exec=sh -c '/opt/hitleapviewer/app/HitLeap-Viewer' dummy %k";
  28. echo 'Type=Application';
  29. echo 'Icon=applications-internet';
  30. echo 'Categories=Network;WebBrowser;Viewer;';
  31. echo;
  32. } >> "$hlvIcon"
  33. cp "$hlvIcon" ~/Desktop
  34. fi
Advertisement
Add Comment
Please, Sign In to add comment