cups has okidata9.ppd.gz
lpadmin -p lpt5 -E -v socket://192.168.1.25 -m /usr/share/cups/model/okidata9.ppd.gz
http://192.168.1.37:631
add a printer
lpr
device uri: lpd://
"lpd://hostname/queue"
Get that info from the DLINK Manual: if it's an lpr printer (aka print server) use the port = Servername + port number
PS-982F1A-P1
so it must be lpd://192.168.1.25/PS-982F1A-P1
/etc/cups/cupsd.conf
# Only listen for connections from the local machine.
# Listen localhost:631
Listen *:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseAllow from 192.168.1.0/24
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)
BrowseAllow @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Allow 192.168.1.*
Order allow,deny
</Location>
# Restrict access to the admin pages...
<Location /admin>
# Encryption Required
Allow 192.168.1.*
Order allow,deny
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
# AuthType Default
# Require user @SYSTEM
Order allow,deny
</Location>
# Set the default printer/job policies...
<Policy default>
# Encryption Required
Allow 192.168.1.*
Order allow,deny
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
# AuthType Default
# Require user @SYSTEM
Order allow,deny
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Jo$
# Require user @OWNER @SYSTEM
Order allow,deny
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-De$
# AuthType Default
# Require user @SYSTEM
# Order deny,allow
Order allow,deny
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Jo$
# Require user @OWNER @SYSTEM
Order allow,deny
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-De$
# AuthType Default
# Require user @SYSTEM
# Order deny,allow
Order allow,deny
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hol$
# AuthType Default
# Require user @SYSTEM
# Order deny,allow
Order allow,deny
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Order allow,deny
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hol$
# AuthType Default
# Require user @SYSTEM
# Order deny,allow
Order allow,deny
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
# Require user @OWNER @SYSTEM
Order allow,deny
# Order deny,allow
</Limit>
<Limit All>
# Order deny,allow
Order allow,deny
</Limit>
</Policy>