Descripción: Con este escript puedes instalar google-chrome-instable o Chromium. básicamente lo que hace este script es generar una lista de repositorio y lo aloja e: /etc/apt/sources.list.d/, despues como podemos ver en el script realiza un «sudo apt-get update» y a continuacion instala el navegador
/bin/bash
# licencia GPL3
# por rockyiii
# account url: http://two.xthost.info/googlechrome/
clear
echo -e 'e[1;34mGe[0me[1;31moe[0me[1;33moe[0me[1;34mge[0me[1;32mle[0me[1;31mee[0m e[1;34mchromiune[0m e[0;31my chromee[0m para GNU/Linux Debian'
echo
echo
OPCIONES="repositorios-chrome repositorios-chromiun salir"
select opt in $OPCIONES; do
if [ "$opt" = "salir" ]; then
echo done
exitelif [ "$opt" = "repositorios-chromiun" ]; then
echo done
clear
echo -e 'e[1;34mGe[0me[1;31moe[0me[1;33moe[0me[1;34mge[0me[1;32mle[0me[1;31mee[0m e[1;34mrepositorios-chromiun-amd64/i386e[0m'
echo
echo
echo "deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main" | sudo tee -a /etc/apt/sources.list.d/chromiun.list
echo "deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main" | sudo tee -a /etc/apt/sources.list.d/chromiun.list
cd /tmp/
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4E5E17B5
sudo apt-get update
sudo apt-get install -y chromium-browser chromium-browser-l10n
echo done
exitelif [ "$opt" = "repositorios-chrome" ]; then
echo done
clear
echo -e 'e[1;34mGe[0me[1;31moe[0me[1;33moe[0me[1;34mge[0me[1;32mle[0me[1;31mee[0me[1;34m-chromee[0me[0;31m-unstable-amd64/i386e[0m'
echo
echo
echo "deb http://dl.google.com/linux/deb/ stable main non-free" | sudo tee -a /etc/apt/sources.list.d/google-chrome.list
echo "deb http://dl.google.com/linux/deb/ testing main non-free" | sudo tee -a /etc/apt/sources.list.d/google-chrome.list
cd /tmp/
wget https://dl-ssl.google.com/linux/linux_signing_key.pub
sudo apt-key add linux_signing_key.pub
rm linux_signing_key.pub
sudo apt-get update
sudo apt-get install -y google-chrome-unstable/stable
echo done
exit
else
clear
echo opción errónea
fi
done
Como se usa:
rokitoh@redorbita:# chmod 755 google.sh
rokitoh@redorbita:# ./google.sh
/opt/google/chrome/google-chrome %U chrome://newtab –enable-plugins –enable-extensions –enable-user-scripts
Chromium-browser
chromium-browser %U chrome://newtab –enable-plugins –enable-extensions –enable-user-scripts
Descargar script: http://two.xthost.info/googlechrome/00/