Fixing installation script
This commit is contained in:
1 parent
83d9ea0850
commit
de04e6688d
2 files changed
+19
-5
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user