Author Topic: CUPS printing issue  (Read 538 times)

Offline alphaace

  • Sr. Member
  • ****
  • Posts: 310
CUPS printing issue
« on: August 12, 2010, 12:39:43 PM »
So I've connected a HP 4200 photosmart to PCLOS. It prints great! Yay!

However, now I'm trying to connect my macbook pro so that it prints to the cup server. I checked that Cups is running :). I checked localhost:631 on the pclos machine and the printer is there.

However when I print from the mac side it tells me 192.168.1.100 is busy. Will try again in 5 seconds then 10 seconds and so forth. Anyone run into this problem before?

Thanks!

Offline alphaace

  • Sr. Member
  • ****
  • Posts: 310
Re: CUPS printing issue
« Reply #1 on: August 12, 2010, 05:30:45 PM »
Ok, I get CUPS working if I put in Port 631. But what if I only want to listen from my local network.

I tried commenting out Port 631 and putting in Listen 192.168.1.*:631 with no luck...

Ok, Here is how to actually make it work without having the port open to the world.

replace listen 192.168.1.*:631 with

listen 192.168.1.100:631 (where 100 is the ip address of my pclos machine -- make sure the ip is static)
listen 127.0.0.1:631

That allows it to work and not keep the port open to the world :-).
« Last Edit: August 12, 2010, 07:06:33 PM by alphaace »

Offline alphaace

  • Sr. Member
  • ****
  • Posts: 310
Re: CUPS printing issue
« Reply #2 on: August 12, 2010, 11:17:50 PM »
I spoke too soon. I *almost* have it working.

After a reboot, I can't connect to cups from machines on my lan. First, I need to go to http://localhost:631/admin. Then I need to click Edit Configuration File. I then click save changes. It asks me for my root password and login and then restarts the cups server. I don't actually change the file.

However, after that everything works. Somehow, cups is not getting started correctly. I know it has started on boot because I can go to http://localhost:631 which is fine.

So, does anyone have any ideas on this rather weird error? It's annoying to have to remember to restart cups in this way after a reboot? I have made a temporary fix by putting the command services cups restart in /etc/rc.local. However, I feel that's more of a patch than a solution.
« Last Edit: August 12, 2010, 11:37:15 PM by alphaace »