LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 730|回复: 5

[已解决]请教连接远程CUPS服务器的方法

[复制链接]
发表于 2011-7-5 09:38:12 | 显示全部楼层 |阅读模式
求解:使用远程打印服务器的方法
环境:有一台Debian服务器(IP:192.168.1.86),安装了CUPS,打印正常。现在,用windows系统(利用http协议,打印机地址选:http://192.168.1.86:631/printers/HPM1136)能正常打印。
问题:我现在笔记本gentoo+KDE+cups(1.4.6.r2)。如何连接远程打印服务器?根据:
http://www.gentoo.org/doc/en/printing-howto.xml 所说的:
Setting Up a Remote Printer

If the printers are attached to a remote CUPS-powered server you can easily set up your system to use the remote printer by changing the /etc/cups/client.conf file.

Assuming the printer is attached to a system called printserver.mydomain, open up /etc/cups/client.conf with your favorite editor and set the ServerName directive:

  1. # vim /etc/cups/client.conf
  2. (Substitute printserver.mydomain with your print server name)
  3. ServerName printserver.mydomain
复制代码

可是对这段话理解不是非常透彻,具体应该如何写?谢谢!

补充一点:
进入:http://localhost:631,然后添 ... ,没有成功。
发表于 2011-7-5 10:58:46 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-7-5 11:08:28 | 显示全部楼层
谢谢指正。不过试验了一下,不行,提示信息:
"/usr/libexec/cups/filter/hpcups failed"

根据我本地安装的经验,我猜测是我没有选择一个合适的ppd文件,从make中选择是不对的。

现在是我本地安装(就是将打印机USB接线直接和笔记本连接)安装是可以的(利用HP-toolbox),从网络中下载了一个文件,才能正常。

请问ppd文件到哪下呀?谢谢
回复 支持 反对

使用道具 举报

发表于 2011-7-5 13:28:10 | 显示全部楼层
服务器是linux+cups的话,linux客户端无需安装驱动,只要服务器端选择了共享打印机,客户端选了显示其他系统共享的打印机,客户端就可以自动找到打印机并立即可用。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-7-5 15:53:18 | 显示全部楼层
我判断服务器端应该是共享了,因为windows系统可用它打印。同时我去看了一下,CUPS中share选项也选上了呀。

客户端“显示其他系统共享的打印机”看了半天,选了后。在加打印机显示的是:
Discovered Network Printers:        
没有发现任何的
Post by elecboy;2143999
服务器是linux+cups的话,linux客户端无需安装驱动,只要服务器端选择了共享打印机,客户端选了显示其他系统共享的打印机,客户端就可以自动找到打印机并立即可用。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-7-5 16:30:00 | 显示全部楼层
谢谢上面各位的提示和帮助。最后发现问题所在:是服务器端的CUPS设置不正确。

在打印服务器上进入设置页面:localhost:631
在administration的页面的右下角:

Server Settings:

Advanced ▶
Show printers shared by other systems
Share printers connected to this system
         Allow printing from the Internet
Allow remote administration
Allow users to cancel any job (not just their own)
Save debugging information for troubleshooting


Share printers connected to this system
         Allow printing from the Internet
这两个选项选上,然后选择“change Setting”

然后我的笔记本“/etc/init.d/cupsd restart”,进入"http://localhost:631/printers/"就发现打印机了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表