Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Configuring Printer

    I'm using RHL 8.0. I want to use the network printer which is used by others in my office using Windows XP. How can I configure for using that network printer? Should I use smbmount for using printer?

    Help me!

  2. #2
    Found this for ya:

    3. Printing To Windows PCs
    3.1. Connecting To Windows

    Figure 2. Network Printing

    SMB and CIFS are the Windows file and printer sharing protocols. We use Samba to speak to the Windows PCs using these protocols. Before configuring CUPS we should make sure we can connect to the Windows PC with smbclient, the Samba SMB/CIFS client Figure 2.

    The following is an example of creating a connection to a Windows PC:

    smbclient -L rice -N

    added interface ip= bcast= nmask=
    Got a positive name query response from ( )
    Sharename Type Comment
    PRINTER$ Disk
    INKJET Printer
    STUFF Disk
    IPC$ IPC Remote Inter Process Communication

    The command shown asks for a list of shares on a Windows PC named "rice", with no password given. The results show a printer named "INKJET".

    If Windows naming service is unavailable you will need to specify the IP address of the Windows PC with the -I switch as in:

    smbclient -I -L rice -N

    For more information see the Samba documentation about smbclient usage.
    3.2. CUPS Configuration

    Once you have found a Windows printer you may configure CUPS. First verify that your installation of CUPS has the smb backend with the following command:

    ls -l /usr/lib/cups/backend/smb

    If this file does not exist create it by issuing the following:

    ln -s `which smbspool` /usr/lib/cups/backend/smb

    The following is an example of setting up the printer shown above:

    lpadmin -p RicePrinter -v smb://rice/INKJET -P /root/inkjet.ppd
    enable RicePrinter
    accept RicePrinter
    lpadmin -d RicePrinter

    See Section 2.3 for an explanation of the commands above. If Windows naming service is unavailable, add the switch -h followed by the IP address of the Windows PC to the first lpadmin command as in:

    lpadmin -p RicePrinter -h -i smb://rice/inkjet-P /root/inkjet.ppd

    Your printer is now ready to test. Send a file to the printer with the lp command followed by a filename, or by printing a document from within an application.
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts