Tiny Core Extensions > TCE Q&A Forum
Cups Help
Madcamper:
ok, but even when i had cups1311 installed, when i went to http://localhost:631 it didnt load anything except page can not be displayed.
I even opend the 631 port on my router just to see if it made a difference
Juanito:
The browser interface is not required to add a printer, you can use an obscure command like:
--- Code: ---$ sudo lpadmin -p OfficeJetG85 -E -v ipp://192.168.1.100/printers/OfficeJetG85
--- End code ---
..which adds a network shared printer
..but of course it's much better when the browser interface works.
It sounds like there's a problem with the first few lines of cupsd.conf - could you paste the first few lines to have a look at? What browser are you using?
Madcamper:
ya the Cups file looks like:
#Log General information in error_log - change "warn" to "debug"
#for troubleshooting...
LogLevel warn
#Administrator user group...
SystemGroup root
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
along with some other stuff about browsing and restrict access to the server, admin pages
Also this printer is connected to the server itself, so doing the lpadmin command, will it do any good in setting up that printer that is directly connected? or is it just for adding another network printer to the TC system?
Juanito:
--- Quote from: Madcamper on October 28, 2009, 12:32:35 AM ---# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
--- End quote ---
looks correct - I would expect the browser interface to work with this...
You could try setting the log level to "debug", restarting cups and checking /var/log/cups/error_log for clues.
--- Quote ---Also this printer is connected to the server itself, so doing the lpadmin command, will it do any good in setting up that printer that is directly connected? or is it just for adding another network printer to the TC system?
--- End quote ---
I just gave an example I had handy - the lpadmin command can also be used to add a local printer. In place of "ipp://192.168.1.100/printers/OfficeJetG85", you would have something starting with "usb://...", the following might give a clue as to what exactly:
--- Code: ---$ sudo /usr/local/lib/cups/backend/usb
--- End code ---
..and the man page for lpadmin could also help
Madcamper:
ok i just looked up some help online as well.
i made a cupsd1.conf and specified cups to load with that config file, and in the contained file I put.
# Default authentication type, when authentication is required…
DefaultAuthType Basic
DefaultEncryption IfRequested
# Only listen for connections from the local machine.
Listen localhost:631
Listen 192.168.1.101
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
# Restrict access to the server…
<Location/>
Order allow,deny
Allow localhost
Allow 192.168.1.100
</Location>
# Restrict access to configuration files…
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
Allow 192.168.1.100
</Location>
This time when i goto http://192.168.1.101:631
it recognizes theres a page there or something, but it says 403 Forbidden
also with teh /usr/local/lib/cups/backend/usb command, i get the output of
DEBUG: list_devices
DEBUG: usb_find_busses=5
DEBUG: usb_find_devices=6
but not sure exactly where to go from there
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version