歡迎您光臨本站 註冊首頁

SAMBA 共享印表機的問題

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

SAMBA 共享印表機的問題

請高人指點:
    問題:HP LASERJET 1020印表機,安裝在Centos 4.4  (與REDHAT完全一樣),在本機可以列印,但是用SAMBA共享后 WINDOWS客戶端可連接,但不能列印.

   LOG:


Apr 11 18:08:06 fileserver smbd: printing/print_cups.c:cups_job_submit(765)
Apr 11 18:08:06 fileserver smbd:   Unable to print file to hp1020 - client-error-document-format-not-supported
Apr 11 18:10:14 fileserver smbd: printing/print_cups.c:cups_job_submit(765)
Apr 11 18:10:14 fileserver smbd:   Unable to print file to hp1020 - client-error-document-format-not-supported

說客戶端錯誤的文件格式不支持,

SAMBA 配置:

        dos filetimes = Yes
        log file = /var/log/samba/%m.log
        load printers = yes
        printer = hp1020
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        encrypt passwords = yes
        public = yes
        postscript = yes
        dns proxy = No
        dos filetime resolution = Yes
        server string = FileServer
        printing = cups
        writeable = yes
        path = /var/spool/samba/
        dos charset = CP936
        workgroup = KYS
        os level = 20
        printcap name = /etc/printcap
        security = user
        max log size = 50


comment = Home Directories
browseable = No


comment = Public Stuff
path = /home/samba/public
#write list = @staff
#read only = No
writeable = yes
browseable = yes
guest ok = Yes


        printable = yes
        writable = no
        path = /var/spool/samba
        guest ok = no
        comment = All Printers
        use client driver = yes


        path = /misc/cdrom
        writeable = yes
        browseable = yes
        guest ok = yes

想取代WINDOWS 2000 SERVER 對我來說的確有點難度,呵~~

請大俠出手相助!
《解決方案》

天,我今天也碰到這種問題了。

本機列印的job都是好的,但是一旦通過samba列印,job馬上cancel了。

拜託高手支招。
《解決方案》

呵~~一整天都無解,痛苦中.........
《解決方案》

狗狗了一下,找到如下信息,可是現在沒辦法測試!

1。注意到,每次你重新安裝列印驅動程序(用printconf), 則
/etc/cups/mime.type 和mime.convs 可能會被覆蓋,這樣如果你不想得到:
「client-error-document-format-not-supported「
的錯誤,就必須像下面那樣,再次去掉包含 "application/octet-stream"
的那行文字前面的 # 號以使能 raw printing 。 /etc/cups
中設置修改後,還要重新啟動cups :<br/>
《解決方案》

那麼這種方案如何呢?可以解決嗎?我要試一下。
《解決方案》

方法可行后,記得通知一下,我現在沒有環境,拜託!
《解決方案》

參考樓主的信息,將
/etc/cups/mime.type 以及 mime.convs中相關application/octet-stream欄位的配置都打開。

smb、cups服務重啟后,系統可以進行列印。非常順利。只是速度很慢。

多謝樓主提示!

[火星人 ] SAMBA 共享印表機的問題已經有370次圍觀

http://coctec.com/docs/service/show-post-39818.html