Debian Post INstall Script


SUBMITTED BY: Guest

DATE: April 11, 2013, 1:17 a.m.

FORMAT: Bash

SIZE: 7.3 kB

HITS: 1015

  1. #!/bin/bash
  2. ##########################################################################################
  3. # Fall 2012: This is a script designed to reinstall a series of programs #
  4. # On debian Squeeze(6). It is for recovery after HD failure and is available for Public #
  5. # Use, Modification, and Imporovement. ENJOY! #
  6. # NOTE: Program should be run from init 1 state. No GUI. #
  7. ##########################################################################################
  8. # Setting up out NVIDIA 270.xx amd64 Driver #
  9. # AND UPDATE YOUR REPOSITORIES TO REFLECT THE ONES BELOW #
  10. # #
  11. # deb http://ftp.us.debian.org/debian stable main contrib non-free #
  12. # deb-src http://ftp.us.debian.org/debian stable main contrib non-free #
  13. # #
  14. # deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free #
  15. # deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib non-free #
  16. # #
  17. # deb http://security.debian.org/ squeeze/updates main contrib non-free #
  18. # deb-src http://security.debian.org/ squeeze/updates main contrib non-free #
  19. # #
  20. ##########################################################################################
  21. echo "checking for updates mate..."
  22. su
  23. apt-get update
  24. echo "attempting to install the NVIDIA 270.xx driver, I give us odds of 1 in 3..."
  25. apt-get install module-assistant nvidia-kernel-common
  26. sleep 25
  27. m-a auto-install nvidia-kernel${VERSION}-source
  28. sleep 25
  29. apt-get install build-essential
  30. apt-get install nvidia-kernel${VERSION}-$(uname -r)
  31. #If the above failed sorry but I have no failsafe
  32. #see wiki.debian.org/NvidiaGraphicsDrivers#Libraries
  33. #
  34. apt-get install nvidia-glx${VERSION} nvidia-xconfig nvidia-settings nvidia-kernel-source libgl1-nvidia-glx libgl1-nvidia-alternatives libglx-nvidia-alternatives
  35. wget http://us.download.nvidia.com/XFree86/Linux-x86_64/270.41.06/NVIDIA-Linux-x86_64-304.64.run
  36. chmod a+x NVIDIA-Linux-x86_64-270.41.06.run
  37. #the below needs to be run in init 1 and that I cannot do.
  38. ./NVIDIA-Linux-x86_64-304.64.run
  39. nvidia-config
  40. ##########################################################################################
  41. # Some addons and some other stuff as well #
  42. ##########################################################################################
  43. sudo apt-get install fortune-mod fortune-min librecode0 fortunes fortunes-off fortunes-de fortunes-debian-hints display-dhammapada fortunes-bofh-excuses cookietool
  44. ##########################################################################################
  45. #Installing Compiz and it's components #
  46. ##########################################################################################
  47. echo "we are going to install compiz, you will need to condifure it later"
  48. 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
  49. ##########################################################################################
  50. # The first thing we do here is install wine. This should take care of it nicely... #
  51. ##########################################################################################
  52. echo "Coolio, let's try wine..."
  53. echo "Downloading Version 1.4.1 from Sourceforge"
  54. wget http://downloads.sourceforge.net/project/wine/Source/wine-1.4.1.tar.bz2?r=&ts=1347665089&use_mirror=superb-dca3
  55. tar -xvf wine-1.4.1.tar.bz2
  56. cd ~/wine-1.4.1
  57. 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
  58. sudo apt-get install lib32v4l-dev lib32ncurses5-dev lib32asound2-dev lib32z-dev ia32-libs-dev
  59. wait
  60. su michael
  61. ./configure
  62. make
  63. make install
  64. ##########################################################################################
  65. # Here we can Install Programs for Wine First I will do the winecfg stuff... #
  66. #INSTALLING ALL TEH GAMES #
  67. ##########################################################################################
  68. #DWARF FORTRESS
  69. wget http://dffd.wimbli.com/download.php?id=2431&f=DF_Phoebus_31_19v01.zip
  70. mv DF* /tmp/
  71. cd /usr/local
  72. mkdir games
  73. cd games
  74. ### OR tar xf /tmp/df_31_19_linux.tar.bz2
  75. apt-get install unzip; unzip /tmp/DF_Phoebus_31_19v01.zip
  76. cd df_linux
  77. find . -type f -print0 | xargs -0 chmod 644
  78. find . -type d -print0 | xargs -0 chmod 755
  79. chmod 755 df libs/Dwarf_Fortress
  80. sudo apt-get install ia32-libs ia32-libs-gtk
  81. wget http://ftp.us.debian.org/debian/pool/main/s/sdl-ttf2.0/libsdl-ttf2.0-0_2.0.9-1_i386.deb
  82. wget http://ftp.us.debian.org/debian/pool/main/s/sdl-image1.2/libsdl-image1.2_1.2.10-2+b2_i386.deb
  83. sudo apt-get install mc
  84. cd /usr/lib32
  85. ln -s libopenal.so.1 libopenal.so
  86. ln -s libsndfile.so.1 libsndfile.so
  87. ln -s libSDL_ttf-2.0.so.0 libSDL_ttf-2.0.so
  88. cat > /usr/local/bin/dorf
  89. #!/bin/sh
  90. cd /usr/local/games/df_linux
  91. ./df
  92. #(press Ctrl-D)
  93. chmod 755 /usr/local/bin/dorf
  94. #LOL
  95. rm -rf "$HOME/.wine-lol"
  96. export WINEPREFIX="$HOME/.wine-lol"
  97. wine hostname
  98. Install Wine Gecko
  99. ./winetricks vcrun2005 corefonts d3dx9 wininet
  100. ./winetricks win7
  101. #still need to cd to the correct directory
  102. wine setup.exe
  103. #########################################################################################################
  104. #Create file named 'lol' in your home directory (~): #
  105. #-------------------------------------------------------------------------------------------------------#
  106. # bin sh #
  107. #export WINEPREFIX="$HOME/.wine-lol" #
  108. #cd "$WINEPREFIX/drive_c/Riot Games/League of Legends/rads/system" #
  109. #wine "rads_user_kernel.exe" run lol_launcher $(ls ../projects/lol_launcher/releases/) LoLLauncher.exe #
  110. #------------------------------------------------------------------------------------------------------ #
  111. #########################################################################################################
  112. #SCII
  113. #WOW

comments powered by Disqus