Archive for the ‘DietPi’ Category

shell-ai – Open Source AI Tool hilft an der Kommandozeile aus

Donnerstag, August 24th, 2023

root@VA-DietPI-01:~#

root@VA-DietPI-01:~# apt-get install net-tools
root@VA-DietPI-01:~#
root@VA-DietPI-01:~# apt-get install pip
root@VA-DietPI-01:~# apt-get install python3-full
root@VA-DietPI-01:~# python3 –version
Python 3.11.2
root@VA-DietPI-01:~#
root@VA-DietPI-01:~# apt-get install pipx
root@VA-DietPI-01:~# pipx install radian
root@VA-DietPI-01:~# pipx list
root@VA-DietPI-01:~# pip install shell-ai –break-system-packages

DietPi v8.20 – VMware vSphere and ESXi install

Mittwoch, August 23rd, 2023

DietPi ‚Bookworm‘ – download

Samstag, August 5th, 2023

While Bookworm images are not provided on our download page you can find them for all devices here

DietPi v8.13.x – released

Mittwoch, Januar 25th, 2023

DietPi v8.12.x – die Linux OS Alternative für den Raspberry Pi

Montag, Januar 2nd, 2023

DietPi v8.12.1 – how to create simple SNMP client monitor configuration for Checkmk Raw Edition

Samstag, Dezember 31st, 2022

 

DietPi – try to fetch SNMP data from the target device and before you start please check that your monitoring server is able to query data from the target device via SNMP you can use the program snmpwalk to test if you can reach the target device

root@PVE-MINIO-01:~# apt-get update -y
root@PVE-MINIO-01:~# apt-get install snmpd
root@PVE-MINIO-01:~# apt-get install snmp
root@PVE-MINIO-01:~# vi /etc/snmp/snmpd.conf
# agentaddress: The IP address and port number that the agent will listen on.
# By default the agent listens to any and all traffic from any
# interface on the default SNMP port (161). This allows you to
# specify which address, interface, transport type and port(s) that you
# want the agent to listen on. Multiple definitions of this token
# are concatenated together (using ‚:’s).
# arguments: [transport:]port[@interface/address],…
# agentaddress 127.0.0.1,[::1]
agentaddress udp:161
# Read-only access to everyone to the systemonly view
# rocommunity public default -V systemonly
rocommunity public
# rocommunity6 public default -V systemonly
root@PVE-MINIO-01:~#
root@PVE-MINIO-01:~# systemctl restart snmpd
root@PVE-MINIO-01:~# systemctl status snmpd
● snmpd.service – Simple Network Management Protocol (SNMP) Daemon.
Loaded: loaded (/lib/systemd/system/snmpd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-12-31 14:50:09 CET; 13s ago
Process: 988 ExecStartPre=/bin/mkdir -p /var/run/agentx (code=exited, status=0/SUCCESS)
Main PID: 989 (snmpd)
Tasks: 1 (limit: 1128)
Memory: 4.8M
CPU: 68ms
CGroup: /system.slice/snmpd.service
└─989 /usr/sbin/snmpd -LOw -u Debian-snmp -g Debian-snmp -I -smux mteTrigger mteTriggerConf -f -p /run/snmpd.pid
Dez 31 14:50:09 PVE-MINIO-01 systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon….
Dez 31 14:50:09 PVE-MINIO-01 systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon..

root@PVE-MINIO-01:~#
root@PVE-MINIO-01:~# snmpwalk -Os -c public -v 1 localhost

Checkmk Raw Edition 2.1.0p18 – einfach als Docker Container installieren

Freitag, Dezember 30th, 2022

Checkmk Raw Edition – Open-Source-Monitoring ohne komplizierte Installation und aufwändige manuelle Konfiguration

root@PVE-DOCKER-01:~# docker container run -dit -p 8080:5000 -p 8000:8000 –tmpfs /opt/omd/sites/cmk/tmp:uid=1000,gid=1000 –name monitoring -v /etc/localtime:/etc/localtime:ro –restart always checkmk/check-mk
Unable to find image ‚checkmk/check-mk-raw:2.1.0p18‘ locally
2.1.0p18: Pulling from checkmk/check-mk-raw
125a6e411906: Pull complete
d12e5290b5ed: Pull complete
91d9ba82efc2: Pull complete
5d53f39c6ef9: Pull complete
c055f7d09152: Pull complete
74e842212b14: Pull complete
Digest: sha256:de5979f71592369ab9d29d5b786c8aa369d00bdf8c2dda46132259da3f317627
Status: Downloaded newer image for checkmk/check-mk-raw:2.1.0p18
4a4ca6a55f6bf16f98efb132325e3c433e5f11e7a28ddc8ae323df2b3b8a9722

root@PVE-DOCKER-01:~#
root@PVE-DOCKER-01:~# docker container logs monitoring
### CREATING SITE ‚cmk‘
Adding /opt/omd/sites/cmk/tmp to /etc/fstab.
Going to set TMPFS to off.
Temporary filesystem already mounted
Updating core configuration…
Generating configuration for core (type nagios)…
Precompiling host checks…OK
Executing post-create script „01_create-sample-config.py“…OK
Created new site cmk with version 2.1.0p18.cre.
The site can be started with omd start cmk.
The default web UI is available at http://4a4ca6a55f6b/cmk/
The admin user for the web applications is cmkadmin with password: <password>
For command line administration of the site, log in with ‚omd su cmk‘.
After logging in, you can change the password for cmkadmin with ‚cmk-passwd cmkadmin‘.
WARNING: You have to execute ‚omd update-apache-config cmk‘ as root to update and apply the configuration of the system apache.
WARNING: You have to execute ‚omd update-apache-config cmk‘ as root to update and apply the configuration of the system apache.
### STARTING XINETD
* Starting internet superserver xinetd [ OK ]
### STARTING SITE
Temporary filesystem already mounted
Starting agent-receiver…OK
Starting mkeventd…OK
Starting rrdcached…OK
Starting npcd…OK
Starting nagios…OK
Starting apache…OK
Starting redis…OK
Initializing Crontab…OK
### STARTING CRON
### CONTAINER STARTED

root@PVE-DOCKER-01:~#
http://PVE-DOCKER-01:8080/cmk/check_mk/
The admin user for the web applications is cmkadmin with password: <password>


DietPi 8.9 – einfache Installation von Docker Docker Compose Portainer

Mittwoch, Oktober 5th, 2022

Docker – are a standardized unit of software that allows developers to isolate their application from the environment
Docker Compose – is a Docker tool used to define and run multi-container applications
Portainer – simplifies your Docker container management via Portainer web interface

DietPi 8.8.1 – Stromverbrauch mit einem Fujitsu Futro S740

Freitag, September 16th, 2022

Energieverbrauch Leerlauf ≤5 W


Energieverbrauch Volllast ≤15W

DietPi 8.8.1 – eine Installation auf einem Fujitsu Futro S740

Donnerstag, September 15th, 2022

root@dpi-iot-jsho-tool-01f:~# cpu
─────────────────────────────────────────────────────
DietPi CPU Info
Use dietpi-config to change CPU / performance options
─────────────────────────────────────────────────────
Architecture | x86_64
Temperature | 33 °C / 91 °F : Cool runnings
Governor | schedutil
Current Freq Min Freq Max Freq
CPU0 | 1077 MHz 800 MHz 2500 MHz
CPU1 | 1796 MHz 800 MHz 2500 MHz
CPU2 | 1027 MHz 800 MHz 2500 MHz
CPU3 | 1028 MHz 800 MHz 2500 MHz
[ INFO ] DietPi-CPU_info | CPU current frequency, may be affected by this script, due to the processing required to run it.
root@dpi-iot-jsho-tool-01f:~#

DietPi 8.8.1 – einfache Installation von WordPress auf einem Raspberry Pi Zero W

Dienstag, August 30th, 2022
http://<your.IP@>/wordpress

 

The first time you connect enter the following MySQL database details

Database name = wordpress
Username = wordpress
Password = <dietpi global password>
Database Host = localhost
Table Prefix = wp_

DietPi 8.7.1 – Wartungsmodus per Befehl aktivieren/deaktivieren von NextCloud 24.0.4 auf einem Raspberry Pi Zero W

Freitag, August 26th, 2022

root@dpi-iot-jsho-NextCloud-01:~# cd /var/www/nextcloud
root@dpi-iot-jsho-NextCloud-01:/var/www/nextcloud# sudo -u www-data php occ maintenance:mode –off
Maintenance mode disabled
root@dpi-iot-jsho-NextCloud-01:/var/www/nextcloud#

DietPi 8.7.1 – expand root system to use all of SD card

Donnerstag, August 4th, 2022
root@dpi-iot-jsho-MinIO-01:~# dietpi-services stop
DietPi-Services
─────────────────────────────────────────────────────
Mode: stop
[ OK ] DietPi-Services | stop : cron
[ OK ] DietPi-Services | stop : minio
root@dpi-iot-jsho-MinIO-01:~#
root@dpi-iot-jsho-MinIO-01:~# chmod +x /var/lib/dietpi/services/fs_partition_resize.sh
root@dpi-iot-jsho-MinIO-01:~# /var/lib/dietpi/services/fs_partition_resize.sh
Disk /dev/mmcblk0: 119,08 GiB, 127865454592 bytes, 249737216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x94c715c1
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 8192 270335 262144 128M c W95 FAT32 (LBA)
/dev/mmcblk0p2 270336 62709759 62439424 29,8G 83 Linux
/dev/mmcblk0p2:
New situation:
Disklabel type: dos
Disk identifier: 0x94c715c1
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 8192 270335 262144 128M c W95 FAT32 (LBA)
/dev/mmcblk0p2 270336 249737215 249466880 119G 83 Linux
The partition table has been altered.
resize2fs 1.46.2 (28-Feb-2021)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 4, new_desc_blocks = 15
The filesystem on /dev/mmcblk0p2 is now 31183360 (4k) blocks long.
root@dpi-iot-jsho-MinIO-01:~#
root@dpi-iot-jsho-MinIO-01:~# dietpi-services start
DietPi-Services
─────────────────────────────────────────────────────
Mode: start
[ OK ] DietPi-Services | start : minio
[ OK ] DietPi-Services | start : cron
root@dpi-iot-jsho-MinIO-01:~#

DietPi 8.7.1 – einfache Installation von MinIO auf einem Raspberry Pi Zero W

Dienstag, August 2nd, 2022

root@dpi-iot-jsho-MinIO-01:~# dietpi-launcher
[ .. ] DietPi-Software | Initialising database
[ OK ] DietPi-Software | Initialised database
[ OK ] DietPi-Software | Reading database
[ OK ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata
DietPi-Software
─────────────────────────────────────────────────────
Step: Checking for conflicts and missing inputs
DietPi-Software
─────────────────────────────────────────────────────
Step: Checking for prerequisite software
[ OK ] DietPi-Software | Checking IPv4 network connectivity
[ OK ] DietPi-Software | Checking IPv6 network connectivity
[ OK ] DietPi-Software | Checking DNS resolver
[ OK ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[ OK ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ OK ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ SUB1 ] DietPi-Services > unmask
[ OK ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
[ INFO ] DietPi-Software | APT update, please wait…
Hit:1 https://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Reading package lists…
[ OK ] DietPi-Software | APT update
DietPi-Software
─────────────────────────────────────────────────────
Step: Installing MinIO: S3 compatible distributed object server
[ OK ] DietPi-Software | curl -sSfLo /usr/local/bin/minio https://dl.minio.io/server/minio/release/linux-arm/minio
[ OK ] DietPi-Software | chmod +x /usr/local/bin/minio
[ OK ] DietPi-Software | curl -sSfLo /etc/systemd/system/minio.service https://github.com/minio/minio-service/raw/master/linux-systemd/minio.service
[ OK ] DietPi-Software | Verifying user „minio-user“ to run MinIO
[ OK ] DietPi-Software | useradd -rMU -d /mnt/dietpi_userdata/minio-data -s /usr/sbin/nologin minio-user
[ OK ] DietPi-Software | mkdir /mnt/dietpi_userdata/minio-data
[ OK ] DietPi-Software | chown -R minio-user:minio-user /mnt/dietpi_userdata/minio-data
DietPi-Software
─────────────────────────────────────────────────────
Step: Finalising install
[ OK ] DietPi-Software | systemctl daemon-reload
2022-08-02 16:30:48 [ INFO ] DietPi-RAMlog | Storing /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store…
2022-08-02 16:30:48 [ OK ] DietPi-RAMlog | Stored /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store.
[ SUB1 ] DietPi-Services > dietpi_controlled
[ OK ] DietPi-Services | dietpi_controlled : minio
[ OK ] DietPi-Services | dietpi_controlled : cron
DietPi-Software
─────────────────────────────────────────────────────
Step: Install completed
[ OK ] DietPi-Survey | Purging survey data
[ SUB1 ] DietPi-Services > restart
[ OK ] DietPi-Services | restart : minio
[ OK ] DietPi-Services | restart : cron

root@dpi-iot-jsho-MinIO-01:~#
root@dpi-iot-jsho-MinIO-01:~# vi /etc/default/minio
MINIO_ACCESS_KEY=“admin“
MINIO_SECRET_KEY=“<password>“

DietPi 8.6 – einfache Installation von NextCloud 24.0.3 auf einem Raspberry Pi Zero W

Montag, August 1st, 2022
root@dpi-iot-jsho-NextCloud-01:~# dietpi-launcher
DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for available DietPi update
DietPi-Software
─────────────────────────────────────────────────────
Step: Checking for conflicts and missing inputs
DietPi-Software
─────────────────────────────────────────────────────
Step: Checking for prerequisite software
DietPi-Software
─────────────────────────────────────────────────────
Step: Installing Lighttpd: Extremely lightweight webserver
DietPi-Software
─────────────────────────────────────────────────────
Step: Installing MariaDB: Persistent cached file-per-table database server
DietPi-Software
─────────────────────────────────────────────────────
Step: Installing Redis: Volatile in-memory non-SQL database server
DietPi-Software
─────────────────────────────────────────────────────
Step: Installing PHP: Hypertext Preprocessor for dynamic web content
DietPi-Software
─────────────────────────────────────────────────────
Step: Installing Nextcloud: File sync, sharing and collaboration platform
DietPi-Software
─────────────────────────────────────────────────────
Step: Finalising install
DietPi-Software
─────────────────────────────────────────────────────
Step: Install completed
root@dpi-iot-jsho-NextCloud-01:~#