Tiny Core Extensions > TCE Q&A Forum
Can't access CUPS
Neo:
--- Quote from: aus9 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: ---sudo /etc/init.d/cups start
--- End code ---
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: ---sudo lsusb
--- End code ---
and post the results
--- End quote ---
Hi AUS9, thank you for your kind help.
I actually have both CUPS installed.
I followed your instructions and below is the output (I've only included the output for the printer).
Please note that I couldn't find lsusb to install but it worked anyway.
--- Quote ---tc@box:~$ sudo /etc/init.d/cups start
cups: started scheduler.
tc@box:~$ sudo /etc/init.d/cups status
cups: scheduler is running.
tc@box:~$ sudo lsusb
Bus 002 Device 002: ID 04e8:3419 Samsung Electronics Co., Ltd Composite Device
tc@box:~$
--- End quote ---
By the way these are the instructions that I tried:
http://wiki.tinycorelinux.com/cups1311
It does not detect any printer and it does ask me for a password and I try to manually add one.
aus9:
hi
eek
pls don't run both at once....if you can humour me, use apps audit and ensure only cups1311 is onboot (or ondemand) OR the other cups but not both pls
a) it does work with linux as per
http://forums.opensuse.org/archives/sls-archives/archives-suse-linux/archives-hardware-support/372157-samsung-scx-4521f-excellent-support-suse-10-a.html
2) My bad.... lsusb ...I meant
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/usb-utils.tcz.list
but thanks for the output
3) while you try out cups1311 pls also start dbus
so its
start dbus (yes I know gurus claim you should not need it but I get less errors this way) YMMV
start cups
turn on printer
open browser and go to cups page = http://localhost:631
then try to add printer again as per wiki
4) Now I assume that you installed gutenprint if you followed the wiki....but a casual read of samsung stuff suggests you might need to install
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/foomatic-rip.tcz.info
instead
I don't think it hurts to install both gutenprint and foomatic but you have not shown your ppd so here is one that might be of use?
Please note the mention of foomatic in the ppd
http://paste.debian.net/?show=96699;lines=0
Juanito:
--- Quote from: Neo on October 15, 2010, 10:36:43 PM ---What the heck is the path that CUPS on localhost:631 is asking for???
--- End quote ---
"/usr/local/lib/cups/backend/usb" will tell you what you need to enter - as I understand it, you will not be able to use your printer until this works.
I use a usb printer, but since it is an hp officejet, I have to use the hplip backend rather than the usb backend, i.e.
--- Code: ---$ /usr/local/lib/cups/backend/hp
direct hp:/usb/OfficeJet_G85?serial=SGG13E0C49VL "HP OfficeJet G85" "HP OfficeJet G85 USB SGG13E0C49VL HPLIP" "MFG:Hewlett-Packa;MDL:OfficeJet G85;CLS:PRINTER;DES:OfficeJet G85;SN:SGG13E0C49VL;"
--- End code ---
..so I enter "hp:/usb/OfficeJet_G85?serial=SGG13E0C49VL" as the uri (except that the browser interface finds this automatically).
..you should get something along the lines of (for the usb backend not the hp backend) "usb://samsung/printer_name_blah_blah"
aus9:
Juanito
since I have an usb device let me report some things
1) I remove my printer and click on admin ....find new printers
I get the attached image....which correctly detects the name of my printer, ignoring the ppd file that I will use later
2) Only after this device is installed can I successfully run the commands
--- Code: ---lpstat -p
/usr/local/lib/cups/backend/usb
--- End code ---
3) But if Neo can go to admin...and click on view logs and view error log and post the ouput?
if too large for this site try
http://paste.debian.net/
Neo:
--- Quote from: aus9 on October 16, 2010, 08:59:34 PM ---Juanito
since I have an usb device let me report some things
1) I remove my printer and click on admin ....find new printers
I get the attached image....which correctly detects the name of my printer, ignoring the ppd file that I will use later
2) Only after this device is installed can I successfully run the commands
--- Code: ---lpstat -p
/usr/local/lib/cups/backend/usb
--- End code ---
3) But if Neo can go to admin...and click on view logs and view error log and post the ouput?
if too large for this site try
http://paste.debian.net/
--- End quote ---
I deselected CUPS and left only CUPS 1311.
I am still asked for a password.
I tried using /dev/usb/lp0 for the location.
My printer is not listed, but I did try using a PPD file directly (not 100% sure if it is the correct file and even tried using one of the printers listed).
Here is the output of the error log:
E [20/Oct/2010:22:30:57 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
E [20/Oct/2010:22:31:08 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:31:08 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:31:29 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:31:29 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:31:49 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:31:49 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:33:11 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:33:11 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:33:14 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:33:14 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:33:16 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:33:16 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:34:27 +0000] Returning IPP client-error-not-possible for CUPS-Add-Modify-Printer (ipp://localhost/printers/Samsung) from localhost
E [20/Oct/2010:22:35:55 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:35:55 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:36:13 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:36:13 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:36:22 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:36:22 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:36:30 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:36:30 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:36:54 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:36:54 +0000] [CGI] rpcclient not found!
E [20/Oct/2010:22:37:53 +0000] Returning IPP client-error-not-possible for CUPS-Add-Modify-Printer (ipp://localhost/printers/Samsung) from localhost
E [20/Oct/2010:22:37:57 +0000] [CGI] smbclient not found!
E [20/Oct/2010:22:37:57 +0000] [CGI] rpcclient not found!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version