From 21f5acf5137b5e426e7fe81b8a3ac8cce8fdba07 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Thu, 31 Oct 2019 13:22:31 +0100 Subject: [PATCH] =?UTF-8?q?=C3=9Cberarbeitung=20Notebooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01-lc-shell.ipynb | 52 ++-------------- 02-koha-install.ipynb | 4 +- 03-archivesspace.ipynb | 6 +- 04-lc-openrefine.ipynb | 135 ++++++++++++++--------------------------- 4 files changed, 55 insertions(+), 142 deletions(-) diff --git a/01-lc-shell.ipynb b/01-lc-shell.ipynb index 3e70210..aadf278 100644 --- a/01-lc-shell.ipynb +++ b/01-lc-shell.ipynb @@ -30,7 +30,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -46,27 +46,9 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "--2019-09-23 22:41:49-- https://librarycarpentry.org/lc-shell/data/shell-lesson.zip\n", - "Resolving librarycarpentry.org (librarycarpentry.org)... 185.199.109.153, 185.199.108.153, 185.199.110.153, ...\n", - "Connecting to librarycarpentry.org (librarycarpentry.org)|185.199.109.153|:443... connected.\n", - "HTTP request sent, awaiting response... 200 OK\n", - "Length: 35142014 (34M) [application/zip]\n", - "Saving to: ‘shell-lesson.zip’\n", - "\n", - "shell-lesson.zip 100%[===================>] 33.51M 58.1MB/s in 0.6s \n", - "\n", - "2019-09-23 22:41:49 (58.1 MB/s) - ‘shell-lesson.zip’ saved [35142014/35142014]\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "wget https://librarycarpentry.org/lc-shell/data/shell-lesson.zip" ] @@ -80,26 +62,9 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Archive: shell-lesson.zip\n", - " inflating: shell-lesson/000003160_01_text.json \n", - " inflating: shell-lesson/2014-01-31_JA-africa.tsv \n", - " inflating: shell-lesson/2014-01-31_JA-america.tsv \n", - " inflating: shell-lesson/2014-01_JA.tsv \n", - " inflating: shell-lesson/2014-02-02_JA-britain.tsv \n", - " inflating: shell-lesson/33504-0.txt \n", - " inflating: shell-lesson/829-0.txt \n", - " inflating: shell-lesson/diary.html \n", - " inflating: shell-lesson/pg514.txt \n" - ] - } - ], + "outputs": [], "source": [ "unzip shell-lesson.zip -d shell-lesson && rm shell-lesson.zip" ] @@ -114,13 +79,6 @@ "\n", "" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/02-koha-install.ipynb b/02-koha-install.ipynb index 8c35329..c4d5b25 100644 --- a/02-koha-install.ipynb +++ b/02-koha-install.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Installation von Koha 19.05" + "# Bibliothekssystem Koha" ] }, { @@ -18,7 +18,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Setup" + "## Installation von Koha 19.05" ] }, { diff --git a/03-archivesspace.ipynb b/03-archivesspace.ipynb index 2e0959f..f869a2c 100644 --- a/03-archivesspace.ipynb +++ b/03-archivesspace.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# ArchivesSpace 2.7.0" + "# Archivinformationssystem ArchivesSpace" ] }, { @@ -18,9 +18,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Installation\n", + "## Installation von ArchivesSpace 2.7.0\n", "\n", - "nach Anleitungen unter:\n", + "Die folgenden Befehle basieren auf den offiziellen Anleitungen unter:\n", "* \n", "* " ] diff --git a/04-lc-openrefine.ipynb b/04-lc-openrefine.ipynb index 320bd66..56554b9 100644 --- a/04-lc-openrefine.ipynb +++ b/04-lc-openrefine.ipynb @@ -18,21 +18,39 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Setup" + "## Installation von OpenRefine 3.2" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "### Java installieren" + "### In das Homeverzeichnis wechseln" ] }, { "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "cd" + ] + }, + { + "cell_type": "markdown", "metadata": {}, "source": [ - "sudo apt-get install -qq -y default-jre" + "### Java 8 installieren" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "sudo apt-get install -qq -y openjdk-8-jre-headless" ] }, { @@ -44,34 +62,11 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { "scrolled": true }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "--2019-09-02 21:00:56-- https://github.com/LibraryCarpentry/lc-open-refine/raw/gh-pages/data/doaj-article-sample.csv\n", - "Resolving github.com (github.com)... 140.82.118.4\n", - "Connecting to github.com (github.com)|140.82.118.4|:443... connected.\n", - "HTTP request sent, awaiting response... 302 Found\n", - "Location: https://raw.githubusercontent.com/LibraryCarpentry/lc-open-refine/gh-pages/data/doaj-article-sample.csv [following]\n", - "--2019-09-02 21:00:57-- https://raw.githubusercontent.com/LibraryCarpentry/lc-open-refine/gh-pages/data/doaj-article-sample.csv\n", - "Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133\n", - "Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.\n", - "HTTP request sent, awaiting response... 200 OK\n", - "Length: 524686 (512K) [text/plain]\n", - "Saving to: ‘doaj-article-sample.csv.1’\n", - "\n", - "doaj-article-sample 100%[===================>] 512,39K 962KB/s in 0,5s \n", - "\n", - "2019-09-02 21:00:58 (962 KB/s) - ‘doaj-article-sample.csv.1’ saved [524686/524686]\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "wget https://github.com/LibraryCarpentry/lc-open-refine/raw/gh-pages/data/doaj-article-sample.csv" ] @@ -85,35 +80,11 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": { "scrolled": false }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "--2019-09-02 21:04:31-- https://github.com/OpenRefine/OpenRefine/releases/download/3.2/openrefine-linux-3.2.tar.gz\n", - "Resolving github.com (github.com)... 140.82.118.4\n", - "Connecting to github.com (github.com)|140.82.118.4|:443... connected.\n", - "HTTP request sent, awaiting response... 302 Found\n", - "Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/6220644/7dc2a280-afc0-11e9-9a64-d6b401ada2fa?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190902%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190902T190447Z&X-Amz-Expires=300&X-Amz-Signature=d35772d3dd43c57298ab8e2c7d28abfddeb5545257175e3bdc33a6f85b62caff&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenrefine-linux-3.2.tar.gz&response-content-type=application%2Foctet-stream [following]\n", - "--2019-09-02 21:04:32-- https://github-production-release-asset-2e65be.s3.amazonaws.com/6220644/7dc2a280-afc0-11e9-9a64-d6b401ada2fa?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190902%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190902T190447Z&X-Amz-Expires=300&X-Amz-Signature=d35772d3dd43c57298ab8e2c7d28abfddeb5545257175e3bdc33a6f85b62caff&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenrefine-linux-3.2.tar.gz&response-content-type=application%2Foctet-stream\n", - "Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.238.115\n", - "Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.238.115|:443... connected.\n", - "HTTP request sent, awaiting response... 200 OK\n", - "Length: 106046195 (101M) [application/octet-stream]\n", - "Saving to: ‘openrefine-linux-3.2.tar.gz’\n", - "\n", - "openrefine-linux-3. 100%[===================>] 101,13M 3,82MB/s in 32s \n", - "\n", - "2019-09-02 21:05:06 (3,13 MB/s) - ‘openrefine-linux-3.2.tar.gz’ saved [106046195/106046195]\n", - "\n", - "Total bytes read: 125419520 (120MiB, 137MiB/s)\n" - ] - } - ], + "outputs": [], "source": [ "wget https://github.com/OpenRefine/OpenRefine/releases/download/3.2/openrefine-linux-3.2.tar.gz\n", "mkdir -p openrefine\n", @@ -125,7 +96,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### OpenRefine starten (die Adresse http://127.0.0.1:3333 öffnet sich automatisch im Browser)" + "### OpenRefine starten" ] }, { @@ -134,44 +105,28 @@ "metadata": { "scrolled": false }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "You have 15961M of free memory.\n", - "Your current configuration is set to use 1400M of memory.\n", - "OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here:\n", - "https://github.com/OpenRefine/OpenRefine/wiki/FAQ:-Allocate-More-Memory\n", - "Starting OpenRefine at 'http://127.0.0.1:3333/'\n", - "\n", - "21:07:41.809 [ refine_server] Starting Server bound to '127.0.0.1:3333' (0ms)\n", - "21:07:41.810 [ refine_server] refine.memory size: 1400M JVM Max heap: 1407188992 (1ms)\n", - "21:07:41.819 [ refine_server] Initializing context: '/' from '/home/felix/notebooks/openrefine/webapp' (9ms)\n", - "SLF4J: Class path contains multiple SLF4J bindings.\n", - "SLF4J: Found binding in [jar:file:/home/felix/notebooks/openrefine/server/target/lib/slf4j-log4j12-1.7.18.jar!/org/slf4j/impl/StaticLoggerBinder.class]\n", - "SLF4J: Found binding in [jar:file:/home/felix/notebooks/openrefine/webapp/WEB-INF/lib/slf4j-log4j12-1.7.18.jar!/org/slf4j/impl/StaticLoggerBinder.class]\n", - "SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\n", - "SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]\n", - "21:07:42.268 [ refine] Starting OpenRefine 3.2 [55c921b]... (449ms)\n", - "21:07:42.268 [ refine] initializing FileProjectManager with dir (0ms)\n", - "21:07:42.268 [ refine] /home/felix/.local/share/openrefine (0ms)\n", - "21:07:47.059 [ refine] POST /command/core/load-language (4791ms)\n", - "21:07:47.083 [ refine] GET /command/core/get-preference (24ms)\n", - "21:07:47.096 [ refine] POST /command/core/load-language (13ms)\n", - "21:07:47.104 [ refine] POST /command/core/load-language (8ms)\n", - "21:07:47.188 [ refine] POST /command/core/get-importing-configuration (84ms)\n", - "21:07:47.216 [ refine] GET /command/core/get-all-project-tags (28ms)\n", - "21:07:47.229 [ refine] GET /command/core/get-all-project-metadata (13ms)\n", - "21:07:47.348 [ refine] GET /command/core/get-languages (119ms)\n", - "21:07:47.447 [ refine] GET /command/database/saved-connection (99ms)\n", - "21:07:47.489 [ refine] GET /command/core/get-version (42ms)\n" - ] - } - ], + "outputs": [], "source": [ "openrefine/refine" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Los geht's..." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Die Adresse von OpenRefine sollte sich nach max. 1 Minute automatisch im Browser öffnen.\n", + "\n", + "OpenRefine läuft solange, wie der obige Startbefehl ausgeführt wird. Daten werden automatisch alle 5 Minuten gespeichert.\n", + "\n", + "Bearbeiten Sie nun die Library Carpentry Lesson zu OpenRefine: . Die für Kapitel 2 benötigten Beispieldaten haben wir mit einem der Befehle oben bereits heruntergeladen. Die Datei `doaj-article-sample.csv` sollte in Ihrem Benutzerverzeichnis liegen." + ] } ], "metadata": {