Archive for the ‘Linux Solution’ Category

MinIO – optimizes small object storage and adds .tar auto extraction

Mittwoch, September 28th, 2022
# mc mb play/mybucket
# mc cp <path-to-archive>.tar play/mybucket –disable-multipart –attr „X-Amz-Meta-Snowball-Auto-Extract=true“
# mc ls play/mybucket

Proxmox Virtual Environment (VE) 7.2-11 – eine Installation auf einem Fujitsu Futro S740 (refurbished ab 45 €)

Mittwoch, September 28th, 2022

DietPi 8.8.1 – einfache Installation MinIO Client (mc) mit einem Fujitsu Futro S740 (refurbished ab 45 €)

Mittwoch, September 28th, 2022
root@ra-iot-jsho-dietpi-02:~#
root@ra-iot-jsho-dietpi-02:~# wget https://dl.min.io/client/mc/release/linux-amd64/mc
–2022-09-28 11:23:48– https://dl.min.io/client/mc/release/linux-amd64/mc
Auflösen des Hostnamens dl.min.io (dl.min.io)… 138.68.11.125, 178.128.69.202
Verbindungsaufbau zu dl.min.io (dl.min.io)|138.68.11.125|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 24158208 (23M) [application/octet-stream]
Wird in »mc« gespeichert.
mc 100%[==============================>] 23,04M 6,76MB/s in 3,7s
2022-09-28 11:23:57 (6,16 MB/s) – »mc« gespeichert [24158208/24158208]
root@ra-iot-jsho-dietpi-02:~#
root@ra-iot-jsho-dietpi-02:~# chmod +x ./mc
root@ra-iot-jsho-dietpi-02:~# ls -la
insgesamt 23620
drwx—— 4 root root 4096 28. Sep 11:23 .
drwxr-xr-x 18 root root 4096 24. Sep 23:14 ..
-rw——- 1 root root 181 28. Sep 11:12 .bash_history
-rw-r–r– 1 root root 571 10. Apr 2021 .bashrc
drwx—— 3 root root 4096 28. Sep 10:50 .config
-rwxr-xr-x 1 root root 24158208 17. Sep 10:51 mc
-rw-r–r– 1 root root 161 9. Jul 2019 .profile
drwxr-xr-x 2 root root 4096 28. Sep 10:47 .ssh
root@ra-iot-jsho-dietpi-02:~#
root@ra-iot-jsho-dietpi-02:~# ./mc config host add myminio http://192.168.1.160:9000 <AccessKey> <SecretKey>
mc: Configuration written to `/root/.mc/config.json`. Please update your access credentials.
mc: Successfully created `/root/.mc/share`.
mc: Initialized share uploads `/root/.mc/share/uploads.json` file.
mc: Initialized share downloads `/root/.mc/share/downloads.json` file.
Added `myminio` successfully.
root@ra-iot-jsho-dietpi-02:~#
root@ra-iot-jsho-dietpi-02:~# ./mc ls myminio
[2022-09-26 20:33:17 CEST] 0B bigfiles/
root@ra-iot-jsho-dietpi-02:~#
root@ra-iot-jsho-dietpi-02:~# ./mc mirror /mnt/USB-Disk/dump myminio/bigfiles
…-2021_06_22-16_28_24.vma.zst: 25.05 GiB / 25.05 GiB ━━━━━━━ 107.28 MiB/s 3m59s
root@ra-iot-jsho-dietpi-02:~#

Matrix Synapse 1.68 – install an open network for secure decentralized communication

Dienstag, September 27th, 2022

Mikrotik RB5009UPr+S+IN – mit Docker Container(n)

Dienstag, September 27th, 2022

MinIO Client (mc) – troubleshooting with slow MinIO operation

Dienstag, September 27th, 2022
export MC_UPLOAD_MULTIPART_THREADS=1
export GOMAXPROCS=1

DietPi 8.8.1 – einfache Installation von MinIO mit einem Fujitsu Futro S740 (refurbished ab 45 €)

Montag, September 26th, 2022

Clonezilla Live 3.0.1-8 – Linux kernel was updated to 5.18.5-1

Sonntag, September 25th, 2022

Clonezilla Full Disk Backup – prepare a USB image device with enough free disk space for the full disk size that will be backed up later then boot the machine by the Clonezilla live USB OS device and choose Clonezilla live (Default setting VGA 800×600) select the language and keyboard map and start Clonezilla and select the USB image device with Select local_dev use local device and follow the instruction to insert the USB image device Select the right disk and choose the directory inside that disk to save the image review the size of /home/partimag it should be the size of disk to save the image then choose Beginner mode Select Savedisk Save_local_disk_as_an_image and input the name for the saved image Select the disk as source for full disk back up choose Skip checking/repairing source file system Select Yes, check the saved image and click OK to continue Review the information (the disk size should be correct) and input “Y” to continue wait the backup procedure is completed Follow the instruction to power off system to complete the full disk backup and unplug the USB image device to keep the backup data safe

Clonezilla Full Disk Restoration – connect the USB image device which contains the backup data for restoration and boot the machine by the Clonezilla live USB OS device and choose Clonezilla live (Default setting, VGA 800×600) select the language and and the keyboard map then start Clonezilla and select device-image work with disks or partitions using images Select local_dev Use local device follow the instruction to insert the USB image device if it is not connected select the right disk and choose the directory inside that disk to read the image review the size of /home/partimag it should be the size of disk that contain the image for restoration then choose Beginner mode select Restoredisk Restore_an_image_to_local_disk and choose the right image file to restore choose the target disk to restore the data and press OK to continue review the information of target disk and press “Y”twice to proceed the restoration if it is correct wait the backup procedure is completed press OK to continue or select Power off to shut down the machine remove the Clonezilla CD and press OK to power off the machine to complete the disk restoration

Raspberry Pi 4 – Manjaro Linux mit XFCE Desktop

Samstag, September 24th, 2022

Linux ‚acme.sh‘ – is a simple powerful and easy-to-use ACME protocol client written purely in Shell (Unix shell) language

Mittwoch, September 21st, 2022

Proxmox Virtual Environment (VE) 7.2-7 – Zertifikat via ACME.sh beantragen für OpnSense

Mittwoch, September 21st, 2022

Microsoft Windows Server 2022 – a complete tutorial to install Docker

Mittwoch, September 21st, 2022

Installing the roles and features needed with Docker containers in Windows Server 2022 – installing the Hyper-V role and the containers feature

Install DockerMsftProvider and install Docker

Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Installieren Sie die neueste PowerShell für neue Funktionen und Verbesserungen! https://aka.ms/PSWindows
PS C:\Users\Administrator>
PS C:\Users\Administrator> Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Der NuGet-Anbieter ist erforderlich, um den Vorgang fortzusetzen.
PowerShellGet erfordert die NuGet-Anbieterversion 2.8.5.201 oder höher für die Interaktion mit NuGet-basierten Repositorys. Der NuGet-Anbieter muss in „C:\Program
Files\PackageManagement\ProviderAssemblies“ oder „C:\Users\Administrator\AppData\Local\PackageManagement\ProviderAssemblies“ verfügbar sein. Sie können den NuGet-Anbieter auch durch Ausführen von ‚Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force‘ installieren. Möchten Sie den NuGet-Anbieter jetzt durch PowerShellGet installieren und
importieren lassen?
[J] Ja [N] Nein [H] Anhalten [?] Hilfe (Standard ist „J“):
PS C:\Users\Administrator>
PS C:\Users\Administrator> Install-Package -Name docker -ProviderName DockerMsftProvider
Das Paket oder die Pakete stammen aus einer Paketquelle, die nicht als vertrauenswürdig gekennzeichnet ist.
Sind Sie sicher, dass Sie die Software von „DockerDefault“ installieren möchten?
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe (Standard ist „N“): A
Name Version Source Summary
—- ——- —— ——-
Docker 20.10.9 DockerDefault Contains Docker EE for use with Windows Server.
PS C:\Users\Administrator>
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Installieren Sie die neueste PowerShell für neue Funktionen und Verbesserungen! https://aka.ms/PSWindows
PS C:\Users\Administrator>
PS C:\Users\Administrator> docker pull mcr.microsoft.com/windows/servercore:ltsc2022
ltsc2022: Pulling from windows/servercore
97f65a0ec59e: Pull complete
4486102fd382: Pull complete
Digest: sha256:2846453bcfaee661d563e29d6513191dccf7280bb826b2da9d6e7226fba2db94
Status: Downloaded newer image for mcr.microsoft.com/windows/servercore:ltsc2022
mcr.microsoft.com/windows/servercore:ltsc2022
PS C:\Users\Administrator>
PS C:\Users\Administrator> docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
mcr.microsoft.com/windows/servercore ltsc2022 2caccf6918d4 12 days ago 5.14GB
PS C:\Users\Administrator>
PS C:\Users\Administrator> docker run -it mcr.microsoft.com/windows/servercore:ltsc2022
PS C:\Users\Administrator> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2d092ffb9b3f mcr.microsoft.com/windows/servercore:ltsc2022 „c:\\windows\\system32…“ 17 seconds ago Up 9 seconds eloquent_agnesi

PS C:\Users\Administrator>

Microsoft Windows [Version 10.0.20348.1006]
(c) Microsoft Corporation. All rights reserved.
C:\>hostname
26a6acdb69cd
C:\>ipconfig
Windows IP Configuration
Ethernet adapter vEthernet (Ethernet):
Connection-specific DNS Suffix . : fritz.box
Link-local IPv6 Address . . . . . : fe80::156f:d038:5d2f:9d55%36
IPv4 Address. . . . . . . . . . . : 172.28.158.50
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : 172.28.144.1
C:\>
C:\>exit
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Installieren Sie die neueste PowerShell für neue Funktionen und Verbesserungen! https://aka.ms/PSWindows
PS C:\Users\Administrator>
PS C:\Users\Administrator> docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
cluster: Manage Mirantis Container Cloud clusters (Mirantis Inc., v1.9.0)
registry: Manage Docker registries (Docker Inc., 0.1.0)
Server:
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 1
Server Version: 20.10.9
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 20348 (20348.1.amd64fre.fe_release.210507-1500)
Operating System: Windows Server 2022 Datacenter Version 2009 (OS Build 20348.1070)
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 3.775GiB
Name: RA-W2k22-DC-01
ID: TFF7:SWUA:5A3P:QCGD:WJGJ:XPOX:QLFB:QPWD:QOFS:IEEG:C65V:ZRUV
Docker Root Dir: C:\ProgramData\docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
PS C:\Users\Administrator>

Pi-hole v5.12.1 – veröffentlicht

Sonntag, September 18th, 2022

Google Cloud – how to accelerate migration from self-managed object storage to Cloud Storage

Samstag, September 17th, 2022

MinIO – how to use AWS S3 commands

Samstag, September 17th, 2022