# XUbuntu Exahm 2024-05-28

SS 2024: konventionelle Papier-Klausur, aber zugelassenes Hilfsmittel auch ein XUbuntu-Computer mit Jupyter Notebook 07, ausgeliefert als Mini-Version des dsci-lab.

Download (Stand 2024-06-13):

* <https://www.jbusse.de/vm/exahm-2024-05-28.ova>
* user: dsci
* pass: XXXXXX
* sha256sum: b9680794d5f57c55ef1cfd081f4f80dadbea5a86add45f56a42c70f160c70836 

```{figure} ../IMG_2456_small.JPG
:height: 150px
```

#  Minimale Doku der Installation


## 2024-05-07

Installation unte VirtualBox 6.1.50 (später dann aktualisiert auf VirtualBox 7); neuer Recher, Ubuntu 64 bit; 8 GM RAM; vdi-Festplatte dynamisch alloziert

starten, kein Betriebesystem, (vorher heruntergeladenes) ISO-Image wählen: XUbuntu 22.04.4 desktop 64bit

Ubunu startet, "Installieren", Sprache DE, Zeitzone, Berlin, minimale Installation

Installation abgeschlossen > jetzt neu starten

```sh
sudo apt update; sudo apt upgrade
```

To install new kernel modules - i.e. Oracle VirtualBox Guest Extensions - we need (the gnu C compiler) `gcc`:

```sh
sudo apt install gcc make perl htop
```

Oracle Virtual Box > Geräte > Gasterweiterungen einlegen: A window pops up, showing the directory `/media/data/VBox_GAs_6.1.42./` > rightclick on background, "Open Terminal here",  a new terminal opens. Type in:

```sh
sudo ./VBoxLinuxAdditions.run
```

Some new kernel modules will be built. To replace the running kernel modules with the new ones you have to reboot the VM:

```sh
sudo reboot
```

Login again. You now should be able to resize the VM window. Try it!

```sh
sudo apt install mousepad vim emacs
```

```
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
~/miniconda3/bin/conda init bash
conda update --all
```

Terminal schließen; Terminal neu öffnen

```
pip install pandas numpy jupyter-book  jupytext
jupyter notebook &
```

In VirtualBox: Gemeinsame Ordner anlegen, lokaler Ordner: `Y`; dann geht

```
ln -s /media/sf_Y Y
```


gemäß <https://www.jbusse.de/dsci-lab/build_install.html#customize-user-install-background-image>:


## Exportieren nach OVA

Maschine starten:
* Kontrolle, dass die virtuelle DVD "Gasterweiterungen" nicht eingelegt ist
* ggf. bash history durchschauen: alle wichtigen Kommandos 'drinn?
* Maschine 'runterfahren


Appliance-Einstellungen:

* "Open Virtualization Format 1.0"
* MAC-Adressen-Richtlinie: "MAC-Adressen aller Netzwerkadapter mit einbeziehen"
* "schreibe Manifest-Datei"
* Datei: `/home/jb/v/exahm-2024-05-28.ova`

Einstellungen des virtuellen Systems:
* Produkt-URL: <https://www.jbusse.de/dsci-lab/r_build_xubuntu-exahm_2024-05-28.html>
* Lizenz: CC-BY

OVA scheiben erzeugt eine Datei mit knapp 7GB (6 858 021 376 bytes).

```
$ sha256sum exahm-2024-05-28.ova 
b9680794d5f57c55ef1cfd081f4f80dadbea5a86add45f56a42c70f160c70836
```