Advertisement
qzertywsx

Untitled

Oct 9th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. #!/bin/bash
  2. mkdir /opt/uTorrent
  3. cd /opt/uTorrent
  4. #:::::::::: Begin ::::::::::
  5. if [ `getconf LONG_BIT` = "64" ]
  6. then
  7.   arch="x64"
  8. else
  9.   arch=""
  10. fi
  11. url=`wget http://www.utorrent.com/intl/it/downloads/complete/os/lin/track/stable$arch -O- | grep 'id="auto-client-download-link"' | sed -e 's/^.*href="//' -e 's/">fai.*$//'`
  12. wget $url
  13. #::::::::::: End :::::::::::
  14. tar -xvpzf utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz
  15. rm utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz
  16. cp uTorrent /usr/bin/uTorrent
  17. cp utserverloader /usr/bin/utserverloader
  18. cp uTorrent.desktop /usr/share/applications/uTorrent.desktop
  19. cp uTorrent.png /usr/share/pixmaps/uTorrent.png
  20. cp gnutorrent-remove /usr/bin/gnutorrent-remove
  21. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement