LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2008, 05:31 AM   #1
sysslack_linux
LQ Newbie
 
Registered: Oct 2007
Location: Sweden
Distribution: I favor Slackware, CentOS and Debian
Posts: 25

Rep: Reputation: Disabled
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 ?

Last edited by sysslack_linux; 04-12-2008 at 02:58 PM.
 
Old 04-12-2008, 10:04 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try changing Listen *:631

to

Port 631
 
Old 04-13-2008, 03:45 AM   #3
sysslack_linux
LQ Newbie
 
Registered: Oct 2007
Location: Sweden
Distribution: I favor Slackware, CentOS and Debian
Posts: 25

Original Poster
Rep: Reputation: Disabled
Wink 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!!!

Last edited by sysslack_linux; 04-13-2008 at 03:51 AM.
 
  


Reply

Tags
cups, remote



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS Remote Administration nominruil Linux - Server 6 06-08-2012 10:46 AM
CUPS: remote admin sysman Slackware 6 10-05-2007 12:36 AM
how to make remote login and remote installation via libssh vdx Programming 5 09-10-2007 10:23 PM
help with cups + remote printing escobar2007 Linux - Software 1 05-15-2007 12:44 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration