Print from anywhere via an FTP server to your locally-attached printer.
The rationale behind ftp printing is the fact that the Windows Print Spooler is suspectible to problems with networked printers (via cups). Therefore, I decided to introduce a backup solution so I could send a PDF file (via the Print-to-PDF option).
A few basic steps should be done to install this program:
- Copy the
server.pyfile to a new folder under/opt, calledftpprint. - Create a directory with the path of
/var/run/ftpprint/. - Start a python3 virtual environment (preferablly under the path of
/opt/ftpprint/.venv) and installpycups. - Copy the systemd service file into a systemd-recognized directory, such as
/etc/systemd/system.
Don't forget to edit your systemd service file to match the appropriate settings of your printer.
If you started a python3 virtual environment not in name of .venv, adjust the python3 executable path accordingly.
Then enable and start the systemd service.