Raspberry Orange Pi y servicios homelab
Raspberry Orange Pi y servicios homelab
Raspberry Orange Pi y servicios homelab
Este post cubre ajustes de Raspberry/Orange Pi, preparacion de servicios web ligeros, WiFi, WordPress, Nextcloud y optimizaciones para alargar la vida de la SD.
En placas pequeñas, quitar swap o desactivar servicios puede mejorar vida de SD y consumo, pero tambien puede dejar el sistema sin margen si falta RAM o si dependes de descubrimiento de red, perifericos o gestion grafica. Desactiva solo lo que sepas que no usas y prueba tras reiniciar.
/boot/config.txt
1
2
3
4
5
dtparam=audio=on
gpu_mem=128
start_x=1
max_usb_current=1
hdmi_ignore_cec_init=1
Optimizar Raspberry Pi
1
2
apt update
apt install -y rpi-eeprom
Desactivar swap si no es necesario:
1
2
3
4
dphys-swapfile swapoff
dphys-swapfile uninstall
update-rc.d dphys-swapfile remove
apt purge -y dphys-swapfile
Usar tmpfs para /tmp:
1
2
3
cp /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount
systemctl enable tmp.mount
systemctl start tmp.mount
Servicios prescindibles
1
2
3
systemctl disable avahi-daemon triggerhappy packagekit
systemctl stop avahi-daemon triggerhappy packagekit
apt purge -y avahi-daemon triggerhappy packagekit
WiFi con wpa_supplicant
1
2
3
4
5
country=ES
network={
ssid="<SSID>"
psk="<PASSWORD>"
}
WordPress basico
1
2
3
4
5
6
apt install -y apache2 php mariadb-server php-mysql
cd /var/www/html
wget https://wordpress.org/latest.tar.gz
tar xzf latest.tar.gz
rsync -a wordpress/ ./
chown -R www-data:www-data /var/www/html
Preparar imagen reutilizable
Cuando la base tenga paquetes, PHP, BBDD y webserver configurados, conviene clonar la SD para reutilizarla como plantilla.
This post is licensed under CC BY 4.0 by the author.