Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Where to put "/usr/sbin/lpd", Where does it go?< Next Oldest | Next Newest >
jhsu Offline





Group: Members
Posts: 175
Joined: Mar. 2007
Posted: Aug. 07 2008,17:58 QUOTE

I'm now trying to save the files in /var/spool/lpd to /home/dsl when powering down and then restoring them back to /var/spool/lpd when booting back up again, but that's not working.  

The command during powerdown is:
sudo cp -aprv /var/spool/lpd/* /home/dsl/.spool

The command during powerup is:
sudo cp -aprv /home/dsl/.spool/* /var/spool/lpd

Why doesn't this work?  

So far, here's how I'm doing on this:
1.  I have no difficulty with saving opt/printcap or opt/apsfilter.
2.  I have no difficulty with automating the export command.  I put "export PRINTER=lp" in the /home/dsl/.bashrc file.
3.  I can't figure out how to save /var/spool/lpd/lp .  Because of this, I have to go through the installation mumbo-jumbo every time I reboot.  This is so annoying!
4.  I can't figure out how to automate DSL menu -> System -> Printing/Lpd -> start .  Because of this, I have to go through this every time I reboot.


--------------
Current cheatcodes:
kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm nodma noscsi frugal home=hda3 opt=hda3 restore=hda3 root=hda3
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 07 2008,20:48 QUOTE

I don't think I can help you. You ignore what I post. If you insist on copying system files into /home/dsl as a way to back them up, then no wonder you have issues. You need to learn what the file /opt/.filetool.lst does. Try small exmaples to gain confidence.
Back to top
Profile PM WEB 
jhsu Offline





Group: Members
Posts: 175
Joined: Mar. 2007
Posted: Aug. 09 2008,22:27 QUOTE

Quote (roberts @ Aug. 07 2008,16:15)
var/spool/lpd should be in your /opt/.filetool.lst and is a automatic by product of using apsfileter. Unless, of course, you fail to properly shutdown your machine or have modified this process. As during a normal shutdown, if an apsfiler printer setup was attempted you are prompted to save the setting, including var/spool/lpd (see /usr/local/bin/exitcheck.sh)

If your question is now how do I start lpd, then it can be added as a boot time option of lp to your boot time configuration file, be it grub, lilo, syslinux.cfg, etc. Or you can add the fullpath command to /opt/bootlocal.sh.

I have a frugal installation, but I never get the prompt asking me if I want to save my printer setting when I shut down.  Setting up the printer does not cause the /tmp/printer.flag file to appear.

I have found that bootlocal.sh commands are executed by root while the "export PRINTER=lp" command needs to be executed by user dsl.  So that means that the command "su dsl" must be added before "export PRINTER=lp" in the bootlocal.sh file.


--------------
Current cheatcodes:
kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm nodma noscsi frugal home=hda3 opt=hda3 restore=hda3 root=hda3
Back to top
Profile PM 
7 replies since Aug. 06 2008,19:54 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Where to put "/usr/sbin/lpd"

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code