针对Ubuntu Server 9.10configurationCUPS打印服务器的问题

我有一个9.10 Ubuntu服务器安装,我想使它成为一个打印服务器,并试图访问从Windows客户端机器杯浏览器pipe理页面。 我安装了杯子:

sudo apt-get install cups 

然后我编辑了/etc/cups/cupsd.conf文件并尝试了几个不同的监听组合:

 Listen 192.168.1.109:631 #ip my router gives it3 Listen /var/run/cups/cups.sock #already in conf file Listen fileserver:631 #hostname of server Port 631 #listen for all incoming requests on 631? 

桑巴也安装(我认为是必要共享打印机出?

最后我把我的用户添加到了lpadmin组:

 sudo adduser tone lpadmin 

但是当我试图导航下面的任何一个时,我得到403禁止

 http://fileserver:631/admin http://fileserver:631 http://192.168.1.109:631/admin http://192.168.1.109:631 

我错过了什么?

您可能会在日志中find答案

 sudo tail -f /var/log/cups/{access,error}_log 

尝试

 Listen *:631 

我很确定CUPS只允许从本地主机进行Admin / Web访问。 如果您与CUPS不在同一台计算机上,则可能需要添加
Allow from 192.168.1.1/24
到你的cupsd.conf <Location>部分。

我在互联网上find了一个示例 – 必须对我的configuration文件进行一些更改:

 # Only listen for connections from the local machine. #Listen localhost:631 Listen *:631 Listen /var/run/cups/cups.sock # Show shared printers on the local network. Browsing On BrowseOrder allow,deny BrowseAllow all BrowseAddress @LOCAL # Default authentication type, when authentication is required... DefaultAuthType Basic # Restrict access to the server... <Location /> Order allow,deny Allow localhost Allow @LOCAL </Location> # Restrict access to the admin pages... <Location /admin> Order allow,deny Allow @LOCAL </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user @SYSTEM Order allow,deny Allow @LOCAL </Location>