#!/bin/bash

##################################################
#
#		This script is created to install XBMC
#		Media Player for Ubuntu i386
#		systems (NVIDIA ION).
#		
#		Written by: orrie <code@orrie.org>
#		Web: http://projects.orrie.org
#		Contact: http://www.orrie.no/contact/
#
##################################################

# SSH
# add prompt for y\n install
sudo apt-get install openssh-server -y

# NVIDIA ION
# add prompt for y\n install
mkdir $HOME/.nvidia
cd $HOME/.nvidia

wget ftp://download.nvidia.com/XFree86/Linux-x86/190.53/NVIDIA-Linux-x86-190.53-pkg1.run
sudo sh NVIDIA-Linux-x86-190.53-pkg1.run

# XBMC
sudo add-apt-repository ppa:team-xbmc
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x6d975c4791e7ee5e
sudo apt-get update
sudo apt-get install xbmc -y
sudo apt-get update

# edit etterhvert
echo "XBMC should now been successfully installed along with\n"
echo "the NVIDIA ION Graphic Driver and OpenSSH-server."

