Created
April 19, 2015 20:56
-
-
Save francis36012/a2e2b9f1711f5e4bce0b to your computer and use it in GitHub Desktop.
Installs google chrome and google talk plugin on an ubuntu based system
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 | |
installgtalkplugin() { | |
printf 'Downloading Google Talk Plugin...\n\n' | |
case `uname -i` in | |
i386|i486|i586|i686) | |
wget https://dl.google.com/linux/direct/google-talkplugin_current_i386.deb | |
;; | |
x86_64) | |
wget https://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb | |
;; | |
*) | |
printf 'No matched downloads for your system.\n\n' | |
exit 1 | |
;; | |
esac | |
printf 'Installing Google Talk Plugin...\n\n' | |
dpkg -i google-talkplugin_current*.deb | |
apt-get install -fy | |
rm google-talkplugin_current*.deb | |
printf 'Done\n\n' | |
} | |
installgchrome() { | |
printf 'Downloading Google Chrome...\n\n' | |
case `uname -i` in | |
i386|i486|i586|i686) | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb | |
;; | |
x86_64) | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
;; | |
*) | |
printf 'No matched downloads for your system.\n\n' | |
exit 1 | |
;; | |
esac | |
printf 'Installing Google Chrome\n' | |
dpkg -i google-chrome*.deb | |
apt-get install -fy | |
rm google-chrome*.deb | |
printf 'Done\n\n' | |
} | |
if [ $EUID -ne 0 ] ; then | |
printf 'This script should be run as root\n' | |
exit 1 | |
else | |
installgchrome | |
installgtalkplugin | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment