Can I do this :
lpoptions -o lpi=8
Would that set the printer to 8 lines per inch forever or just for one time ?
Main Topics
Browse All TopicsPlease help, I need to change the printer configuration on my laser printer so that linux prints 66 lines per page instead of 60.
I read that /etc/printcap has something in it, but it reads that this file is automatically generated by /etc/cups/printers.conf, so I went there and there's nothing to set the pagelenght. I tried using the cups http://localhost:631 menu, but nothing there either, How do I do this change?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
OK, last comment about this issue, on Unix's interface file /usr/spool/lp/admins/lp/in
if [ "$vsi" = "def" -a "$lpi" = "def" -a "$orien
tation" != "landscape" -a "$nroff" = "" -a "$dividing" = "" ]
then
echo "\033&l66p2e7.6c66F\c"
echo "\033&a4L\c"
echo "\033&k11H\c"
length="-l66"
fi
This is the escape or control code you send directly to the printer. You can just add that to any text file you are sending to the printer and it should set itself to those values. Once you use a GUI or other printer driver, you'll reset the printer to it's standard values.
This doesn't depend on the OS itself, you can send these characters from any OS, if it DOS, Unix, Linux or even Windoze. What you have to take into account is that these codes are remnants of the line printers, and today's printers get all info as a page and things are usually sent from a GUI where the number of lines etc have little value, and once you print anything using those standard drivers, it'll reset the printer to defaults. So you just have to send these commands to the printer before sending the page to print.
Business Accounts
Answer for Membership
by: rindiPosted on 2005-11-03 at 22:56:55ID: 15222821
You don't set these properties in the printer driver. You do that in the application by selecting a font and font size that will equate to 66 lines per page. If you want to print pure ascii then you have to add the ctrl or esc characters to this ascii file which sets the printer to 66 lines per page. For these ctrl codes you will have to check the printer's manual. You could of course also just use the control panel on the printer itself to switch to the 66 lines / page mode before printing.