

Aunque los instaladores ya estamos acostumbrados, para estandarizar, lo escribimos
Ver: Primera reunión del grupo de Instaladores
)#!/bin/bash # Licencia: GNU GPL echo "Instalador automático - FLISoL 2010 - V 1.0" echo echo "Instalar entorno 3D [y/N]?" read opc3d echo "Instalar programas de Diseño gráfico [y/N]?" read opcDis echo echo "Comienza la instalación." echo "Va a demorar, asi que puede realizar otras tareas mientras el equipo trabaja." echo echo desatendido="-y" #comentar para que pregunte en cada paquete distro=`lsb_release -cs` bits=`uname -m` [ "$bits" = "x86_64" ] && bits="64" || bits="32" if [ "$distro" = "jaunty" -o "$distro" = "karmic" -o "$distro" = "lucid" ] ; then ########### Instalación repos WINE ############### if [ "$distro" = "karmic" ] ; then sudo add-apt-repository ppa:ubuntu-wine/ppa wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - fi if [ "$distro" = "jaunty" ] ; then sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/winehq.list wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - fi ############################################ xdg-open 'http://www.flisoluruguay.info/links' & dpkg -l | grep medibuntu-keyring if [ $? -ne 0 ]; then #sudo wget http://www.medibuntu.org/sources.list.d/$distro.list --output-document=/etc/apt/sources.list.d/medibuntu.list echo "deb http://mirrors.ucr.ac.cr/medibuntu/ $distro free non-free" | sudo tee -a /etc/apt/sources.list # medibuntu mirror 1 #echo "deb http://mirror.oscc.org.my/medibuntu/ $distro free non-free" | sudo tee -a /etc/apt/sources.list # medibuntu mirror 2 sudo apt-get update && sudo apt-get $desatendido --force-yes --allow-unauthenticated install medibuntu-keyring # sudo apt-get update fi #echo "Probando Partner..." cat /etc/apt/sources.list | grep "# deb http:\/\/archive.canonical" if [ $? -eq 0 ]; then sudo sed -i -e "s/# deb http:\/\/archive.canonical/deb http:\/\/archive.canonical/g" /etc/apt/sources.list #echo "Partner fue activado." #else #echo "Partner previamente activado." fi sudo apt-get update sudo apt-get $desatendido upgrade sudo aptitude $desatendido full-upgrade sudo apt-get install pppoe # (Partner) para test de ADSL if [ "$bits" = "32" ]; then sudo apt-get install w32codecs $desatendido else sudo apt-get install w64codecs $desatendido fi sudo apt-get install $desatendido flashplugin-nonfree flashplugin-nonfree-extrasound sudo apt-get install $desatendido faad gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse sudo apt-get install $desatendido gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse sudo apt-get install $desatendido gstreamer0.10-pitfdll libmp3lame0 libdvdread4 libdvdcss2 sudo apt-get $desatendido install samba smbclient nautilus-share wine filezilla gparted emesene amsn pidgin thunderbird sudo apt-get $desatendido install thunderbird-locale-es-ar nautilus-image-converter nautilus-wallpaper openoffice.org-help-es sudo apt-get $desatendido install aspell-es myspell-es manpages-es language-pack-es language-pack-es-base language-support-es sudo apt-get $desatendido install openoffice.org build-essential cheese lightning-extension lightning-extension-locale-es-ar sudo apt-get $desatendido install calendar-google-provider calendar-timezones openjdk6-jre icedtea6-plugin audacity tucan sudo apt-get $desatendido install openoffice.org-l10n-es ubuntu-restricted-extras startupmanager #### 3D #### if [ "$opc3d" = "y" ] ; then sudo apt-get $desatendido install compizconfig-settings-manager emerald fusion-icon awn-manager cairo-dock gnome-do gnome-do-docklets sudo apt-get $desatendido install gnome-do-plugins gnome-do-plugin-evolution gnome-do-docklets fi #### DISEÑO #### #clear if [ "$opcDis" = "y" ] ; then sudo apt-get $desatendido install inkscape dia-gnome xaos tuxpaint tuxpaint-config xaralx xaralx-examples qcad scribus kino sudo apt-get $desatendido install blender blender-ogrexml create-resources yafray wings3d fontforge agave hugin fontmatrix pixelize sudo apt-get $desatendido install posterazor photoprint tcl8.5 tk8.5 python-imaging-tk python-imaging python-liblcms sudo apt-get $desatendido install python-reportlab if [ "$distro" = "karmic" ] ; then bits=`uname -m` if [ "$bits" = "x86_64" ]; then wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sk1libs-0.9.1pre-rev905_0ubuntu1_9.10_amd64.deb wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sK1-0.9.1pre-rev905_0ubuntu1_9.10_amd64.deb sudo dpkg -i sk1libs-0.9.1pre-rev905_0ubuntu1_9.10_amd64.deb sudo dpkg -i sK1-0.9.1pre-rev905_0ubuntu1_9.10_amd64.deb else wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sk1libs-0.9.1pre-rev905_0ubuntu1_9.10_i386.deb wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sK1-0.9.1pre-rev905_0ubuntu1_9.10_i386.deb sudo dpkg -i sk1libs-0.9.1pre-rev905_0ubuntu1_9.10_i386.deb sudo dpkg -i sK1-0.9.1pre-rev905_0ubuntu1_9.10_i386.deb fi fi if [ "$distro" = "jaunty" ] ; then bits=`uname -m` if [ "$bits" = "x86_64" ]; then wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sk1libs-0.9.1pre-rev905_0ubuntu1_9.04_amd64.deb wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sK1-0.9.1pre-rev905_0ubuntu1_9.04_amd64.deb sudo dpkg -i sk1libs-0.9.1pre-rev905_0ubuntu1_9.04_amd64.deb sudo dpkg -i sK1-0.9.1pre-rev905_0ubuntu1_9.04_amd64.deb else wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sk1libs-0.9.1pre-rev905_0ubuntu1_9.04_i386.deb wget http://sk1project.org/downloads/sk1/0.9.1pre_rev905/sK1-0.9.1pre-rev905_0ubuntu1_9.04_i386.deb sudo dpkg -i sk1libs-0.9.1pre-rev905_0ubuntu1_9.04_i386.deb sudo dpkg -i sK1-0.9.1pre-rev905_0ubuntu1_9.04_i386.deb fi fi echo '#!/usr/bin/env xdg-open' > ~/Escritorio/sk1.desktop echo '[Desktop Entry]' >> ~/Escritorio/sk1.desktop echo 'Name=sK1' >> ~/Escritorio/sk1.desktop echo 'Exec=/usr/local/bin/sk1' >> ~/Escritorio/sk1.desktop echo 'Icon=/home/'$USER'/.sK1/icons/CrystalSVG/icon_sk1_64.png' >> ~/Escritorio/sk1.desktop echo 'Type=Application' >> ~/Escritorio/sk1.desktop echo 'Terminal=false' >> ~/Escritorio/sk1.desktop echo 'Categories=Application;Graphics;VectorGraphics;GTK;' >> ~/Escritorio/sk1.desktop echo 'Comment=Illustration program for prepress' >> ~/Escritorio/sk1.desktop chmod +x ~/Escritorio/sk1.desktop rm *.deb ## Ciudado!!! fi fi echo echo "Instalación finalizada. Pulse Enter para terminar" read TheEnd # pausa para quien lo ejecutó desde Nautilus sepa que todo fue bien