Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Print server

  1. #11
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Print server

    It looks like what you get from Apache when you don't have the file permissions set correctly. One of the other posts in this thread has the file permissions. I wouldn't think I have to chmod something to 777. I'm not even real sure what it is that gets called up when you try to get that in the web browser.

    So it is a white screen. Apache is what's installed so I'm guessing that is what is serving the pages.

    Yes I have restarted the CUPS program. I've even rebooted the computer. It is headless but I have a monitor I can hook up to it. Should I try using something like links to browse to it?

    Thanks

  2. #12
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Print server

    Update

    Still not working. I used the published conf file shown earlier in this thread. Installed links text based web browser on my server (as it is a CLI machine) and still got the Forbidden error. I restored the original conf flie and I can browse to it with the links browser from that machine. Still not the solution I'm looking for, but at least CUPS does work, somewhere. Still trying to sort this out.

    Jason

  3. #13
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Print server

    Well, I'm not quite sure what all that stuff means in the file. I have a desktop version of Unbuntu 9.10 that I was using earlier as a print server and also to test somethings out on. I copied the cupsd.conf flie from it, as I knew it was allowing me to browse to administer CUPS and used it. Well, IT WORKS! I'm still not sure how to administer some stuff on there such as canceling jobs and a duplicate printer it shows. It says I have to administer it through a https: link, which it won't allow me to do. It says its unavailable. Not sure how to change the security so I can do that part of it. But below is the one I used that atleast lets me print and get to the administration page now.

    Thanks for all the help

    Jason

    Code:
    LogLevel warn
    MaxLogSize 0
    SystemGroup lpadmin
    # Allow remote access
    Port 631
    Listen /var/run/cups/cups.sock
    # Share local printers on the local network.
    Browsing On
    BrowseOrder allow,deny
    BrowseRemoteProtocols
    BrowseAddress @LOCAL
    BrowseLocalProtocols CUPS dnssd
    DefaultAuthType Basic
    <Location />
      # Allow shared printing and remote administration...
      Order allow,deny
      Allow @LOCAL
    </Location>
    <Location /admin>
      # Allow remote administration...
      Order allow,deny
      Allow @LOCAL
    </Location>
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
      # Allow remote access to the configuration files...
      Order allow,deny
      Allow @LOCAL
    </Location>
    <Policy default>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>
    <Policy authenticated>
      <Limit Create-Job Print-Job Print-URI>
      AuthType Default
      Order deny,allow
    </Limit>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
      AuthType Default
      Require user @SYSTEM
      Order deny,allow
        </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
          </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
          AuthType Default
          Require user @OWNER @SYSTEM
          Order deny,allow
            </Limit>
      <Limit All>
            Order deny,allow
              </Limit>
    </Policy>

  4. #14
    Join Date
    Jul 2007
    Location
    Austin, TX
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Print server

    Oh wow, I am so sorry..
    In my example file
    # Allow @LOCAL # if you are on a LAN you could enable this
    should have been replaced with
    Allow All

    @LOCAL just restricts access to your local network

    Now, to actually be able to configure things, you need to disable safety features like I was talking about before. For example, all those places that say "Require User" are going to give you needless troubles. Same for Authtype settings. Delete them to turn them off, and your config file will end up looking like the one I posted before.

  5. #15
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Print server

    Thanks again for your help.

    So I managed to piece together this file:

    Code:
    LogLevel warning
    SystemGroup lpadmin
    # Allow remote access
    Port 631
    Listen /var/run/cups/cups.sock
    # Show shared printers on the local network.
    Browsing On
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseRemoteProtocols CUPS
    BrowseLocalProtocols
    <Location />
      # Allow remote administration...
      Order allow,deny
    #  Allow @LOCAL # if you are on a LAN you could enable this
      Allow All
     </Location>
    <Location /admin>
      # Allow remote administration...
      Order allow,deny
    #  Allow @LOCAL # again, on a LAN, you could enable this
      Allow All
    </Location>
    <Location /admin/conf>
      # Allow remote access to the configuration files...
      Order allow,deny
    #  Allow @LOCAL # LAN? enable if you want
       Allow All
    </Location>
    <Policy default>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
        Order allow,deny
    	Allow 192.168.1.0/24
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
        Order allow,deny
        Allow 192.168.1.0/24
      </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
        Order allow,deny
        Allow 192.168.1.0/24
      </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
        Order allow,deny
        Allow 192.168.1.0/24
      </Limit>
      <Limit All>
        Order allow,deny
        Allow 192.168.1.0/24
      </Limit>
    </Policy>
    I think its working.

    On a strange note, I've noticed that it goes between the beige colored admin pages to white. The beige pages are CUPS 1.3 and white are 1.4 Hmmm... Strange

    Thanks

    Jason

  6. #16
    Join Date
    Jul 2007
    Location
    Austin, TX
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Print server

    I would actually recommend changing those Allow All's back to Allow @LOCAL if it works that way, as Allow All will allow computers outside of your network to access your cupsys pages, which you may or may not consider an issue. Worst case scenario, somebody tells your printer to print a tray full of test pages.

  7. #17
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Print server

    Yes, thank you. I was wondering about that. Thanks for clearing it up. I changed it. That's all I need is some 11 year old using up all my paper and thinking it's funny.

    Jason

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •