Skip to main content

Hifumi: Printer server

Hardware - R2S

Network:

    eth0 - RTL8211E eth1 - RTL8153

    The RTL8153 device needs MAC assignment as it will use random value by default:

    /etc/udev/rules.d/10-network-mac-addr.rules
    SUBSYSTEM=="net", ACTION=="add", KERNEL=="eth1", PROGRAM="/sbin/ip link set %k address 8a:f4:c8:41:48:35"

     

    Printer setup

    Configure and unpause all printers

    #!/bin/sh -x
    lpstat -le | grep ' permanent ' | cut -f1 -d' ' | while read P; do
    	lpadmin -p "$P" -o printer-error-policy=retry-current-job
    	lpadmin -p "$P" -o printer-is-shared=true
    	lpadmin -p "$P" -E
    done

    Printer status

    lpstat -t

    Guest VLAN bridge

    This will bride eth0 to GUEST VLAN (10) on eth1.

    in /etc/rc.local:

    Prevent DHCP from running on eth0.

    In /etc/sv/dhcpcd/conf:

    OPTS="-M --denyinterfaces eth0"