Results 1 to 2 of 2
Thread: Configuring Printer
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Feb 2005
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?
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=10.6.7.234 bcast=10.6.7.255 nmask=255.255.255.0
Got a positive name query response from 10.6.7.8 ( 10.6.7.8 )
Sharename Type Comment
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 10.6.7.8 -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
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 10.6.7.8 -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