Solved

How do i access Windows printer from my Solaris Machine

Posted on 2004-11-02
505 Views
Last Modified: 2013-12-21
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.
0
Question by:san6ind
    10 Comments
     
    LVL 4

    Expert Comment

    by: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





    0
     
    LVL 12

    Expert Comment

    by:stefan73
    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
    0
     
    LVL 38

    Expert Comment

    by:wesly_chen
    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
    0
     
    LVL 38

    Expert Comment

    by:wesly_chen
    Sorry the admintool is the same as Otetelisanu's statement.

    Wesly
    0
     
    LVL 38

    Expert Comment

    by: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.




    0
     
    LVL 12

    Expert Comment

    by:stefan73
    Depends - if your printer is a network printer with built-in LPD server, it's no problem.
    0
     
    LVL 38

    Expert Comment

    by:wesly_chen
    > 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
    0
     
    LVL 38

    Expert Comment

    by:wesly_chen
    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
    0
     
    LVL 38

    Expert Comment

    by:yuzh
    if the /etc/nsswitch.conf  file look like :
      hosts:     nisplus dns [NOTFOUND=return] files
    It will not look at files at all !
    0
     

    Accepted Solution

    by:
    PAQed with no points refunded (of 125)

    modulo
    Community Support Moderator
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now