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.
- 12-31-2005 #1Just 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
my printer gets lostCode:% /etc/rc.d/init.d/cups restart
and I have set it back up withCode:% lpq lp: error - PRINTER environment variable names non-existent destination "hp"!
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.Code:% /usr/sbin/lpadmin -p hp -E -v parallel:/dev/lp0 -m HP-LaserJet_4_Plus-ljet4.ppd
Peter
NITTY-GRITTY INFO
the ppd file is in /usr/share/cups/model and I restarted the daemon with
I'm running FC4-2.6.11-1.1369 with cups-1.1.23-15Code:% killall -HUP cupsd
- 12-31-2005 #2Just 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: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??)Code:<DefaultPrinter hp> Location Under the table Info 5 Dollar HP LaserJet 4 Plus DeviceURI parallel:/dev/lp0 </Printer>
peter
- 03-17-2006 #3Just 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


Reply With Quote
