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. 06 2008,19:54 QUOTE

I know exactly how to set up the printer on my machine.  What I haven't figured out is how to keep the installation intact between boots.  So far, I have had to reinstall the printer every time I boot up.

I am aware that the file /home/dsl/.filetool.lst needs opt/printcap , opt/apsfilter , and var/spool/lpd/lp .

I am aware that the command "export PRINTER=lp" command needs to be in /home/dsl/.bashrc (contrary to what the book and the printerhowto.pdf file instruct) , and you need to be NON-ROOT in order to make this change.  I found that this command is automatically executed during bootup when in the /home/dsl/.bashrc file but is NOT executed during bootup when in the /opt/bootlocal.sh file .

Where does the "/usr/sbin/lpd" command need to go given that the bootup process seems to ignore the /opt/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 
jhsu Offline





Group: Members
Posts: 175
Joined: Mar. 2007
Posted: Aug. 07 2008,01:52 QUOTE

I'm looking at /usr/share/apsfilter/SETUP .  This is the file that contains the program for setting up apsfilter.

export APS_BASEDIR="/usr/share/apsfilter"
cd "$APS_BASEDIR"
CONF_DIR="/usr/etc/apsfilter"
SPOOL="/var/spool/lpd"

do_main_menue is the main menu function.

Selecting i/I to install means means that [ "$proceed" ] && MENU_DONE=true ;;

This somehow (I don't fully understand) leads to the function do_install_filter.  $QUEUE is the printer name (default "lp").  This function involves the file /etc/printcap , the directory  /usr/etc/apsfilter/lp , the directory /var/spool/lpd , the file /var/spool/lpd/log, the file /var/spool/lpd/acct, and the file apsfilterrc (I think under /var/spool/lpd/).


--------------
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 
jhsu Offline





Group: Members
Posts: 175
Joined: Mar. 2007
Posted: Aug. 07 2008,03:27 QUOTE

I've gone through the file and symlinks, and the installation process doesn't involve any critical files/directories other than the ones we're supposed to enter in /home/dsl/.filetool.lst .

I checked /home/dsl/.xfiletool.lst , and nothing seems amiss here.  None of those three files are included.

I have noticed that while opt/printcap and opt/apsfilter do save through reboots, var/spool/lpd/lp does not .

So that tells me that the var/spool/lpd/lp directory gets deleted at some point in the powerdown or bootup process.  Can anyone here point me to the files that provide the instructions for these processes?


--------------
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 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Aug. 07 2008,08:44 QUOTE

Quote (jhsu @ Aug. 07 2008,03:27)
I have noticed that while opt/printcap and opt/apsfilter do save through reboots, var/spool/lpd/lp does not .

So that tells me that the var/spool/lpd/lp directory gets deleted at some point in the powerdown or bootup process.  Can anyone here point me to the files that provide the instructions for these processes?

The "var" directory is used for files that change while the system is running.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 07 2008,16:15 QUOTE

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.
Back to top
Profile PM WEB 
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