Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/bin/bash
2set -e
3
4echo "🖥️ Starting Xvfb..."
5Xvfb :99 -screen 0 320x240x24 &
6
7echo "🔇 Starting PulseAudio..."
8pulseaudio --start --exit-idle-time=-1 &
9
10echo "🌐 Launching Chromium..."
11CHROME_BIN=$(command -v chromium-browser || command -v chromium)
12"$CHROME_BIN" \
13 --no-sandbox \
14 --window-size=320,240 \
15 --start-maximized \
16 --disable-notifications \
17 --disable-infobars \
18 --kiosk \
19 --noerrdialogs \
20 --disable-session-crashed-bubble \
21 --autoplay-policy=no-user-gesture-required \
22 https://aesthetic.computer/\$zip &
23
24echo "🙈 Hiding mouse..."
25unclutter -idle 0.01 -root &
26
27echo "🌍 Starting nginx..."
28nginx
29
30echo "🎥 Starting ffmpeg capture..."
31ffmpeg -f x11grab -draw_mouse 0 -video_size 320x240 -i :99 \
32 -f pulse -i default \
33 -c:v libx264 -preset ultrafast -tune zerolatency -b:v 600k \
34 -c:a aac -b:a 96k \
35 -f hls -hls_time 4 -hls_list_size 5 -hls_flags delete_segments \
36 /var/www/html/hls/stream.m3u8