#!/bin/sh
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - 
sudo wget -c http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y clean
sudo apt-get -y install cabextract wine 

cd && cd bin 
wget -c http://www.kegel.com/wine/winetricks 
chmod +x winetricks
rm -rf ~/.winetrickscache
./winetricks riched20 riched30 flash allfonts

cd ~/Desktop                                                                              
wget -c http://dl.google.com/chrome/install/149.29/chrome_installer.exe
wine chrome_installer.exe
while (ps -A | grep chrome.exe)
do
	sleep 1
	killall chrome.exe # thats the hard way^^
	# as most ppl don't read this and keep asking, why this doesn't work
done
sed -i -e 's|chrome.exe\"|chrome.exe\" --new-http --in-process-plugins|g' ~/Desktop/Google\ Chrome.desktop

echo "could be - it worked - maybe"

