LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   CUPS 1.3.7 remote installation (http://www.linuxquestions.org/questions/linux-software-2/cups-1-3-7-remote-installation-634837/)

sysslack_linux 04-12-2008 05:31 AM

CUPS 1.3.7 remote installation
 
Computer A= Slackware 12(Access the internet and computer B)
Computer B= Slackware 12 (Internal local) connected to Hp printer.

Both computers have cups 1.3.7 installed and I have checked that it is possible to print from Computer B from localhost:631

I have read a lot about directives -and it seems to me like they have changed the syntax in version 1.3.7 , but I can not figure out how to install printer on Computer A and print from any program for example openoffice.

I have tried ubuntu with same result. Not able to print from computer A.

I have checked that A4 is choosen as paper too.
And also restarted cups on both machines.
Here is my /etc/cups/cupsd.conf on Machine B :
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info
ServerName https://pingvinen.example.org:631/admin
# Administrator user group...
SystemGroup sys root


# 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

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
Order allow,deny
Allow from 192.168.0.0/24
</Location>

# Restrict access to the admin pages...
<Location /admin>
# Encryption Required
# Order allow,deny
Allow from 192.168.0.0/24
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
# Require user @SYSTEM
# Order allow,deny
Allow from 192.168.0.0/24
</Location>

# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<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>

# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Allow from 192.168.0.0/24
Order deny,allow
</Limit>

# All printer operations require a printer operator to authenticate...
<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
Allow from 192.168.0.0/24
</Limit>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#


Any clue ?

billymayday 04-12-2008 10:04 PM

Try changing Listen *:631

to

Port 631

sysslack_linux 04-13-2008 03:45 AM

Cups 1.3.7 solved
 
Thank You!
I have follow your advice
and also done other changes.
Now it works.

I don't know which settings, but what has been done is (and I want to be very specific to save all newbies some work.) My own thought is the change in /etc/hosts was the critical part!


Computer A IP: 192.168.0.1
root@tux# ./etc/rc.d/rc.cups start
root@tux# echo 192.168.0.3 pingvinen.example.org pingvinen >>/etc/hosts

Computer B IP :192.168.0.3

root@pingvinen# ./etc/rc.d/rc.hplip start
root@pingvinen# ./etc/rc.d/rc.cups start
root@pingvinen# vim 7etc/cups/cupsd.conf

Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup sys root


# Only listen for connections from the local machine.
Listen *:631
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAllow @LOCAL
BrowseAddress 192.168.0.255:631
# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Disable Encryption
DefaultEncryption Never

# Restrict access to the server...
<Location />
Order allow,deny
Allow From 127.0.0.1
Allow From 192.168.0.0/24
</Location>

# Restrict access to the admin pages...
<Location /admin>
Require user @SYSTEM
Order allow,deny
Allow 192.168.0.1
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow 192.168.0.1
</Location>

# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<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>

# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Allow from 192.168.0.0/24
Order deny,allow
</Limit>

# All printer operations require a printer operator to authenticate...
# <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>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#

Now it looks like this


Computer B
http://192.168.0.3:631/printers/



HP_Photosmart_C3100_series_USB_MY661B736304P9_HPLIP

Description: HP Photosmart C3100 series
Location: Local Printer
Printer Driver: HP PhotoSmart C3100 Foomatic/hpijs (recommended)
Printer State: idle, accepting jobs, published.
Device URI: hp:/usb/Photosmart_C3100_series?serial=MY661B736304P9




Computer A
http://localhost:631/printers/

HP_Photosmart_C3100_series_USB_1@pingvinen.example.org "Unable to locate printer 'pingvinen.example.org'!"


HP_Photosmart_C3100_series_USB_MY661B736304P9_HPLIP

Description: HP Photosmart C3100 series
Location: Local Printer
Printer Driver: HP PhotoSmart C3100 Foomatic/hpijs (recommended) on pingvinen.example.org
Printer State: idle, accepting jobs, not published.
Device URI: ipp://pingvinen.example.org:631/printers/HP_Photosmart_C3100_series_USB_MY661B736304P9_HPLIP



ps.

(It seems you don 't need to care about this Unable to locate message, but what you must change is in modify printer from letter to A4 before successfully printing in this session.

HP_Photosmart_C3100_series_USB_MY661B736304P9_HPLIP

Description: HP Photosmart C3100 series
Location: Local Printer
Printer Driver: HP PhotoSmart C3100 Foomatic/hpijs (recommended) on pingvinen.example.org
Printer State: idle, accepting jobs, not published.
Device URI: ipp://pingvinen.example.org:631/printers/HP_Photosmart_C3100_series_USB_MY661B736304P9_HPLIP


And also do not forget to change the print settings in openoffice or what programs you use to print to A4 as well


ds.

Good Luck!!!


All times are GMT -5. The time now is 09:40 AM.