Re: [expert] Printer Problem - Step2
On Wednesday 03 January 2001 02:00, you wrote: > Tony, > > Did as you suggested. > > # ps -aux |grep lpd > > root 255 0.0 0.5 1144 536 ?S12:20 0:00 lpd > > root 550 0.0 0.5 1308 500 pts/0S12:23 0:00 grep lpd > > Ran DrakConf. The lpd button was already clicked on. You don't run both deamons. If you want to use Cups, then turn off lpd. -- Gerald Williams Words Matter! Bangkok, Thailand
Re: [expert] Printer Problem - Step2
Tony, Did as you suggested. # ps -aux |grep lpd root 255 0.0 0.5 1144 536 ?S12:20 0:00 lpd root 550 0.0 0.5 1308 500 pts/0S12:23 0:00 grep lpd Ran DrakConf. The lpd button was already clicked on. I noticed that in the /etc/rc.d/init.d directory there is a lock file. Is that in your directory too? >From reading the /etc/rc.d/init.d/lpd text file, I conclude that a lock file is put >in once printing begins, but is removed when the process ends. Is that your >understanding? Michael Coady > You aren't running the line printer daemon, lpd, which handles the print > jobs. In my current configuration with just the parallel printer I mentioned > earlier I run both the cupsd and the lpd daemons. > > Do a 'ps -aux | grep lpd' and 'ps -aux | grep cupsd' to see if they are > running as processes on your machine. > > [root@mypc tko]# ps -aux |grep lpd > root 663 0.0 0.2 1440 608 ?S18:14 0:00 lpd > root 1403 0.0 0.2 1456 540 ttyp5S20:41 0:00 grep lpd > [root@mypc tko]# ps -aux |grep cupsd > root 650 0.0 0.9 4748 2472 ?S18:14 0:04 cupsd > root 1405 0.0 0.2 1456 540 ttyp5S20:41 0:00 grep cupsd > > > > If not then you can start them manually but normally they are started from > the /etc/rc.d/init.d directory which is setup by the DrakConf. > > Run DrakConf and choose Startup Services from the menu and then select them > (cups, lpd) from the window and choose OK. This will start them > automatically on the next reboot.
Re: [expert] Printer Problem - Step2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 courtesy cc to author On Monday 01 January 2001 19:00, you wrote: > Tony, your suggestion revealed a curious thing. > > > #lpc status > > lp0: > queuing is enabled > printing is enabled > no entries > no daemon present > lp1: > queuing is enabled > printing is enabled > no entries > no daemon present > > #printerdrake > revealed the following: > > Queue Name: lp0 > Spool Directory /var/spool/lpd/lp0 > Printer: local printer > Printer device: /dev/lp0 > > Can you make sense of this? > > Michael Coady > > > > When I try $lpr lp0 test.txt it seems that the printer (or something) > > > is recognized because I no longer get "printer unknown". But still the > > > printer does not print. > > > I checked /var/spool/lpd/lp0/status and found: "lp0 is ready and > > > printing". Strange. Might it be that the file is queued by for some > > > reason not being fed to the printer? > > > Although I've read the documentation on Printing in Linux, I still > > > can't figure out what takes a file from queue to the printer. > > > Thanks to John & Tony for the suggestions. > > > > > > Michael Coady > > > > > > >Sounds like lpr is trying to use lp instead of lp0. Try lpr -Plp0 > > > >test.txt. > > > > > > > >On Sun, 31 Dec 2000, mcoady wrote: > > > > > Installed Mandrake 7.1 along with HPLaserjet 4l printer > > > > > (non-postscript). > > > > > > > > > > WordPerfect runs the printer without a problem. But, when I try to > > > > > > > > print a test.txt file > > > > > > > > > $lpr text.txt > > > > > > > > > > I get: > > > > > > > > > > lpr: lp:: printer unknown. > > > > > > > > > > #printtool reveals that the printer is indeed there at lp0. > > > > > It prints a Ascii test file directly to port, but nothing happens > > > > > when > > > > > > > > I simply run the Print Ascii test page. > > > > > > > > > Even installing PDQ and running it does not solve the problem. > > > > > > > > > > Any suggestions would be appreciated.. (Yes, the printer is > > > > > connected.) > > > > > > > > > > Michael Coady > > > > - -- > > Michael > > > > What is the output if you do a status on lpc? > > > > lpc status > > > > Mine gives the following: > > > > [root@mypc tko]# lpc status > > lp: > > printer is on device 'parallel' speed -1 > > queuing is enabled > > printing is enabled > > no entries > > daemon present > > lp1: > > printer is on device 'parallel' speed -1 > > queuing is enabled > > printing is enabled > > no entries > > daemon present > > > > I set my printers up using printerdrake which did everything for me. > > The differences in the lp and lp1 printers is just a different driver > > from the driver database that I chose. They are both on my lpt1 port. > > Just run printerdrake from the commandline in X and answer the questions. > > Let us know the outcome. > > > > Cheers. > > > >___ > > (_B_)__ > > ~(@ @)~ > > +-oOOo-(_)-oOOo-+ > > > > | "I played before the greatest fans in baseball, the Boston| > > | fans, and I know what you're going to say about that: Old | > > | Teddy Ballgame loved those fans, all right." --- Ted Williams | > > > > ++--+ > > > > | Tony K. Olsen | mailto:[EMAIL PROTECTED] | > > > > ++--+ > > > > > > -BEGIN PGP SIGNATURE- > > Version: GnuPG v1.0.4 (GNU/Linux) > > Comment: For info see http://www.gnupg.org > > > > iEYEARECAAYFAjpQ5VcACgkQ9WMVqtlY7NVWCACdGjaMRUWGUms5GLoULJKaS1PB > > Bo4An1AiOQSIxWrtxafNEAFfdTz/TjFj > > =GO+V > > -END PGP SIGNATURE- > > -- > M. - -- Michael, You aren't running the line printer daemon, lpd, which handles the print jobs. In my current configuration with just the parallel printer I mentioned earlier I run both the cupsd and the lpd daemons. Do a 'ps -aux | grep lpd' and 'ps -aux | grep cupsd' to see if they are running as processes on your machine. [root@mypc tko]# ps -aux |grep lpd root 663 0.0 0.2 1440 608 ?S18:14 0:00 lpd root 1403 0.0 0.2 1456 540 ttyp5S20:41 0:00 grep lpd [root@mypc tko]# ps -aux |grep cupsd root 650 0.0 0.9 4748 2472 ?S18:14 0:04 cupsd root 1405 0.0 0.2 1456 540 ttyp5S20:41 0:00 grep cupsd If not then you can start them manually but normally they are started from the /etc/rc.d/init.d directory which is setup by the DrakConf. Run DrakConf and choose Startup Services from the menu and then select them (cups, lpd) from the window and choose OK. This will start them automatically on the next reboot. Hope this helps. Cheers. ___ (_B_)__ ~(@ @)~ +-oOOo-(_)-oOOo-
Re: [expert] Printer Problem - Step2
** Reply to message from M Coady <[EMAIL PROTECTED]> on Mon, 01 Jan 2001 09:40:24 -0800 Try deleting the printer definition and recreating it. This sometimes helps with my problematic printing situation (printer is connected to a Win2K box, using Samba to print to the printer from Linux) John LeMay Jr. Senior Enterprise Consultant NJMC, LLC.
Re: [expert] Printer Problem - Step2
Tony, your suggestion revealed a curious thing. #lpc status lp0: queuing is enabled printing is enabled no entries no daemon present lp1: queuing is enabled printing is enabled no entries no daemon present #printerdrake revealed the following: Queue Name: lp0 Spool Directory /var/spool/lpd/lp0 Printer: local printer Printer device: /dev/lp0 Can you make sense of this? Michael Coady > > When I try $lpr lp0 test.txt it seems that the printer (or something) is > > recognized because I no longer get "printer unknown". But still the printer > > does not print. > > I checked /var/spool/lpd/lp0/status and found: "lp0 is ready and > > printing". Strange. Might it be that the file is queued by for some reason > > not being fed to the printer? > > Although I've read the documentation on Printing in Linux, I still can't > > figure out what takes a file from queue to the printer. > > Thanks to John & Tony for the suggestions. > > > > Michael Coady > > > > >Sounds like lpr is trying to use lp instead of lp0. Try lpr -Plp0 > > >test.txt. > > > > > >On Sun, 31 Dec 2000, mcoady wrote: > > > > Installed Mandrake 7.1 along with HPLaserjet 4l printer > > > > (non-postscript). > > > > > > > > WordPerfect runs the printer without a problem. But, when I try to > > > > > > print a test.txt file > > > > > > > $lpr text.txt > > > > > > > > I get: > > > > > > > > lpr: lp:: printer unknown. > > > > > > > > #printtool reveals that the printer is indeed there at lp0. > > > > It prints a Ascii test file directly to port, but nothing happens when > > > > > > I simply run the Print Ascii test page. > > > > > > > Even installing PDQ and running it does not solve the problem. > > > > > > > > Any suggestions would be appreciated.. (Yes, the printer is connected.) > > > > > > > > Michael Coady > > - -- > Michael > > What is the output if you do a status on lpc? > > lpc status > > Mine gives the following: > > [root@mypc tko]# lpc status > lp: > printer is on device 'parallel' speed -1 > queuing is enabled > printing is enabled > no entries > daemon present > lp1: > printer is on device 'parallel' speed -1 > queuing is enabled > printing is enabled > no entries > daemon present > > I set my printers up using printerdrake which did everything for me. The > differences in the lp and lp1 printers is just a different driver from the > driver database that I chose. They are both on my lpt1 port. Just run > printerdrake from the commandline in X and answer the questions. Let us know > the outcome. > > Cheers. > >___ > (_B_)__ > ~(@ @)~ > +-oOOo-(_)-oOOo-+ > | "I played before the greatest fans in baseball, the Boston| > | fans, and I know what you're going to say about that: Old | > | Teddy Ballgame loved those fans, all right." --- Ted Williams | > ++--+ > | Tony K. Olsen | mailto:[EMAIL PROTECTED] | > ++--+ > > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.0.4 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iEYEARECAAYFAjpQ5VcACgkQ9WMVqtlY7NVWCACdGjaMRUWGUms5GLoULJKaS1PB > Bo4An1AiOQSIxWrtxafNEAFfdTz/TjFj > =GO+V > -END PGP SIGNATURE- > > -- M.
Re: [expert] Printer Problem - Step2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 courtesy cc to author On Monday 01 January 2001 12:40, you wrote: > When I try $lpr lp0 test.txt it seems that the printer (or something) is > recognized because I no longer get "printer unknown". But still the printer > does not print. > I checked /var/spool/lpd/lp0/status and found: "lp0 is ready and > printing". Strange. Might it be that the file is queued by for some reason > not being fed to the printer? > Although I've read the documentation on Printing in Linux, I still can't > figure out what takes a file from queue to the printer. > Thanks to John & Tony for the suggestions. > > Michael Coady > > >Sounds like lpr is trying to use lp instead of lp0. Try lpr -Plp0 > >test.txt. > > > >On Sun, 31 Dec 2000, mcoady wrote: > > > Installed Mandrake 7.1 along with HPLaserjet 4l printer > > > (non-postscript). > > > > > > WordPerfect runs the printer without a problem. But, when I try to > > > > print a test.txt file > > > > > $lpr text.txt > > > > > > I get: > > > > > > lpr: lp:: printer unknown. > > > > > > #printtool reveals that the printer is indeed there at lp0. > > > It prints a Ascii test file directly to port, but nothing happens when > > > > I simply run the Print Ascii test page. > > > > > Even installing PDQ and running it does not solve the problem. > > > > > > Any suggestions would be appreciated.. (Yes, the printer is connected.) > > > > > > Michael Coady - -- Michael What is the output if you do a status on lpc? lpc status Mine gives the following: [root@mypc tko]# lpc status lp: printer is on device 'parallel' speed -1 queuing is enabled printing is enabled no entries daemon present lp1: printer is on device 'parallel' speed -1 queuing is enabled printing is enabled no entries daemon present I set my printers up using printerdrake which did everything for me. The differences in the lp and lp1 printers is just a different driver from the driver database that I chose. They are both on my lpt1 port. Just run printerdrake from the commandline in X and answer the questions. Let us know the outcome. Cheers. ___ (_B_)__ ~(@ @)~ +-oOOo-(_)-oOOo-+ | "I played before the greatest fans in baseball, the Boston| | fans, and I know what you're going to say about that: Old | | Teddy Ballgame loved those fans, all right." --- Ted Williams | ++--+ | Tony K. Olsen | mailto:[EMAIL PROTECTED] | ++--+ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjpQ5VcACgkQ9WMVqtlY7NVWCACdGjaMRUWGUms5GLoULJKaS1PB Bo4An1AiOQSIxWrtxafNEAFfdTz/TjFj =GO+V -END PGP SIGNATURE-
Re: [expert] Printer Problem - Step2
When I try $lpr lp0 test.txt it seems that the printer (or something) is recognized because I no longer get "printer unknown". But still the printer does not print. I checked /var/spool/lpd/lp0/status and found: "lp0 is ready and printing". Strange. Might it be that the file is queued by for some reason not being fed to the printer? Although I've read the documentation on Printing in Linux, I still can't figure out what takes a file from queue to the printer. Thanks to John & Tony for the suggestions. Michael Coady : >Sounds like lpr is trying to use lp instead of lp0. Try lpr -Plp0 >test.txt. > >On Sun, 31 Dec 2000, mcoady wrote: > > > Installed Mandrake 7.1 along with HPLaserjet 4l printer (non-postscript). > > > > WordPerfect runs the printer without a problem. But, when I try to > print a test.txt file > > > > $lpr text.txt > > > > I get: > > > > lpr: lp:: printer unknown. > > > > #printtool reveals that the printer is indeed there at lp0. > > It prints a Ascii test file directly to port, but nothing happens when > I simply run the Print Ascii test page. > > > > Even installing PDQ and running it does not solve the problem. > > > > Any suggestions would be appreciated.. (Yes, the printer is connected.) > > > > Michael Coady > >