Skip to content
Snippets Groups Projects
Commit 6d311f9b authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Updated linuxparty.sh installation script

The hive directory is part of the installer stick ( root directory )
hive/root_env.sh is required for the installation of ROOT
parent cc40d048
No related branches found
No related tags found
No related merge requests found
#!bin/bash
THISROOTLOC="$HOME/root/bin/thisroot.sh"
if [ -e "$THISROOTLOC" ]
then
. "$THISROOTLOC"
fi
......@@ -3,6 +3,7 @@
set -e
MY_DIR="$( readlink -f "$( dirname "${BASH_SOURCE[0]}" )" )"
HIVE_DIR="/media/MultiBoot/hive/" #we assume here that the LIP install stick is mounted at /media/MultiBoot... better idea?
if [ -n "$DEBUG" ]
then
......@@ -75,6 +76,10 @@ showerr() {
}
trap showerr ERR
apt-install() {
apt-get install --quiet -y --force-yes $@
}
echo
echo "Auf dem Install-USB-Stick liegen viele der zu installierenden Packete"
bright "Es ist dringend empfohlen, jetzt einen Instaĺl-USB-Stick einzustecken"
......@@ -128,23 +133,19 @@ fi
if askyesno "Netzwerk: Soll die Ubuntu Firewall (ufw/gufw) aktiviert werden ?"
then
$DEBUG ufw enable
apt-get install --quiet -y --force-yes gufw
apt-install gufw
ok "Firewall aktiviert, benutze 'gufw' oder 'ufw' um die Einstellungen der Firewall zu verändern"
#ok "Firewall aktiviert, benutze das Kommando 'ufw' in einem Teminal, um die Einstellungen der Firewall zu verändern"
fi
echo
echo "Installation:"
echo "Programme, die für alle Fachrichtungen interressant sind (VPN, ... )"
echo "Programme, die für alle Fachrichtungen interressant sind (7zip, gimp, git, ... )"
if askyesno "Sollen diese Programme installiert werden ?"
then
apt-get install --quiet -y --force-yes ubuntu-restricted-extras
ok "Codec Installation abgeschlossen"
apt-get install --quiet -y --force-yes pwgen p7zip-full
apt-install pwgen p7zip-full p7zip-rar unrar-free
ok "Installation der System-Utilities abgeschlossen"
apt-get install --quiet -y --force-yes network-manager-vpnc-gnome
ok "Installation des RWTH-VPNs (vpnc) abgeschlossen"
apt-get install --quiet -y --force-yes texmaker inkscape gimp pidgin smplayer subversion git get-flash-videos
apt-install texmaker inkscape gimp pidgin subversion git graphviz
ok "Installation der für alle interessanten Software abgeschlossen."
else
......@@ -152,18 +153,19 @@ else
fi
echo
echo "Alternative Desktopumgebung: GNOME 3"
echo "Alternative Desktopumgebungen"
echo " Das ist für diejenigen interessant, die mit 'unity',"
echo " der gerade eingestellten Oberfläche nicht gut klarkommen."
if askyesno "Soll 'GNOME 3' installiert werden ?"
then
apt-get install --quiet -y --force-yes gnome
apt-install gnome
ok "GNOME 3 wurde installiert"
fi
# Packete im repo falls die installhelfer die packete brauchen
# openssh-server linux-firmware-nonfree fish rxvt-unicode vim zsh zsh-doc imagemagick lftp
# moc nethack-console scrot sl tmux xcowsay cowsay graphviz
if askyesno "Soll 'xfce' installiert werden ?"
then
apt-install xubuntu-desktop
ok "xfce wurde installiert"
fi
#Fachrichtung wählen
echo
......@@ -171,21 +173,45 @@ echo "Auswahl fachspezifischer Software:"
if askyesno "Software für Vorlesung 'Programmierung' (Pflicht für Informatiker) installieren ?"
then
apt-get install --quiet -y --force-yes haskell-platform java7-jdk swi-prolog
apt-install haskell-platform java7-jdk swi-prolog
ok "Haskell, Java, Prolog und Eclipse wurden installiert"
fi
if askyesno "Software für Physiker (Python-SciPy,-NumPy,diverse Plot-Programme) installieren ?"
then
apt-get install --quiet -y --force-yes python-numpy python-simpy python-scipy python-matplotlib ipython python-dev gnuplot wxmaxima kmplot
ok "Python-SciPy, -NumPy, -Matplotlib, ipython, gnuplot, WxMaxima und KMplot wurden installiert"
apt-install python-numpy python-simpy python-scipy python-matplotlib ipython python-dev gnuplot wxmaxima
ok "Python-SciPy, -NumPy, -Matplotlib, ipython, gnuplot, und WxMaxima wurden installiert"
if askyesno "ROOT installieren (Physiker) ?"
then
if [ ! -d "$HIVE_DIR" || -n "$DEBUG" ]
then
err "Hive konnte nicht gefunden werden ( kein LIP-Stick? ). Ohne Hive kann ROOT leider nicht installiert werden!"
else
#Basis Abhaengigkeiten
apt-install libx11-dev libxpm-dev libxft-dev libxext-dev
#Packete fuer vollen Umfang
apt-install gfortran libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libftgl-dev libmysqlclient-dev libfftw3-dev cfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python-dev libxml2-dev libkrb5-dev libgsl0-dev libqt4-dev
for archive in "$HIVE_DIR/root"*.tar.gz; do
echo "Entpacke "$archive
$DEBUG tar -C "$HOME" -xf "$archive"
done
$DEBUG pushd "$HOME/root" || err "ROOT konnte nicht extrahiert werden..."
$DEBUG ./configure
$DEBUG make
$DEBUG popd
$DEBUG cp "$HIVE_DIR/root_env.sh" "/etc/profile.d/root_env.sh"
$DEBUG chmod +x "/etc/profile.d/root_env.sh"
ok "ROOT erfolgreich installiert"
fi
fi
fi
echo
echo "Falls Du doch noch mehr Software installieren möchtest, starte $0 erneut."
echo
PKGS_EXTRA="openssh-server linux-firmware-nonfree fish rxvt-unicode vim zsh zsh-doc imagemagick lftp moc nethack-console scrot sl tmux xcowsay cowsay graphviz"
#Folgende Packete koennen auch fuer Helfer waehrend der Installation interessant sein:
PKGS_EXTRA="fityk openssh-server linux-firmware-nonfree zsh zsh-doc lftp graphviz gddrescue smartmontools"
echo "Auf dem Installer-USB-Stick sind außerdem noch die folgenden Packete enthalten:"
echo ${PKGS_EXTRA}
echo "Installiere diese Packete bei Bedarf bitte selbst mit 'sudo apt-get install <Packetname>' "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment