WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can't access CUPS  (Read 7604 times)

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Can't access CUPS
« on: October 11, 2010, 09:07:42 PM »
Hi All,
I want to install my printer however I cannot access CUPS via the browser.
When I try to access CUPS via http://localhost:631 I get an error saying:

Quote
Can't Connect:  Firefox can't establish a connection to the server at localhost:631.

Yes I did read the CUPS.TCZ file and have been following the instructions therein.
But now I am stuck since I cannot access the browser interface.

And yes I did search the forum looking for a solution but did not find one, if I missed it please forward me a link.

Any help would be greatly appreciated.

EDIT:  I tired connecting to http://localhost:631 while using another Linux distro and it works just fine, however when I rebooted and tried it from TC, no joy, I keep getting the same error message.

Does anyone know why I am unable to connect to this site from TC?
« Last Edit: October 11, 2010, 11:31:17 PM by Neo »

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Re: Can't access CUPS
« Reply #1 on: October 12, 2010, 12:18:29 AM »
Okay I managed to access localhost:631.

Now my printer, a Samsung SCX4521F, is not found and when I try to add a printer it asks me for a "Connection":

Add Printer
Connection:    
   Examples:

    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

See "Network Printers" for the correct URI to use with your printer."

Sorry but I am at a loss here, what the heck should I put in here for my printer (which is connected via a USB port)?
   

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Can't access CUPS
« Reply #2 on: October 12, 2010, 09:39:05 AM »
Assuming your printer is connected directly to your machine (i.e. it is not connected somewhere on your home network), you can type:
Code: [Select]
/usr/local/lib/cups/backend/usb
..and it should come with something. Part of that output is the uri to be entered at the browser interface prompt - could you cut & paste it into this thread?

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Re: Can't access CUPS
« Reply #3 on: October 14, 2010, 10:09:19 PM »
Assuming your printer is connected directly to your machine (i.e. it is not connected somewhere on your home network), you can type:
Code: [Select]
/usr/local/lib/cups/backend/usb
..and it should come with something. Part of that output is the uri to be entered at the browser interface prompt - could you cut & paste it into this thread?

Here is the output:

Quote
root@box:~# /usr/local/lib/cups/backend/usb
/usr/local/lib/cups/backend/usb: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory

So I downloaded and installed libusb (two files) and tried again:

Quote
root@box:~# /usr/local/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: usb_find_busses=5
DEBUG: usb_find_devices=9



Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Can't access CUPS
« Reply #4 on: October 15, 2010, 01:44:08 AM »
I seem to recall the usblp module might cause problems with cups, could you try this and see what happens:
Code: [Select]
$ sudo rmmod usblp
$ /usr/local/lib/cups/backend/usb

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Re: Can't access CUPS
« Reply #5 on: October 15, 2010, 02:40:41 AM »
I seem to recall the usblp module might cause problems with cups, could you try this and see what happens:
Code: [Select]
$ sudo rmmod usblp
$ /usr/local/lib/cups/backend/usb

Thanks Juanito, I tried that but got this error instead:

Quote
tc@box:~$ sudo rmmod usblp
rmmod: can't unload 'usblp': unknown symbol in module, or unknown parameter

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Can't access CUPS
« Reply #6 on: October 15, 2010, 04:11:54 AM »
Strange - you could try using the boot code "blacklist=usblp" and see if that helps

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Re: Can't access CUPS
« Reply #7 on: October 15, 2010, 08:09:31 PM »
Strange - you could try using the boot code "blacklist=usblp" and see if that helps

It didn't.

I noticed that a new version of TC was released today.
I don't supposed starting fresh with that version would help would it?
Is there an easy way to upgrade from 3.1 to 3.2?


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Can't access CUPS
« Reply #8 on: October 15, 2010, 08:17:29 PM »
Copy the tinycore.gz.

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Re: Can't access CUPS
« Reply #9 on: October 15, 2010, 09:53:20 PM »
Copy the tinycore.gz.


Thank you Gerald, I did that and it appears to be working just fine.

You wouldn't happen to have any suggestions as to how to get my printer working do you?

I think I may have hit the proverbial brick wall with this issue.
« Last Edit: October 15, 2010, 10:06:39 PM by Neo »

aus9

  • Guest

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Re: Can't access CUPS
« Reply #11 on: October 15, 2010, 10:36:43 PM »
hi

try the driver ML-4500

from http://www.linuxquestions.org/questions/fedora-35/fedora-7-samsung-printer-installation-working-588757/



Thanks AUS9, but unfortunately I can't even get that far.
Localhost:631 asks me for a path for the printer but I have no idea what to enter.

Some additional information which hopefully will be helpful:

I right clicked on the desktop and selected "Services".
DCHP was selected but nothing else, not even CUPS.
I enabled CUPS, and tried to repeat the steps in the CUPS.TCZ file but no joy.
I tried rebooting but CUPs was disabled again in the Services.

I actually have a PPD file which I am told is the correct file for my printer, but have no way of using it.

What the heck is the path that CUPS on localhost:631 is asking for???
It fails to find my printer.

I am stumped.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Can't access CUPS
« Reply #12 on: October 15, 2010, 10:48:56 PM »
If you don't understand CUPS, you might want to spend some time at cups.org.
USB printers will probably use parallel:/dev/YourUSBdeviceHere

Offline Neo

  • Jr. Member
  • **
  • Posts: 55
Re: Can't access CUPS
« Reply #13 on: October 16, 2010, 01:19:33 AM »
If you don't understand CUPS, you might want to spend some time at cups.org.
USB printers will probably use parallel:/dev/YourUSBdeviceHere

I have poked around on their website and did not find anything which helped.

In localhost:631 when I select add a printer I am met with:

Quote
Add Printer
Local Printers:    SCSI Printer
CUPS-PDF (Virtual PDF Printer)
Serial Port #1
Discovered Network Printers:    
Other Network Printers:    LPD/LPR Host or Printer
Windows Printer via SAMBA
Internet Printing Protocol (http)
AppSocket/HP JetDirect
Internet Printing Protocol (ipp)
   
Now I select AppSocket/HP JetDirect and am confronted with:
Quote
Add Printer
Connection:    
   Examples:

    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

See "Network Printers" for the correct URI to use with your printer.

I didn't find anything which helped on their website.
It's possible that I missed it, but unlikely.

I tried your suggestion too but without any luck.
   

aus9

  • Guest
Re: Can't access CUPS
« Reply #14 on: October 16, 2010, 01:32:56 AM »
not sure if you are using real cups or cups1311 but for both....cups is a deamon or service and needs to be running

1) what version of cups are you running

cups1311 does not need root powers to use localhost stuff but cups (real) does....I assume you know that?

start it manually or have it run from bootlocal script.

I have a wiki for cups1311 and a manual command would be

Code: [Select]
sudo /etc/init.d/cups start
try changing start to status to see if its running

2) since I have not bothered to read your printer.details...pls confirm is it a usb only device or can you use a different connection?

b) if its usb only....highly recommend to install lsusb as prev mentioned.

then turn on printer and run

Code: [Select]
sudo lsusb
and post the results