Posts Tagged 'Scripts'

Script para instalar Chromium

Creo una nueva categoria «Scripts» en el Blog, y en ella ire añadiendo aquellos scripts de instalacion de
las principales aplicaciones. Para inaugurar esta seccion aqui dejo el script de instalacion de Chromium creado
por Jeff Rader de Ubuntu Geek y que nos puede servir de ejemplo para crear nuestros propios scripts.

#!/bin/bash
#Installs Chromium Browser in Ubuntu
#Script by Jeff Rader, raderjeff@gmail.com
#Source from http://www.ubuntugeek.com

echo "Getting ready to install chromium-browser:"

echo "
To run this script, you must be an administrator.
If you are not and you try to run this anyway,
your system administrator will be notified.

"
sudoer=null
echo -n "Continue [y or n]? "
while [ $sudoer == "null" ]; do
        read sudoer
        if [ $sudoer == "y" ]; then
                echo "Continuing..."
        elif [ $sudoer == "n" ]; then
                echo "Press ENTER to quit."
                read
                exit
        else
                echo -n "[y] or [n]: "
                sudoer=null
        fi
done

disto=`awk '{print $1}' /etc/issue`
if [ $disto == "Ubuntu" ]; then
        vers=`awk '{print $2}' /etc/issue`
                if [ "$vers" == "9.10" ]; then
                        echo "You are using $disto $vers"
                        echo "Adding Launchpad to /etc/apt/sources.list"
                        sudo cat >> /etc/apt/sources.list << EOF

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

EOF
                elif [ "$vers" == "9.04" ]; then
                        echo "You are using $disto $vers"
                        echo "Adding Launchpad to /etc/apt/sources.list"
                        sudo cat >> /etc/apt/sources.list << EOF

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main

EOF
                elif [ "$vers" == "8.10" ]; then
                        echo "You are using $disto $vers"
                        echo "Adding Launchpad to /etc/apt/sources.list"
                        sudo cat >> /etc/apt/sources.list << EOF

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main

EOF
                else
                        clear
                        echo "This scipt does not support $distro $ver
                        Press ENTER to exit:"
                        read
                        exit
                fi
else
        vers=`awk '{print $2}' /etc/issue`
        echo "This script only works with Ubuntu 9.10, 9.04. and 8.10.
You are using $distro $vers.
You will have to find another way to install Chromium.
Press ENTER to exit:"
        read
        exit
fi
echo "Adding Key"
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
echo "Updating"
sudo apt-get update
echo "Installing Chromium-Browser"
sudo apt-get install chromium-browser
echo "Killing Firefox"
killall firefox
echo "Starting Chromium
"
chromium-browser
echo "Press Enter to exit:"
read
exit

Podeis tambien echar un vistazo al script que hice para instalar Flash Player y Firefox. Incluso podeis colaborar
mandandome vuestros propios scripts (si consigo una buena coleccion lo mismo hago un mega-post recopilatorio al
estilo «scripts a ejecutar despues de instalar Ubuntu XX.XX» ^^)





¿Es compatible tu equipo con Ubuntu?


( Muchos fondos de pantalla, aqui )

DESCARGATE SCIFI LIFE

365 Dias de Soledad
Me debes los sueños, las promesas y las noches rotas. Me debes la paz, la sonrisa y la esperanza robadas. Me debes la sangre, las lágrimas y el sudor vertido. Me debes las noches vacías, los abrazos anhelados. Me debes un beso de ajenjo de tu amarga boca.

The Ubuntu Counter Project - user number # 11961
Geo Visitors Map

Archivos

May 2024
L M X J V S D
 12345
6789101112
13141516171819
20212223242526
2728293031  

Blog Stats

  • 31.400.897 hits