On 11/29/2010 12:21 AM, Wolfgang Rosenauer wrote:
Hi,
I'm trying to print to a remote cups server.
Umm, how is the printer connected on the remote end? (is it connected to the server via LPT1, USB, etc.. or is it connected to another host (win or Lin), or is it a stand-alone network device?) The setup should be correct
already with one issue left. The printer is always broadcasted with the hostname instead of the ip address of the print server.
That shouldn't matter as long as forward/reverse name resolution is working. This hostname
cannot get resolved in this network (I know it's bad but no way to change that).
This I don't understand? DNS? /etc/hosts? LMHOSTS? WINS? All documentation I've found says that I need to set
"ServerName" in cupsd.conf to the ip address.
You might try setting the name as well as aliases. Example from my box: ServerName nirvana.3111skyline.com ServerAlias nirvana ServerAlias www.3111skyline.com ServerAlias localhost
But this doesn't work. It's still broadcasting the hostname as part of the printer uri.
This is openSUSE 11.3 with cups 1.4.4.
Any pointers?
I know there have been a number of changes to cupsd.conf over the past 2 years, but I don't recall when or what version. The example above comes from cups 1.4.5-1, while on my older cups installs, I don't even set ServerName and they work fine with with all printers, (LPT1, or connected to Win boxes, or standalone network printers). At the office I have 3 printers, none a physically connected to my server, but all work via cups: 18:30 bonza:~> smbclient -U david -L localhost Enter david's password: Domain=[BONZA] OS=[Unix] Server=[Samba 3.3.4-0.1.146-2113-SUSE-SL10.3] Sharename Type Comment --------- ---- ------- <snip> SHARP_AR-M355N_192.168.7.20 Printer SHARP AR-M355N hplj_4200 Printer HP LaserJet 4200 dcr_lj4100n Printer HP LaserJet 4100n The Sharp and 4100n are stand-alone network devices that are just at the end of CAT5 drops, the 4200 is hanging off the parallel port of the secretary WinXP box. The cupsd.conf on the server (older 10.3 box with cups 1.2-12) is completely generic: 18:35 bonza:~> sudo cat /etc/cups/cupsd.conf LogLevel info SystemGroup sys root # Allow remote access Port 631 Listen /var/run/cups/cups.sock # Enable printer sharing and shared printers. Browsing On BrowseOrder allow,deny BrowseAllow @LOCAL BrowseAddress @LOCAL DefaultAuthType Basic <Location /> # Allow shared printing and remote administration... Order allow,deny Allow From @LOCAL </Location> <Location /admin> Encryption Required # Allow remote administration... Order allow,deny Allow From @LOCAL </Location> <Location /admin/conf> AuthType Basic Require user @SYSTEM # Allow remote access to the configuration files... Order allow,deny Allow From @LOCAL </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> Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default> AuthType Basic 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> The smb.conf setup is generic as well: [global] <snip> printcap name = cups <snip> [printers] comment = All Printers path = /var/spool/samba ; can be /tmp/<whatever> as well create mask = 0700 guest ok = Yes printable = Yes browseable = No <snip> Have you looked at the setup with the cups interface on the server you are working on? http://servername:631 It has been a while, but IIRC, all I did to get everything working together was to set the hardware up and then use the cups interface (on the server) to add and publish each of the printers. These are just thoughts. Give us a little more specific info on how the printer is connected on the remote end and we will be happy to make more guesses :p -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org