Printers :: HELP!  (Only test page prints)



That is a -P

minus signP

You need the -

Did you name your printer lp ?

Your export did not work as it is not in the env display

Better post what you are typing for your export and type carefully so we can help you.

I typed export PRINTER=lp again.

The env command brought:
[/home/dsl/jhsu-homepage]# env
HZ=100
TERM=rxvt
SHELL=/bin/bash
WINDOWID=16777218
OLDPWD=/home/dsl
USER=root
SUDO_USER=dsl
SUDO_UID=1001
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games:/opt/bin:.
MAIL=/var/mail/dsl
PWD=/home/dsl/jhsu-homepage
LANG=C
SUDO_COMMAND=/bin/su
COLORFGBG=15;0
HOME=/root
SHLVL=6
IRCNICK=DSL
LANGUAGE=us
LOGNAME=root
PRINTER=lp
SUDO_GID=50
DISPLAY=:0.0
COLORTERM=rxvt-xpm
XAUTHORITY=/home/dsl/.Xauthority
_=/usr/bin/env


Then I made sure to add the - before the "P" and got:
[/home/dsl/jhsu-homepage]# lpr -h -Plp hans.html
Status Information:
sending job 'root@box+734' to lp@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer lp@localhost
job 'root@box+734' transfer to lp@localhost failed
 error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
 sending str '^Blp' to lp@localhost
error msg: 'printer 'lp', chdir to '/var/spool/lpd/lp' failed 'No such file or directory''

After you printer the test page from apsfilter, did you use the install option ?
What is in /opt/printcap ?

Quote (roberts @ May 02 2008,00:19)
After you printer the test page from apsfilter, did you use the install option ?
What is in /opt/printcap ?

There was nothing in the printcap file and thus realized from your question that the printer wasn't properly installed.  I reinstalled in apsfilter, and now I can print using the lpr command and even print from applications like OpenOffice.  Thanks!

So it sounds like the things to check are:
1.  The opt/printcap file for the printer settings: If it's not there, the printer wasn't properly installed, or the printcap file wasn't properly saved during the reboot.
2.  Use the env command to check for the PRINTER=lp setting.  If it's missing, you didn't type export PRINTER=lp, or the computer didn't perform the task upon booting up.


original here.