Operating System - HP-UX
1820484 Members
2133 Online
109624 Solutions
New Discussion юеВ

How to set default printer?

 
Steve_18
New Member

How to set default printer?


Hi I am using HP-UX System V box and when I tried to lp store_list. It went to the wrong printer. Now Iwant to set it up to the correct printer. How?? Thanks

Steve
what happen happens!
5 REPLIES 5
Vikas Khator
Honored Contributor

Re: How to set default printer?

Hi ,

You can set it using SAM .

If you want to do it for one user set the LPDEST environment variable

Runtime you can use lp -d
Keep it simple
James R. Ferguson
Acclaimed Contributor

Re: How to set default printer?

Hi Steve:

You have several options.

1. You can use SAM to add a printer and declare it as the "default" printer during its creation.

2. You can issue your print request like this:

# lp -d

3. You can set and export the LPDEST variable, in your $HOME/.profile (for instance):

# LPDEST=mydestination
# export LPDEST
# lp

4. Lastly, you can use 'lpadmin' to simply declare the default destination:

# lpadmin -d

...JRF...
Vincenzo Restuccia
Honored Contributor

Re: How to set default printer?

"/usr/sbin/lpshut;/usr/sbin/lpadmin -pHP -orm$B -orpHP -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel;/usr/sbin/accept HP;/usr/bin/enable HP;/usr/sbin/lpsched;/usr/sbin/lpadmin -dHP"
Rob Smith
Respected Contributor

Re: How to set default printer?

Use the LPDEST variable this way you can set different default printers for different users or a system wide default with the metheods outlined above. Depends on your needs

Rob

Learn the rules so you can break them properly.
Tom Gore
Regular Advisor

Re: How to set default printer?

James & Rob,

Thanks for that insight. The default printer that was set up is on the other side of our building. It isn't too bad when you can specify where your print is sent (lp -dXXX filename), it's when you are using something like SAM (or another utility) that only has a "print" option. The print gets sent to the default printer NMW (no matter what). :-)