home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / system / mint-installer < prev    next >
Text File  |  2010-10-13  |  10KB  |  264 lines

  1. #!/bin/sh
  2. # A bash script for installing Linux Mint LXDE PPC in Debian Lenny GNU/Linux
  3. # You should be logged in as root or be in a root session (./debian-testing-installer.sh)
  4. #------------------------------------------------------------
  5. clear
  6. echo "Welcome to MintPPC 9 GNU/Linux installer."
  7. echo ""
  8. echo "This shell script has been designed to run after a minimal"
  9. echo "\"CLI\" netinstall installation of Debian Lenny. The script"
  10. echo "will attempt to configure the required repositories and" 
  11. echo "install the necessary packages needed to transform a"
  12. echo "Standard System install into a usable Linux MintPPC system."
  13. echo ""
  14. echo -n "Run installer now? (Y|n) > "
  15. read a
  16. if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
  17. [ "$a" = "" ]; then
  18. if [ -f /etc/apt/sources.list ]; then
  19.         cp -f /etc/apt/sources.list /etc/apt/sources.list~prebuildscript
  20.  
  21.  
  22. sleep 2s
  23.     #Update Repositories
  24.     #---------------
  25.     clear
  26.     echo "Upgrading new repositories before install..."
  27.     echo ""
  28.     apt-get update
  29.     echo ""
  30.     echo "All packages updated..."
  31.     echo ""
  32.     sleep 2s
  33.     #Perform Upgrade
  34.     #---------------
  35.     clear
  36.     echo "Upgrading existing packages before install..."
  37.     echo ""
  38.     apt-get upgrade -y --force-yes
  39.     echo ""
  40.     echo "All packages upgraded..."
  41.     echo ""
  42.     sleep 2s
  43.     
  44.     #Install huge packages
  45.     #------------------------------------
  46.     clear
  47.     echo "Installing huge packages"
  48.     echo ""
  49.     sleep 2s
  50.     apt-get install -y desktop-base lxde cups totem
  51.     echo ""
  52.     sleep 2s
  53.  
  54. #Set MOTD
  55.     #--------
  56.     if [ -f /etc/motd.tail ]; then
  57.         cp -f /etc/motd.tail /etc/motd.tail~prebuildscript
  58.     fi
  59.     echo "" > /etc/motd.tail
  60.     echo "" >> /etc/motd.tail
  61.     echo "The programs included with this build of MintPPC GNU/Linux are free software;" >> /etc/motd.tail
  62.     echo "the exact distribution terms for each program are described in the" >> /etc/motd.tail
  63.     echo "individual files in /usr/share/doc/*/copyright." >> /etc/motd.tail
  64.     echo "" >> /etc/motd.tail
  65.     echo "This build of MintPPC GNU/Linux comes with ABSOLUTELY NO WARRANTY," >> /etc/motd.tail
  66.     echo "to the extent permitted by applicable law." >> /etc/motd.tail
  67.     echo "" >> /etc/motd.tail
  68.     echo "More information about MintPPC GNU/Linux can be found at:" >> /etc/motd.tail
  69.     echo "http://mac.linux.be/" >> /etc/motd.tail
  70.     echo ""
  71.     echo "For info you can also email jjhdiederen at zonnet dot nl" >> /etc/motd.tail
  72.     echo ""
  73.     echo "Enjoy Linux MintPPC !" >> /etc/motd.tail
  74.     echo "" >> /etc/motd.tail
  75.  
  76. #Install Debian packages
  77.     #----------------------------
  78.     clear
  79.     echo "Installing the rest of the Debian packages"
  80.     echo ""
  81.     sleep 2s
  82.     apt-get install -y alacarte alsa-base alsa-utils anacron autoconf automake1.7 autotools-dev binfmt-support binutils bluetooth bluez-audio bluez-utils
  83.     sleep 2s
  84.     apt-get install -y build-essential capplets-data cdbs cdrdao checkinstall cheese cpufrequtils debhelper deskbar-applet
  85.     sleep 2s
  86.     apt-get install -y djvulibre-desktop docbook-xml dpkg-dev dvd+rw-tools ekiga eog epiphany-browser epiphany-browser-data
  87.     sleep 2s
  88.     apt-get install -y epiphany-extensions epiphany-gecko evince evolution exaile feh finger firestarter foo2zjs freepats gconf-editor
  89.     sleep 2s
  90.     apt-get install -y gedit gedit-common genisoimage gettext gftp gftp-common gftp-gtk gftp-text giblib1 gimp gkrellm gparted gnome-alsamixer gnome-nettool gnome-system-tools gnome-wise-icon-theme gnuchess
  91.     sleep 2s
  92.     apt-get install -y gstreamer0.10-plugins-bad gsynaptics gthumb gthumb-data gtk-theme-switch gtk2-engines-murrine gtk2-engines-ubuntulooks
  93.     sleep 2s
  94.     apt-get install -y libgtkhtml3.14-19 libgtkhtml-editor-common gucharmap guile-1.8-libs hardinfo html2text iceweasel
  95.     sleep 2s
  96.     apt-get install -y imagemagick initscripts inkscape intltool intltool-debian kerneloops libnotify-bin liferea linux-libc-dev linux-sound-base
  97.     sleep 2s
  98.     apt-get install -y make menu-xdg metacity metacity-common mouseemu murrine-themes
  99.     sleep 2s
  100.     apt-get install -y nautilus nautilus-data nfs-kernel-server obex-data-server openprinting-ppds
  101.     sleep 2s
  102.     apt-get install -y pidgin pidgin-data pkg-config po-debconf ppp ppp-dev printconf python-cddb python-crypto python-cups python-eggtrayicon
  103.     sleep 2s
  104.     apt-get install -y python-foomatic python-gamin python-gmenu python-gnupginterface
  105.     sleep 2s
  106.     apt-get install -y python-gpod python-imaging python-ipy python-mutagen python-notify python-ogg python-paramiko python-pexpect python-ogg python-pysqlite2 python-pyvorbis
  107.     sleep 2s
  108.     apt-get install -y python-software-properties python-vte python-webkit rarian-compat rdesktop recode samba sane seahorse sg3-utils smbfs software-properties-gtk sound-juicer streamripper
  109.     sleep 2s
  110.     apt-get install -y system-config-printer system-tools-backends tcl8.4 transmission tsclient twm
  111.     sleep 2s
  112.     apt-get install -y unattended-upgrades update-manager-core update-notifier update-notifier-common vinagre vino
  113.     sleep 2s
  114.     apt-get install -y vorbis-tools w3c-dtd-xhtml wodim wpasupplicant x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
  115.     sleep 2s
  116.     apt-get install -y x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
  117.     sleep 2s
  118.     apt-get install -y x11proto-xinerama-dev xbitmaps xchat xchat-common xorg xsltproc xterm xtrans-dev yelp zlib1g-dev ntp
  119.     sleep 2s
  120.     apt-get install -y wicd fortune-mod vino ppp python-webkit gnome-wise-icon-theme python-vte python-vte blueman gnome-disk-utility
  121.     sleep 2s
  122.     apt-get install -y pyneighborhood system-config-printer python-paramiko python-pexpect hardinfo xfce4-taskmanager pyneighborhood xfburn asunder cheese  gnome-mplayer
  123.     sleep 2s
  124.     apt-get install -y vlc abiword gnumeric osmo epdfview pidgin transmission simple-scan galculator gnome-power-manager filezilla iceweasel mouseemu  catfish
  125.     apt-get remove -y rhythmbox
  126.  
  127. #Clean up downloaded packages
  128.     #----------------------------
  129.     clear
  130.     echo "Clean up. A number of packages were downloaded during"
  131.     echo "the set-up routine. These packages are no longer needed,"
  132.     echo "please choose whether or not you would like to remove them."
  133.     echo ""
  134.     echo -n "Remove downloaded packages? (Y|n) > "
  135.     read a
  136.     if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
  137.     [ "$a" = "" ]; then
  138.         echo ""
  139.         echo "Performing \"apt-get clean\"..."
  140.         sleep 1s
  141.         apt-get clean
  142.     echo "Performing \"apt-get autoremove\"..."
  143.         sleep 1s
  144.         apt-get autoremove
  145.  else
  146.         echo ""
  147.         echo "Skipping package cleanup..."
  148.         sleep 1s
  149.     fi
  150.  
  151. #Download and install the Mint programs
  152.     #---------------------------
  153.     clear
  154.     echo "Would you like install the MintPPC specific programs?"
  155.     echo "If not just enter to skip \"n\""
  156.     echo ""
  157.     echo -n "install the MintPPC files? (Y|n) > "
  158.     read a
  159.     if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
  160.     [ "$a" = "" ]; then
  161.         echo ""
  162.         echo "installing MintPPC specific programs"
  163.         echo ""
  164.         sleep 2s
  165.         wget http://mac.linux.be/files/Isadora/isadora_packages.tar.gz
  166.     tar -zxvf isadora_packages.tar.gz
  167.     cd isadora
  168.     dpkg -i chestnut-dialer_0.3.3-3mint3_all.deb mint-common_1.0.5_all.deb mintsystem_7.6.9_all.deb chestnut-dialer-gtk2_0.3.3-3mint3_all.deb  mintdesktop_3.2.1_all.deb mint-translations_2010.09.01_all.deb cowsay_3.03+dfsg1-2_all.deb mint-info-lxde_9.0.1_all.deb mintupdate_4.0.8_all.deb fortune-mod_1.99.1-4_powerpc.deb mintinput_1.1_all.deb mintupload_3.7.8_all.deb fortunes-husse_1.0.1_all.deb mint-wallpapers-extra_1.0.1_all.deb gtk2-engines-aurora_1.5.1-1_powerpc.deb mintwelcome_1.3.3_all.deb mint-artwork-common_1.1.3_all.deb mintnanny_1.3.8_all.deb vino-xfce_1.2-0mint1_all.deb mint-artwork-lxde_9.0.5_all.deb mint-search-addon_2.0_all.deb mintbackup_2.0.6_all.deb mint-stylish-addon_1.0.1_all.deb
  169.  
  170.  
  171.     sleep 5s
  172.     #Cleaning up
  173.     cd ..
  174.     rm -Rf isadora
  175.     rm isadora_packages.tar.gz
  176.     
  177.      
  178.     fi
  179.  
  180. # Install the fortunes in bash#
  181. wget http://mac.linux.be/files/Isadora/fortunes-installer.tar.gz
  182. tar -C /etc -zxvf fortunes-installer.tar.gz
  183. rm -rf /etc/skel/.bashrc
  184. rm -rf /root/.bashrc
  185. rm fortunes-installer.tar.gz
  186. clear
  187. echo "Fortunes should be in place now"
  188. sleep 4s
  189.  
  190.    fi 
  191.  
  192.  
  193. # Install the menu items in /usr/share/applications
  194. # First remove all the old crap out
  195. clear
  196. echo "We will now perform the mintification of Debian, starting with menu items"
  197. rm -Rf /usr/share/applications
  198. wget http://mac.linux.be/files/Isadora/applications.tar.gz
  199. tar -C /usr/share/ -xzvf applications.tar.gz
  200. rm applications.tar.gz
  201. echo "Menu items are in place"
  202. sleep 2s
  203.     
  204. # Remove personal stuff in home
  205. rm .bashrc
  206. rm -Rf .config/
  207.  
  208.  
  209. # Install lxde-default-settings    
  210. clear
  211. echo "We will now install the LXDE default settings and the GDM themes"
  212. wget http://mac.linux.be/files/Isadora/mint-lxde-default-settings.tar.gz
  213. tar -C / -xzvf mint-lxde-default-settings.tar.gz
  214. rm mint-lxde-default-settings.tar.gz
  215. sleep 2s
  216.  
  217.     
  218. # Install the GDM-themes
  219. wget http://mac.linux.be/files/Isadora/gdm-themes.tar.gz
  220. tar -C /usr/share/gdm -xzvf gdm-themes.tar.gz
  221. rm gdm-themes.tar.gz
  222. wget http://mac.linux.be/files/Isadora/gdm.conf.tar.gz
  223. tar -C /etc/gdm -xzvf gdm.conf.tar.gz
  224. rm gdm.conf.tar.gz
  225. echo "GDM themes were put in place"
  226. sleep 2s
  227.  
  228.  
  229. # Add pmu_battery to /etc/modules
  230. wget http://mac.linux.be/files/Isadora/modules.tar.gz
  231. tar -C /etc -xzvf modules.tar.gz
  232. rm modules.tar.gz
  233. sleep 2s
  234.  
  235.  
  236.  
  237.    
  238.     #Prompt for reboot
  239.     #-----------------
  240.     clear
  241.     echo "Installation complete! Thank you for using this install script for your MintPPC GNU/Linux build."
  242.     echo "You will now need to reboot your system."
  243.     echo "You might need to adapt your /etc/X11/xorg.conf file."
  244.     echo "Please consult http://mac.linux.be/ -> Apple PowerPC wiki -> Xorg.conf files and the MintPPC forum for that"
  245.     echo ""
  246.     echo -n "Reboot now? (Y|n) > "
  247.     read a
  248.     if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
  249.     [ "$a" = "" ]; then
  250.         echo "Goodbye, hoping all went well :)"
  251.         echo "Rebooting..."
  252.         sleep 4s
  253.         reboot
  254.         exit
  255.     else
  256.         echo "Issue the following command as root to reboot:"
  257.         echo ""
  258.         echo "reboot"
  259.         echo ""
  260.         echo "Goodbye! :)"
  261.     fi
  262. fi
  263. exit
  264.