main
Sebastian Heimann 3 months ago
parent d007f89f13
commit 594c6b8607

@ -1,3 +1,22 @@
# itc-seis-box-2020
# itc-seis-box
International Training Course on Seismology and Seismic Hazard Assessment - Software and Datasets - 2020 (virtual)
A virtual box image for the moment tensor exercises at the International
Training Courses on Seismology and Seismic Hazard Assessment
This repos is an attempt to automatize part of the setup and configuration of
the VM.
As a base box we need a .ova with a minimal system with
- Make VM disk image large enough, e.g. growable to 30 GB.
- Set RAM to about 4 GB, allow it to use 2 processor cores.
- Current Debian minimal install, no desktop env (this time used Debian 11
because Virtualbox guest additions were not yet ready for Debian 12).
- User `root`, password `earthquake101`
- User `itc`, password `earthquake101`
- Install sudo
- Add user `itc` to group `sudo`
- Install sshd
- `itc_admin.pub >> /home/itc/.ssh/authorized_keys`
- Install vbox guest additions!
- Remove guest additions ISO before exporting the ova.

@ -8,12 +8,16 @@ 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 aptitude vim curl virt-what gedit
sudo apt-get install -y task-xfce-desktop lightdm
sudo apt-get remove -y light-locker
sudo cp /tmp/lightdm.conf /etc/lightdm/lightdm.conf
gsettings set apps.light-locker lock-after-screensaver 0
gsettings set apps.light-locker lock-on-suspend false
cd $HOME
mkdir -p .local/bin
cp /tmp/itc-update .local/bin/
chmod a+x .local/bin/itc-update
sudo apt-get install -y make git python3-setuptools python3-pip jupyter
@ -41,13 +45,3 @@ cd "$src"
cd "$HOME"
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
#

@ -37,7 +37,7 @@ ssh-add itc_admin
( cd dot-files ; tar -czvf ../itc-seis-dot-files-2023.tar.gz . )
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 -P 22001 -i itc_admin -o 'NoHostAuthenticationForLocalhost yes' lightdm.conf itc-seis-dot-files-2023.tar.gz itc-update 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'

Loading…
Cancel
Save