:: Re: [DNG] text files print landscap…
Top Page
Delete this message
Reply to this message
Author: tempforever
Date:  
To: dng
Subject: Re: [DNG] text files print landscape
Haines Brown via Dng wrote:
>
> According to lpoptions manual I can set options if the command is
> run by root. So I do
>     
>     # lpoptions -o orientation-requested=6

>
> That enasbles root to print a text file portait, but not user
>
>

(from the lpoptions man page)
"When run by the root user, lpoptions gets and sets default options and
instances for all users in the /etc/cups/lpoptions file.  Otherwise, the
per-user defaults are managed in the ~/.cups/lpoptions file."

I'm not sure why running as root did not change the default for all users,
but you can run it under your user account, it should create/modify
~/.cups/lpoptions.  I ran the exact command you posted
$ lpoptions -o orientation-requested=6

Now my ~/.cups/lpoptions file reads:
Default Xerox-Phaser-3260 orientation-requested=6

Indeed, when I run as root, it did *not* create /etc/cups/lpoptions, but
instead the line went into /root/.cups/lpoptions

This may be a bug, or at least bad information in the man page.

I'm assuming you probably have the same, a /root/.cups/lpoptions
You could move it to /etc/cups and see if that takes hold for all users,
or just run the lpoptions command under your user account.