# # (SCO Unix) How can I send change defaults permanently; for example makea
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SCO Unix/System V Printing FAQ

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© December 2003 (various)

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

How can I send change defaults permanently; for example make a printer always print in Landscape mode? (SCO Unix/System V )

You need to understand printer interface scripts as explained at the beginning of this section of the FAQ

For this example, we'll use the HPLaserJet model script. In /var/spool/lp/model:


 cp HPLaserJet HPLandscape
 

Now examine the script. Around line 469, you'll find:

        -landscape | landscape | land | -land) # select landscape orientation
                orientation="landscape";;
 

That shows you that when you do "lp -o landscape" (or any of the other accepted variations), the script sets a variable "orientation". Later on, it tests that variable and sends the appropriate control codes.

Previously, around line 266, you'll find:

 outputmode="cooked"
 banner="yes"
 orientation="def"
 pagemode="def"
 nroff=""
 

That's where you make the change. Change

 orientation="landscape"
 

Now, define your printer and have it use HPLandscape as its model.

Other model scripts will use different syntax, but the principle is the same.


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> (SCO Unix) How can I send change defaults permanently; for example makea


Inexpensive and informative Apple related e-books:

Take Control of the Mac Command Line with Terminal, Second Edition

El Capitan: A Take Control Crash Course

Photos for Mac: A Take Control Crash Course

Take Control of Parallels Desktop 12

Take Control of Apple Mail, Third Edition






Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





He who hasn't hacked assembly language as a youth has no heart. He who does as an adult has no brain. (John Moore)




Linux posts

Troubleshooting posts


This post tagged:

FAQ

Printing



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode