aboutsummaryrefslogtreecommitdiff

very WIP…

mkdir local

zef install \
    --deps-only \
    --contained \
    --install-to=./local/ \
    --exclude=sqlite3 \
    .

then raku ./media-control.raku

On my NAS:

/etc/inittab:

c8:2345:respawn:/sbin/agetty --autologin dakkar 38400 tty8 linux

/home/dakkar/.bash_profile:

if [[ -z "$DISPLAY" ]]; then
    TTY=$(tty)
    [[ "${TTY/tty}" != "$TTY" && "${TTY:8:1}" = "8" ]] &&
        exec startx >~/xsession-errors 2>&1
fi

/home/dakkar/.xinitrc:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

if [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]]; then
    eval $(dbus-launch --exit-with-x11 --sh-syntax)
fi

cd
export LC_ALL=en_US.UTF-8
xset s off
xset -dpms
gamma 1
xsetroot -solid black
xrdb -load .Xdefaults
start-pulseaudio-x11

/usr/bin/mpd /home/dakkar/mpd/mpd.conf

cvlc -f &

exec fvwm

plus an empty /home/dakkar/.fvwm/.fvwm2rc

The window manager is necessary for vlc to enter full screen.

Apache config:

<Location /mc/>
    ProxyPass "http://127.0.0.1:8090/"
    RequestHeader set ProxyMountRoot "/mc/"
    Require ip 127.0.0.1
    Require ip ::1
    Require ip 192.168.1.0/24
    Require ip 10.111.0.0/16
    Require ip fe80::0/16
</Location>