epson_print_conf/start.sh
Maria Voreakou eba18ecda3
Some checks failed
Deploy Jekyll with GitHub Pages dependencies preinstalled / Build (github-pages-build gem) (push) Has been cancelled
Python syntax checker / build (3.10) (push) Has been cancelled
Python syntax checker / build (3.11) (push) Has been cancelled
Python syntax checker / build (3.12) (push) Has been cancelled
Python syntax checker / build (3.8) (push) Has been cancelled
Python syntax checker / build (3.9) (push) Has been cancelled
Python syntax checker / build (3.x) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
Create Dockerfile to export it as Docker Image (#52)
* Added-dockerfile-to-create-docker-image

* README-update

---------

Co-authored-by: Maria Voreakou <voreakou7@gmail.com>
2025-03-06 08:43:41 +01:00

24 lines
543 B
Bash

#!/bin/bash
echo "Starting Xvfb virtual display..."
Xvfb :99 -screen 0 1280x800x24 &
sleep 2
echo "Creating minimal Fluxbox config..."
mkdir -p ~/.fluxbox
echo "session.screen0.toolbar.visible: false" > ~/.fluxbox/init # Hide toolbar to avoid errors
echo "Starting Fluxbox window manager..."
fluxbox -log ~/.fluxbox/fb.log & # Redirect logs to a file instead of the console
sleep 2
echo "Starting VNC server..."
x11vnc -display :99 -forever -nopw -bg -rfbport 5990 &
sleep 2
echo "Starting Tkinter application..."
exec python ui.py