jobcomm/ricoh-sp112-ppd/issue.txt

95 lines
3.8 KiB
Plaintext

bieniekmateusz commented Jun 3, 2020 •
Hi there, thanks for making the repo.
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.
@gilex-dev
gilex-dev commented Apr 23, 2023 •
@bieniekmateusz did you ever got it working?
I tried
Fedora 37 KDE
Fedora 38 KDE
2023-02-21-raspios-bullseye-arm64-lite
2023-02-21-raspios-bullseye-armhf-lite
2021-12-02-raspios-buster-armhf-lite
2023-05-03-raspios-buster-armhf-lite
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.
Here are the basic steps that got it working
assuming pi is the user
sudo 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 install dhcp package
./check-requirements asks for pbmtojbg but for Fedora/RaspiOS it is jbigkit/jbigkit-bin
./check-requirements asks for identify but for Fedora/RaspiOS it is ImageMagick/imagemagick
Typo?
I noticed a small typo/error in
ricoh-sp112-ppd/RICOH_Aficio_SP_112.ppd
Line 123 in a71ade3
*% End of rsp100.ppd, 06096 bytes.
The line should be *% End of rsp112.ppd, 06096 bytes. like here:
ricoh-sp112-ppd/RICOH_Aficio_SP_112.ppd
Line 8 in a71ade3
*PCFileName: "rsp112.ppd"
right?
But I think this does not matter.
Output of ./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!