免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3266 | 回复: 6
打印 上一主题 下一主题

[samba] SAMBA 共享打印机的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-11 22:12 |只看该作者 |倒序浏览
请高人指点:
    问题:HP LASERJET 1020打印机,安装在Centos 4.4  (与REDHAT完全一样),在本机可以打印,但是用SAMBA共享后 WINDOWS客户端可连接,但不能打印.

   LOG:


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

说客户端错误的文件格式不支持,

SAMBA 配置:
[global]
        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

[homes]
comment = Home Directories
browseable = No

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

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

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

想取代WINDOWS 2000 SERVER 对我来说的确有点难度,呵~~

请大侠出手相助!

论坛徽章:
0
2 [报告]
发表于 2007-04-12 17:51 |只看该作者
天,我今天也碰到这种问题了。

本机打印的job都是好的,但是一旦通过samba打印,job马上cancel了。

拜托高手支招。

论坛徽章:
0
3 [报告]
发表于 2007-04-12 21:35 |只看该作者
呵~~一整天都无解,痛苦中.........

论坛徽章:
0
4 [报告]
发表于 2007-04-12 21:44 |只看该作者
狗狗了一下,找到如下信息,可是现在没办法测试!

1。注意到,每次你重新安装打印驱动程序(用printconf), 则
/etc/cups/mime.type 和mime.convs 可能会被覆盖,这样如果你不想得到:
“client-error-document-format-not-supported“
的错误,就必须像下面那样,再次去掉包含 "application/octet-stream"
的那行文字前面的 # 号以使能 raw printing 。 /etc/cups
中设置修改后,还要重新启动cups :<br/>

论坛徽章:
0
5 [报告]
发表于 2007-04-13 09:12 |只看该作者
那么这种方案如何呢?可以解决吗?我要试一下。

论坛徽章:
0
6 [报告]
发表于 2007-04-13 09:23 |只看该作者
方法可行后,记得通知一下,我现在没有环境,拜托!

论坛徽章:
0
7 [报告]
发表于 2007-04-13 10:02 |只看该作者
参考楼主的信息,将
/etc/cups/mime.type 以及 mime.convs中相关application/octet-stream字段的配置都打开。

smb、cups服务重启后,系统可以进行打印。非常顺利。只是速度很慢。

多谢楼主提示!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP