This has now been updated and you can find it at
http://wiki.tinycorelinux.com/Printer+Setup+Using+Cups==========================================
Original message:
This is something I wrote in 2009 for the HL-6050D printer. I should update and simplify it sometime.
I think setting up your printer should be the same.
I have noticed there have been some updates/changes since 2009. I am trying to get these clear myself. This information is a good starting point. Also read the following posts.
Things You Need
You need a printer.
You need Tiny Core installed on the computer.
You need an internet browser installed in Tiny Core.
You need Cups installed in Tiny Core.
You need Cups in On Boot.
To make an extension for your printer set up, which is recommended, the squashfs-tools-4.0 extension needs to be installed.
You need an internet connection to download the printer driver (some printers may have Linux drivers on a CD).
Download the Printer Driver
Download the driver for the make and model of the printer from
http://www.openprinting.org/printersThere may be two different files containing the printer driver, a "deb" file and an "rpm" file. Download whichever is appropriate for the Linux distribution you will use to extract it.
Extract the Printer Driver
See following posts for how to extract this using Tiny Core.
In this example, a Debian operating system was used to extract the "deb" file.
Using the Debian operating system, create a new directory. In this example it is called "printertemp."
Copy and paste the printer driver to "printertemp."
Using the Root File Manager click on the file containing the printer driver. You will get a new window. Click "Extract." You will get a new window. Click "Extract" again.
After extraction, you will see two tar.gz directories called "control.tar.gz" and "data.tar.gz." Extract data.tar.gz using the same method.
You may delete the original compressed files, or leave them there.
The printer drivers are also tar.gz files. Leave them as they are, they do not need to be extracted.
Copy the directory "printertemp," with the files in it, to Tiny Core. Use Tiny Core for the rest of the setup.
Start Cups Automatically
So that Cups starts automatically each time Tiny Core is started, add
/usr/local/bin/cups_start.sh
to /opt/bootlocal.sh.
This seems to have changed with the latest update.
I think now you add
sudo /usr/local/etc/init.d/cups start
to /opt/bootlocal.sh.
To check, open the terminal and type:
/usr/local/etc/init.d/cups status
after restarting the computer.
If you don't have persistent /opt, to save settings, you must Backup when shutting down Tiny Core.
Before setting up the printer, turn the computer off and restart, so Cups is running.
If not already connected, connect the printer to the computer and turn it on before restarting.
Root Password
If you don't already have a root password, set one up. To do this, open the Root Terminal and type:
sudo passwd
Enter the root password when prompted. You need to enter it twice.
You need the root password for setting up the printer. After it is set up, you do not need it, unless you make changes.
So it is not necessary to save it.
If you want to save the root password when the computer is turned off, add the following line to /opt/.filetool.lst.
etc/shadow
Or make a new extension for the root password, using the same method as shown below.
If the printer is connected to a USB port, Cups will automatically detect it. Older printers may not be automatically detected.
Copy the Printer Driver to Tiny Core
Using a Root File Manager, copy and paste all of the files and directories in "printertemp," which you extracted previously, to the / directory in Tiny Core.
You may get several messages like, "'/opt' already exists - merge contents?" Click "yes" each time. (In this example Rox was used)
It may be easier to copy and paste the "OpenPrinting-Brother" directory to the "/opt" directory.
In this example PPR was used, so these files are automatically deleted when the computer is turned off.
Set Up the Printer
Start the internet browser.
Where you see the web site address in the web browser, normally in the middle near the top, starting with "http://," type:
http://localhost:631Press "Enter."
You will see a new window. Click "Add Printer."
You will see a new window. Type a name and description for the printer. Click "Continue."
You will see a new window. Select your printer. Click "Continue."
You will see a new window. Click "Choose..." or "Browse..." (depending on which web browser you are using). You will see a new window. Go to the location of the printer driver and click on the driver for your make and model of printer. The Brother driver is in /opt/OpenPrinting-Brother/ppds/Brother/, with drivers for other brother printers. Click "Open." This window will close, and you will go back to the previous one. Click "Add Printer." You need to enter the username and password. The username is "root." Use the root password you selected earlier. Click "OK."
You will see a new window. If you want to change printer options, do it here. Click "Set Printer Options."
You will see a new window. Click "Set As Default."
The printer should work now. Print a test page.
Save Settings
At this stage, when the computer is turned off, the settings will be lost. Following are two different methods to save settings.
Method 1: Save Settings in Backup
To save settings in backup, add the following line to /opt/.filetool.lst.
etc/cups
It seems in the latest version it is usr/local/etc/cups
To save settings, you must Backup when shutting down Tiny Core.
Method 2: Make an Extension for the Printer - Recommended
As more files are added to backup, it takes longer. If you make extensions for things which don't need to be in backup, it will be a little quicker.
Begin by creating directories. Open the Root Terminal and type:
mkdir -p /home/myext/printer/etc/cups/ppd
It seems in the latest version you need /usr/local/etc/cups. Change this in all of these commands.
You can use different directories, but "/etc/cups/ppd" must be used.
If you use different directories, also use them in the following commands.
Copy and paste files.
cp -p /etc/cups/* /home/myext/printer/etc/cups/
cp -p /etc/cups/ppd/* /home/myext/printer/etc/cups/ppd/
Make an Extension
To make a extension called "myprinter.tcz," open the Terminal, and type:
sudo su
cd /home/myext
mksquashfs printer/ myprinter.tcz
Copy and paste the new extension to the "/tce/optional" directory.
Add the new extension to On Boot.
Keep a copy of your new extension somewhere else. If you update extensions, it may be deleted.
-------------------------------------
Note: Saving the entire /usr/local/etc/cups directory in backup or a new extension, is simple, and works.
Probably, only certain files in /usr/local/etc/cups, need to be saved, not all of them.
You could see which files remain unchanged when setting up the printer, and leave them out.