Created
April 13, 2010 19:40
-
-
Save r00tw33d/365002 to your computer and use it in GitHub Desktop.
Instala emesene crazy desde repos alternativos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Instala el crazy emesene desde repositorios alternativos | |
# Fuente de referencia: www.pcdigital.org | |
USUARIO=`id -nu` | |
if [ "$(id -u)" == "0" ]; then | |
# verificando ke no existan los repos a agregar | |
RES=`cat /etc/apt/sources.list | grep bjfs | wc -l` | |
if [ $RES -eq 0 ]; then | |
echo "Agregando repositorios y llaves..." | |
add-apt-repository ppa:bjfs/ppa | |
else | |
echo "Los repositorios ya existen, probando a importar las llaves..." | |
su $USUARIO -c "gpg --keyserver keyserver.ubuntu.com --recv-keys 6E871C4A881574DE" | |
su $USUARIO -c "gpg --armor --export 6E871C4A881574DE | sudo apt-key add -" | |
su $USUARIO -c "gpg --keyserver keyserver.ubuntu.com --recv-keys 608BF7B93528AE20" | |
su $USUARIO -c "gpg --armor --export 608BF7B93528AE20 | sudo apt-key add -" | |
fi | |
echo "Actualizando apt-get..." | |
apt-get update | |
echo "Instalando emesene2" | |
apt-get --force-yes -y install emesene2 | |
else | |
echo "Aborting. Are u r00t?" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Instala el crazy emesene desde repositorios alternativos | |
# Fuente de referencia: www.pcdigital.org | |
USUARIO=`id -nu` | |
if [ "$(id -u)" == "0" ]; then | |
# verificando ke no existan los repos a agregar | |
RES=`cat /etc/apt/sources.list | grep bjfs | wc -l` | |
if [ $RES -eq 0 ]; then | |
echo "Agregando repositorios..." | |
echo '#Repositorios para crazy emesene' >> /etc/apt/sources.list | |
echo 'deb http://ppa.launchpad.net/bjfs/ppa/ubuntu jaunty main' >> /etc/apt/sources.list | |
echo 'deb-src http://ppa.launchpad.net/bjfs/ppa/ubuntu jaunty main' >> /etc/apt/sources.list | |
echo "Agregando llaves..." | |
# ejecutando procesos sin permisos suid | |
su $USUARIO -c "gpg --keyserver keyserver.ubuntu.com --recv 0CC1223EE2314809" | |
su $USUARIO -c "gpg --export --armor 0CC1223EE2314809 | sudo apt-key add -" | |
echo "Actualizando apt-get..." | |
apt-get update | |
echo "Instalando emesene crazy..." | |
else | |
echo "Los repositorios ya existen, probando a instalar..." | |
fi | |
apt-get --force-yes -y install emesene | |
else | |
echo "Aborting. Are u r00t?" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment