USL-5Pにプリンタ
目標
USL-5PにUSB経由でプリンタを接続して、LANの中から共有できるようにする。おおよそ、CUPSを入れてsambaで共有すればできそう。
CUPSインストール
CUPSのインストールについては、ネットで調べると「すでに入っている」とか「apt-getで」などと書いてあるが、この環境では入っていないし、apt-get だと色々たりないと文句を言われる。
usl-5p:/ext/home/landisk/test/cups# apt-get install cupsys Reading package lists... Done Building dependency tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: cupsys: Depends: xpdf-utils but it is not installable Depends: gs-esp but it is not installable E: Broken packages
探したら、xpdf-utilsはここにあった。
いろいろ試した結果、cupsはソースを落として自分でビルドした。
cups-client, cups-bsd は .deb からインストール。
cups-client, cups-bsd は .deb からインストール。
PM-970Cのドライバを見つけたが、バイナリが入っていて、どうもIA32専用みたいだ。仕方ないので、RAWで使うようにする。デフォルトでは使わない設定になっているので、/etc/cups/mime.convsの該当行のコメントを外す。
application/octet-stream application/vnd.cups-raw 0 -
cupsを再起動。
cupsのブラウザからの設定がデフォルトでは127.0.0.1からしかできないので、/etc/cups/cupsd.confを修正(2箇所)
Allow From 192.168.1.0/24
これで、http://usl-5p:631 でcupsの設定ができる。
プリンタを追加する。最初はRAWで設定できないけど、一度設定してから変更するとRAWで設定できる。次に、Windowsからリモートプリンタを設定する。ポートが、http://usl-5p:631/printers/<printer名称> でつなげれば、後は特に問題なく印刷できる。
sambaの設定はしなくても、Windowsから見えるようになった。
sambaの設定はしなくても、Windowsから見えるようになった。
でも、これだとEPSONのツールが使えなくて、インクの残量とかが見えないので、結局元に戻した。