09-13-2001
I found it.
I find the following steps working for me to connect to a network printer and I'd like to share it with all of you.
steps:
============
1. lpsystem -t bsd printer-server-name .
(register remote system with the print service)
2. lpadmin -p printer-name -s printer-server-name!printer-name.
(configure the printer/ services)
3. lpadmin -d printer-name.
(set up default printer)
============
By the way, when I do man lpsystem, the system docs tells me that lpsystem is considered obsolete. I have yet to find another way to do it, other than admintool, however.
Hope this helps.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there thanks for checking in
I'm screwed if you can't help me.
I have root access to a unix box and i did this.
>/usr/bin> mailx marcus@rtt.co.za > /usr/bin/lpadmin
which over wrote the lpadmin file which is in /usr/bin
How do i get this back.
Please help. (2 Replies)
Discussion started by: nemex
2 Replies
2. Solaris
Can some one tell me how to configure the printer on solaris
printer name = A
printer server address : 172.21.19.6 (3 Replies)
Discussion started by: krishan
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I'm tryin' to add a network printer with lpadmin (I don't have access to admintool) to a Solarisbox but I don't exactly know where to use the IP address.
The thing is that this printer exists already with another printQ but I don't see any printerserver declared with lpsystem -l although... (3 Replies)
Discussion started by: nulnul7
3 Replies
4. UNIX for Dummies Questions & Answers
Hi - Dummy question #1....
We either use the Hewlett Packard HPPI too or LPADMIN command to setup out printers. Is there an LPADMIN command that will show you the default config of a particular printer.
Ideally looking to see default font, CPI settings etc.
Thanks.
BravehearT1326 ... (1 Reply)
Discussion started by: BravehearT1326
1 Replies
5. Shell Programming and Scripting
I apologize for the long post. I have a lot of info...
I am trying to write a script that will add a network printer (or several) to a system using information read in from a text file. My problem is the spaces in the PPD file name, I'm not sure how to put the file name in or how to read it back... (2 Replies)
Discussion started by: HalfNube
2 Replies
6. HP-UX
When we executed a lpadmin command, the following error was output.
# lpadmin -phsaprinter -v/home/hoge/lpfile -mrmodel -ocmrcmodel
-osmrsmodel -ormhsaprinter -orphsaprinter
lpadmin: can't access file "/home/hoge/lpfile"
/home/hoge/lpfile is the file other user made.
The... (1 Reply)
Discussion started by: madhurtripathi
1 Replies
7. Solaris
lpadmin configuration issues on Solaris 10 Zone. I have configured a print queue using lpadmin command to print to print file server.
Source server is a Solaris Zone running Solaris 10.
Destination file print server is running OS AIX 5.3.
I do not get errors when issuing the lp command to... (0 Replies)
Discussion started by: primeaup
0 Replies
8. UNIX for Advanced & Expert Users
the problem i encountered is that lpadmin when encounters a failure doesn't cleanup properly .so the next time i use the same printer name it doesn't allow me to do so .saying interface directory can't be created .what can be done to solve this out ?please help .. (3 Replies)
Discussion started by: rahulpatro
3 Replies
9. Shell Programming and Scripting
Hi All,
I'm new to shell scripts.
I have the following LPADMIN script that runs ok when I run in in OSX Automator "Run shell Scripts":
Shell: /bin/bash
here is the line:
/usr/sbin/lpadmin -p Copy-room-ljetP4015 -E -v lpd://192.168.1.1 -m /Library/Printers/PPDs/Contents/Resources/HP\... (3 Replies)
Discussion started by: abk
3 Replies
LEARN ABOUT REDHAT
lpadmin
lpadmin(8) Easy Software Products lpadmin(8)
NAME
lpadmin - configure cups printers and classes
SYNOPSIS
lpadmin [ -E ] [ -h server ] -d destination
lpadmin [ -E ] [ -h server ] -p printer option(s)
lpadmin [ -E ] [ -h server ] -x destination
DESCRIPTION
lpadmin configures printer and class queues provided by CUPS. It can also be used to set the server default printer or class.
When specified before the -d, -p, or -x options, the -E option forces encryption when connecting to the server.
The first form of the command sets the default printer or class to destination. Subsequent print jobs submitted via the lp(1) or lpr(1)
commands will use this destination unless the user specifies otherwise with the lpoptions(1) command.
The second form of the command configures the named printer. The additional options are described below.
The third form of the command deletes the printer or class destination. Any jobs that are pending for the destination will be removed and
any job that is currently printed will be aborted.
CONFIGURATION OPTIONS
The following options are recognized when configuring a printer queue:
-c class
Adds the named printer to class. If class does not exist it is created automatically.
-i interface
Sets a System V style interface script for the printer. This option cannot be specified with the -P option (PPD file) and is intended
for providing support for legacy printer drivers.
-m model
Sets a standard System V interface script or PPD file from the model directory.
-o name=value
Sets a PPD or server option for the printer. PPD options can be listed using the -l option with the lpoptions(1) command.
-o job-k-limit=value
Sets the kilobyte limit for per-user quotas. The value is an integer number of kilobytes; one kilobyte is 1024 bytes.
-o job-page-limit=value
Sets the page limit for per-user quotas. The value is the integer number of pages that can be printed; double-sided pages are counted
as two pages.
-o job-quota-period=value
Sets the accounting period for per-user quotas. The value is an integer number of seconds; 86,400 seconds are in one day.
-r class
Removes the named printer from class. If the resulting class becomes empty it is removed.
-u allow:user,user
-u deny:user,user -u allow:all -u deny:none
Sets user-level access control on a printer. The latter two forms turn user-level access control off.
-v device-uri
Sets the device-uri attribute of the printer queue. If device-uri is a filename it is automatically converted to the form
file:/file/name.
-D info
Provides a textual description of the printer.
-E
Enables the printer and accepts jobs; this is the same as running the accept(8) and enable(8) programs on the printer.
-L location
Provides a textual location of the printer.
-P ppd-file
Specifies a PostScript Printer Description file to use with the printer. If specified, this option overrides the -i option (interface
script).
COMPATIBILITY
Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE and TAB. Also, printer and
class names are not case-sensitive. Finally, the CUPS version of lpadmin may ask the user for an access password depending on the printing
system configuration. This differs from the System V version which requires the root user to execute this command.
LIMITATIONS
The CUPS version of lpadmin does not support all of the System V or Solaris printing system configuration options.
SEE ALSO
accept(8), cancel(1), disable(8), enable(8), lp(1), lpstat(1), reject(8), CUPS Software Administrators Manual, http://localhost:631/docu-
mentation.html
COPYRIGHT
Copyright 1993-2002 by Easy Software Products, All Rights Reserved.
21 October 2002 Common UNIX Printing System lpadmin(8)