Find the answer to your Linux question:
Results 1 to 3 of 3
If I reboot my machine or restart cups manually with Code: % /etc/rc.d/init.d/cups restart my printer gets lost Code: % lpq lp: error - PRINTER environment variable names non-existent destination ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Los Angeles
    Posts
    40

    CUPS loses printer setup between restarts


    If I reboot my machine or restart cups manually with
    Code:
    % /etc/rc.d/init.d/cups restart
    my printer gets lost
    Code:
    % lpq
    lp: error - PRINTER environment variable names non-existent destination "hp"!
    and I have set it back up with
    Code:
    % /usr/sbin/lpadmin -p hp -E -v parallel:/dev/lp0 -m HP-LaserJet_4_Plus-ljet4.ppd
    is this supposed to happen? I figure I could fix it by altering the start sequence in /etc/rc.d/init.d/cups, but I'd like to know if there is a more robust way to do it.

    Peter


    NITTY-GRITTY INFO
    the ppd file is in /usr/share/cups/model and I restarted the daemon with
    Code:
    % killall -HUP cupsd
    I'm running FC4-2.6.11-1.1369 with cups-1.1.23-15

  2. #2
    Just Joined!
    Join Date
    Jan 2005
    Location
    Los Angeles
    Posts
    40

    a solution?

    I noticed that my /etc/cups/printers.conf file was empty. Shouldn't lpadmin or the web interface modify that file for me??

    I manually added the following lines:
    Code:
    <DefaultPrinter hp>
    Location Under the table
    Info 5 Dollar HP LaserJet 4 Plus
    DeviceURI parallel:/dev/lp0
    </Printer>
    I assume that /etc/cups/ppd/hp.ppd points cups to the ljet4 ppd file, but I'm not sure how that got created in the first place (perhaps a previous call to lpadmin??)

    peter

  3. #3
    Just Joined!
    Join Date
    Mar 2006
    Posts
    2
    I had he exact same problem in FC4 (2.6) KDE, if I used Configure inside KDE, it would not save the printer configuration to /etc/cups/printers.conf.

    I had to add this to /etc/cups/printer.conf to add one of my network printers:

    <DefaultPrinter hp_8100n>
    Info HP LaserJet 8100n
    Location Communications Center
    DeviceURI socket://x.x.x.x:9100
    State Idle
    StateMessage HPLJ8100n is idle.
    Accepting Yes
    </Printer>

    After I added this, I restarted cups, and the printer shows up, then I had to go into Configure - KDE Control, and change the print driver from raw to the coresponding HP 8100n driver, oddly enough after another cups restart, the new driver info was retained.

    Scott

Posting Permissions

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