lucidiot's cybrecluster

mountain

mountain is an Acer Aspire 7220 running Alpine Linux at my home, and hosting my French blog. It is also part of my group of Syncthing devices, to make sure there is always one device ready to receive another’s changes, for near-instant online backups.

It is named after one of the sectors in Code Lyoko; my previous server was named Carthage after the Fifth Sector. I plan on naming my next devices after the other sectors; Desert, Forest and Ice.

I am considering hosting some other small services such as Gopher, Gemini, or Finger. I however want everything to only be purely static; if it does not fit in a Git repo, it does not get into my server. Syncthing is the only exception.

A WebDAV server is also hosted there, although it is only exposed to my LAN; I use it purely to make transfers between my IBM ThinkPads running old Windows versions and my Linux systems easier.

I tried to write some setup docs when I first set it up, but of course I did not write everything down, that would be too easy.

Base setup

WLAN

Manual setup

Automated setup

Graphics

TODO: Keep the screen resolution set permanently

SSH

Sudo

Nginx

MariaDB

PHP

TODO

Brainshit

TODO

Let’s Encrypt

TODO

UFW

TODO

WebDAV

TODO

CUPS

Samba

apk add samba-server samba-common-tools enable WINS server enable on 192.168.1. workgroup name: CYBRECLUSTER add a share on /var/www/dav/data setfacl -R -m u:samba:rwx /var/www/dav/data rc-service start samba

apk add build-base cups-dev cups-filters-dev libjpeg libpng tiff ghostscript

wget https://www.seiko-instruments.de/fileadmin/user_upload/CUPSFilter_Ver.1.2.0. zip unzip CUPSFilter_Ver.1.2.0.zip cd CUPSFilter_Ver.1.2.0 tar xf sii_mlt_cups-1.2.0.tar.gz cd sii_mlt_cups-1.2.0 ./configure make make install

apk del cups-dev cups-filters-dev build-base

Edit /etc/cups/cupsd.conf: - Add Listen 192.168.1.81:631 - Add Allow All on every location - Add AutoPurgeJobs yes - Add PreserveJobFiles no

addgroup lucidiot lpadmin rc-update add cupsd default rc-service cupsd start

apk add eudev lsusb to find out which is the bus and device of the printer udevadm info -p $(udevadm info -q path -n /dev/bus/usb//) look for the PRODUCT: echo ’SUBSYSTEM=usb;PRODUCT=619/127/106;.* root:lp 660 */lib/mdev/usbdev’ >> /etc/mdev.conf

plug or unplug+replug the printer lpinfo -v to find out the usb:// path

lpadmin -p thermal -E -v usb://SII/RP-D10 -P /usr/share/cups/model/sii_rpfg10_80.ppd lpadmin -p thermal -o PageSize=X72MMY1000MM -o CutTiming=Document -o BlankImage=nonfeed


Licensed under Creative Commons Attribution 4.0 International Generated on 2022-03-14T08:38:03+01:00 using pandoc 2.9.2.1