Link to home
Start Free TrialLog in
Avatar of san6ind
san6ind

asked on

How do i access Windows printer from my Solaris Machine

Hi,

I have a solaris 8 Operating system and its on a different network , i would like to access a Windows network printer which is on a different network from my solaris machine. I am able to ping the windows network from my solaris machine . Can anybody pls help me in this case.
Avatar of Otetelisanu
Otetelisanu

Write in the /etc/hosts your Printer

example

printer  210.200.20.20

start the

admintool

Browse
Printers
Edit
Add
Access to Printer
Printer Name : Name
Printer Server: printer (from /etc/hosts)
Description



Aplly





Hi san6ind,
Check if your printer supports lpd and is pingable. If yes, do a test:

echo 'Hello, World!' | a2ps -P 1.2.3.4:1.2.3.4

(this assumes your printer knows PS. But all decent printers do.)

Cheers!

Stefan
Hi,

   First, your Windows printer server need to have "TCP/IP printer server" service installed and started (use "Start--> run" and
services.msc to check).

   Write down the share name of the network printer and the Windows printer server's hostname.

   Then on Solaris machine, run "admintool" as root (in Xwindow), go to "Browse" tag, choose "Printers".
From "Edit--> Add--> Access a printer", type in the printer sharename and the printer server's hostname and click ok.

   Test with "lpr -P<printer sharename> <test filename>"

Wesly
Sorry the admintool is the same as Otetelisanu's statement.

Wesly
Avatar of yuzh
Based on Otetelisanu's comment (http#12472105) for adding a remote printer to
the Solaris box, you also need to check your /etc/nsswitch.conf  file to make sure that your box using files as well, files must in the hosts list, eg:

hosts:     files dns [NOTFOUND=continue]

AND

You need to make sure your Windows printer server (w2k, Win 2003 or Win XP),
has the optional package (Print Services for UNIX, which comes with LPR for w2k, winXP)
installed for handling the printer jobs from Unix boxes.




Depends - if your printer is a network printer with built-in LPD server, it's no problem.
> optional package (Print Services for UNIX, which comes with LPR for w2k, winXP)
I think it is the same as "TCP/IP printer server" and just show up in different termology. Microsoft change the term from version to version.

> if your printer is a network printer with built-in LPD server
I think use single printer server to handle the printing queue will be better. Use built-in LPD server on printer might cause the
print queue congestion and you don't know where the print job summit from. Let Windows printer server handle the queue is
easier for queue management.

Wesly
Hi,

  Otetelisanu's solution only provide one part on Solaris.
Without "Print Services for UNIX" or "TCP/IP printer server" installed and started on
Windows server, which is not included in default installation, you can not
add the printer on Solaris.

Regards,

Wesly
if the /etc/nsswitch.conf  file look like :
  hosts:     nisplus dns [NOTFOUND=return] files
It will not look at files at all !
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial