Thank you so much for responding. It is terribly lonely when you are new to
linux and it is not cooperating. I hate having to go back to NT4 to get
serious work done just because I cannot print in cups.
I did solve the hostname problem and changed it back to the default
(localhost.localdomain). But that is not the whole problem with my cups.
Although that change now lets me access http://localhost:631 cups will still
not let me add a printer.
HOWEVER, I now have another lead but do not know how to follow it correctly:
I may have mentioned that in all my attempts to get cups to work, on 2
fleeting occasions, kups did show that a local printer was correctly
installed at lp0 !!!! I had indeed installed a printer when I installed
Mandrake 7.2 but it just would not show up as present when I start up kups
and I could not add a printer in kups because it would tell me that it could
not find any parallel ports. At first I did not know what caused the
installed printer to correctly show up during those 2 fleeting occasions.
But, by dint of trying and trying (and numerous hours wasted), I suddently
could reproduce it!
****If I am connected to the internet via dialup modem on my standalone not
networked pc, the printer shows up as installed! However, as soon as I go
off line, the installed printer dissappears.
So, - my cups system only seems to find the printer if I am connected to the
internet but not otherwise. Does this give anyone a hint where it can help
me get cups to work?
Incidentally the way to change hostname is via harddrake/linux
config/network, but to get the change to be really effective I need to
reboot (or restart something if I knew how). The default name originally
installed by Mandrake installation was localhost.localdomain.
Someone please help me. I cannot believe I am the only one having this
problem with cups.
Thanks.
Jeff Malka <[EMAIL PROTECTED]>
Registered Linux user 183185
----- Original Message -----
From: b5dave <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 10:56 PM
Subject: RE: [expert] localhost address and cups conflict
>
> 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
> ---------
>
>