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: HELP!  (Only test page prints), Cannot print from applications< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: May 01 2008,23:17 QUOTE

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





Group: Members
Posts: 175
Joined: Mar. 2007
Posted: May 02 2008,00:11 QUOTE

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''


--------------
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: May 02 2008,00:19 QUOTE

After you printer the test page from apsfilter, did you use the install option ?
What is in /opt/printcap ?
Back to top
Profile PM WEB 
jhsu Offline





Group: Members
Posts: 175
Joined: Mar. 2007
Posted: May 02 2008,00:56 QUOTE

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.


--------------
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 
8 replies since May 01 2008,16:27 < 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: HELP!  (Only test page prints)

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