Open bieniekmateusz opened 4 years ago
Hi, we are probably experiencing the same issue, I solved it for the Ricoh SP112SU. This fixes the ghost script SAFER/NOSAFER new policy issue, see https://ghostscript.com/doc/current/Use.htm.
diff --git a/pstoricohddst-gdi b/pstoricohddst-gdi
index f86f9b6..e252b37 100755
--- a/pstoricohddst-gdi
+++ b/pstoricohddst-gdi
@@ -133,7 +133,7 @@ EOF
# Converting from PostScript to PostScript-monochrome, then to PBM image format (per page)
#gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - |
- gs -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
+ gs --permit-file-all=${uid}/ -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
stop
wait
@@ -144,7 +144,7 @@ EOF
# Converting from PostScript to PostScript-monochrome, then to PBM image format (per page)
log "Converting document to pages"
- gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - | gs -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
+ gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - | gs --permit-file-all=${uid}/ -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
log "Conversion complete"
cat <<EOF
The lack of error propagation is not good.
@bieniekmateusz did you ever got it working? I tried
Only the last two versions worked (I tried an older one because I had it working on a Raspberry Pi a couple of years ago) I'm planning to use a cheap Raspberry Pi Zero as an IPP print server (Under Fedora the Generic IPP Everywhere Driver worked and under Windows 10 one got installed automatically). Even printing from an old Phone (Android 8.0) worked like a charm. The only thing not working is the page count in the CUPS web-interface, but you can't have everything.
assuming
pi
is the usersudo apt update sudo apt install git jbigkit-bin ghostscript imagemagick inotify-tools cups samba smbclient -y # I think the smb/samba packages are not necessary git clone https://github.com/vaginessa/ricoh-sp112-ppd cd ricoh-sp112-ppd ./check-requirements sudo cp pstoricohddst-gdi /usr/lib/cups/filter sudo usermod -a -G lpadmin pi # not sure if necessary cupsctl --remote-admin --remote-any --share-printers # only when you want to print/administer from a different machine
Select
yes
when asked to installdhcp
package./check-requirements
asks forpbmtojbg
but for Fedora/RaspiOS it isjbigkit
/jbigkit-bin
./check-requirements
asks foridentify
but for Fedora/RaspiOS it isImageMagick
/imagemagick
I noticed a small typo/error in https://github.com/vaginessa/ricoh-sp112-ppd/blob/a71ade36f229bea2a016e460b718958d895418fe/RICOH_Aficio_SP_112.ppd#L123
The line should be *% End of rsp112.ppd, 06096 bytes.
like here: https://github.com/vaginessa/ricoh-sp112-ppd/blob/a71ade36f229bea2a016e460b718958d895418fe/RICOH_Aficio_SP_112.ppd#L8 right?
But I think this does not matter.
./check-requirements
pbmtojbg [REQUIRED] : Yes, version: PBMtoJBIG converter 2.1 -- creates bi-level image entity (BIE) as output file
identify [REQUIRED] : Yes, version: Version: ImageMagick 6.9.10-23 Q16 arm 20190101 https://imagemagick.org
Ghostscript [REQUIRED] : Yes, version: 9.27
ps2write [REQUIRED] : Yes
pbmraw [REQUIRED] : Yes
inotify-wait [optional] : Yes, version: inotifywait 3.14
...and CUPS is version 2.2.10
Hope this helps someone!
Have you a solution ?
Hi there, thanks for making the repo.
I followed the instructions to no avail. There is nothing in the log. However, this is in the /tmp directory:
The output.stream file contains this:
Do you have any hints about how to solve this? Thanks
Linux: Arch