On 22-Mar-2001 Jeff Malka wrote: [snip] > Anyway when I try to install a printer under kups it won't let me > saying it can detect no parallel ports. Yet in /dev there are files > named lp0, lp1 and lp2. So it is a matter of cups not seeing my > parallel port. Ditto. > Then I had a brainstorm that may be the clue to the problem based on > the error message above. > > Shortly after I installed Mandrake 7.2, I wanted to customize it and > changed the default name "localhost.localhost" (which would show up on > the top of some utility apps) to "Jeff_PC". > > Now, when I enter in a browser the URL http://localhost:631 it could > not find the cups page. BUT, when I tried http://jeff_pc:631/admin, > that opened up the admin page for cups. So, maybe cups is not working > because it's files are hardwired to look for "localhost" where now I > have "Jeff_PC". Yep, had the same problem originally. > Problem is I no longer remember how I changed the localhost name or > what the original default was (localhost or localhost.localhost). I do > recall that Drakeconf accepted the change but did not implement it and > I had to change an ascii config file somewhere. > > Anyone able to help me out of this muddle I got myself in? [snip] You're on the right track. Note that I no longer use cups for several reasons, but when I did get it working the problem was indeed a hostname conflict. Your starting point would be /etc/hosts. On a standalone machine, after the initial install, it will look like: 127.0.0.1 localhost.localdomain localhost the format being <loopback address | hostname | alias or nickname> Yours might now look like: 127.0.0.1 localhost.localdomain Jeff_PC or perhaps: 127.0.0.1 Jeff_PC.localdomain Jeff_PC (I'm not sure just what the Mandrake tool changes) Note that all the network services read this file on boot up and modify their own config files accordingly. Personally, I suspect CUPS screws up in this regard: I had to explicitely specify the hostname in /etc/cups/cupsd.conf to get things working. This also requires restarting cups as root: # /etc/rc.d/init.d/cups restart Be careful, though, if you plan on manually changing /etc/hosts without rebooting. You would have to restart networking, and perhaps other individual networking services ... postfix comes to mind. # /etc/rc.d/init.d/network restart Although I despise rebooting, changing the hostname is one time when it can save some headaches. Also, when you run Kups, there's a menu item "configure hosts" where you can enter the hostname. Even when I got that right, I could not configure my printer via Kups ... same crap as you got: "no parallel port on this computer" nonesense. The web tool, however, did find lp0 (lpt1) no problem. I think kups is broken ... it seems to think lpt1 is lp1 even though your parallel port devices start at lp0. Hopefully the above hints are sufficient for you to get cups working. Please log everything you try, and if you succeed, please tell us exactly what you did to get it working. Thanks. b5dave. --------- 22-Mar-2001 22:56:09 ---------
