#!/bin/bash cd if [ -d wine64 ] then echo "the folder wine64 already exists" else echo "making directory wine64" mkdir wine64 fi if [ -d wine32 ] then echo "the folder wine32 already exists" else echo "making directory wine32" mkdir wine32 fi if [ -e install-wine-deps.sh ] then echo "install-wine-deps.sh is already on your machine?! we won't download a second copy" else echo "running: wget http://winezeug.googlecode.com/svn/trunk/install-wine-deps.sh" wget http://winezeug.googlecode.com/svn/trunk/install-wine-deps.sh fi # change permissions of the script chmod 755 ./install-wine-deps.sh # # run the script with root privileges. you'll be prompted for your root password. sudo sh install-wine-deps.sh # # grab the 32-bit dependencies for wine1.3 # note: eventually this would need to be updated to wine1.4, wine 18.2, etc sudo apt-get -y build-dep wine1.3 sudo apt-get -y install cabextract # # grab wine version 1.3.9 from sourceforge and untar it if [ -e wine-1.3.9 ] then echo "the folder /wine-1.3.9 was already in your root directory. i'm deleting it and will grab a fresh copy from http://switch.dl.sourceforge.net/project/wine/Source/wine-1.3.9.tar.bz2" sudo rm -r wine-1.3.9 else echo "getting a copy of wine-1.3.9 from http://switch.dl.sourceforge.net/project/wine/Source/wine-1.3.9.tar.bz2 and extracting it to your user's root directory" fi wget http://switch.dl.sourceforge.net/project/wine/Source/wine-1.3.9.tar.bz2 tar -xjvf wine-1.3.9.tar.bz2 # # change into the wine64 directory in the user's home directory.