Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francis36012/a2e2b9f1711f5e4bce0b to your computer and use it in GitHub Desktop.
Save francis36012/a2e2b9f1711f5e4bce0b to your computer and use it in GitHub Desktop.
Installs google chrome and google talk plugin on an ubuntu based system
#!/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