mirror of
https://github.com/mkuf/prind.git
synced 2025-10-26 07:46:19 +01:00
scripts: add splashscreen to xinit service
This commit is contained in:
@@ -81,13 +81,14 @@ docker compose --profile mainsail up -d
|
||||
KlipperScreen can be run from within a Docker Container.
|
||||
It requires you to set up a X11 Server on your machine that the Container can connect to.
|
||||
|
||||
Locate the setup Script for X11 within `scripts/` and run it as root.
|
||||
Locate the setup Script for X11 within `scripts/` and run it from the root directory of this repository as user root.
|
||||
It creates a User, installs and configures X11 and creates a Systemd Service for xinit.
|
||||
```
|
||||
cd prind/
|
||||
./scripts/setup-X11.sh
|
||||
```
|
||||
|
||||
Xterm should now be displayed on your screen.
|
||||
The Prid Logo should now be displayed on your screen.
|
||||
If this is not the case, check the scripts output for errors.
|
||||
Otherwise, proceed to start/update the Stack.
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ usermod -a -G tty ${USER}
|
||||
|
||||
## Install Packages
|
||||
apt update
|
||||
apt install -y xterm xinit xinput xserver-xorg x11-xserver-utils xserver-xorg-video-fbdev
|
||||
apt install -y feh xterm xinit xinput xserver-xorg x11-xserver-utils xserver-xorg-video-fbdev
|
||||
|
||||
## Allow any User to start X
|
||||
sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config || true
|
||||
@@ -28,7 +28,7 @@ After=systemd-user-sessions.service
|
||||
|
||||
[Service]
|
||||
User=${USER}
|
||||
ExecStart=/usr/bin/xinit /usr/bin/xterm -maximized
|
||||
ExecStart=/usr/bin/xinit /usr/bin/feh -FZY $(pwd)/img/splashscreen-1080p-dark.png
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user