diff --git a/linuxparty.sh b/linuxparty.sh index 570aad9d8ad80a06e1b58aef743311cf6b8f23a5..cb3931b1d3b5bc22949a20cc78668b69fd772639 100644 --- a/linuxparty.sh +++ b/linuxparty.sh @@ -69,7 +69,19 @@ if [ $answer -eq 1 ]; then echo "Java, Haskell, Prolog und Eclipse wurden installiert"; elif [ $answer -eq 2 ]; then - wget -c http://downloads.sourceforge.net/project/cernrootdebs/latest-recommended/root_5.30.01_amd64.deb && dpkg -i root_5.30.01_amd64.deb && rm -f root_5.30.01_amd64.deb || { rm -f root_5.30.01_amd64.deb; echo "Interner-Fehler beim Installieren von root"; exit 1; } + #ROOT: Installiere 32 oder 64 bit + if uname -m | grep -q x86_64 + then + echo "Installiere ROOT 64 bit" + ROOTurl="http://downloads.sourceforge.net/project/cernrootdebs/latest-recommended/root_5.30.01_amd64.deb" + ROOTfile="${ROOTurl##*/}" + else + echo "Installiere ROOT 32 bit" + # Achtung: Single-Quotes wegen Ausrufungszeichne in der URL + ROOTurl='http://downloads.sourceforge.net/project/cernrootdebs/32bits!/root_5.28.00c_i386.deb' + ROOTfile="${ROOTurl##*/}" + fi + wget -c "${ROOTurl}" -O "${ROOTfile}" && dpkg -i "${ROOTfile}" && rm -f "${ROOTfile}" && ln -s /opt/root/bin/root /usr/bin/ || { rm -f "${ROOTfile}"; echo "Interner-Fehler beim Installieren von ROOT. Helfer fragen."; exit 1; } apt-get --quiet install -y python python-numpy python-simpy python-scipy python-matplotlib ipython python-dev gnuplot wxmaxima kmplot; elif [ $answer -eq 3 ] then echo "Bitte wende dich an deine Professoren"