Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: dlw on May 15, 2009, 10:13:17 AM
-
Hi all, newbie here.
Linux USER since 98. I am not a techie.
I am a writer/photographer retired.
Really like the concept of Tiny Core Linux.
Install went okay. Obtaining persistence did not. I think I have it now.
Trying to get a HP2300dn printer up and running.
Installed hplip and cups.
Clicked on Cups, did the password thing, went to localhost:631
When it came to username and password I did not know what it wanted so I tried 'user'.
Entered the password and I get a blank white page.
When I enter 'root' and the password it will not accept it. Goes back to enter name and password again.
Any ideas on how to solve this?
Thanks,
dlw
-
funny, I've been struggling the last few days trying to set up my hp laserjet 1100 under tc 142 connected via the parallel port. I don't have all the answers yet, but I'm close to getting it working across reboots.
I got past the issue you're talking about by
0. downloading the ppd for my printer from http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_1100
1. setting a root pw
2. installing cups
3. installing hpijs_hpoj
4. opening a root console, running ptal-init setup and answering all the questions
5. http://localhost:631
6. add a printer
7. cups should list your printer in its dropdown, "ptal" something
8. select the ppd you downloaded for your printer
9. print test page
I used to get the prompt for the password over and over in cups (even after I'd set the root pw) until I saw my printer listed as (something like) ptal:hp1100 in the cups port selection dropdown
tricky parts for surviving a reboot (remember, I don't have it all solved yet, my current problem is that cups fails to remember the driver: raw vs ghostscript)
add to /opt/.filetool.lst
the files in
1. etc/ptal
2. the files mentioned in the info for cups
3. etc/shadow (for saving root pw)
add to /opt/bootlocal.sh
/path/to/cupsd &
/path/to/ptal-init start &
I'm pretty sure the /path/to/ stuff isn't necessary as of tc 1.4.1
hth,
3rail
-
There's a ppd extension with all of the printer drivers supplied by hp in the hplip application - if your printer ppd is in there, you might find it's a more recent driver.
I never managed to get ptal to persist across boots, so if you managed that, well done :)
I've seen problems with the password not being accepted the second and subsequent times the browser interface asks for it - as you might have seen, the cups menu item/icon will prompt for the user password and set things up properly. I think the problem happens after stopping and starting the cups service.
-
I've been having printer problems as well. I have a HP D4160. I've installed hpijs_hpoj, hplip, hplip_ppd, and cups. According to HP website, the printer has partial support, and I have it working well enough with Xubuntu.
However, when I run:
sudo ptal-init setup,
I get:
*** Found "Deskjet D4100 series" but failed to communicate with it!
When I run hp-setup, it detects the printer, then says:
error: No PPD found for model deskjet_d400. Trying old algorithm...
warning: found multiple posible PPD files
Choose a PPD file that most closely matches your device:
[blah, blah, blah . . .]
but instead of listing any options, it says:
____ ______________________ ____________________
________________
Traceback (most recent call last):
File "/usr/local/bin/hp-setup", line 496, in <module>
mins_list = mins.keys()
AttributeError: 'tuple' object has no attribute 'keys'
Did I miss a step?
What should I try next?
Thanks,
M. Storck
-
Here is how to set up Tiny Core for a printer.
It is a different model, but you may find useful info.
/printer.html][removed due to policy violation]/printer.html (http://[removed due to policy violation)
-
I believe you need either hpijs_hpoj or hplip but not both - also you don't mention if you installed the various dependency extensions, usb-utils, gs, perl5, etc
If you have the space, it would probably be better to use hplip rather than hpijs_hpoj and rather than hp-setup, use the cups browser interface to setup the printer.
-
storckm,
Are you using the parallel port to print to the printer? If so, in my experience, the parallel port must be set to "ecp" in the bios.
good luck
-
Thanks for the help.
I've been working on this slowly: I do have usb-utils, gs, perl5, and (as far as I know) other dependencies installed. Also, it's a USB printer.
The instructions at [removed] . . . are helpful, and I've gotten as far as copying everything from printertemp, but I haven't been able to find anything called printertemp. Any idea where to find printertemp?
-
Which extension are you using - as mentioned, it can be either hpijs_hpoj or hplip but not both - i.e. "hp-setup" will not work with hpijs_hpoj.
If you get an error message from "sudo ptal-init setup", I would recommend you reboot and try with hplip and not hpijs_hpoj.
You can check if hplip is communicating with your printer with this command: $ /usr/local/lib/cups/backend/hp
-
The instructions at [removed] . . . are helpful, and I've gotten as far as copying everything from printertemp, but I haven't been able to find anything called printertemp. Any idea where to find printertemp?
The website http://openprinting.org/printer_list.cgi (http://openprinting.org/printer_list.cgi) contains Linux drivers for many printers. However, they are available as deb or rpm files. They cannot be used in Tiny Core as they are.
The method used in that example, was to use a Debian operating system to extract the deb file. You need to create the folder printertemp yourself (you could use any name). Copy the deb file to the folder, and extract the printer driver.
After extracting the printer driver, copy the printer driver (in the folder printertemp) to Tiny Core, and set up the printer.
Different people have different makes and models of printers. The driver for their printer is probably available from that website. There may be some differences in the setup of different makes and models of printers, but much of it should be similar.
As time permits (I also have other commitments), I plan to experiment with other methods of extracting the printer driver. It should be possible using Tiny Core. I just have not had time to try it.
I also want to experiment with other printers (I don't have many printers).
Then update the website.
If the driver for your printer is in a Tiny Core extension (not many makes are), you can skip that whole section, and just set up the printer. You still need to set up a root password first.
Those who have a printer working with Tiny Core, share your setup information. This will help new users to setup printers.
http://forum.tinycorelinux.net/index.php?topic=1829.0 (http://forum.tinycorelinux.net/index.php?topic=1829.0)
-
Thanks. I'm using hplip, which is supposed to work with the printer and (as far as I can tell) includes the driver. I downloaded a .ppd file, since I didn't find any separate drivers to download. When I try to open the localhost:631, I get an error: could not connect to remote server message from the browser. This wasn't happening before.
Also, if I try:
/usr/local/lib/cups/backend/hp
I get:
direct hp "Unknown" "HP Printer (HPLIP)"
and hp-setup says:
Using connection type: usb
error: No device selected/specified or that supports this functionality.
I can't figure out what is missing. Before I had both hplip and hpijs-hpojs installed. I re-installed hpijs-hpojs. no difference.
-
According to this http://hplipopensource.com/hplip-web/supported_devices/combined.html (http://hplipopensource.com/hplip-web/supported_devices/combined.html) your printer is supported by hplip and the ppd /usr/local/share/ppd/HP/hp-deskjet_d4100_series-hpijs.ppd.gz in the hplip_ppd extension looks like it might be the right one.
It's strange that /usr/local/lib/cups/backend/hp gives "direct hp "Unknown" "HP Printer (HPLIP)"", did you double-check that you have all of the cups and hplip deps loaded, i.e.
glib2, expat2, openssl-0.9.8h, dbus_glib, dbus_python, python, usb-utils, cups, gs, perl5
I'm not totally sure if it is needed, but did the "usblp" module load?
-
Thanks:
All of the deps were installed (or at least listed in /tclocal/tce.installed) except dbus_python. After installing that, hp-setup and cups are still behaving the same way. The usblp module is loaded. I may try running from a cd (although I'll run out of RAM soonish), or else perhaps I should re-install?
-
I use cups+hplip+samba on tc_1.x, so I thought there might be a problem with using some extensions - cups/hplip/usb-utils - that were not compiled on tc_2.x with tc_2.x, but it seems things are OK:
$ sudo /usr/local/lib/cups/backend/hp
direct hp:/usb/OfficeJet_K80?serial=ES0911401VOH "HP OfficeJet K80"
"HP OfficeJet K80 USB ES0911401VOH HPLIP" "MFG:HP;MDL:OfficeJet K80;CLS:PRINTER;DES:OfficeJet K80;SN:ES0911401VOH;"
maybe it's worth ignoring the usb error and trying to set up your printer manually with the cups browser interface. Don't use "hp-setup", but you could try and see what "hp-probe" gives:
1. load all of the extensions listed in the previous post
2. click on the hplip icon to start things up (then try "hp-probe")
3. start browser and goto http://localhost:631
4. click on "add printer" button and follow instructions
5. enter a uri of the form "hp:/usb/DeskJet_D4160?serial=SGG13E0C49VL" (enter your serial # here)
6. choose the ppd /usr/local/share/ppd/HP/hp-deskjet_d4100_series-hpijs.ppd.gz
7. click on "print testpage" button to test
-
I just tried cups (haven't tried in a while) on tc_2.2, and had problems accessing a windows printer using samba & cups. Samba seemed to be working okay, because it was included in the cups dropdown menu. I entered the correct smb:// info, selected the given deskjet (for hp), and clicked "add printer." This opens up a dialog box for username, password for cups, localhost 631...which means somethings not configured right (it won't accept anything).
I tried from puppy linux, and the printer was already listed when going to "manage printers" ; worked right away.
note: smb_client even lists the windows printer.
-
There seems to be something about the cups browser interface and root password that doesn't work quite right.
If you use the cups menu item/icon to start dbus, start cups and enter the root password, things seem to go OK. If you want to do something after an error of some sort then the browser interface no longer accepts the root password. I've managed to get out of this by killing the cups daemon(s) and re-starting, but there must be a better way.
I'm just waiting for cups-4 to be released and then I'll recompile on tc_2.x
This opens up a dialog box for username, password for cups, localhost 631...which means somethings not configured right (it won't accept anything).
Do you need the username for the windows printer to exist in tinycore/samba by any chance?
-
T
If you use the cups menu item/icon to start dbus, start cups and enter the root password, things seem to go OK. If you want to do something after an error of some sort then the browser interface no longer accepts the root password. I've managed to get out of this by killing the cups daemon(s) and re-starting, but there must be a better way.
Do you need the username for the windows printer to exist in tinycore/samba by any chance?
No, it's not accepting anything I can come up with. Starting, stopping cups doesn't help, nor
entering root passwd.
A username and password are being requested by http://localhost:631.
The site says: "CUPS"
I screwed around with smb.conf and cupsd.conf, but no luck. I couldn't get "lppasswd" to work, in usr or root:
lppasswd: Unable to open password file: Permission denied
lppasswd: user "root" and group "staff" do not exist.
Running testparm correctly lists the win server.
testparm:
ERROR: lock directory /var/lib/samba does not exist
[global]
workgroup = MYGROUP
server string = Samba Server
log file = /usr/local/samba/var/log.%m
max log size = 50
dns proxy = No
wins server = 192.168.1.104
wins support = Yes
-
solved it. What it needed was: (cupsd.conf)
# Restrict access to the server...
<Location />
Order allow all
Allow localhost
</Location>
Then entering user: "root" and the root password worked.
-
What does the hplip menu icon run so I can throw it into bootlocal upon startup?
TIA
-
If you look in:
/usr/local/tce.icons/hplip
or
/usr/local/tce.menu/hplip
you'll find "/usr/local/bin/hplip_start.sh"
$ cat /usr/local/bin/hplip_start.sh
#!/bin/sh
#
# Check if root password is set
# and prompt to set if not
#
if sudo grep "root:[$]1[$]EbR327ag[$]" /etc/shadow 2>&1 >/dev/null; then
aterm -title "Set Root Password" -e sudo passwd
fi
#
# Check if cups is started
# and start/restart
#
if ! ps | grep cupsd; then
sudo /etc/init.d/cups start
else
sudo /etc/init.d/cups restart
fi
#
# start dbus
#
if [ ! -e /var/lib/dbus ]; then
sudo mkdir -p /var/lib/dbus
fi
#
if [ ! -e /var/lib/dbus/machine-id ]; then
sudo dbus-uuidgen --ensure
fi
#
if [ ! -e /var/run/dbus ]; then
sudo mkdir -p /var/run/dbus
fi
#
if [ ! -e /etc/dbus-1/system.d ]; then
sudo mkdir -p /etc/dbus-1/system.d
fi
#
if [ ! -e /var/run/dbus/pid ]; then
sudo /usr/local/bin/dbus-daemon --system
fi
#
if [ ! -e /etc/dbus-1/session.d ]; then
sudo mkdir -p /etc/dbus-1/session.d
fi
#
#EOF
-
What does the hplip menu icon run so I can throw it into bootlocal upon startup?
TIA
I ran without hplip. When I tried to print, I had smb.conf issues. After rebooting (despite recopy of cupsd.conf, the password issue reemerged.
-
Got it working. For cupsd, I added Allow @LOCAL after Order allow,deny for categories, and after
#'Allow remote access' added "Port 631" (I copied from Puppy )
note: Juanito....thanks for all the extensions, inc the hplib libs. This works.
note: I think in the samba3.tc*.info file, 'samba.conf' should be 'smb.conf'
/etc/cups/cupsd.conf
edit: DocumentRoot path
#
# "$Id: cupsd.conf.in,v 1.17 2005/01/03 19:29:45 mike Exp $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler.
#
# Copyright 1997-2005 by Easy Software Products, all rights reserved.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
# copyright law. Distribution and use rights are outlined in the file
# "LICENSE.txt" which should have been included with this file. If this
# file is missing or damaged please contact Easy Software Products
# at:
#
# Attn: CUPS Licensing Information
# Easy Software Products
# 44141 Airport View Drive, Suite 204
# Hollywood, Maryland 20636 USA
#
# Voice: (301) 373-9600
# EMail: cups-info@cups.org
# WWW: http://www.cups.org
#
########################################################################
# #
# This is the CUPS configuration file. If you are familiar with #
# Apache or any of the other popular web servers, we've followed the #
# same format. Any configuration variable used here has the same #
# semantics as the corresponding variable in Apache. If we need #
# different functionality then a different name is used to avoid #
# confusion... #
# #
########################################################################
ServerName localhost
LogFilePerm 0600
# Recommended log size 1m
MaxLogSize 1m
PreserveJobHistory Off
PreserveJobFiles Off
AutoPurgeJobs Yes
DocumentRoot /usr/local/share/doc/cups
# Show general information in error_log.
# Default: 'LogLevel info'
# Change to 'LogLevel debug' for more detail
LogLevel info
Printcap /etc/printcap
User root
<Location />
# Allow shared printing and remote administration.
Order allow,deny
Allow @LOCAL
</Location>
#AuthType Digest
#Order Deny,Allow
#Allow From 127.0.0.1
#Allow From localhost
<Location /admin>
# Allow remote administration.
Order allow,deny
Allow @LOCAL
</Location>
<Location /printers>
Order Deny,Allow
Allow From 127.0.0.1
Allow From localhost
</Location>
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
BrowseProtocols cups
# Allow remote access
Port 631
-
note: Juanito....thanks for all the extensions, inc the hplib libs. This works.
note: I think in the samba3.tc*.info file, 'samba.conf' should be 'smb.conf'
/etc/cups/cpsd.conf
...
It should indeed be smb.conf - thanks, I'll correct that.
Looks like we're using the same keyboard - hplib, cpsd.conf... :)