Sponsored Content
Operating Systems Solaris Create Unix printer in sun Solaris Post 302498480 by Mack1982 on Monday 21st of February 2011 12:41:08 PM
Old 02-21-2011
I use the following script to add printer: (add_printer)
script name: add_printer
usage: add_printer <printername> <printerIP or DNS name>
Code:
/usr/sbin/lpadmin -p $1 -o protocol=tcp,dest=$2:9100 -v /dev/null -m netstandard -T PS -I simple,postscript
/usr/sbin/lpadmin -p $1 -o banner=never

/usr/bin/lpc enable $1
/usr/bin/lpc start $1
/usr/bin/lpc status $1
# End of script

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

set up HP printer in Sun Solaris 2.8

Is there any documentation as to how to set up/register a printer in Sun Solaris server? Thanks in advance. (1 Reply)
Discussion started by: simt
1 Replies

2. UNIX for Dummies Questions & Answers

Installing a Samba printer under Sun Solaris 10

Hi all, I am under Sun Solaris 10, and I wan't to use printers which are on my local area network (on Windows XP workstation), I have got samba installed, and cups. I wan't to have an easy way for printing document (with StarOffice, Gimp etc...), for exemple by just launching a command. ... (0 Replies)
Discussion started by: willits
0 Replies

3. Solaris

Can i create pcfs partition using sun solaris 10 ?

Can i use the sun solaris 10 to create Fat32 partition ? and i have another question im so confused between format command an fdisk within it, and mkfs and newfs, well what i got is that i have to use format to create partition physcially in my hard disk then i have to use mkfs or newfs (which is a... (2 Replies)
Discussion started by: XP_2600
2 Replies

4. UNIX for Dummies Questions & Answers

Sun Solaris 10: How do I create a bootup disc? The Sun website confuses me

Hey there, I am starting a Computer Science Foundation year at the end of this month and am trying to get a little bit ahead of the game. I have always wanted to learn Unix and am currently struggling with creating a boot disc to run Solaris (I have chosen to study this) from as opposed to... (0 Replies)
Discussion started by: Jupiter
0 Replies

5. UNIX for Dummies Questions & Answers

how configure printer in sun solaris

Hi, I am working in sun solaris server.I have Kyocera FS-1030D KX printer in my network .I have configured this printer for windows.I want to configure same printer to sun solaris.Is this possible.Give me some ideas. (2 Replies)
Discussion started by: arulkumar
2 Replies

6. Solaris

Installing Network Printer in sun solaris 10

Hi guys, i am a new user of sun solaris, i am using solaris 10, please help me how to install HP 1022n printer. This printer is in network. Thanks Daya (1 Reply)
Discussion started by: daya.pandit
1 Replies

7. Solaris

Help with configuring printer on Sun Solaris

I have tried and tried again, to get an HP 4700dn laserjet printer to work on a GI Sun Solaris BOX. I have gone through and added the Printer server and IP to the Host file in the /etc folder and also added the printer ip and printer name itself. when I go to print something the printer shows up in... (7 Replies)
Discussion started by: kane4355
7 Replies

8. Solaris

Sun solaris 10 Network printer.

Hello, I have a problem to install a network printer with lpadmin. (i must be install with lpadmin) I have a network printer samsung CLP-310. The network adress is static : 192.168.1.219 For LPD - printing is port number 515 thats what i have done. ping 192.168.1.219 192.168.1.219 is... (6 Replies)
Discussion started by: tinyterm
6 Replies

9. Shell Programming and Scripting

Not able to create alias in bash Sun solaris

Hello Friends, I am facing problem in creating aliases. I am working in SunOS 5.10. When I login in system i have been given ksh shell. What i am doing is that ? I am changing shell to bash then I am creating 2 alias in command prompt like: alias deploy_dir=' cd... (4 Replies)
Discussion started by: krsnadasa
4 Replies

10. Solaris

Sun-Fire-V490 Printer Issue After Upgrade of Solaris

Hey Guys I am new here, dont know if any one can assist me with this issue. I have a Sun-Fire-V490 machine that was upgraded to version 9 and patched a few months back. Problem is a few network printers managed by the server is printing an extra page that comes out before and after every print... (0 Replies)
Discussion started by: mprogams
0 Replies
lpc(8)								    Apple Inc.								    lpc(8)

NAME
lpc - line printer control program SYNOPSIS
lpc [ command [ parameter(s) ] ] DESCRIPTION
lpc provides limited control over printer and class queues provided by CUPS. It can also be used to query the state of queues. If no command is specified on the command-line, lpc will display a prompt and accept commands from the standard input. COMMANDS
The lpc program accepts a subset of commands accepted by the Berkeley lpc program of the same name: exit Exits the command interpreter. help [command] ? [command] Displays a short help message. quit Exits the command interpreter. status [queue] Displays the status of one or more printer or class queues. LIMITATIONS
Since lpc is geared towards the Berkeley printing system, it is impossible to use lpc to configure printer or class queues provided by CUPS. To configure printer or class queues you must use the lpadmin(8) command or another CUPS-compatible client with that functionality. COMPATIBILITY
The CUPS version of lpc does not implement all of the standard Berkeley or LPRng commands. SEE ALSO
cancel(1), cupsaccept(8), cupsenable(8), lp(1), lpr(1), lprm(1), lpstat(1), http://localhost:631/help COPYRIGHT
Copyright 2007-2011 by Apple Inc. 3 November 2008 CUPS lpc(8)
All times are GMT -4. The time now is 08:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy