#!/bin/sh
#
# Installs Steam (by Valve) for Linux on Linux Mint / Ubuntu.
#
# This particular script also installs the required graphics-
# driver for AMD-based GFX-cards for use with the Steam client.
#
# Steam is an online computer-game distribution framework.
#
# Sign up for a free Steam-account at:
# https://store.steampowered.com
#
# @author Kim Olsen <pizslacker@pizslacker.org>
#
# @lastchange 20130430-16:39-GMT+1

# Installs AMDs Catalyst (distro-standard version) graphics-driver.
#
# I will publish an additional install-script for AMDs experimental
# Catalyst graphics-driver soon. I have to test it on a rather
# up-to-date discrete graphics-card before I can release it.
sudo apt-get install linux-source linux-headers-generic
sudo apt-get install fglrx fglrx-amdcccle
sudo apt-get install libgl1-mesa-glx:i386

# Gets the Steam for Linux deb-file and installs the Steam-client.
wget http://media.steampowered.com/client/installer/steam.deb
sudo dpkg -i steam.deb