LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-29-2003, 03:43 PM   #1
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Rep: Reputation: 15
Network Printer on Solaris 8


Is there a way to setup a network printer on Solaris. I cannot find a way to input the IP address for the printer. I can do it with Linux but is it possible with Solaris? I am using Solaris 8. Any suggestions will be greatly appreciated. Thanks.
 
Old 01-29-2003, 06:26 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I suck at setting up printers so forgive me if this doesn't work or is wrong.. but here goes:

You can usually add a network printer with the printmgr program that comes with Solaris 8.

Usually located at /usr/sadm/admin/bin/printmgr to start it unless that is already in your path. You have to be root to start if of course.

From there you should be able to select Printer > New Network Printer

That should bring up the window to add all the settings for your network printer.
Also before you do this, you'll need to make sure you have the printer name and IP address in your /etc/inet/hosts file and also add it in your /etc/hosts file.

I think in that window you'll see Printer Name which is just the name of the printer you specified in /etc/hosts and Destination which is the actual network name and or IP address.

Hope this helps, if it does, I'll be suprised myself cause I'm going on memory here from my Solaris Class, cause I have yet to setup a printer myself on Solaris... hehe
 
Old 01-29-2003, 07:13 PM   #3
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks, I'll try this tomorrow and post the results
 
Old 01-29-2003, 07:51 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Check the man page for lpadmin for complete details, but the simplest method is something like:
lpadmin -p printername -s printer_ip!queue

For example:
lpadmin -p default -s 192.168.2.2!lp
 
Old 01-30-2003, 05:03 PM   #5
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for all the help but I still have an issue. I tried your suggestion first trickykid and I can print but there is another issue.
When I click print I get a dialogue box with the following:
request id is laserjet-bb-2 (standard input)
When I click okay the pages are printed but with 3 pages before the actual print job. The information on the 3 pages is as follows:
Page 1:
User: root
Host: hostname
Class: hostname
Job: print job number

Page 2:
########## User: root@hostname
##### Title: print job number
##### Date: Thu 14:49 jan 30, 2003
##### Job: laserjet-bb-jobnumber
#####

Page 3:
Same as Page 1

Any suggestions??
 
Old 02-06-2003, 03:46 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Look in /etc/lp/printers for your printer name. Change the banner to nobanner in the script.
 
Old 02-07-2003, 03:07 PM   #7
Pimple
Member
 
Registered: Sep 2001
Location: Houston
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
Posts: 73

Original Poster
Rep: Reputation: 15
Hi Stickman
I went to /etc/lp/printers and changed the configuration file from Banner: optional to Banner: nobanner but I am still getting the three pages before the actual print out.
 
Old 08-25-2015, 06:06 PM   #8
TomFordBSD
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Rep: Reputation: Disabled
FIX

Quote:
Originally Posted by Pimple View Post
Is there a way to setup a network printer on Solaris. I cannot find a way to input the IP address for the printer. I can do it with Linux but is it possible with Solaris? I am using Solaris 8. Any suggestions will be greatly appreciated. Thanks.
Use this link.
https://wpollock.com/AUnix1/SolarisPrintSetup.htm

Also, specify host name and ipaddress in /etc/hosts x.x.x.x server name

You can check the config file in /etc/printer.conf to see if its there

If you run into any issues check the log file, if there is an issue with cannot find a file. Create an s link.

ln -s /var/spool/lp/tmp/<servername> /var/spool/lp/temp
 
Old 08-26-2015, 03:00 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Welcome to LQ!

You are answering a 12 years old post. I hope Pimple had the issue fixed in the meantime ...
 
1 members found this post helpful.
Old 08-26-2015, 01:16 PM   #10
TomFordBSD
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Rep: Reputation: Disabled
My post is actually to help anyone that had an issue, not really geared towards one person.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network on solaris A-fil Solaris / OpenSolaris 15 11-19-2005 10:06 PM
Trying to connect to Solaris 8 printer server minghia Fedora 0 06-25-2004 03:46 AM
Xante Printer Network Printer, Slack 9.1 Conpen2000 Linux - Hardware 0 01-12-2004 10:08 PM
Printer sharing with Windows and Solaris puzz_1 Linux - Newbie 3 06-04-2003 07:53 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration