What I did to get my Brother HL-2270DW printer working in Tiny Core 6.x. I believe this method will work for a variety of other printers as well.
*** Strongly recommend you read the entire solution before making an attempt. ***
I used the "Apps" application (6.x repository) to install the required base for general printing:
- cups
- foomatic-rip
- firefox
- bash
For me, this is where the trick came into play. I had to use a browser to navigate to the 2.x/3.x TinyCore repository and manually download the hpijs-dynppds.tcz file.
- Download hpijs-dynppds.tcz
- "tce-load -i hpijs-dynppds.tcz" (without the '-w' so you don't need to worry about the wget or checksum)
- "mv hpijs-dynppds.tcz /mnt/sda1/tce/optional/" (to keep is persistent for future boots)
- Add "hpijs-dynppds.tcz" into /mnt/sda1/tce/onboot.lst (to load on future boots)
Adjust the permissions for CUPS. I was consistently warned about permissions issues)
- "chown root:root /usr/local/lib/cups/*"
I copied all of the symbolic links directly into the folders. It was only required for backend and filter.
- "cd /usr/local/lib/cups/backend/"
- "cp -rfH /usr/local/lib/cups/backend/* ."
- "cd /usr/local/lib/cups/filter/"
- "cp -rfH /usr/local/lib/cups/filter/* ."
The CUPS logs, complained about a missing symbolic link "libpoppler.so.37". I was unable to find this library in Tiny Core.
- "cd /usr/lib/" (the directory that needs to contain the library)
- "ln -s /usr/local/lib/libpoppler.so.50" (create a symbolic link to a similar library)
- "mv libpoppler.so.50 libpoppler.so.37" (rename the link so CUPS can find it)
Set the root password to gain easy access to the CUPS server.
- "sudo su" (to get root)
- "passwd" (once root has been obtained)
Set CUPS to start on boot
- "cd /home/tce/X.d/"
- "touch my-init"
- "chmod a+x my-init"
- Add to "my-init"
-- "#!/bin/sh"
-- "sudo /usr/local/etc/init.d/cups start"
Adjusted the list so all of my changes would persist for future boots.
Added to /opt/.filetool.lst:
- "etc/shadow" (saves the root password that is used to gain access to the CUPS server)
- "usr/lib/libpoppler.so.37" (save the missing library for CUPS)
- "usr/local/etc/init.d/cups" (not sure if this persists, I thought I would be safe)
- "usr/local/etc/init.d/dbus" (not sure if this persists, I thought I would be safe)
- "usr/local/etc/cups" (saves CUPS & printer configurations)
- "usr/local/lib/cups" (saves the permissions changes and all of the symbolic link modifications)
A couple last notes:
- I added my printer through the CUPS server, "localhost:631".
- I used "root" + whatever password I set earlier.
- After it was added, I set it to be the sever default printer.
- In Tiny Core 6.x it would never appear under the firefox -> print menu. However, LPR would use the CUPS server default printer.
- Attempting to print a test page through CUPS never worked. There was always some sort of issue. All other forms of printing were successful.
I would be very interested in anyones feedback.