Outils pour utilisateurs

Outils du site


Panneau latéral

FOLLOW ...

Linux, freeBSD

Python

Plugins WP

Informatique et robotique

En classe
KTURTLE
Arduino

Shell/php scripts

homeserver:orangepi3b

Orange PI 3B

Pour utilisation serveur auto hébergé. Un grand merci à https://debian-fr.org, notamment Verner ;) pour les conseils avisés et expertises.

Augmenter la zram des log

Par défaut que 50Mo, le serveur râle de temps en temps…

Pour augmenter cela, éditer

download
/etc/default/orangepi-ramlog

Et passer à 500 Mo

download
# size of the tmpfs mount -- 
# please keep in mind to adjust /etc/default/orangepi-zram-config too when increasing
SIZE=50M

Rebooter

Brancher un disque USB au démarrage pour augmenter le stockage

Dans mon cas, sert à créer un stockage externe nextclound (qui hébergera notamment la musique de Navidrome)

Editer le fstab et insérer cette ligne. Les options sont importantes afin que la séquence de boot ne soit pas perturbée.

download
UUID=a85a287d-6bc2-4b6d-8219-33ea9cd3d2e2 /diskUSB ext4 user,exec,noauto,x-systemd.automount,errors=remount-ro 0 2

Nextcloud

Afin d'éviter les erreurs de la version 29, installer Nextcloud en sous domaine ;)

Gestion Ventilo

Pour l'instant, juste un script qui allume des diodes. A adapter avec le ventillo.

Le script

download
cat scripts/fan.sh 
#!/bin/bash

WAIT=0.5

gpio mode 10 out
gpio mode 6 out
gpio mode 5 out

while true; do

	gpio write 10  0
	gpio write 6 0
	gpio write 5 0

	sleep $WAIT
	
	gpio write 10  1
	gpio write 6 1
	gpio write 5 1

	sleep $WAIT

done

Le service systemd

download
cat /etc/systemd/system/fan.service 
[Unit]
Description=Gestion du ventilateur
ConditionPathExists=/home/crust/scripts/fan.sh
after=network.target
 
[Service]
Type=forking
ExecStart=/home/crust/scripts/fan.sh start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
 
[Install]
WantedBy=multi-user.target

Activer le service au démarrage

download
systemctl enable fan.service
homeserver/orangepi3b.txt · Dernière modification : 2024/10/06 10:40 de cyrille