Problem setting up printer on laptop - Mandriva

This is a discussion on Problem setting up printer on laptop - Mandriva ; On Sun, 13 Jan 2008 17:31:07 +0000, I wrote: > I'm thinking of temporarily substituting your version of > /etc/cups/cupsd.conf for mine to see if that will work. Have now tried that (including "Allow from All") but the laptop could ...

+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 21 to 40 of 51

Thread: Problem setting up printer on laptop

  1. Re: Problem setting up printer on laptop

    On Sun, 13 Jan 2008 17:31:07 +0000, I wrote:

    > I'm thinking of temporarily substituting your version of
    > /etc/cups/cupsd.conf for mine to see if that will work.


    Have now tried that (including "Allow from All") but the laptop
    could not find the printer on the local network.

    (Went back to own version; laptop does now find printer, but
    print attempts fail as before ("Client-error-not-authorized")

    I did remember to do "service cups restart" at each change.

    (Tried your "service cupsd restart" but that gives
    "cupsd not found").

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  2. Re: Problem setting up printer on laptop

    Maurice Batey wrote:

    > (Tried your "service cupsd restart" but that gives
    > "cupsd not found").


    Different names on different distros. I'm on a Suse system atm.

    The only other thing I can think of offhand is to add your username to the
    lpadmin group and see if that makes a difference. (Might be called
    something else on Mandriva.) After that, I'm all out of ideas.

    --
    BackPacker


  3. Re: Problem setting up printer on laptop

    On Sun, 13 Jan 2008 18:53:33 +0000, I wrote:

    > laptop does now find desktop printer, but attempt

    to print (from kWrite) gives:

    ----------------------------------------------------------------
    "A print error occurred. Error message received from system:

    cupsdoprint -P 'HPDeskJet510' -J 'Untitled' -H '192.168.0.2:631'
    -U 'mab' -o ' copies=1
    multiple-document-handling=separate-documents-collated-copies
    orientation-requested=3'
    '/home/mab/tmp/kde-mab/kdeprint_K492hZN9' : execution failed with
    message:
    client-error-not-authorized "
    ---------------------------------------------------------------

    Is there anyone in here who can suggest the meaning of that
    error report, please?

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  4. Re: Problem setting up printer on laptop

    On Sun, 13 Jan 2008 16:45:33 -0500, Maurice Batey wrote:

    > message:
    > client-error-not-authorized "


    Just looking through the google results, on a search of the above message.

    Check out http://linux.derkeiler.com/Mailing-L.../msg01604.html

    Ensure you have the ppd file, for the printer, on both systems, and check
    then, if needed check try the lppasswd command.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  5. Re: Problem setting up printer on laptop

    Maurice Batey wrote:
    > On Sun, 13 Jan 2008 18:53:33 +0000, I wrote:
    >
    >> laptop does now find desktop printer, but attempt

    > to print (from kWrite) gives:
    >
    > ----------------------------------------------------------------
    > "A print error occurred. Error message received from system:
    >
    > cupsdoprint -P 'HPDeskJet510' -J 'Untitled' -H '192.168.0.2:631'
    > -U 'mab' -o ' copies=1
    > multiple-document-handling=separate-documents-collated-copies
    > orientation-requested=3'
    > '/home/mab/tmp/kde-mab/kdeprint_K492hZN9' : execution failed with
    > message:
    > client-error-not-authorized "
    > ---------------------------------------------------------------
    >
    > Is there anyone in here who can suggest the meaning of that
    > error report, please?


    Looks like a permissions problem.
    Check the permissions on files in
    /etc/dbus-1/system.d

    All should be set to
    -rw-r--r-- 1 root root

    Cheers!

    jim b.

    --
    UNIX is not user-unfriendly; it merely
    expects users to be computer-friendly.

  6. Re: Problem setting up printer on laptop

    Maurice Batey writes:

    >On Sun, 13 Jan 2008 18:53:33 +0000, I wrote:


    >> laptop does now find desktop printer, but attempt

    >to print (from kWrite) gives:


    >----------------------------------------------------------------
    >"A print error occurred. Error message received from system:


    >cupsdoprint -P 'HPDeskJet510' -J 'Untitled' -H '192.168.0.2:631'
    >-U 'mab' -o ' copies=1
    >multiple-document-handling=separate-documents-collated-copies
    >orientation-requested=3'
    >'/home/mab/tmp/kde-mab/kdeprint_K492hZN9' : execution failed with
    >message:
    > client-error-not-authorized "
    >---------------------------------------------------------------


    > Is there anyone in here who can suggest the meaning of that
    >error report, please?


    Try
    lp .bashrc
    first to see what it does.
    Look in the log files
    /var/log/cups/*
    on the server and on the client to see if there are any hints.



    >--
    >/\/\aurice
    >(Remove 'removethis.' to reply by email)



  7. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 01:22:03 +0000, Unruh wrote:

    > Try
    > lp .bashrc
    > first to see what it does.


    That was interesting. It returned:

    "request id is HPDeskJet5150-34 (1 file(s))"

    and then the following text was printed out:

    "# .bashrc
    # User specific aliases and functions
    # Source global definitions
    if [ -f /etc/bashrc ]; then
    . /etc/bashrc
    fi"

    Does that help?!

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  8. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 01:22:03 +0000, Unruh wrote:

    > Look in the log files /var/log/cups/*


    On the server, nothing w.r.t. to the 'print' goes in
    error_log, although cups restart adds the line:

    "E [14/Jan/2008:16:52:46 +0000] Unable to set ACLs on root
    certificate "/var/run/cups/certs/0" - Operation not supported"

    In access_log, the laptop 'print' adds the following line:

    "192.168.0.2 - - [14/Jan/2008:16:54:41 +0000] "GET
    /ppd/HPDeskJet5150.ppd HTTP/1.1" 200 23521 - -"


    On the laptop, the only 'error' line just repeats the
    "client-error-not authorized" message after several apparently
    successful retrievels of printer attributes.

    --
    /\/\aurice

    (Remove 'removethis.' to reply by email)


  9. Re: Problem setting up printer on laptop

    On Sun, 13 Jan 2008 17:49:23 -0500, David W. Hodgins wrote:

    > Check out http://linux.derkeiler.com/Mailing-L.../msg01604.html


    Took a look, but that was to do with installing a printer, not
    trying to print across a LAN wireless connection.

    The printer is already installed on the desktop, but not on the
    laptop (which won't permit installation - presumably because
    there is no printer attached).

    > Ensure you have the ppd file, for the printer, on both systems,


    I don't understand what is meant by 'ppd file' here, and
    anyway there is no printer installed on the laptop.

    > and check then, if needed check try the lppasswd command.


    You mean the command shown in that newsgroup:

    "lppasswd -a -g sys [Enter password twice]"?

    OK - tried that (but it rejected my username because it was less
    than 6 characters, so used 'root', which it did accept!).

    However, the laptop print still fails as before....

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  10. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 00:59:19 +0000, Jim Beard wrote:

    > Check the permissions on files in /etc/dbus-1/system.d
    >
    > All should be set to -rw-r--r-- 1 root root


    Here is the result of 'ls -l' in that directory:

    -rw-r--r-- 1 root root 932 2007-08-17 18:04 avahi-dbus.conf
    -rw-r--r-- 1 root root 1632 2007-08-21 17:02 ConsoleKit.conf
    -rw-r--r-- 1 root sys 460 2007-11-19 19:55 cups.conf
    -rw-r--r-- 1 root root 2992 2007-09-25 17:06 hal.conf
    -rw-r--r-- 1 root root 1400 2007-08-29 10:37 mandi.conf
    -rw-r--r-- 1 root root 419 2007-09-19 03:56 power-policy.conf
    -rw-r--r-- 1 root root 522 2007-02-20 16:25 s2u.conf
    -rw-r--r-- 1 root root 453 2007-12-04 11:47 skype.conf

    cups.conf appears to disobey your rule! Is that the problem?

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  11. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 17:52:43 +0000 I wrote:

    > it rejected my username because it was less
    > than 6 characters, so used 'root', which it did accept!).


    That should have read:

    "because the *password* was less than 6 characters"

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  12. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 17:52:43 +0000, Maurice Batey wrote:

    > "lppasswd -a -g sys [Enter password twice]"?


    Changed my password and tried that again - accepted.

    But still the print from laptop fails - as before...

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  13. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 12:52:43 -0500, Maurice Batey wrote:

    > "192.168.0.2 - - [14/Jan/2008:16:54:41 +0000] "GET
    > /ppd/HPDeskJet5150.ppd HTTP/1.1" 200 23521 - -"


    Is HPDeskJet5150.ppd is in /etc/cups/ppd, on both systems?

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  14. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 13:45:54 -0500, David W. Hodgins wrote:

    > Is HPDeskJet5150.ppd is in /etc/cups/ppd, on both systems?


    Only desktop; that file is empty on laptop.

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  15. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 19:38:39 +0000, I wrote:

    > that file is empty on laptop.


    So I copied the .ppd file from the desktop and into the
    laptop's /etc/cups/ppd/ directory.

    Restarted CUPS on both machines: Laptop print still fails as
    before...

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  16. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 15:02:45 -0500, Maurice Batey wrote:

    > So I copied the .ppd file from the desktop and into the
    > laptop's /etc/cups/ppd/ directory.
    > Restarted CUPS on both machines: Laptop print still fails as
    > before...


    Ok. Just an idea.

    I'm getting a little lost, as to what the current state is.

    Can you post the current /etc/cups/cupsd.conf from both the laptop, and
    desktop, the /etc/shorewall/rules.drakx, from the desktop, and the
    /etc/cups/printers.conf, from both.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  17. Re: Problem setting up printer on laptop

    Maurice Batey wrote:
    > On Mon, 14 Jan 2008 00:59:19 +0000, Jim Beard wrote:
    >
    >> Check the permissions on files in /etc/dbus-1/system.d
    >>
    >> All should be set to -rw-r--r-- 1 root root

    >
    > Here is the result of 'ls -l' in that directory:
    >
    > -rw-r--r-- 1 root root 932 2007-08-17 18:04 avahi-dbus.conf
    > -rw-r--r-- 1 root root 1632 2007-08-21 17:02 ConsoleKit.conf
    > -rw-r--r-- 1 root sys 460 2007-11-19 19:55 cups.conf
    > -rw-r--r-- 1 root root 2992 2007-09-25 17:06 hal.conf
    > -rw-r--r-- 1 root root 1400 2007-08-29 10:37 mandi.conf
    > -rw-r--r-- 1 root root 419 2007-09-19 03:56 power-policy.conf
    > -rw-r--r-- 1 root root 522 2007-02-20 16:25 s2u.conf
    > -rw-r--r-- 1 root root 453 2007-12-04 11:47 skype.conf
    >
    > cups.conf appears to disobey your rule! Is that the problem?
    >


    Actually, that should make no difference, as cups
    should be running set-user-id as root rather than
    set-group-id as root when calling cups.conf, but
    I would change it to root just for grins.

    Cheers!

    --
    UNIX is not user-unfriendly; it merely
    expects users to be computer-friendly.

  18. Re: Problem setting up printer on laptop

    On Tue, 15 Jan 2008 00:58:44 +0000, Jim Beard wrote:

    > I would change it to root


    Did that. Restarted CUPS. Laptop print still fails as before... :-((

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


  19. Re: Problem setting up printer on laptop

    On Mon, 14 Jan 2008 16:42:35 -0500, David W. Hodgins wrote:

    > Can you post the current /etc/cups/cupsd.conf from both the laptop, and
    > desktop,

    ======================/etc/cups/cupsd.conf on=====DESKTOP====
    #
    # "$Id: cupsd.conf.in 6720 2007-07-25 00:40:03Z mike $"
    #
    # Sample configuration file for the Common UNIX Printing System
    (CUPS)
    # scheduler. See "man cupsd.conf" for a complete description
    of this
    # file.
    #

    # Log general information in error_log - change "info" to "debug"
    for
    # troubleshooting...
    LogLevel info

    # Administrator user group...
    SystemGroup lpadmin root
    Group sys
    User lp


    # Only listen for connections from the local machine.
    Listen *:631
    Listen /var/run/cups/cups.sock

    # Show shared printers on the local network.
    Browsing On
    BrowseAddress @LOCAL
    BrowseAddress All
    BrowseOrder Allow,Deny
    BrowseAllow @LOCAL
    BrowseAllow 192.168.0.3

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

    # Restrict access to the server...

    Order Deny,Allow
    Deny From All
    Allow From 127.0.0.1
    Allow from 127.0.0.2
    Allow From 192.168.0.3
    Allow From @LOCAL
    Allow From localhost


    # Restrict access to the admin pages...

    Allow @LOCAL
    Encryption Required
    Order allow,deny
    Allow localhost


    # Restrict access to configuration files...

    Allow @LOCAL
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    Allow localhost


    # Set the default printer/job policies...

    # Job-related operations must be done by the owner or an
    administrator...
    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>
    Require user @OWNER @SYSTEM
    Order deny,allow


    # All administration operations require an administrator to
    authenticate...
    CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow


    # All printer operations require a printer operator to
    authenticate...
    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


    # Only the owner or an administrator can cancel or authenticate
    a job...

    Require user @OWNER @SYSTEM
    Order deny,allow



    Order deny,allow



    #
    # End of "$Id: cupsd.conf.in 6720 2007-07-25 00:40:03Z mike $".
    #
    #BrowseDeny All
    ------------------------END of /etc/cups/cupsd.conf on DESKTOP

    =============================== /etc/cups/cupsd.conf on LAPTOP
    #
    # "$Id: cupsd.conf.in 6720 2007-07-25 00:40:03Z mike $"
    #
    # Sample configuration file for the Common UNIX Printing System
    (CUPS)
    # scheduler. See "man cupsd.conf" for a complete description
    of this
    # file.
    #

    # Log general information in error_log - change "info" to "debug"
    for
    # troubleshooting...
    LogLevel info

    # Administrator user group...
    SystemGroup lpadmin root
    Group sys
    User lp


    # Only listen for connections from the local machine.
    Listen *:631
    Listen /var/run/cups/cups.sock

    # Show shared printers on the local network.
    Browsing On
    BrowseAddress @LOCAL
    BrowseOrder allow,deny
    BrowseAllow all

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

    # Restrict access to the server...

    Allow @LOCAL
    Order allow,deny
    Allow localhost


    # Restrict access to the admin pages...

    Allow @LOCAL
    Encryption Required
    Order allow,deny
    Allow localhost


    # Restrict access to configuration files...

    Allow @LOCAL
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    Allow localhost


    # Set the default printer/job policies...

    # Job-related operations must be done by the owner or an
    administrator...
    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>
    Require user @OWNER @SYSTEM
    Order deny,allow


    # All administration operations require an administrator to
    authenticate...
    CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow


    # All printer operations require a printer operator to
    authenticate...
    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


    # Only the owner or an administrator can cancel or authenticate
    a job...

    Require user @OWNER @SYSTEM
    Order deny,allow



    Order deny,allow



    #
    # End of "$Id: cupsd.conf.in 6720 2007-07-25 00:40:03Z mike $".
    #


    ------------------------END of /etc/cups/cupsd.conf on LAPTOP

    >the /etc/shorewall/rules.drakx, from the desktop,


    ***** That's an empty document! *****

    > and the /etc/cups/printers.conf, from both.


    ==========================================DESKTOP= ====
    # Printer configuration file for CUPS v1.3.0
    # Written by cupsd on 2008-01-14 16:13

    Info HP Deskjet 5150
    DeviceURI hp:/usb/deskjet_5100?serial=MY3AI4N1ZP7A
    State Idle
    StateTime 1200157396
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer

    ------------------end of /etc/cups/printers.conf on DESKTOP---

    ======================== /etc/cups/printers.conf on LAPTOP====

    *** No such document there ****

    ------------------end of /etc/cups/printers.conf on LAPTOP----

    /\/\aurice
    (Remove 'removethis.' to reply by email)


  20. Re: Problem setting up printer on laptop

    On Sun, 13 Jan 2008 03:40:57 +0000, BackPacker wrote:

    > opened OpenOffice, typed
    > an example paragraph, told it to print it to "lp on 192.168.1.2"


    How did you tell it to print "to lp on 192.168.1.2"?

    Nowhere on OO Writer can I find a place to specify that.
    ('Printer properties' contains "HP5150 deskjet" - no choice.)

    --
    /\/\aurice
    (Remove 'removethis.' to reply by email)


+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast