archlinuxからcupsでbrother hl-l2365dwを使いたい
やりたいこと
TL;DR
やったこと
$ yaourt -S cups $ sudovim /etc/cups-files.conf SystemGroup sys root ↓ SystemGroup wheel root $ systemctl start org.cups.cupsd.service $ systemctl enable org.cups.cupsd.service $ yaourt brother-hll2360d $ lpadmin -p brother -E -v "ipp://192.168.xx.xxx/ipp/port1" -P /usr/share/cups/model/brother-HLL2360D-cups-en.pdd
時系列
- cupsとlprがあるけどめんどいしcupsじゃろ
- arch linux cups pageみる
- 品番+cupsでぐぐる
- cups driver 公式で配布してるっぽい
- とりあえずraw driverでやる
yaourt -S cups sudovim /etc/cups-files.conf SystemGroup sys root ↓ SystemGroup wheel root 自分がwheelならばlpadminコマンドが打てるようになった systemctl start org.cups.cupsd.service systemctl enable org.cups.cupsd.service lpinfo -m よさそう
とりまプリンタ名はbrotherでarchlinuxwiki見ながら
lpadmin -p brother -E -v "ipp://192.168.xx.xxx/ipp/port1" -m raw
印刷テスト→おk(ただし文字化けしてる, pddファイルが必要なんじゃろ)
brotherからdriver(cupswrapper, rpm)をdownload
unzip→ /opt
始まりになってて親切、このままcpしよう
適当にpkgbuildを書いてinstall
lpadmin -p brother -P /opt/brother/Printers/HLL2360D/cupswrapper/brother-HLL2360D-cups-en.pdd
印刷テスト→だめ
$ lpstat -t scheduler is running system default destination: brother device for brother: ipp://192.168.88.123/ipp/port1 brother accepting requests since Tue 19 Jul 2016 09:38:38 PM JST printer brother is idle. enabled since Tue 19 Jul 2016 09:38:38 PM JST File "/usr/lib/cups/filter/brother_lpdwrapper_HLL2360D" not available: No such file or directory brother-2 cocuh 93184 Tue 19 Jul 2016 09:38:38 PM JST
なんかfilterを書けるらしい、それっぽいファイルがdownloadしたものに同封されていた
とりま/usr/lib/cups/filter/
でぐぐる
https://bbs.archlinux.org/viewtopic.php?id=129366
ふつうpddfileはfullpathじゃなくて /usr/share/cups/model
にコピーするっぽい雰囲気
PKGBUILDをそんな感じに書き換える。
調べたら既にAURにあった
https://aur.archlinux.org/packages/brother-hll2360d/
yaourt brother-hll2360d lpstat -t
もんだいなし テストプリント→ok
完