** Pastebin PRO Accounts Spring Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Dec 20th, 2012  |  syntax: Bash  |  size: 2.98 KB  |  views: 106  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. if [ "$(id -u)" = "0" ]; then
  3.  echo "Installing pulseaudio - best restart system / dm to activate..."
  4.  apt-get update
  5.  apt-get install --yes pulseaudio-module-x11 pulseaudio-module-bluetooth libasound2-plugins pavucontrol vlc-plugin-pulse
  6.  [ "$(uname -m)" = "x86_64" ] && apt-get install --yes libasound2-plugins:i386
  7.  echo "Installing font - requires dm restart..."
  8.  apt-get install --yes xfonts-100dpi
  9.  echo "Installing depends and steam deb only - run script as user again..."
  10.  DEPENDS="gtk2-engines libasound2 libasyncns0 libatk1.0-0 libattr1 libavahi-client3 libavahi-common3 libc6 libcairo2 libcap2 libcomerr2 libcups2 libcurl3-gnutls libdbus-1-3 libexpat1 libffi5 libflac8 libfontconfig1 libfreetype6 libgcc1 libgcrypt11 libgdk-pixbuf2.0-0 libgl1-mesa-dri libgl1-mesa-glx libglib2.0-0 libgnutls26 libgpg-error0 libgssapi-krb5-2 libgtk2.0-0 libice6 libjson0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libnspr4 libnss3 libogg0 libopenal1 libp11-kit0 libpango1.0-0 libpci3 libpcre3 libpixman-1-0 libpng12-0 libpulse0 libsdl1.2debian libselinux1 libsm6 libsndfile1 libstdc++6 libtasn1-3 libtxc-dxtn-s2tc0 libuuid1 libvorbis0a libvorbisenc2 libvorbisfile3 libwrap0 libx11-6 libx11-xcb1 libxau6 libxcb1 libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxmu6 libxrandr2 libxrender1 libxtst6 zlib1g"
  11.  if [ "$(uname -m)" = "x86_64" ]; then
  12.   apt-get install --yes $(echo $DEPENDS|tr ' ' '\n'|sed 's/$/:i386/')
  13.  else
  14.   apt-get install --yes $DEPENDS
  15.  fi
  16.  echo "Install gksu for updateing (however steam has gksudo hardcoded)..."
  17.  apt-get install --yes gksu
  18.  TMP=$(mktemp -d /tmp/steam.XXXXXXX)
  19.  wget -NP $TMP http://media.steampowered.com/client/installer/steam.deb
  20.  dpkg-deb -x $TMP/steam.deb $TMP/steam-debian
  21.  dpkg-deb -e $TMP/steam.deb $TMP/steam-debian/DEBIAN
  22.  sed -i 's/2.15/2.13/g;s/-turbo//;s/1:0.99.1/2.0/' $TMP/steam-debian/DEBIAN/control
  23.  dpkg-deb -b $TMP/steam-debian
  24.  dpkg -i $TMP/steam-debian.deb
  25.  apt-get install --yes -f
  26.  rm -rf $TMP
  27. else
  28.  #STEAM=~/Steam
  29.  STEAM=~/.local/share/Steam
  30.  if ! [ -f $STEAM/ubuntu12_32/libc-2.15.so ]; then
  31.   mkdir -p $STEAM/ubuntu12_32
  32.   mkdir -p $STEAM/deb
  33.   wget -NP $STEAM/deb http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.2_i386.deb
  34.   TMP=$(mktemp -d /tmp/steam.XXXXXXX)
  35.   dpkg-deb -x $STEAM/deb/libc6_2.15-0ubuntu10.2_i386.deb $TMP/libc6
  36.   mv $TMP/libc6/lib/i386-linux-gnu/* $STEAM/ubuntu12_32
  37.   rm -rf $TMP
  38.  fi
  39.  if ! [ -f $STEAM/ubuntu12_32/plugins/libflashplayer.so ]; then
  40.   mkdir -p $STEAM/ubuntu12_32/plugins
  41.   wget -qO- https://get.adobe.com/de/flashplayer/completion/?installer=Flash_Player_11.2_for_other_Linux_%28.tar.gz%29_32-bit|awk -F\' '/location.href/{print $2}'|sed s/http:/https:/|wget -i- -qO-|tar zxvC $STEAM/ubuntu12_32/plugins libflashplayer.so
  42.  fi
  43.  echo "run now: steam steam://store"
  44.  echo "hint: install world of goo demo to try"
  45.  #echo "run now: steam steam://open/games"
  46.  #echo "try too: steam steam://install/440"
  47. fi
clone this paste RAW Paste Data