Advertisement
Guest User

Untitled

a guest
Feb 21st, 2014
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. if [ $(whoami) != root ]; then
  4.   echo "Please run this script as root or using sudo"
  5.   exit
  6. fi
  7.  
  8. apt-get install zenity curl
  9. mkdir steam-wheezy; cd steam-wheezy
  10.  
  11. wget http://media.steampowered.com/client/installer/steam.deb
  12. sha1sum -c <<< "1f64f87f937d52230e9812ad26150f00aea9eac7  steam.deb" && \
  13. dpkg -X steam.deb steam && dpkg -e steam.deb steam/DEBIAN || exit
  14. sed -i 's/2.15/2.13/g' steam/DEBIAN/control
  15. dpkg -b steam steam-wheezy.deb
  16. dpkg -i steam-wheezy.deb
  17. rm /etc/apt/sources.list.d/steam*
  18.  
  19. wget http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.5_i386.deb
  20. sha1sum -c <<< "d45fdd5c82d1ffed1ba63a394563243637ce1b97  libc6_2.15-0ubuntu10.5_i386.deb" && \
  21. dpkg -X libc6_2.15-0ubuntu10.5_i386.deb libc6_2.15
  22. cp -r libc6_2.15/lib/* /usr/lib/steam
  23.  
  24. cat > /usr/bin/steam-debian <<EOF
  25. #!/bin/bash
  26. LD_LIBRARY_PATH=/usr/lib/steam/i386-linux-gnu/:usr/lib steam "$@"
  27. EOF
  28. chmod +x /usr/bin/steam-debian
  29.  
  30. cd .. && rm -r steam-wheezy
Advertisement
RAW Paste Data Copied
Advertisement