On Tue, Oct 21, 2003 at 03:23:15AM +0100, Sam Lown wrote:
>
> The redhat-switch-printer tool does indeed work, however if you've
> forgotten to install it or can't find it, you can do it manually. These
> commands are simply taken from the nicely written
> /usr/share/redhat-switch-printer/functions.py python script file:
>
> Convert to LPRng (Most useful ;-) :
> /bin/rm /etc/printcap
> /usr/bin/alternatives --set print /usr/bin/lpr.LPRng
> /sbin/service cups stop
> /usr/sbin/printconf-backend --force-rebuild
> /sbin/service lpd start
>
> Convert to CUPS (for testing purposes, of course ;-) :
> /usr/bin/alternatives --set print /usr/bin/lpr.cups
> /sbin/service lpd stop
> /usr/sbin/printconf-backend
> /sbin/service cups start
>
> Maybe this will save somebody somewhere a bit of time. Especially useful
> to know what happens if either of the other scripts doesn't work!
>
> Cheers,
>
> sam
>
>
> On Mon, 2003-10-20 at 22:49, Tim Waugh wrote:
> > On Mon, Oct 20, 2003 at 12:47:32PM -0700, Patrick Powell wrote:
> >
> > > Here is a quick script that switches the print spooler on RedHat:
> >
> > ...or use redhat-switch-printer, which actually comes from the CDs.
> >
> > :-/
> >
> > Tim.
> > */
> --
> CERN, Geneva
> E-mail: samuel.lown (at) cern.ch
I thought the 'alternatives' idea was bloody clever.
However.
Make sure you install the LPRng executables in the right spot,
as alterntives assumes:
h104: {8} % cd /etc/alternatives/
h104: {9} % ls
mta mta-mailqman mta-rmail print-cancelman print-lpcman
print-lpqman print-lprmman
mta-aliasesman mta-newaliases print print-lp print-lpman
print-lprm print-lpstat
mta-mailq mta-newaliasesman print-cancel print-lpc print-lpq
print-lprman print-lpstatman
h104: {10} % ls -l print*
lrwxrwxrwx 1 root root 18 Jun 12 15:06 print -> /usr/bin/lpr.LPRng
lrwxrwxrwx 1 root root 21 Jun 12 15:06 print-cancel ->
/usr/bin/cancel.LPRng
lrwxrwxrwx 1 root root 37 Jun 12 15:06 print-cancelman ->
/usr/share/man/man1/cancel-LPRng.1.gz
lrwxrwxrwx 1 root root 17 Jun 12 15:06 print-lp -> /usr/bin/lp.LPRng
lrwxrwxrwx 1 root root 19 Jun 12 15:06 print-lpc ->
/usr/sbin/lpc.LPRng
lrwxrwxrwx 1 root root 34 Jun 12 15:06 print-lpcman ->
/usr/share/man/man8/lpc-LPRng.8.gz
lrwxrwxrwx 1 root root 33 Jun 12 15:06 print-lpman ->
/usr/share/man/man1/lp-LPRng.1.gz
lrwxrwxrwx 1 root root 18 Jun 12 15:06 print-lpq -> /usr/bin/lpq.LPRng
lrwxrwxrwx 1 root root 34 Jun 12 15:06 print-lpqman ->
/usr/share/man/man1/lpq-LPRng.1.gz
lrwxrwxrwx 1 root root 19 Jun 12 15:06 print-lprm ->
/usr/bin/lprm.LPRng
lrwxrwxrwx 1 root root 34 Jun 12 15:06 print-lprman ->
/usr/share/man/man1/lpr-LPRng.1.gz
lrwxrwxrwx 1 root root 35 Jun 12 15:06 print-lprmman ->
/usr/share/man/man1/lprm-LPRng.1.gz
lrwxrwxrwx 1 root root 21 Jun 12 15:06 print-lpstat ->
/usr/bin/lpstat.LPRng
lrwxrwxrwx 1 root root 37 Jun 12 15:06 print-lpstatman ->
/usr/share/man/man1/lpstat-LPRng.1.gz
--
Patrick Powell Astart Technologies
[EMAIL PROTECTED] 6741 Convoy Court
Network and System San Diego, CA 92111
Consulting 858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------