差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:cpus_tips [2007/12/14 15:07] jonathantech:cpus_tips [2009/03/03 01:04] (目前版本) jonathan
行 1: 行 1:
 +====== 使用 CUPS + SAMBA 分享網路印表機問題 ======
 +在 CentOS 5 上面很容易就可以將主機端印表機分享出來給 Windows 的 Client 端當網路印表機使用.. 主要是透過 cups 與 samba 兩個模組來達成. 當然也會面對一些技術的問題, 所以以下將目前遇到的問題陸續整理下來.
  
 +
 +===== - CentOS 由 5 升級到 5.1 之後就無法列印 =====
 +  * 經過 /var/logs/samba 內的 Clinet 主機使用紀錄檔看到以下的錯誤訊息..
 +<file>
 +lpr: Unsupported format 'application/octet-stream'!
 +</file>
 +  * 再到 /etc/cpus/ 內以 octet 當關鍵字 grep 發現有兩個檔案和 octet 有關
 +<file>
 +[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
 +</file>
 +  * 將 mime.convs 內的 application/octet-stream 前面 # 拿掉後重新啟動 samba 與 cpus
 +<code |h /etc/cups/mime.convs>
 +:
 +# 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 $".
 +:
 +</code>
 +  * 如果還是不能列印(可能 log 都沒出現紀錄), 那就在 windows 內重新加入網路印表機, 這樣就可以恢復正常.
 +
 +{{tag>cups samba print 密技}}