diff --git a/scripts/KlipperScreen-install.sh b/scripts/KlipperScreen-install.sh index a856190f..0df2af7e 100644 --- a/scripts/KlipperScreen-install.sh +++ b/scripts/KlipperScreen-install.sh @@ -15,9 +15,12 @@ install_packages() xinit \ xinput \ x11-xserver-utils \ + python3-distutils \ python3-gi \ python3-gi-cairo \ - gir1.2-gtk-3.0 + python3-virtualenv \ + gir1.2-gtk-3.0 \ + virtualenv } create_virtualenv() @@ -26,7 +29,8 @@ create_virtualenv() [ ! -d ${KSENV} ] && virtualenv -p /usr/bin/python3 ${KSENV} ${KSENV}/bin/pip install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt - ${KSENV}/bin/vext -i ${KSENV}/gi.vext + ${KSENV}/bin/pip install --no-binary ":all" "vext.gi==0.7.4" + ${KSENV}/bin/vext -e } install_systemd_service() @@ -44,7 +48,18 @@ install_systemd_service() sudo systemctl daemon-reload } +update_x11() +{ + echo "Updating X11 configuration" + sudo sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config +} -install_packages +start_KlipperScreen() { + sudo systemctl start KlipperScreen +} + +#install_packages create_virtualenv install_systemd_service +update_x11 +start_KlipperScreen diff --git a/scripts/KlipperScreen-requirements.txt b/scripts/KlipperScreen-requirements.txt index 5b92f294..84f7c3d8 100644 --- a/scripts/KlipperScreen-requirements.txt +++ b/scripts/KlipperScreen-requirements.txt @@ -1,6 +1,5 @@ websocket==0.2.1 requests==2.24.0 -vext==0.7.3 -vext.gi==0.7.0 +vext==0.7.4 websocket-client==0.57.0 humanize==2.5.0