1. Edit the cups configuration file by first running the following command on your server:
sudo nano /etc/cups/cupsd.conf2. Your first edit to the file is to make the section that looks like:
# Only listen for connections from the local machine.look like this:
Listen localhost:631
Listen /var/run/cups/cups.sock
# Only listen for connections from the local machine.3. You then want to change the sections that looks like this:
Port 631
Listen /var/run/cups/cups.sock
< Location / >so they look like this:
# Restrict access to the server...
Order allow,deny
< /Location >
< Location /admin >
# Restrict access to the admin pages...
Order allow,deny
< /Location >
< Location /admin/conf >
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
< /Location >
< Location / >4. Finally, restart cups with the following:
# Restrict access to the server...
Order allow,deny
Allow all
< /Location >
< Location /admin >
# Restrict access to the admin pages...
Order allow,deny
Allow all
< /Location >
< Location /admin/conf >
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
Allow all
< /Location >
sudo /etc/init.d/cupsys restart5. You should now be able to log into cups on your server with:
http://yourserverip:631Note that when you change something, it may tell you that you need to add a certificate to firefox. Do so by clicking the add/get certificate button at the bottom of the firefox error message page. It will also tell you that to change stuff, you need to use the "https" version of the page instead of "http" so just go to:
https://yourserverip:631You might also have to open/port forward port 631.
Sources:
Ubuntu forums post
Ubuntu Community Docs on Network Printing
5 comments:
Thanks!
It was very helpful and now my cups server is working from remote pc.
Thanks! This was helpful.
An addition would be that instead of doing "Allow from all", you can use "Allow from @LOCAL" and it restricts access to your local network.
thanks worked like a charm. I now access my printer from work so when my wife has a problem printing from her xp laptop I can just restart printer or whatever without having to explain it to her.
Thk!!!
You make my day. Thanks.
Post a Comment