update for 2023

main
Sebastian Heimann 3 months ago
parent fea2bef823
commit 7865cc4cfb

@ -1,15 +0,0 @@
[xfdesktop-version-4.10.3+-rcfile_format]
4.10.3+=true
[Trash]
row=0
col=0
[/]
row=1
col=0
[/home/itc]
row=2
col=0

@ -1,15 +0,0 @@
[xfdesktop-version-4.10.3+-rcfile_format]
4.10.3+=true
[Trash]
row=0
col=0
[/]
row=1
col=0
[/home/itc]
row=2
col=0

@ -1,15 +0,0 @@
[xfdesktop-version-4.10.3+-rcfile_format]
4.10.3+=true
[Trash]
row=0
col=0
[/]
row=1
col=0
[/home/itc]
row=2
col=0

@ -1,14 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Exec=exo-open --launch FileManager %u
Icon=system-file-manager
StartupNotify=true
Terminal=false
Categories=Utility;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
X-AppStream-Ignore=True
Name=File Manager
Comment=Browse the file system
X-XFCE-Source=file:///usr/share/applications/exo-file-manager.desktop

@ -1,14 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Exec=exo-open --launch WebBrowser %u
Icon=web-browser
StartupNotify=true
Terminal=false
Categories=Network;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
X-XFCE-MimeType=x-scheme-handler/http;x-scheme-handler/https;
X-AppStream-Ignore=True
Name=Web Browser
Comment=Browse the web
X-XFCE-Source=file:///usr/share/applications/exo-web-browser.desktop

@ -1,11 +0,0 @@
[Desktop Entry]
Version=1.0
Exec=xfce4-appfinder
Icon=gtk-find
StartupNotify=true
Terminal=false
Type=Application
Categories=Utility;X-XFCE;
Name=Application Finder
Comment=Find and launch applications installed on your system
X-XFCE-Source=file:///usr/share/applications/xfce4-appfinder.desktop

@ -1,13 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Exec=exo-open --launch TerminalEmulator
Icon=utilities-terminal
StartupNotify=true
Terminal=false
Categories=Utility;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
X-AppStream-Ignore=True
Name=Terminal Emulator
Comment=Use the command line
X-XFCE-Source=file:///usr/share/applications/exo-terminal-emulator.desktop

@ -91,10 +91,32 @@
<property name="last-image" type="empty"/>
<property name="last-single-image" type="empty"/>
</property>
<property name="monitorVirtual1" type="empty">
<property name="workspace0" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="image-style" type="int" value="0"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
<property name="workspace1" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
<property name="workspace2" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
<property name="workspace3" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
</property>
</property>
</property>
<property name="last" type="empty">
<property name="window-width" type="int" value="641"/>
<property name="window-height" type="int" value="509"/>
<property name="window-width" type="int" value="653"/>
<property name="window-height" type="int" value="554"/>
</property>
</channel>

@ -2,74 +2,26 @@
set -e
echo 'export LC_ALL=en_US.UTF-8' | sudo tee /etc/profile.d/locale.sh
source /etc/profile.d/locale.sh
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y aptitude vim curl virt-what
sudo apt-get install -y task-xfce-desktop lightdm
[ -z $(sudo virt-what | grep virtualbox ) ] || (
sudo modprobe vboxsf || (
sudo apt-get install -y build-essential dkms linux-headers-$(uname -r)
sudo apt-get install -y virtualbox-guest-additions-iso
sudo mkdir /mnt/iso
sudo mount -o loop /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt/iso
cd /mnt/iso
sudo sh ./VBoxLinuxAdditions.run --nox11 || /bin/true # exits with fail because modules cannot be inserted successfully ; need restart
)
)
sudo apt-get install -y make git
sudo apt-get install -y python-dev python-setuptools python-numpy-dev
sudo apt-get install -y python3-dev python3-setuptools python3-numpy-dev
sudo apt-get install -y python-coverage python-nose
sudo apt-get install -y python3-coverage python3-nose
sudo apt-get install -y \
python-numpy python-scipy python-matplotlib \
python-requests python-future \
python-yaml python-progressbar
sudo apt-get install -y \
python3-numpy python3-scipy python3-matplotlib \
python3-requests python3-future \
python3-yaml python3-progressbar
sudo apt-get install -y \
python-qt4 python-qt4-gl \
python-pyqt5 python-pyqt5.qtopengl python-pyqt5.qtsvg \
python-pyqt5.qtwebengine python-pyqt5.qtwebkit
sudo apt-get install -y \
python3-pyqt4 python3-pyqt4.qtopengl \
python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtsvg \
python3-pyqt5.qtwebengine python3-pyqt5.qtwebkit
sudo apt-get install -y \
python-jinja2 python-pybtex
sudo cp /tmp/lightdm.conf /etc/lightdm/lightdm.conf
sudo apt-get install -y \
python3-jinja2 python3-pybtex
sudo apt-get install -y make git python3-setuptools python3-pip jupyter
sudo apt-get install -y \
gmt gmt-gshhg poppler-utils imagemagick
sudo apt-get install -y autoconf gfortran
sudo apt-get install -y python-pip
sudo apt-get install -y python3-pip
sudo apt-get install -y jupyter
sudo apt-get install -y python-ipywidgets python-pandas python-plotly python-shapely
sudo apt-get install -y python3-ipywidgets python3-pandas python3-plotly python3-shapely
sudo apt-get install -y python-sqlalchemy
sudo apt-get install -y python3-sqlalchemy
sudo pip install obspy
sudo pip3 install obspy
src="$HOME/itc-seis-software"
[ -d "$src" ] || mkdir "$src"
@ -78,97 +30,22 @@ cd "$src"
&& cd fomosto-qseis && autoreconf -i && ./configure && make && sudo make install )
cd "$src"
[ -d "fomosto-psgrn-pscmp" ] || ( git clone https://git.pyrocko.org/pyrocko/fomosto-psgrn-pscmp.git \
&& cd fomosto-psgrn-pscmp && autoreconf -i && ./configure && make && sudo make install )
cd "$src"
[ -d "fomosto-qssp2017" ] || ( git clone https://git.pyrocko.org/pyrocko/fomosto-qssp2017.git \
&& cd fomosto-qssp2017 && autoreconf -i && ./configure && make && sudo make install )
cd "$src"
[ -d "pyrocko" ] || ( git clone https://git.pyrocko.org/pyrocko/pyrocko.git \
&& cd pyrocko && sudo python2 setup.py install && sudo python3 setup.py install )
cd "$src"
[ -d "kite" ] || ( sudo pip3 install utm && git clone https://github.com/pyrocko/kite.git \
&& cd kite && sudo python3 setup.py install )
[ -d "pyrocko" ] || ( git clone -b itc2023 https://git.pyrocko.org/pyrocko/pyrocko.git \
&& cd pyrocko && python3 install.py deps system --yes && python3 install.py system --yes )
cd "$src"
[ -d "grond" ] || ( git clone https://git.pyrocko.org/pyrocko/grond.git \
&& cd grond && sudo python3 setup.py install )
seiscomp () {
# Install SeisComP in the home directory, under ~/seiscomp.
[ -d "$HOME/seiscomp" ] && return 1
SCVERSION=$(curl -s "https://www.seiscomp.de/downloader/" | grep -o seiscomp.*gz $downloaderhtml | cut -d- -f2 | head -1)
echo $SCVERSION
ARCH=$(uname -m)
case $ARCH in
x86_64|i686)
;;
*)
echo "Sorry, unknown OS architecture for SeisComP installation."
uname -a
exit 1
esac
tarfile=seiscomp-$SCVERSION-debian10-$ARCH.tar.gz
docfile=seiscomp-$SCVERSION-doc.tar.gz
cd $HOME
wget "https://www.seiscomp.de/downloader/${tarfile}"
wget "https://www.seiscomp.de/downloader/${docfile}"
tar xzf ${tarfile}
tar xzf ${docfile}
[ -d "seiscomp/var/share/maps" ] || (
wget "https://www.seiscomp.de/downloader/seiscomp-maps.tar.gz"
tar xzf seiscomp-maps.tar.gz
)
# Dependencies:
sudo apt-get install -y lsb-release
$HOME/seiscomp/bin/seiscomp install-deps base fdsnws gui mariadb-server
sudo apt-get install -y libqt4-svg
# Set mariadb root password to 'root'
sudo mysql -e "SET old_passwords=0; ALTER USER root@localhost IDENTIFIED BY 'root'; FLUSH PRIVILEGES;"
# Clean up downloaded files
rm -f $tarfile $docfile seiscomp-maps.tar.gz
# Extra for setting seiscomp environment:
$HOME/seiscomp/bin/seiscomp print env >$HOME/.seiscomprc
}
# bypass interactive confirmation in seiscomp install-deps
sudo apt-get install -y libxml2 libboost-filesystem1.67.0 \
libboost-iostreams1.67.0 libboost-thread1.67.0 \
libboost-program-options1.67.0 libboost-regex1.67.0 \
libboost-signals1.67.0 libboost-system1.67.0 libssl1.1 libncurses5 \
libmariadb3 libpq5 libpython2.7 python-numpy python-twisted-web \
python-dateutil libqtgui4 libqt4-xml libqt4-opengl libqt4-sql-sqlite \
mariadb-server mariadb-client
[ -d "$HOME/seiscomp" ] || seiscomp
[ -f "/tmp/itc-seis-dot-files-2020.tar.gz" ] \
|| ( cd /tmp ; wget "https://data.pyrocko.org/scratch/itc-seis-dot-files-2020.tar.gz" )
[ -d "grond" ] || ( git clone -b itc2023 https://git.pyrocko.org/pyrocko/grond.git \
&& cd grond && sudo pip3 install --no-deps . )
cd "$HOME"
tar -xzvf "/tmp/itc-seis-dot-files-2020.tar.gz"
cd "$HOME"
if [ ! -d "itc-seis-dataset-2020" ] ; then
cd "/tmp"
wget "https://data.pyrocko.org/scratch/itc-seis-dataset-2020.tar.gz"
cd "$HOME"
tar -xzvf "/tmp/itc-seis-dataset-2020.tar.gz"
rm "/tmp/itc-seis-dataset-2020.tar.gz"
fi
tar -xzvf "/tmp/itc-seis-dot-files-2023.tar.gz"
#cd "$HOME"
#if [ ! -d "itc-seis-dataset-2020" ] ; then
# cd "/tmp"
# wget "https://data.pyrocko.org/scratch/itc-seis-dataset-2020.tar.gz"
# cd "$HOME"
# tar -xzvf "/tmp/itc-seis-dataset-2020.tar.gz"
# rm "/tmp/itc-seis-dataset-2020.tar.gz"
#fi
#

@ -1,28 +1,38 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABB+Z+WQoW
rfXblwp56X3SdBAAAAEAAAAAEAAAEXAAAAB3NzaC1yc2EAAAADAQABAAABAQDEKhvPoSy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6h883tIqCCZDBNLB6Md+5ful1VTt5bWYG+fdf6Gi0ehz7A9OoCz72JzCEJouthom9McQLM14wBet4uuI8sGtzO4ofa8DPsTn9oooTDO2QQfoRKiJxPYwdNIkTi+5/Yu8/jq/NLO0T5Kz5nEaBMT4VNBB0Pv7ypQYCYYH+PxXWNJT/VcwpYoaGk4FouyYn1e53ABQwYAzODzWzgP1BqDtL2wX23FTqKL6BcT7XZp/k/ke2E0M9QJsFTEs5nII8NfV4b6FKpPxgVg2KbiGQ6/nvGtV heimann@birne2
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDB0PMHN0bfo87nrURYJxdeIsecQm/bxj0GxTy8wx/Brdh90WH86xraKBQZpkwoXVgT87mVS/i204HX6UkqXqI2ZtvmYMOa60oiHKL+8GfNgta+wa4SeVtqFKex8kJb3tJ6fxEp/f41Kl8B7aYuLkoo5VWkFm8uGxTBgSiJ3RFZUIbG1L11U5l33/c469slR1NF7U5T1+82gHnM0VbAgyk+AIGKqdxkyck2fpt+FvPmssmGfAgkCJPwcqaBFfO7bnQbVvyuiZAP/qssXTPE10ktTOcUlqMubw2RSzJV9uhnCozM7Glp/jvIrKUykJcB6WLNI0Q2la9Rx0BxkBmEwMCrLEHzTgZfZqRznVePaBG6NQj6OqurXwVZ1/mlsUUxmoyFW9/t001NDmoQb/saZ3a4/c2XFrlgmFb5+Q/7v11jYMn46R+nSrJtSiN3IA2Z7MhJ93iuP1ofKfXjppzXtSkchu7GmwRNzTy4SiGkAQRGoz1I9JYrbRN9gsxs+PSV/QE= heimann@prog

@ -0,0 +1,169 @@
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
# dbus-service = True if LightDM provides a D-Bus service to control it
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
#backup-logs=true
#dbus-service=true
#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (local, xremote, unity)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-backend = X backend to use (mir)
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=local
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-backend=
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
autologin-user=itc
autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false
#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=
#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8

@ -15,36 +15,37 @@ wait_vm_up () {
force=$1
[ -f 'itc2020_blank.ova' ] || wget 'https://data.pyrocko.org/scratch/itc2020_blank.ova'
[ -f 'itc2023_blank.ova' ] || wget 'https://data.pyrocko.org/scratch/itc2023_blank.ova'
if [ -z "$force" ] ; then
[ -z "$(vboxmanage list vms | grep '\"itc2020\"')" ] || die 'vm already exists'
[ -z "$(vboxmanage list vms | grep '\"itc2023\"')" ] || die 'vm already exists'
else
[ -z "$(vboxmanage list runningvms | grep '\"itc2020\"')" ] || vboxmanage controlvm 'itc2020' poweroff
vboxmanage unregistervm 'itc2020' --delete
[ -z "$(vboxmanage list runningvms | grep '\"itc2023\"')" ] || vboxmanage controlvm 'itc2023' poweroff
vboxmanage unregistervm 'itc2023' --delete
fi
vboxmanage import itc2020_blank.ova
vboxmanage import itc2023_blank.ova --vsys 0 --vmname itc2023
vboxmanage modifyvm "itc2023" --natpf1 "guestssh,tcp,,22001,,22"
vboxheadless -s itc2020 &
vboxheadless -s itc2023 &
VMPID=$!
wait_vm_up
ssh-add itc_admin
( cd dot-files ; tar -czvf ../itc-seis-dot-files-2020.tar.gz . )
( cd dot-files ; tar -czvf ../itc-seis-dot-files-2023.tar.gz . )
scp -P 22001 -i itc_admin -o 'NoHostAuthenticationForLocalhost yes' itc-seis-dot-files-2020.tar.gz install-itc-software.sh itc@localhost:/tmp
scp -r -P 22001 -i itc_admin -o 'NoHostAuthenticationForLocalhost yes' itc-seis-dataset-2020 itc@localhost:
scp -P 22001 -i itc_admin -o 'NoHostAuthenticationForLocalhost yes' lightdm.conf itc-seis-dot-files-2023.tar.gz install-itc-software.sh itc@localhost:/tmp
#scp -r -P 22001 -i itc_admin -o 'NoHostAuthenticationForLocalhost yes' itc-seis-dataset-2023 itc@localhost:
ssh -t -p 22001 -i itc_admin -o 'NoHostAuthenticationForLocalhost yes' itc@localhost 'bash /tmp/install-itc-software.sh'
vboxmanage controlvm 'itc2020' acpipowerbutton
vboxmanage controlvm 'itc2023' acpipowerbutton
wait $VMPID
rm -f 'itc2020.ova'
vboxmanage export 'itc2020' --output 'itc2020.ova'
rm -f 'itc2023.ova'
vboxmanage export 'itc2023' --output 'itc2023.ova'
echo 'success'

Loading…
Cancel
Save