Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There is a printer connected to my Ubuntu box that I would like to share with XP users on my home network. When I browse for a network printer in XP the Ubuntu box is displayed, but does not display the connected printer.
I added the following lines to cupsd.conf:
Port 631
Listen /var/run/cups/cups.sock
and then restarted cups with:
sudo /etc/init.d/cups restart
I have also set ufw to allow incoming traffic through port 631 from each XP machine.
To share a linux printer to a windoze host, you will have to install and configure Samba server. You define the shared printer in /etc/samba/smb.conf . Once that is done, you have to add a remote printer in windoze. Of course you need the windoze driver for the linux printer in XP. I have never heard of a way to share a linux printer to a windoze client with just cups.
You can use cups only on linux systems to share printers among linux hosts.
Samba is not trivial to configure. Look in the Tutorials, networking section, for how to go about setting up a samba server.
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
Quote:
Originally Posted by kern68
There is a printer connected to my Ubuntu box that I would like to share with XP users on my home network. When I browse for a network printer in XP the Ubuntu box is displayed, but does not display the connected printer.
I added the following lines to cupsd.conf:
Port 631
Listen /var/run/cups/cups.sock
and then restarted cups with:
sudo /etc/init.d/cups restart
I have also set ufw to allow incoming traffic through port 631 from each XP machine.
What have I overlooked?
Thank you for any suggestions. GeoK
I assume that the printer is located on the Linux Box......
and you want to access from windows...is this correct?
By running cups on you Linux box this can be done without the complication of Samba./
Make sure the printer is online and enter http://localhost:631
just follow the menus to add a printer....
Using http://localhost:631 I could not get it to work. In xp, the server appears in the windows printer selection box, but no printers appear after making the selection.
Another interesting tidbit is that another Ubuntu box on my home network recognizes the printer and accepts it as a valid printer, but when attempting to print an authentication pop-up appears saying that "Authentication is required for printing document". It asked for a password with "none" to the left of the entry box. The log entry "192.168.0.3 - - [29/Jan/2011:13:13:23 -0500] "POST /printers/HEWLETT-PACKARD-DESKJET-990C HTTP/1.1" 200 515439 Print-Job client-error-not-authorized" is then posted to the CUPS access_log.
If CUPS is requesting authentication, would that prevent windows from displaying the printer? Also, where and how is authentication for CUPS set? I have seen the DefaultAuthType Basic entry in cups.conf and Basic seems to be the correct entry. But the question still remains, where is the authentication set?
Thank you for the links. One of the links did provide me with a method (nmap) to verify that my port 631 was open, but I am still experiencing the same symptoms as described earlier.
Here is my cups.conf:
Code:
LogLevel warn
MaxLogSize 1m
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow From All
</Location>
<Location /printers/HEWLETT-PACKARD DESKJET 990C>
Order Deny, Allow
Allow From 127.0.0.1
AuthType None
Allow From All
</Location>
<Location /admin>
# Allow remote administration...
Order allow,deny
Allow all
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow all
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
MaxClients 3
Is there anything thats jumps out that would cause any issues?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.