Wednesday, November 6, 2013

Remote printing.

Printing on linux is so much fun. Used a web browser for accessing Cups to set up a printer on my server from my desktop.  The Cups software easily found the network printer. and after I chose a driver, the driver  was installed without ever having to load a single cd or restart a computer. Was printing in just a few minutes.
You need to change a  few settings. First back up your settings file.

$ sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original

Then you need to write protect the file.

$ sudo chmod a-w /etc/cups/cupsd.conf.original

And lastly you need to add settings in the settings file to let the interface be accessible.

[code]
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
Listen 192.168.1.41:631 # Listen on the LAN interface, Port 631 (IPP) local host  address

# Show shared printers on the local network.
Browsing Off
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server... (to local network)

Order allow,deny
Allow from 192.168.1.*


[/code]

Just change whatever you need to. Then with your browser go to 192.168.1.41:631

No comments:

Post a Comment