From 45a5cb303b19ec3a1e12ebe9f6207468525ce2a0 Mon Sep 17 00:00:00 2001 From: Hendrik Schutter Date: Thu, 1 Oct 2020 17:52:46 +0200 Subject: [PATCH 1/6] upload log to dev --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ddf5bc8..e8de66c 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ nano /root/reHDDSettings.sh ``` #!/bin/bash dmesg -n 1 #disable overlay if a drive is attached/detached +# remove comment for the following to activate log telemetie +# curl -k -T /root/reHDD/reHDD.log -u "ra7466BsoSPqJFG:" -H 'X-Requested-With: XMLHttpRequest' https://schuttercloud.com/public.php/webdav/`echo $(date '+%Y-%m-%d_%H-%M')`_reHDD.log rm -f /root/reHDD/reHDD.log ``` Make sure the binary reHDD is in /root/reHDD/ From 354ee04e73a3a8889cdc8783908a3f9f1a5bd7fd Mon Sep 17 00:00:00 2001 From: Hendrik Schutter Date: Wed, 26 Jan 2022 16:40:20 +0100 Subject: [PATCH 2/6] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e8de66c..c7260ce 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,13 @@ * clone repo * make release -## Create Standalone with Debian +## Create Standalone with Debian 11 Instructions how to create a standalone machine that boots directly to reHDD. This is aimed for production use, like several drives a day shredding. ### Software requirements -* apt-get install hwinfo -* wget http://ftp.de.debian.org/debian/pool/main/s/smartmontools/smartmontools_7.1-1_amd64.deb -* dpkg --install smartmontools_7.1-1_amd64.deb +* apt-get install hwinfo smartmontools ### Start reHDD after boot without login (as a tty shell) From 1e455bde0250fc0318d74c67cdfa876dba889f35 Mon Sep 17 00:00:00 2001 From: Hendrik Schutter Date: Wed, 26 Jan 2022 16:52:45 +0100 Subject: [PATCH 3/6] added curl --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7260ce..83c1227 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Instructions how to create a standalone machine that boots directly to reHDD. Th ### Software requirements -* apt-get install hwinfo smartmontools +* apt-get install hwinfo smartmontools curl ### Start reHDD after boot without login (as a tty shell) From 9b9806b5c214f7ac679d6d86dab2f87749aa3bee Mon Sep 17 00:00:00 2001 From: Hendrik Schutter Date: Wed, 26 Jan 2022 17:18:12 +0100 Subject: [PATCH 4/6] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 83c1227..c6fc5be 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,14 @@ nano /root/reHDDSettings.sh #!/bin/bash dmesg -n 1 #disable overlay if a drive is attached/detached # remove comment for the following to activate log telemetie -# curl -k -T /root/reHDD/reHDD.log -u "ra7466BsoSPqJFG:" -H 'X-Requested-With: XMLHttpRequest' https://schuttercloud.com/public.php/webdav/`echo $(date '+%Y-%m-%d_%H-%M')`_reHDD.log +# curl -k -T /root/reHDD/reHDD.log -u "fgggfffgfgfgfg:" -H 'X-Requested-With: XMLHttpRequest' https://schuttercloud.com/public.php/webdav/`echo $(date '+%Y-%m-%d_%H-%M')`_reHDD.log rm -f /root/reHDD/reHDD.log ``` +chmod +x reHDDSettings.sh + + Make sure the binary reHDD is in /root/reHDD/ + Add your system drive in /root/reHDD/ignoreDrives.conf like: ``` /dev/sdX:e102f49d-5ed5-462b-94c5-ef66a4345671``` Get your UUID via blkid /dev/sdX From 52f5597ba91ab6c24b9f59a8ee9611e032009c50 Mon Sep 17 00:00:00 2001 From: Hendrik Schutter Date: Wed, 26 Jan 2022 17:32:21 +0100 Subject: [PATCH 5/6] updated service --- README.md | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c6fc5be..14eaa7d 100644 --- a/README.md +++ b/README.md @@ -24,16 +24,14 @@ Instructions how to create a standalone machine that boots directly to reHDD. Th ### Start reHDD after boot without login (as a tty shell) -nano /etc/systemd/system/reHDD.service -``` -[Unit] -Description=Custom user interface on tty1 -Conflicts=getty@tty1.service -Before=getty.target +nano /lib/systemd/system/getty@.service +and replace the [Service] with this: +``` [Service] WorkingDirectory=/root/reHDD -ExecStart=/root/reHDD/reHDD +ExecStart= +ExecStart=-/root/reHDD/reHDD StandardInput=tty StandardOutput=tty Restart=always @@ -45,10 +43,10 @@ TTYVHangup=yes TTYVTDisallocate=yes SendSIGHUP=yes -[Install] -WantedBy=multi-user.target ``` +systemctl daemon-reload + nano /etc/systemd/system/reHDDSettings.service ``` [Service] @@ -77,7 +75,5 @@ Add your system drive in /root/reHDD/ignoreDrives.conf like: ``` /dev/sdX:e102f49d-5ed5-462b-94c5-ef66a4345671``` Get your UUID via blkid /dev/sdX -systemctl enable reHDD.service - systemctl enable reHDDSettings.service From 8c54e0e7d9ea847ecc890b796a2b3f431f21dfe1 Mon Sep 17 00:00:00 2001 From: localhorst Date: Wed, 26 Jan 2022 19:38:16 +0100 Subject: [PATCH 6/6] updated REDME --- README.md | 2 +- ignoreDrives.conf | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 14eaa7d..7534235 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ chmod +x reHDDSettings.sh Make sure the binary reHDD is in /root/reHDD/ Add your system drive in /root/reHDD/ignoreDrives.conf like: -``` /dev/sdX:e102f49d-5ed5-462b-94c5-ef66a4345671``` +```e102f49d-5ed5-462b-94c5-ef66a4345671``` Get your UUID via blkid /dev/sdX systemctl enable reHDDSettings.service diff --git a/ignoreDrives.conf b/ignoreDrives.conf index ed2b36a..4cadf1a 100644 --- a/ignoreDrives.conf +++ b/ignoreDrives.conf @@ -1,3 +1,2 @@ -/dev/sdc:4673974d-1af2-44fd-996b-a2d8e4c43d9a -/dev/sda:508ef27d-5039-4e8b-9e2c-22d7528b7149 -/dev/sdb:32b66944-ffa0-40e9-817c-3f0c52eefaf4 +4673974d-1af2-44fd-996b-a2d8e4c43d9a +2cb3dea4-9649-4d4a-935c-a0e5c08bad64