====== 使用 CUPS + SAMBA 分享網路印表機問題 ======
在 CentOS 5 上面很容易就可以將主機端印表機分享出來給 Windows 的 Client 端當網路印表機使用.. 主要是透過 cups 與 samba 兩個模組來達成. 當然也會面對一些技術的問題, 所以以下將目前遇到的問題陸續整理下來.
===== - CentOS 由 5 升級到 5.1 之後就無法列印 =====
* 經過 /var/logs/samba 內的 Clinet 主機使用紀錄檔看到以下的錯誤訊息..
lpr: Unsupported format 'application/octet-stream'!
* 再到 /etc/cpus/ 內以 octet 當關鍵字 grep 發現有兩個檔案和 octet 有關
[root@pd920 cups]# grep octet *
mime.convs:# Uncomment the following filter and the application/octet-stream type
mime.convs:#application/octet-stream application/vnd.cups-raw 0 -
mime.types:# Uncomment the following type and the application/octet-stream
mime.types:application/octet-stream
* 將 mime.convs 內的 application/octet-stream 前面 # 拿掉後重新啟動 samba 與 cpus
:
# Raw filter...
#
# Uncomment the following filter and the application/octet-stream type
# in mime.types to allow printing of arbitrary files without the -oraw
# option.
#
application/octet-stream application/vnd.cups-raw 0 -
#
# End of "$Id: mime.convs,v 1.20 2004/02/25 20:14:51 mike Exp $".
:
* 如果還是不能列印(可能 log 都沒出現紀錄), 那就在 windows 內重新加入網路印表機, 這樣就可以恢復正常.
{{tag>cups samba print 密技}}