From b2379e4dfc3ea8455e0d980466ceeb55c66a155d Mon Sep 17 00:00:00 2001 From: Findus23 Date: Sun, 23 Feb 2014 15:16:34 +0100 Subject: [PATCH] =?UTF-8?q?Google=20Earth=20hinzugef=C3=BCgt=20*=20eventue?= =?UTF-8?q?ll=20nicht=20funktionst=C3=BCchtig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- google-earth.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 google-earth.sh diff --git a/google-earth.sh b/google-earth.sh new file mode 100755 index 0000000..8eac394 --- /dev/null +++ b/google-earth.sh @@ -0,0 +1,24 @@ +#!/bin/bash +#apt-get update +if dpkg -l google-earth-stable|grep -q ii +then + echo "Google Earth ist bereits installiert" + zenity --info --title "Info" --text "Google Earth ist bereits installiert" + exit +fi +sources=$(cat /etc/apt/sources.list.d/google-earth.list) +if [ "$sources" != "deb http://dl.google.com/linux/earth/deb/ stable main" ] +then + echo "deb http://dl.google.com/linux/earth/deb/ stable main" > temp + mv temp /etc/apt/sources.list.d/google-earth.list + wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add - + rm temp +fi +sudo apt-get update +if sudo apt-get install google-earth-stable -y +then + zenity --info --title "Erfolg" --text "Google Earth wurde erfolgreich installiert" +else + zenity --error --title "Fehler" --text "Google Earth wurde nicht erfolgreich installiert" +fi +# alternativ http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb