WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Cups Help  (Read 17581 times)

Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #30 on: October 28, 2009, 01:19:24 PM »
the "server" is a headless computer i have TC running on. I manage it from my PC laptop via webmin, ssh(cygwin)

Is there any file i can edit that will allow me to connect to the http://ipaddress:631/ address from outside the local network?

All of the printing associated work is being done remotely, the printer is connected through USB to the server, and i want to be able to print from my PC inside and outside of the local network
« Last Edit: October 28, 2009, 01:22:00 PM by Madcamper »

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Cups Help
« Reply #31 on: October 28, 2009, 02:14:20 PM »
This is beyond my area of expertise, but there are two settings in Administration > Server that look useful: "Share Published Printers" and "Allow Printing from Internet". I would assume that you have to set them by connecting directly to the server (not through ssh). They will require a root login.

Read Step #1 from here.



« Last Edit: October 28, 2009, 05:22:17 PM by perthie »

Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #32 on: October 28, 2009, 06:18:43 PM »
when i use the default cupsd.conf it lets me goto the http://myipaddress:631/
but it wont let me get to http://myipaddress:631/admin
any suggestions? I'd assume it has something to do with the <Location> options in the conf

Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #33 on: October 28, 2009, 07:30:36 PM »
Ok i have the printer working via the web browser, i printed a test page. EXCELLENT!
Now i have the problem with the Basic Server Settings giving me a "internal server error" after clicking change settings.
Any tips?

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Cups Help
« Reply #34 on: October 28, 2009, 07:45:48 PM »
Are you trying to do this through ssh?

I did the following with my own CUPS 1.3.11 and the default cupsd.conf.

1. Ran sudo passwd to set a root pasword.

2. Ran localhost:631 to open the CUPS web interface.

3. Checked off "Share publish printers" and "Allow printing from Internet"

4. Clicked on Changed Settings

There were no errors. However, I have no way of testing whether the printers are accessible from beyond the local network.


Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #35 on: October 28, 2009, 07:49:42 PM »
in the error log it shows

E [28/Oct/2009:19:48:25 +0000] Unable to open config file "/etc/cups/cupsd.conf.N" - Read-only file system
I [28/Oct/2009:19:48:54 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=15891)
I [28/Oct/2009:19:48:55 +0000] Started "/usr/local/lib/cups/cgi-bin/classes.cgi" (pid=15892)
I [28/Oct/2009:19:48:57 +0000] Started "/usr/local/lib/cups/cgi-bin/admin.cgi" (pid=15893)

after clicking change settings for the basic server settings

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Cups Help
« Reply #36 on: October 28, 2009, 08:05:59 PM »
On Page 1, you mention changing CUPS somehow to use a different cupsd.conf. Is that still the case?

BTW, when I made the changes above, the entry in cupsd.conf changed from "Allow @Local" to "Allow all". That would suggest that CUPS is ready to accept remote print jobs.

Are you still trying to do this through ssh?

The error message above suggests that CUPS does not have write permission on the folder /etc/init.d/cups , even though you logged into CUPS as root.

« Last Edit: October 28, 2009, 08:12:33 PM by perthie »

Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #37 on: October 28, 2009, 08:14:48 PM »
I have set this all up through SSH yes. as for the "Allow @Local" "Allow all" is that everything that says allow @local should be changed to allow all?
i am still using cupsd1.conf settings, but it is renamed to cupsd.conf now.
With a little help, I cp'd the original cupsd.conf out and mv the cupsd1.conf in with the name of cupsd.conf

I also changed all the @Local to Allow ALL
for example:
   <Location />
   AuthType None
   Order Deny,Allow
   Deny From All
   Allow From ALL
   </Location>
   
but im guessing the "Deny From All" is contradicting the "allow from" so can i just comment out the deny?
« Last Edit: October 28, 2009, 08:23:39 PM by Madcamper »

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Cups Help
« Reply #38 on: October 28, 2009, 08:36:39 PM »
Or you could use the default cupsd.conf (because that's the one that appears to work.)

Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #39 on: October 28, 2009, 08:40:21 PM »
it didnt work for me from the beginning, which is why Juanito gave me a working config setup.
When I was using the default cupsd.conf i couldnt even get to http://localhost:631
it would just say the page cannot be displayed.
Now I have successfuly added the printer and drivers and what not, just cant open it up to the internet.

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Cups Help
« Reply #40 on: October 28, 2009, 09:03:21 PM »
OK. I think I understand the difference. The default cupsd.conf assumes that you are logging directly into the local machine. Because you are logging in through ssh, CUPS sees that as a remote connection and denies access.

Juanito's modification adds the line "Port 631" which allows remote access.

This exercise may have been a lot simpler if you had put a head on the server and configured it locally.


Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #41 on: October 28, 2009, 09:05:49 PM »
ya, i probably should have done that, >< oh well, I have it working for the most part, just trying to figure out what the outside link would be so I can add it to the "add a printer" in windows.
I've tried http://myipaddress:631
didnt work
http://myipaddress/
didnt work
http://myipaddress:631/printers/Epson
didnt work
any tips?

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Cups Help
« Reply #42 on: October 28, 2009, 09:12:49 PM »
Can you ping the server?

Offline Madcamper

  • Newbie
  • *
  • Posts: 33
Re: Cups Help
« Reply #43 on: October 28, 2009, 09:13:45 PM »
ya, 1ms TTL=64

Offline perthie

  • Full Member
  • ***
  • Posts: 118
Re: Cups Help
« Reply #44 on: October 28, 2009, 09:21:09 PM »
From a web browser, can you get to http://myipaddress:631 ?

If not, then CUPS must not be configured correctly yet.

You know what my next suggestion is going to be. ;)