#!/bin/bash ########################################################################################## # Fall 2012: This is a script designed to reinstall a series of programs # # On debian Squeeze(6). It is for recovery after HD failure and is available for Public # # Use, Modification, and Imporovement. ENJOY! # # NOTE: Program should be run from init 1 state. No GUI. # ########################################################################################## # Setting up out NVIDIA 270.xx amd64 Driver # # AND UPDATE YOUR REPOSITORIES TO REFLECT THE ONES BELOW # # # # deb http://ftp.us.debian.org/debian stable main contrib non-free # # deb-src http://ftp.us.debian.org/debian stable main contrib non-free # # # # deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free # # deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib non-free # # # # deb http://security.debian.org/ squeeze/updates main contrib non-free # # deb-src http://security.debian.org/ squeeze/updates main contrib non-free # # # ########################################################################################## echo "checking for updates mate..." su apt-get update echo "attempting to install the NVIDIA 270.xx driver, I give us odds of 1 in 3..." apt-get install module-assistant nvidia-kernel-common sleep 25 m-a auto-install nvidia-kernel${VERSION}-source sleep 25 apt-get install build-essential apt-get install nvidia-kernel${VERSION}-$(uname -r) #If the above failed sorry but I have no failsafe #see wiki.debian.org/NvidiaGraphicsDrivers#Libraries # apt-get install nvidia-glx${VERSION} nvidia-xconfig nvidia-settings nvidia-kernel-source libgl1-nvidia-glx libgl1-nvidia-alternatives libglx-nvidia-alternatives wget http://us.download.nvidia.com/XFree86/Linux-x86_64/270.41.06/NVIDIA-Linux-x86_64-304.64.run chmod a+x NVIDIA-Linux-x86_64-270.41.06.run #the below needs to be run in init 1 and that I cannot do. ./NVIDIA-Linux-x86_64-304.64.run nvidia-config ########################################################################################## # Some addons and some other stuff as well # ########################################################################################## sudo apt-get install fortune-mod fortune-min librecode0 fortunes fortunes-off fortunes-de fortunes-debian-hints display-dhammapada fortunes-bofh-excuses cookietool ########################################################################################## #Installing Compiz and it's components # ########################################################################################## echo "we are going to install compiz, you will need to condifure it later" sudo apt-get install compiz compiz-core compiz-gnome gompiz-gtk compiz -plugins libdecoration0 compiz-fusion-plugins-main compiz-fusion-plugins-extra compizconfig-settings-manager libcompizconfig0 python-compizconfig ########################################################################################## # The first thing we do here is install wine. This should take care of it nicely... # ########################################################################################## echo "Coolio, let's try wine..." echo "Downloading Version 1.4.1 from Sourceforge" wget http://downloads.sourceforge.net/project/wine/Source/wine-1.4.1.tar.bz2?r=&ts=1347665089&use_mirror=superb-dca3 tar -xvf wine-1.4.1.tar.bz2 cd ~/wine-1.4.1 sudo apt-get install bison flex gcc libc6-dev libfontconfig-dev libfreetype6-dev libglu-dev libgsm1-dev libice-dev libjpeg-dev libldap-dev libmpg123-dev libncurses5-dev libopenal-dev libpng-dev libsm-dev libssl-dev libusb-dev libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxml2-dev libxrandr-dev libxrender-dev libxslt-dev libxt-dev libxxf86vm-dev make libcapi20-dev liblcms-dev libsane-dev libhal-dev libdbus-1-dev valgrind prelink libcups2-dev sudo apt-get install lib32v4l-dev lib32ncurses5-dev lib32asound2-dev lib32z-dev ia32-libs-dev wait su michael ./configure make make install ########################################################################################## # Here we can Install Programs for Wine First I will do the winecfg stuff... # #INSTALLING ALL TEH GAMES # ########################################################################################## #DWARF FORTRESS wget http://dffd.wimbli.com/download.php?id=2431&f=DF_Phoebus_31_19v01.zip mv DF* /tmp/ cd /usr/local mkdir games cd games ### OR tar xf /tmp/df_31_19_linux.tar.bz2 apt-get install unzip; unzip /tmp/DF_Phoebus_31_19v01.zip cd df_linux find . -type f -print0 | xargs -0 chmod 644 find . -type d -print0 | xargs -0 chmod 755 chmod 755 df libs/Dwarf_Fortress sudo apt-get install ia32-libs ia32-libs-gtk wget http://ftp.us.debian.org/debian/pool/main/s/sdl-ttf2.0/libsdl-ttf2.0-0_2.0.9-1_i386.deb wget http://ftp.us.debian.org/debian/pool/main/s/sdl-image1.2/libsdl-image1.2_1.2.10-2+b2_i386.deb sudo apt-get install mc cd /usr/lib32 ln -s libopenal.so.1 libopenal.so ln -s libsndfile.so.1 libsndfile.so ln -s libSDL_ttf-2.0.so.0 libSDL_ttf-2.0.so cat > /usr/local/bin/dorf #!/bin/sh cd /usr/local/games/df_linux ./df #(press Ctrl-D) chmod 755 /usr/local/bin/dorf #LOL rm -rf "$HOME/.wine-lol" export WINEPREFIX="$HOME/.wine-lol" wine hostname Install Wine Gecko ./winetricks vcrun2005 corefonts d3dx9 wininet ./winetricks win7 #still need to cd to the correct directory wine setup.exe ######################################################################################################### #Create file named 'lol' in your home directory (~): # #-------------------------------------------------------------------------------------------------------# # bin sh # #export WINEPREFIX="$HOME/.wine-lol" # #cd "$WINEPREFIX/drive_c/Riot Games/League of Legends/rads/system" # #wine "rads_user_kernel.exe" run lol_launcher $(ls ../projects/lol_launcher/releases/) LoLLauncher.exe # #------------------------------------------------------------------------------------------------------ # ######################################################################################################### #SCII #WOW