printer
Mitch Contla
mcontla at gmail.com
Sat Dec 2 16:56:50 UTC 2006
Tony Arnold said the following on 12/02/2006 01:34 AM:
> Norman,
>
> norman wrote:
>
>
>> Sorry to report that, so far, I have not managed to complete the
>> procedure. Having followed all the advice given with regard to my Ubuntu
>> box I started the printer setup procedure on the windows laptop. I got
>> as far as entering the URL and could get no further. The laptop was
>> unable to contact the printer. I wonder whether there is something else
>> I need to do such as configuring CUPS to print from the network.
>>
>
> I've not followed this thread, but you probably need to modify the
> 'network' section in /etc/cupsd.conf.
>
> I have a line in there that says 'Port 631' which causes cupsd to listen
> on port 631. It may be there already, but commented out.
>
> You can be more specific and use the Listen directive to specify which
> network addresses to listen on.
>
> You probably also need to modify the access permission section. Mine
> looks like this:
>
> <Location />
> Order Deny,Allow
> Deny From All
> Allow From 192.168.8.0/24
> Allow From 127.0.0.1
> </Location>
>
> Which allows printing from my home network and the Linux box itself.
>
> You will need to restart cupsd to effect the changes.
>
> You can also check if cupsd is listening by running 'netstat -l -t' in a
> terminal window. By default it only listens on the local interface.
>
> Good luck.
>
> Regards,
> Tony.
>
If it's a stock Dapper install the following lines should already appear
in /etc/cups/cupsd.conf:
<Location />
Order allow,deny
Allow localhost
Allow @LOCAL
</Location>
This last Allow line grant access from all interfaces. Port 631 is
already open since we added the following lines to
/etc/cups/cups.d/ports.conf:
Listen *:631
Listen /var/run/cups/cups.sock
Those two sets of directives are generally what allows cups to listen
and accept jobs from the network (in this case with virtually no
restrictions).
You certainly can check to make sure cups is listening by using:
$ netstat -l -t | grep ipp
Which should return something like:
tcp 0 0 *:ipp *:* LISTEN
tcp6 0 0 *:ipp *:* LISTEN
My questions for Norman at this point would be...
1. Have you verified network connectivity between the windows box and
the ubuntu box? Can you ping servername or ping ipaddress?
2. What happens when you open a browser on the windows machine and
browse to:
http://ipaddressofcupsserver:631/printers (you should see a web
page that shows your printers).
3. What is the name of your printer as recognized by cups?
4. When you make the connection using the windows Add Printer wizard,
are you using hostname or ip address? If you are using hostname,
are you sure this is resolving correctly?
5. What does /var/log/cups/access_log or /var/log/cups/error_log say?
I've helped lots of people help set up windows -> ubuntu printing this
way. Unless you have made some other changes to the cups configuration,
or have a connectivity issue between the 2 machines, we should be able
to get this done.
... and this is still far easier than getting samba configured! :)
--
Mitch
More information about the ubuntu-users
mailing list