WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to make printer configurations persistent ??  (Read 3375 times)

Offline Len E.

  • Newbie
  • *
  • Posts: 22
How to make printer configurations persistent ??
« on: November 17, 2017, 10:31:58 PM »
(I am new to Tiny Core)
I've installed CorePlus on my computer hard drive with boot
options tce=sda7 swapfile=hdb8 home=sda7 opt=sda7 local=sda7.
I have an HP_Photosmart_Plus-B210 printer connected to a usb port.

With hplip, cups, and opera installed,  the printer installs via the
cups interface, http://localhost:631, easily and works fine.

But after reboot, the printer definition has disappeared, i.e. it is
not persistent.

My /opt/.filetool.lst file is as follows:

opt
home
etc/shadow
etc/passwd
usr/local/etc/cups/ppd/HP_Photosmart_Plus_B210_series.ppd
var/cache/cups/HP_Photosmart_Plus_B210_series.data


The latter 2 files were created with the printer installation.
The .ppd file is inherently persistent, but the .data file disappears
after reboot.

Answers please ????

Len E.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: How to make printer configurations persistent ??
« Reply #1 on: November 28, 2017, 01:41:22 AM »
If you have "home=sda7 opt=sda7", you should not have "opt" and "home" in /opt/.filetool.lst

Offline Len E.

  • Newbie
  • *
  • Posts: 22
Re: How to make printer configurations persistent ??
« Reply #2 on: November 28, 2017, 01:34:04 PM »
Hi Juanito:

Based on my understanding of your suggestion, I edited the /opt/.filetool.lst file
and deleted the first 2 lines, opt & home.

I reinstalled my HP B210 printer, and then rebooted.

The result was that all persistence was lost.
The printer configuration disappeared again.
The /opt/.filetool.lst file was regenerated, and contained only the
first 2 standard entries, opt & home.
My root password was no longer available and had to be reentered.

Still confused .......

Len E.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851

Offline Len E.

  • Newbie
  • *
  • Posts: 22
How to make printer configurations persistent ??
« Reply #4 on: November 29, 2017, 10:41:34 PM »
Hi Juanito:     Some good news; I was able to make the HP B210 printer
                      configuration persistent.

There was a crucial hint in the Executive Summary of the Persistence for
Dummies document you mentioned;  if the "home=xxx" and "opt=xxx"
boot options are used, then from the .filetool.lst file, remove the home
entry and MOST (not all) /opt entries.

Also, I came across a linuxfromscratch document on the web which listed
the directories that were installed with CUPS.   After reinstalling the HP B210
printer, I checked to see which of those directories were present in CorePlus.

Accordingly, I came up with a revised /opt/.filetool.lst file as follows:

opt/.filetool.lst
etc/shadow
etc/passwd
usr/local/etc/cups
var/cache/cups
var/log/cups
var/run/cups
var/spool/cups

I routinely forget to start the cups service after reboot before trying to use the
printer, so I'll have to implement the boot time autostart for cups as described
in the document

http://wiki.tinycorelinux.net/wiki:printer_setup_using_cups


Thanks for pointing me in the right direction !!

Len E.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: How to make printer configurations persistent ??
« Reply #5 on: November 30, 2017, 12:09:22 AM »
I'm not sure that you need to save anything under /var, but good that you got things working  :)