On Sat, 22 Jul 2000 11:04:58 EDT, [EMAIL PROTECTED] said:

> On Sat, 22 Jul 2000, Chris Rodliffe wrote:

(Some snips for bandwidth)

>
> With this in /etc/syslog.conf, I can have all messages in 1 log:
>
> # /etc/syslog.conf
> # For info about the format of this file, see "man syslog.conf" (the BSD
> man
> # page), and /usr/doc/sysklogd/README.linux.
> #
> # NOTE: YOU HAVE TO USE TABS HERE - NOT SPACES.
> # I don't know why.
> #
> *.*                                           /dev/tty12
> *.*                                           /var/log/messages
>
> You can keep the split up logs as well, if you like.

OK, I'll do that.  What does the /dev/tty12 line mean though?

Anyway, I added both lines, (though I changed the first to 
/dev/ttyS0 which is my modem)  but still I get nothing extra between 

.... remote IP address 210.55.13.1
and 
... Terminating on signal 15

which means I guess, anything going on in between that (i.e. 
receiving pop messages and failing to send SMTP messages)
is presumably between Kmail and my ISP's SMTP server.   

> >
> > I've definitely got Kmail configured to use SMTP not sendmail, I
> suppose
> > Sendmail couldn't be swallowing it somehow?
> >
> ?? sendmail is an SMTP MTA.

I'm a bit hazy on sendmail, all I know is Kmail's setup screen has an 
option to choose between Sendmail and SMTP, but not both.  (I ticked 
SMTP).

(snip)

> >
> > Hmmm... I tried running that xauth line again, and now kppp's gone
> > back to the original magic cookie message   :(
> >
> The xauths I extrapolated that from (a little script I made to set up
> permissions for a remote X server) all had the -q option, although the
> man page says that is the default.  Try (as user)
>
> mcookie |xargs xauth add :0 .

the final dot is important, right?   ;-)

> xauth list

I got:
argo/unix:0  MIT-MAGIC-COOKIE-1  [alphabet soup]
argo:0  MIT-MAGIC-COOKIE-1  [different alphabet soup]

>
> (as root)
> xauth -q -f /home/<user>/.Xauthority extract - :0|xauth merge -
> xauth list

Umm, OK, the argo/unix:0   cookies are the same, the  argo:0 ones 
are different for user and root.    (argo's my computer of course)

> User and root should now have the same magic cookie, so the next time
> user starts X, root should be able to connect when it needs to.


Umm, no, and it Kppp bombs out with the same  

Xlib: Invalid MIT-MAGIC-COOKIE-1 key

message.  

HOWEVER, I'm running (as cr) some bastard combination of Gnome, KDE and
Windowmaker, and in looking around the Gnome menus I found an entry 
(which wasn't there in my previous installation) labelled   

RH PPP Dialler

So I clicked on it, typed in all the settings, and it worked!  

Kmail is now working exactly the same for (user) cr as it does 
for Root, including the way it doesn't send SMTP messages.  

The /var/log/messages has virtually the same listing as before, 
except that after the line 
   remote IP address 210.55.13.1  
there's another line
   primary DNS address 210.55.13.253

Why RH PPP  works when Kppp won't I'm not at all sure.   According to 
the Kppp helpfile, Kppp forks after installation, the master process 
(GUI stuff etc) drops SUID, the slave keeps SUID and does the stuff that 
needs root privs.  Maybe that's where the trouble is.

I like Kppp, but for now I guess I'll use RH PPP, which *works*, and 
very carefully document all settings before I change anything any 
further.  :)

Minicom bombs with the same messages as Kppp, by the way.  So I should 
fix it, I guess.

However, for now it seems I'm functioning with RH PPP, so all I need to do 
now is sort out the SMTP.


> >
> > Acting on the Kppp Help file suggestion, I checked my modem file
> > (I presume that means /dev/ttyS0 ) and changed it
> > from crw------- to crw-rw-rw-   which I guess means it's now
> > useable by anyone.
>
> Some things do not like a resource to be world-writable, but they will
> usually give a message before refusing to use it.  Why not follow the
> suggestion all the way and make a modem group, chgrp modem /dev/ttyS0,
> chmod 660 /dev/ttyS0, and don't forget to chmod u-s /usr/sbin/kppp

Right!  And you've just told me the command (chgrp) that my Linux
textbook forgot to mention (or I missed).  Thanks.

Hmm.   Done all that.  I now get 

Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to server

I think (extrapolating from your comments) it may be a problem in the 
ownership of Xwindows, rather than with  Kppp or pppd.  In my previous 
installation, 'startx' tried to load everything twice over (like, two
Gnome panels for instance), the new installation cured _most_ of that 
but some complication may have survived when I copied the /home/cr
directory across.  

I can leave that till later, though.

(snip)

> >
> > Since _both_ files are in the same directory with the same permissions
> > and ownership (root), I don't know why kppp recognises me as user
> > while pppd ignores me.  I have no idea if that's relevant.
> >
> /usr/sbin is not normally in the PATH for anyone but root.  Maybe there
> is a symbolic link from /usr/bin/kppp or /usr/X11/bin/kppp to /usr/sbin?

OK, that would explain it.  I realise that's probably basic Linux stuff
I should know but I'm definitely a newbie to Linux   :)

(snip)
> >
> > And my Acorn, of course, is totally Microsoft free.   :)
> >
> What is an Acorn?  That is one I missed.

Is a brief digression permitted in this list?  It's an English 
computer.  With Acorn's own design of RISC CPU (the ARM chip), 
Mac-like (but better IMO) GUI, and a beautiful Basic with 
built-in assembler.  Very tight efficient code, the whole 
OS plus Basic plus all other system utilities lives in a 2MB ROM!

Sold in England, Australia, NZ and Germany but never USA 
so far as I know.  Extremely reliable, but it's sort of 
died now, swamped by cheap PC's.

Acorn first made the BBC Model B, 6502-based and with lots of 
ports etc which the manual explained fully how to program - 
easy to use and a real hacker's machine.  This is probably 
why the Acorn world was a bit like the Linux one, enthusastic, 
and small software tended to be free rather than shareware as 
in the DOS world.  You didn't have to _buy_ expensive development 
kits to write it!

I hope this digression wasn't too long?    :)

> >
> > Many thanks for the pointers - I've found the problem with
> troubleshooting
> > Linux is not lack of information, but (surveys the 4" stack of HOWTO
> and
> > other printouts on his desk)  finding the piece that applies.
> >
> man -k (AKA apropos) is your friend.
>
> > I really am impressed by how quick to help people are on this list.  I
> > owuld have loved to report success, but not so far....
> >
> >
> > Chris
> >
> >

> If you get fed up with kppp and want to run pppd barefoot, have a look
> at the pppd micro-howto at
>
> http://nwonkni.org/micro-howtos/
>
> It is really quite easy.  I haven't ever managed to plough all the way
> through the real ppp howto.

Thanks, but RH PPP seems to have relieved me of that necessity  :)

What I need to find now is how to log _all_ the ppp traffic between 
Kmail and my ISP.  

> Lawson
>
> Installation is performed in the reverse order of removal.
>                     - British Leyland shop manual
>

ROTFL!   As a past owner and hacker of several BL cars, I understand 
and sympathise  :)

Chris


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to