Make sure it is started at next reboot using:
chkconfig cups on
You also need to make sure that there is a link to smbspool in the CUPS
backend directory:
# ls al /usr/lib/cups/backend/smb
lrwxrwxrwx 1 root root 21 Mar 1 12:34 /usr/lib/cups/backend/smb >
../../../bin/smbspool
You can verify smb support in CUPS using this command:
# lpinfo v | grep smb
network smb
You can create a new printer in two ways:
Using the
lpadmin
command
Using the CUPS Web interface
We describe both methods in detail.
Create printer using lpadmin command
You can create a printer from the command line. This enables scripted creation
of many printers. This means that creation of domain printers can be
incorporated into a login profile, such that users do not have to create printers by
hand on their client.
To create the printer on the command line we use the following command:
lpadmin p printer1 E v smb://Administrator:*****@SMB3LAB26/printer1 D
"printer1 in AD6380 example domain"
You need to change the fields to the names in your own domain. The first
printer1 is the local printer name and the second printer1 is the name of the
printer share. The server SMB3LAB26 is the print server. If the printer share is
available for everyone, you can leave out the user name and password in the
smb: URL. Since using a user protected printer share will expose passwords in
scripts and login profiles, the best practice is to make printer shares available for
everyone.
You can also add the m option to set the model. Or use the l option to set a
location.
148
Linux Client Migration Cookbook A Practical Planning and Implementation Guide for Migrating to Desktop
footer
Our partners:
PHP: Hypertext Preprocessor Cheap Web Hosting
JSP Web Hosting
Ontario Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Hosting
Cheapest Hosting
Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved