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 Desktop or Openserver.

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.

Printing FAQ

How can I send change defaults permanently; for example make a printer always print in Landscape mode?

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


Hate these ads?

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"


LOD Communications, Inc.


 


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.




Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
11646748 1,874

/SCOFAQ/FAQ_scotec7defaults.html copyright 1997-2003 (various) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

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. We appreciate comments and article submissions.

Publishing your articles here

More:
       - FAQ




Unix/Linux Consultants

Your ad here - $48.00 yearly!

http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!


http://www.vss3.com SCO/Caldera OpenServer, Unixware & Linux. Tarantella & Non-stop Clustering


SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at http://opensystemscomputing.com and www.go2unix.com.



Twitter
  • Nov 21 07:55
    @loudmouthman: correct, but how do you prove ANYTHING like that is accurate? You can't. A text file is no better or worse than anything.
  • Nov 21 07:40
    @loudmouthman: well, a digital signature could prove it hadn't been altered. Text is no more insecure than anything else in that sense.









Change Congress


Related Posts