Click to See Complete Forum and Search --> : Last page, first
timothykaine
02-06-2004, 06:29 AM
Ive got my first Linux printer! Whee!
I got an HP PSC 1210, everything works great (thanks to searching the forums here and not having to post ;-) ).
But how do I configure it so it prints the last page first, so it spits them out into a stack already in order?
Im using Mandrake 9.2, GNOME 2.4
mdwatts
02-06-2004, 10:01 AM
Sorry as I have no idea myself.
Have you had a look around www.linuxprinting.org to see if they have any printer tips/tricks?
phlipant
02-06-2004, 10:29 AM
lpr -o outputorder=reverse filename
mdwatts
02-06-2004, 11:37 AM
Originally posted by phlipant
lpr -o outputorder=reverse filename
Probably in the lpr manpage (man lpr). :)
timothykaine
02-07-2004, 01:50 AM
How can I add the reverse order command to every print request from the GUI by default? What file do I edit?
phlipant
02-07-2004, 11:00 AM
put alias lpr='lpr -o outputorder=reverse' in your ~/.bashrc
timothykaine
02-08-2004, 04:45 AM
I dont have this file. I have etc/bashrc. If this is the one I am supposed to edit, I dont know where to start. I also read that distros dont come with this file, and I may have to create it under a different name for a profile or something along those lines.
Do I just add it to the very end of the etc/bashrc file, or create a new file, or what?
jlany
02-08-2004, 02:23 PM
put alias lpr='lpr -o outputorder=reverse' in your ~/.bashrc
Last edited by phlipant on 02-07-2004 at 10:35 AM
Originally posted by timothykaine
I dont have this file. I have etc/bashrc. If this is the one I am supposed to edit, I dont know where to start. I also read that distros dont come with this file, and I may have to create it under a different name for a profile or something along those lines.
Do I just add it to the very end of the etc/bashrc file, or create a new file, or what?
From your 'sig' line it appears your running Mandrake 9.2, and if so, you most certainly have the file ' ~/.bashrc ' in your user's account in the /home folder. As 'your_user_name' open a console and type the following:
cd ~ [ENTER]
cat .bashrc [ENTER]
To edit the file, open it with your favorite editor "vi, emacs,etc...." , and put 'phlipant's' suggested code at the end of the file.
Here's what mine looks like:
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias s='cd ..'
alias d='ls'
alias p='cd -'
# Added by J Auditore
alias gateway='ssh root@gateway'
alias allie='ssh root@allie'
alias chris='vncviewer chris:0'
alias john='vncviewer john:0'
alias johnjr='ssh root@john'
alias startx='startx -- -dpi 120'
alias ob='echo DESKTOP=openbox >~/.desktop;startx -- -dpi 120'
alias bb='echo DESKTOP=BlackBox >~/.desktop;startx -- -dpi 120'
alias fb='echo DESKTOP=Fluxbox >~/.desktop;startx -- -dpi 100'
alias e='echo DESKTOP=Enlightenment >~/.desktop;startx -- -dpi 100'
alias k='echo DESKTOP=KDE >~/.desktop;startx -- -dpi 120'
alias f='echo DESKTOP=XFce >~/.desktop;startx -- -dpi 120'
alias path='echo $PATH'
export LESS=X
# Java Sources
export JAVA_HOME="/opt/j2re1.4.2_01"
export JAVA_COMPILER="javac"
export CLASSPATH=".:$JAVA_HOME/lib:$JAVA_HOME/jre/lib"
PATH="$PATH:$JAVA_HOME/bin"
fortune
# Source global definitions
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi