aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: c072be838b16c406c034d10c13b7dca91bde6767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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`:
 
    #!/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>