Doesnt work for Tiny Linux distributions
Describe the bug It doesnt work on Tiny Linux Distributions such as the Creality K2 Plus
Sudo and apt-get do not exist on tiny linux for k2 plus
ok...I have some answers
first off, it doesnt work on a k2 plus because the version of python is too old, and updating the python will probably break the printer and many of its functions that are written in python
but if somebody wants to risk it...
git doesnt exist on a k2, so you have to create a script to use curl to download and install Git for tina linux, which uses GIX instead of GIT
First create a file with this script then you need to run
chmod +x NameOfThisScript.sh
then you can type
./NameOfThisScript.sh
and it will install the gix version of git on the tina linux inside the k2
python -c "import urllib.request; urllib.request.urlretrieve('https://github.com/moparisthebest/static-curl/releases/download/v8.11.0/curl-armv7', 'curl')"
chmod +x curl
mv ./curl /usr/bin/curl
printf "\n* Using curl to download and install gitoxide (GIT)\n\n"
curl --location --remote-header-name --remote-name https://github.com/GitoxideLabs/gitoxide/releases/download/v0.41.0/gitoxide-max-pure-v0.41.0-arm-unknown-linux-gnueabihf.tar.gz
tar -zxvf gitoxide-max-pure-v0.41.0-arm-unknown-linux-gnueabihf.tar.gz
mv ./gitoxide-max-pure-v0.41.0-arm-unknown-linux-gnueabihf/ein /usr/bin/ein
mv ./gitoxide-max-pure-v0.41.0-arm-unknown-linux-gnueabihf/gix /usr/bin/gix
rm -rf gitoxide-max-pure-v0.41.0-arm-unknown-linux-gnueabihf.tar.gz gitoxide-max-pure-v0.41.0-arm-unknown-linux-gnueabihf
printf "\nDone!\n"
then you can use
gix clone https://github.com/Donkie/Spoolman.git
and it will download the spoolman github
then in the /spoolman/scripts directory, you have to run chmod +x install.sh
change the first line to say #!/bin/sh
and then go edit it and comment out line 40 with a #
beyond that, it wont run anyways because the k2 plus is only on python 3.9
so please make a version that works on python 3.9... pretty please... I'm begging you.
ok... did some risky things, further digging, it says I need to install python 3.9 or later, so I commented out the version check and let it move forward since 3.9.12 is later than 3.9.0
I get this error
so please make a version for this distribution that the Creality K2 Plus Runs on
I'm not sure you should be running Spoolman on your printer directly: the printer systems are typically designed and built to handle printing, and only printing. Adding an additional API process and storage file is going to add additional load to the system, and there is no way we could tell what the extra load would do to a printer.
Spoolman is lightweight and can easily run on a raspberry pi that supports the appropriate python version. Or it can be run inside a docker container in another system (I haven't tried, but I have to imagine I could get this running on my Synology NAS). There are a LOT of hosting options, but we can't recommend running it on a printer.
As spyder said, don't run Spoolman directly on your printer unless you've perhaps built it yourself and you know what you're doing.