Hi,
Thanks to all those that replied I have enclosed the two most usefuil answers.
Answer one,
>From rene@iusti.univ-mrs.fr Mon Feb 10 18:56 EST 1997
Date: Mon, 10 Feb 1997 09:49:03 +0100
From: rene@iusti.univ-mrs.fr (Mr Rene Occelli)
To: luke@mitsui.oz.au
Subject: Re: Printing to ethernet laser
Hi,
I do the same thing on an Apple laserwriter.
Configuring the printer with admintool fails at the end of the
installation. SO you have to modify manually some files.
1) Modify the hosts file to put the ip address of your printer
in my case
Luke% ypcat hosts | grep laser
192.134.146.229 laser-16-600
Luke%
Tehn firt try to configure with admintool ( choosing remote printer
and type of printer postscript )
If not ok you can modify directly these file
name of my Sun Luke
name of the printer Laser it's the default printer
Luke% cd lp
/var/spool/lp/admins/lp
Luke% ls
Systems default forms model
alerts fd interfaces printers
classes filter.table logs pwheels
Luke% cd printers
/var/spool/lp/admins/lp/printers
Luke% ls
Laser
Luke% cd Laser
/var/spool/lp/admins/lp/printers/Laser
Luke% ls
comment configuration faultMessage users.deny
Luke% cat configuration
Content types: unknown
Printer type: PS
Remote: laser-16-600
Luke% cat comment
Laser-16-1600
Then
Luke% cd /var/spool/lp/admins
/var/spool/lp/admins
Luke% ls
lp
Luke% cd lp
/var/spool/lp/admins/lp
Luke% ls
Systems default forms model
alerts fd interfaces printers
classes filter.table logs pwheels
Luke% tail Systems
# clients, and you don't really care about restricting
# your printer. Conceivably a print server could just contain
# a single entry of the following form for both BSD and SVR4 clients:
#
#
# +:x:-:s5:-:n:10:-:-:Allow all connections
#########
+:x:-:s5:-:n:10:-:-:Allow all connections
laser-16-600:x:-:bsd:-:n:10:-:-:
Luke%
For my other Suns I have choosen the machine Luke to be the printer server.
Hope this helps you
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Rene OCCELLI +
+ I.U.S.T.I. C.N.R.S. U.M.R. 139 +
+ Technopole de Chateau Gombert +
+ 5 Rue Enrico FERMI +
+ 13453 MARSEILLE Cedex 13 France +
+ Tel: (33)04 91 10 69 37 04 91 10 69 38 +
+ Fax: (33)04 91 10 69 69 +
+ Email: rene@iusti.univ-mrs.fr +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Answer two,
>From ric@rtd.com Tue Feb 11 04:01 EST 1997
From: Ric Anderson <ric@rtd.com>
Subject: Re: Printing to ethernet laser
To: luke@mitsui.oz.au
Date: Mon, 10 Feb 1997 07:53:54 -0700 (MST)
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
>
> Hi Sun Managers,
>
> I have an ultra 2 which I need to print to a ethernet printer. How do I make this
> happen? I will Summarise.
>
Attached is a script I use on Solaris 2.5 systems to make them
speak to a network attached HP LaserJet 4M+ Postscript printer.
Initial setup requires teaching the printer its IP address and
netmask from its control panel, then using telnet to the printer
to set up other options (like log server IP address, whether or
not to print a banner page,etc).
Then run this script to make solaris aware of the remote printer.
Hope this helps,
Ric (<ric@rtd.com> "Ric Anderson", using RTD's public internet access)
--begin script--
#!/bin/ksh
#
# print a prompt and get a response in global variable "Reply".
#
get_rsp() {
Reply=""
if [ ! -z "$2" ]; then
echo "$1 [$2]: \c"
read Reply
if [ -z "$Reply" ]; then
Reply="$2"
fi
return
fi
while [ -z "$Reply" ]; do
echo "$1: \c"
read Reply
done
}
#
# debugging goodies.
#
if [ "$1" = "-d" ]; then
accept() {
echo "**accept" $*
}
enable() {
echo "**enable" $*
}
lpadmin() {
echo "**lpadmin" $*
}
lpfilter() {
echo "**lpfilter"$*
}
lpstat() {
echo "**lpsystem"$*
}
lpsystem() {
echo "**lpsystem"$*
}
fi
#
# Get parameters.
#
while [ -z "$printer" ]; do
get_rsp "Enter local printer name" "lw0"
printer="$Reply"
lpstat -p $printer >/dev/null 2>&1
if [ $? -eq 0 -a -z "$1" ]; then
echo "$0: Printer name $printer is already in use - try another one"
printer=""
fi
done
get_rsp "Enter print server system name" ""
remsys="$Reply"
while [ -z "$systype" ]; do
get_rsp "Enter print server system type" "bsd"
systype="$Reply"
if [ "$systype" != "bsd" -a "$systype" != "s5" ]; then
echo "$0: System Type must be s5 or bsd, not $systype - try again"
systype=""
fi
done
get_rsp "Enter printer model for description" "HP LaserJet 4M+"
description="$Reply"
get_rsp "Enter printer type" "PS"
printertype="$Reply"
get_rsp "Enter file types printer will handle" "postscript"
filetype="$Reply"
get_rsp "Make this the default printer" "Yes"
default="$Reply"
#
# Define printer systems
#
lpsystem -t $systype $remsys
if [ $? -ne 0 ]; then
exit
fi
#
# bind local printer name to remote system
#
lpadmin -p $printer -s $remsys
if [ $? -ne 0 ]; then
exit
fi
#
# Set detail on printer type.
#
lpadmin -p $printer -T $printertype -I "$filetype" -D "$description"
if [ $? -ne 0 ]; then
exit
fi
if [ "$default" = "yes" -o "$default" = "Yes" ]; then
lpadmin -d $printer
fi
#
# Set up filters if needed.
#
if [ "$printertype" = "postscript" ]; then
for f in download dpost postio postior postprint postreverse; do
lpfilter -f $f -F $f.fd
if [ $? -ne 0 ]; then
exit
fi
done
fi
#
# Turn on queue and enable printing.
#
accept $printer
enable $printer
#
# Finish up.
echo ""
lpstat -p $printer -l
echo ""
echo "printer setup complete"
--end script--
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:45 CDT