Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: perthie on October 12, 2009, 10:35:41 AM
-
I finally got around to testing a parallel port printer with TC and discovered that I had to "modprobe lp". It's not a big deal, but I'm curious why this module is not loaded along with the other parallel port modules.
-
Whilst I have an old desktop with a parallel port, I do not have a printer with a parallel port - does the printer need to be connected a boot maybe?
-
Because printing is not part of the base system but instead is supported by extensions.
Yes, I modprobe lp in my /opt/bootlocal.sh on the one computer that I have that still has a parallel port.
FYI In the base is a tiny script that I use for cupsless, spoolerless, direct printing of text files, i.e,. my programs and scripts, it might be useful to some
text2lp0
Of course, it only prints plain text directly to lp0
-
Hi: I have the same problem now. I can not see lp in /dev
But here is my question: To be able to "modprobe lp" that lp modul needs to in
the module folder (kernel)
I only can see paraport_pc, ppdev and paraport
Can you help me - Thank you so much
-
Hi: Thanks
Now my HP LJ 5P works on LPT#1
The key was to bring that lp (lp0) into /dev
$ sudo lsmod | grep lp ; this input did not generate an output at all
$ sudo modprobe lp ;did the trick
$sudo lsmod | grep lp ; now I got an output - WOW
$lp 5052 0
parport 18560 3
then I started:
$ sudo /usr/local/etc/init.d/dbus start
and
$ sudo /etc/init.d/cups start
cups: started scheduler
tc@box:~$
Question: Now I have to make these inputs permanent. In which file do I have to put them?
Is .filetool.lst correct?
-
$ sudo /usr/local/etc/init.d/dbus start
and
$ sudo /etc/init.d/cups start
With the cups extension, starting the cups service will automatically start dbus, so you don't need to start both of them separately. The cups1311 extension perhaps requires them to be started separately, but I also don't think dbus is essential for cups1311
Question: Now I have to make these inputs permanent. In which file do I have to put them?
Is .filetool.lst correct?
If you look at the cups1311 or cups info files, it explains which files to add to filetool.lst to make your printer settings permanent.
If the parport and lp modules do not load automatically on boot, then you'll need to add the commands to bootlocal.sh, for example "modprobe lp", one per line
If you'd like the cups service to start automatically on boot, you can also add "/etc/init.d/cups start" or "usr/local/etc/init.d/cups start" for the cups extension to bootlocal.sh