Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Print server

  1. #1
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    107
    Distro
    Ubuntu 14.04 Trusty Tahr

    Difficulty Administering/configuring CUPS Server edition

    After fighting with 9.10, I have done a clean install of Ubuntu Server 9.04. Currently just trying to get the printing to work.

    I've looked at a couple of other thread about getting printing to work from the Ubuntu Server edition, but they are dated.

    http://ubuntuforums.org/showthread.php?t=310450

    http://ubuntuforums.org/showthread.php?t=240282

    For example, in the first thread it says to do this:
    Code:
    adduser cupsys shadow
    And it says
    Code:
    adduser: The user `cupsys' does not exist.
    Overall, my problem is that I can't get the web front to pull up when I try to administer CUPS. It tells me the web page isn't available when I do the https://nameofmyserver:631 Is there any more recent tutorials or help threads about setting up printers from the command line?

    Thank you

    Jason
    Last edited by p2ranger; November 17th, 2009 at 12:13 AM.

  2. #2
    Join Date
    Sep 2009
    Location
    Seabrook, Texas, U.S.A.
    Beans
    39
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Print server

    I don't think I can help with command line issues with cups. However, you might try installing webmin. It makes it very easy to administer your server over the network, and can configure printers, samba shares, nfs exports, apache server, all kinds of things.

    Grab the latest from here:

    http://prdownloads.sourceforge.net/webadmin/

    Currently, it is this:

    http://sourceforge.net/projects/weba...l.deb/download

    Copy that file to your server, then run:

    sudo dpkg -i webmin_1.490_all.deb

    point your browser at https://your-server-ip-here:10000/

    enjoy.

  3. #3
    Join Date
    Sep 2009
    Location
    Seabrook, Texas, U.S.A.
    Beans
    39
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Print server

    heh. Sorry. you are running webmin it seems. I should read better.

  4. #4
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    107
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Print server

    Thanks for the tip, but using webmin, I'm not successful in adding a printer there either.

    Jason

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

    Re: Print server

    It has to do with the default config file for cupsys being completely stupidly locked down. If you open it up and just delete away all the restrictions, it works fine

    See:
    http://bozosort.com/content/?p=19

  6. #6
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    107
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Print server

    Well that is interesting, thanks. I tried it, but when I try to pull it up in a web browser I get the 403 Forbidden page. The permissions for cups look like this though:

    Code:
    -rwxr-xr-x 1 root root 2526 2009-10-31 17:32 /etc/init.d/cups
    are there some permissions I need to change somewhere so that I can get that to come up? This is farther than previously where it just told me that it wasn't there.

    Thanks

    Jason

  7. #7
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    107
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Print server

    Well, administering CUPS by going to http://server:631 still gives me the 403 Forbidden page.

    Using Webmin, it appears there, but has no print driver. Tried to print a test page and it gives it as a failure. I'm not sure how to add the print driver for it. Its an HPlaserjet 1022

    This part of adding a printer was so much easer when I was trying it all out on the Desktop install.

    The printer shows up from windows when I browse for the printer, but when I try to install it as a printer for windows, it says there's no printer driver installed. Of course, because there's no printer driver that the printer on the linux server is pointing towards.

    I sure wish the documentation was more straight forward/easier to find.

    Jason

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

    Re: Print server

    I promise you, the problem is still in the config file.

    Did you replace /etc/cups/cupsd.conf with the following:

    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
     </Location>
    <Location /admin>
      # Allow remote administration...
      Order allow,deny
     #  Allow @LOCAL # again, on a LAN, you could enable this
    </Location>
    <Location /admin/conf>
      # Allow remote access to the configuration files...
      Order allow,deny
      # Allow @LOCAL # LAN? enable if you want
    </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
      </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>
    and edit the bolded lines to fit your LAN?

  9. #9
    Join Date
    Oct 2009
    Location
    Sandy, UT
    Beans
    107
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Print server

    I did put that in as the cupsd.conf file. I'm assuming the numbers in there are right. I'm assuimg that the IP addresses it lists are for the range of all the ip's that are in the 192.167.1.X range where X is all the numbers that can be put in for that holder (forgive me, I can't remember the range of numbers that can hold that spot). My server is 192.168.1.120

    It still tells me error 403 Forbidden when I try to pull up the web front to administer CUPS.

    I even tried changing it to the specific IP address for my laptop that I'm using to try to get to it, and it still gives me the same problem.

    Ideas?

    Thanks

    Jason

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

    Re: Print server

    Is the 403 coming from Apache (or whatever webserver you're using) or is it the 403 from cupsys (with the beige background) ?

    Is this a headless server? If not, try loading the page from a webbrowser on the server itself.

    Also, are you restarting the cupsys daemon every time you update the cupsd.conf file?

    The command for that is:

    Code:
    sudo /etc/init.d/cupsys restart

Page 1 of 2 12 LastLast

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
  •