Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ "$(id -u)" = "0" ]; then
- echo "Installing pulseaudio - best restart system / dm to activate..."
- apt-get update
- apt-get install --yes pulseaudio-module-x11 pulseaudio-module-bluetooth libasound2-plugins pavucontrol vlc-plugin-pulse
- [ "$(uname -m)" = "x86_64" ] && apt-get install --yes libasound2-plugins:i386
- echo "Installing font - requires dm restart..."
- apt-get install --yes xfonts-100dpi
- echo "Installing depends and steam deb only - run script as user again..."
- 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"
- if [ "$(uname -m)" = "x86_64" ]; then
- apt-get install --yes $(echo $DEPENDS|tr ' ' '\n'|sed 's/$/:i386/')
- else
- apt-get install --yes $DEPENDS
- fi
- echo "Install gksu for updateing (however steam has gksudo hardcoded)..."
- apt-get install --yes gksu
- TMP=$(mktemp -d /tmp/steam.XXXXXXX)
- wget -NP $TMP http://media.steampowered.com/client/installer/steam.deb
- dpkg-deb -x $TMP/steam.deb $TMP/steam-debian
- dpkg-deb -e $TMP/steam.deb $TMP/steam-debian/DEBIAN
- sed -i 's/2.15/2.13/g;s/-turbo//;s/1:0.99.1/2.0/' $TMP/steam-debian/DEBIAN/control
- dpkg-deb -b $TMP/steam-debian
- dpkg -i $TMP/steam-debian.deb
- apt-get install --yes -f
- rm -rf $TMP
- else
- #STEAM=~/Steam
- STEAM=~/.local/share/Steam
- if ! [ -f $STEAM/ubuntu12_32/libc-2.15.so ]; then
- mkdir -p $STEAM/ubuntu12_32
- mkdir -p $STEAM/deb
- wget -NP $STEAM/deb http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.2_i386.deb
- TMP=$(mktemp -d /tmp/steam.XXXXXXX)
- dpkg-deb -x $STEAM/deb/libc6_2.15-0ubuntu10.2_i386.deb $TMP/libc6
- mv $TMP/libc6/lib/i386-linux-gnu/* $STEAM/ubuntu12_32
- rm -rf $TMP
- fi
- if ! [ -f $STEAM/ubuntu12_32/plugins/libflashplayer.so ]; then
- mkdir -p $STEAM/ubuntu12_32/plugins
- 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
- fi
- echo "run now: steam steam://store"
- echo "hint: install world of goo demo to try"
- #echo "run now: steam steam://open/games"
- #echo "try too: steam steam://install/440"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement