intelligent-agent / Refactor

Linux distro for 3D-printers
https://wiki.iagent.no/wiki/Refactor
GNU Affero General Public License v3.0
28 stars 19 forks source link

Add support for KlipperScreen #301

Closed eliasbakken closed 2 years ago

eliasbakken commented 2 years ago

It would be nice to run KlipperScreen as an alternative to Toggle. We should try and get a script for installing as a one line command, but for now here are some instructions to get started.


su debian

sudo apt install libgirepository1.0-dev
sudo apt install libcairo2-dev
sudo apt install at-spi2-core

cd /home/debian/
git clone https://github.com/jordanruthe/KlipperScreen.git
cd KlipperScreen
./scripts/KlipperScreen-install.sh

Issues:

The systemd file needs to be updated as well:

[Unit]
Description=KlipperScreen
After=moonraker.service
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=debian
Environment="GDK_BACKEND=wayland"
Environment="XDG_RUNTIME_DIR=/run/user/1000"
WorkingDirectory=/home/debian/KlipperScreen
ExecStart=/home/debian/.KlipperScreen-env/bin/python /home/debian/KlipperScreen/screen.py

[Install]
WantedBy=multi-user.target
eliasbakken commented 2 years ago

An install-script has been added which has been tested working.