Re: [Eug-lug]still dead

2002-11-03 Thread Horst Lueck
Scott, your message doesn't really provide specifics regarding the
problem(s) ((I was at the Rocky Horror Show on Thu, so I can only guess))

 When I see 
 to reboot and load from the Win95 CDROM, but it didn't take.
 I would ask: 
 - does the BIOS recognize the CDROM ?
 - can you boot from a Win95/98 floppy disk containing some CD drivers on
it, and config.sys and autoexec.bat installing the driver ?
 - did the MasterBootRecord on the hard drive get messed up? If so, boot
from Win95/98 floppy; change to C: ; issue command 'fdisk /MBR' (w/o
'quotes', also assuming the boot floppy sets the path so A:\[optional
DIR\]FDISK.EXE can be reached) -- the option '/MBR' is not really
documented by Micro$oft, so how to clearly specify target C: is a bit of a
guess.
 Using Norton/Midnight Commander you'll find some hidden 'documentation'
in the binary FDISK.EXE :

*/MBR and /CMBR cannot both be specified.
/MBR only operates on drive 1, use /CMBR for other drives.
-You must specify a drive number with /CMBR.


 Horst   -- maybe trying a new installation on Halloween simply isn't a
good idea ? 

~~

On Sat, 2 Nov 2002, Scott MacWilliams wrote:

 Hello LUGgers,
 Thanks again for all your help Thursday night. But...
 My computer is still not responding to CPR. I followed the steps
 to reboot and load from the Win95 CDROM, but it didn't take.
 I'll have to go back and get a more detailed description of what it
 said, but I haven't had a chance to get to it yet.
 THanks, 
 Scott MacWilliams
 


___
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug



[Eug-lug]Re: Tomorrow's meeting

2002-10-10 Thread Horst Lueck

Since I can't come tonight(usually Thu. is fine) here is some feedback:

 * I like the format suggestion, and the topics suggested by Ralph and
Cory. I am not sure if Ralph's email made it from herding to EugLUG ?

 * Days. We tried before to find a common denominator -- w/o luck.
   Maybe we alternate days so no one gets excluded all the time.
   Mo-Th works most the time for me
   Wkends I am often out in the woods (boating/skiing)

My 5c.. Horst

On Wed, 9 Oct 2002, Bob Miller wrote:

 I'd like to propose that we do some organizationalizing at tomorrow's
 (Thursday's) meeting.  The regular meeting will start at 6:30 as
 usual, and the organizational discussion will start at 7:00.
 
 Here's what I have on my mind.
 
 Format.  I propose that we have a presentation/panel/demo one
 Thursday night each month, and clinics on all other Thursdays.
 But I'm open to alternatives.
 
 Presentations/panels/demos.  What topics would we like, and who
 will volunteer?  (BTW, I've contacted a few of you today, and we
 have some presenters willing to try it.)
 
 Web site.  We need a webmaster who will take it over from Rob.
 (Not me!)
 
 Publicity.  How can we be more visible?  How can we attract new
 folks?
 
 Be there or be disorganized.
 
 If you can't make it tomorrow night, please send me comments via email
 or reply to this message.
 
 -- 
 Bob Miller  Kbob
 kbobsoft software consulting
 http://kbobsoft.com [EMAIL PROTECTED]
 


___
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug



Re: [Eug-lug]solution to python puzzle

2002-10-10 Thread Horst Lueck

Adding a feature (static data) to a language that doesn't really support
it may alway be a bit of hack (unfortunately, python doesn't have neither
static nor private qualifiers )-:  

Wasn't one problem to keep the global namespace clean, and to prevent the
garbage collector from cleaning up the 'static' data of interest? From
other mesages (python list) I concluded Bob's function of interest, using
those 'static' data, relates to module random. So why not adding this all
to module random's namespace? 
A) setattr(random, 'pubData', [0]) creates 'semi-static' data, but that's
not interesting because it's very public.
B) a class seems to me always the way to go when both, data and methods,
are tied together. (how would you acces n in your C example if you later
on like to add another function using n ?)
C) the persistance of n[] in Bobs original function(n=[0]) may be not
documented, but seems to be intentional and not a compiler bug as
indicated by random.count.func_defaults below. (that was a question in an
earlier message)
 It survived all the abuse I could think of: re-definition, module reload,
garbage collector.

Maybe someone (Sean Reifschneider?) can comment on how safe this really
is.

 - Horst

So below is my version of 'ugliness', w/o requiring module __future__. 
Most of the code is just for demo purposes - the essential code segments
are mentioned above.

###

import random   # module to be extended
import gc   # to look at garbage

class Counter:  # the standard approach
def __init__(self):
self.__count = 0
def count(self):
self.__count += 1
return self.__count

def test():
print random.count() from test(): , random.count()
random.counter.count()  # silently increment

if __name__ == '__main__':
# add semi-static, public data to random's name space:
setattr(random, 'pubData', [0])  

# add protected counter to random's name space;
setattr(random, 'counter', Counter())  

# add func() to random's name space:
def func(n=[0]):  # does not have to be inline
 get fancy here with unique start or allow set/reset 
n[0] += 1
return n[0]
setattr(random, 'count', func)  
def func(): print redefined func()   #overwrite previous
func()

print in main - random.count: , random.count()
test()
print  - garbage collection - bad items: , gc.collect()
reload(random)
print ... and again: ,
test()
print same for random.counter.count(), random.counter.count()

print \n Now attributes of random.count: \n, dir(random.count)
#print random.count.__doc__
print  - random.count.func_defaults: , random.count.func_defaults

###


On Fri, 4 Oct 2002, Bob Miller wrote:

 Those of you who were at the clinic last night know that I
 was asking for help on a weird limitation of Python.
 
 The problem:  Consider the function, foo(), in this C program.
 
   #include stdio.h
 
   int foo()
   {
   static int n = 0;
   return ++n;
   }
 
   main()
   {
   int n1 = foo();
   int n2 = foo();
   printf(%d %d\n, n1, n2);
   return 0;
   }
 
 It keeps state around between calls, but does not have extra names in
 any nonlocal namespaces.
 
 How would you write a function in Python that does the same?
 (Note, I don't want a solution that only returns successive numbers.
 I might use this to return successive lines of a file or calculate
 successive permutations of a sequence or whatever.)
 
 The solution: For some reason, this apparently simple problem doesn't
 have any good solutions (that I'm aware of).  Here's the best I can
 do.
 
   def foo():
   n = [0]
   def bar():
   n[0] += 1
   return n[0]
   return bar
   foo = foo()
 
 That reuses the single global name, foo.  First, foo holds a function
 that returns the function we need.  Then we set foo to the returned
 function.  The original function is not accessible, AFAIK.
 
 -- 
 Bob Miller  Kbob
 kbobsoft software consulting
 http://kbobsoft.com [EMAIL PROTECTED]
 ___
 Eug-LUG mailing list
 [EMAIL PROTECTED]
 http://mailman.efn.org/cgi-bin/listinfo/eug-lug
 

___
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug



[EUG-LUG:2705] Re: Defunct (zombies)

2002-05-23 Thread Horst Lueck

I experienced zombies on a system that had too many requests (httpd, 
mysqld, and then analog, i.e the disaster happened at 4 am) for too 
little memory (the system swapped itself to death).
To understand what was going on I ran a cron job at every 15 min that
logged:
a) date (for time stamp)
b) w(for cpu load (1,5,15 min average)
c) pstree -l -n (for compact view)
d) ps -Afl  (for the details)
(e) top (?forgot switch for 1 event?) - but top from non-konsole jobs 
(cron and at) didn't work on older distros(couldn't get default terminal
info for non-existing terminal).

top also shows zombies in the header.

I noticed the zombies are all 'sh' , some with pretty close PID
 - that's a hint.

Good lueck ... Horst.

 ~~

On Thu, 23 May 2002, Bob Crandell wrote:

 Hi,
 I have a server with a growing number of these:
 20344 ?Z  0:00 [sh defunct]
 20354 ?Z  0:00 [sh defunct]
 20355 ?Z  0:00 [sh defunct]
 20363 ?Z  0:00 [sh defunct]
 
 How do I get rid if them?  How do I find out what's causing them?
 --
 Bob Crandell
 Assured Computing
 When you need to be sure.
 Cell 541-914-3985
 FAX  240-371-7237
 [EMAIL PROTECTED]
 www.assuredcomp.com
 Eugene, Or. 97402
 




[EUG-LUG:1990] Re: More on shell scripts.

2002-03-14 Thread Horst Lueck

Being on digest my example is probably late.
 At any rate, as an example here is something I use for automated DB
reports via email. Breaking down the process into the SQL-commands(.sql
file) the shell script (below) , and the cron process allows me to modify
and test each component, or parameter within a component w/o affecting
the rest.
 The CAP sequences, like 'X' of course, are just blanks.
Any critique is welcome ... Horst.


#!/bin/bash

# report members that came through specific door during the last N days.
# files/processes involved:
#   crontab(root) m h * * * /root/cron/bin/door9-rpt.sh
#   $sql-cmds, $sql-rpt  - see below

# things to customize: 
sql_target='-h localhost -u U  -pXX'
sql_cmds='/root/cron/bin/door9-rpt.sql'
sql_rpt='/root/cron/log/door9-rpt.txt'
send_to=' [EMAIL PROTECTED],[EMAIL PROTECTED] '
send_cc=' -c [EMAIL PROTECTED] '
##send_bcc=' -b user@domain '

# find members according sql_cmds :
mysql $sql_target  $sql_cmds   $sql_rpt

# Here we would edit the report 

# send_to|cc|bcc __see-above__
cat $sql_rpt | mail $send_to $send_cc $send_bcc -s ; $(date)




On Wed, 13 Mar 2002, Bob Crandell wrote:

 mysql -u root -p
 mysql create database phpgroupware ;
 mysql grant all on phpgroupware.* to phpgroupware@localhost identified by
 'password';
 mysql quit
 
 These are the lines to create a database and set a password.  How would I put this
 in a shell script?  I want it to run unattended, at least, almost unattended.
 
 Thanks
 --
 Bob Crandell
 Assured Computing
 When you need to be sure.
 Cell 541-914-3985
 FAX  240-371-7237
 [EMAIL PROTECTED]
 www.assuredcomp.com
 
 




[EUG-LUG:1953] Question on selecting files

2002-03-11 Thread Horst Lueck

Garl, not the final script, just some related ideas.
 In case you don't just want to move those old files, but rather archive
and/or compress them the tar program may come handy -- it takes care of
DIR structure and compression.

# substitute 'somePath' with relative or absolute path.
# make a file list: 
 find somePaths -name '*' -mtime -10 -exec ls {}  older10d.ls \; 
# tar it up and compress: 
 tar -czf optPath/older10d.tgz -C older10d.ls 
# remove those files:
 find somePaths -name '*' -mtime -10 -exec rm {} \; 
### Note, the timestamp of involved DIRs got changed after this -
### - i.e. just repeating the commands may mean something different now.
### do some cleanup (older10d.ls ...)
### check 'man tar' for other options

This is not a clippaste script, rather a pseudo code idea --however,
(briefly) tested on a real tempDir of my system.

Good luck .. Horst, onDigest 

On Monday 11 March 2002 18:50, Grigsby, Garl wrote:
 I have a question on a shell script I am trying to piece together
 (and it must be a shell script. I am trying to find time to learn
 Perl, but at this point it looks to me like a cat walked across a
 keyboard). I need to go through a directory and move any file
 older than 10 days. How do I go about this? I know that I can get the
 date from 'ls -l', but I don't know how to use this in a comparison?
 I know that I could probably come up with a really (really) ugly set
 of logic statements, but there has got to be an easier way. Anybody
 want to share their thoughts/ideas? Please?

A start would be with the find command.  To find all files in your home 
directory modified within the last 10 days and do an ls -l on them:

   find ~ -mtime +10 -exec ls -l {} \;

The +10 is for more than 10 days (-10 would be for less than 10 
days), the {} will be replaced by each file found.  The escaped ; 
ends the parameter list to find.

Change the ls -l to whatever command you like.  However, moving files 
in subdirectories to corresponding target subdirectories will take a 
bit of finesse.  You may want to use a function that parses the file 
name and makes non-existant subdirs before doing the move.

I bet someone here has a really clever way of doing that. ;)







[EUG-LUG:1251] http and telnet trafic on loopback -- and portsentry logs

2002-01-24 Thread Horst Lueck

What is this ???
I(root on mdk 8.1) am getting tons of error messages in my mailbox about
localhost trying to talk to localhost on port 23 and 80.
 My portsentry.ignored contains IP of loopback and eth0(to not block
those), and I can ping both from 'inside', but not from outside (which is
OK).

Ethereal, just looking at 'lo', also shows that traffic on port 23, 80
(don't know how to export as text --.libpcap format attached)
So, is this normal traffic?  
--and if so, what is it for??
--and how can I reduce the scope of logging???

Any hints ? I am clueless )-:
I'll may be able to make it later tonight to the meeting . Horst.

ROOT'S MAIL:

From [EMAIL PROTECTED] Thu Jan 24 18:08:14 2002
Date: Thu, 24 Jan 2002 07:15:20 -0800
From: root [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: ALERT servers/telnet: localhost (Thu Jan 24 07:15:20)

Summary output: localhost

Group : servers
Service   : telnet
Time noticed  : Thu Jan 24 07:15:20 2002
Secs until next alert : 
Members   : localhost

Detailed text (if any) follows:
---
localhost: problem connecting to localhost, port 23: Connection refused

 ##

A FEW LINES OUT OF 100KB MESSAGES TWICE A DAY TO ROOT:


Jan 24 02:25:20 horix mon[1742]: failure for servers telnet 1011867920 
localhos$Jan 24 02:26:59 horix mon[1742]: failure for servers http 
1011868019 localhost
Jan 24 02:30:59 horix mon[1742]: failure for servers http 1011868259 
localhost
Jan 24 02:34:59 horix mon[1742]: failure for servers http 1011868499 
localhost
Jan 24 02:35:20 horix mon[1742]: failure for servers telnet 1011868520 
localhos$Jan 24 02:38:59 horix mon[1742]: failure for servers http 
1011868739 localhost
Jan 24 02:42:59 horix mon[1742]: failure for servers http 1011868979 
localhost
Jan 24 02:45:20 horix mon[1742]: failure for servers telnet 1011869120 
localhos$




http-telnet_on-lo.libpcap
Description: Binary data


[EUG-LUG:544] Re: Shells vs. Programming Languages

2001-12-13 Thread Horst Lueck

 Am I unique in thinking that shells are very good for some things
 but are not that great as programming languages...
 Larry, you are not unique, but pretty lonely...
To make you feel less lonely,
and not the only,
I like to share my appreciation for python for such tasks.
Maybe at one of those non-clinics Thursdays interested folks could get
together to talk about the 'beautiful gift of python' ?
 - Horst

 As a foodnote: though there are a few developpers on this list a grep -ci
on the recent 1.5MB of my Eug-LUG archives gave 55 matches for 'shell', 95
matches for 'script' and 0(zero) for any variation of 'object oriented'...
-but that would be probably another list...

On Wed, 12 Dec 2001, larry a price wrote:

 I've noticed a certain amount of bashing of shells on this list, and
 I'm wondering. 
 
 Am I unique in thinking that shells are very good for some things
 but are not that great as programming languages...
 
 I know that for me if a shell script grows longer than a couple of lines
 or gets to involve anything much more complex than a grep I start looking
 at it in terms of how could I do this in Python.
 
 True, if I were looking at widely distributing a piece of software and it
 needed a startup script I would go through the hurt of /bin/sh and 
 figuring out the old-school way of doing things.
 
 but in my day to day life the shell is an interface, not a programming
 language... and while it's necessary for it to be a programming language
 it's optimized to be an interface.
 
 http://www.efn.org/~laprice( Community, Cooperation, Consensus
 http://www.opn.org ( Openness to serendipity, make mistakes
 http://www.efn.org/~laprice/poems  ( but learn from them.(carpe fructus ludi)
 http://allie.office.efn.org/phpwiki/index.php?OregonPublicNetworking
 









[EUG-LUG:237] Re: ppp0 - eth0 conflict? //Re: RE: Cannafuel

2001-11-27 Thread Horst Lueck


Bob, thanks for explaining in detail WHAT is going on before suggesting
HOW to fix it!

'route' seems to reveal the problem -- I have 3 clips attached (plus 2
from 'routetrace').
 Interestingly, while pppd is running, a restart of eth0 shows:
RTNETLINK answers: File exists

My kppp 2.4.1 was set to its defaults:
* default gateway, and * assign default route to this gateway

When I began to educate myself about how to add/del entries in the routing 
table, I realized that the modem user has to be root in order to do this
(not very elegant - running a cron job as root every minute to check things
isn't that elegant either) ... so I'll sleep over it unless you have a straight 
forward suggestion ... Horst.

AT BOOT:
Destination Gateway Genmask Flags Metric RefUse
Iface
192.168.0.0 0.0.0.0 255.255.0.0 U 0  00
eth0
127.0.0.0   0.0.0.0 255.0.0.0   U 0  00 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG0  00
eth0

STARTING PPP BEFORE KILLING ETH0:
Destination Gateway Genmask Flags Metric RefUse
Iface
206.163.184.195 0.0.0.0 255.255.255.255 UH0  00
ppp0
192.168.0.0 0.0.0.0 255.255.0.0 U 0  00
eth0
127.0.0.0   0.0.0.0 255.0.0.0   U 0  00 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG0  00
eth0
 (the failing routetrace clip follows below)

RE-STARTING ETH0 WHILE PPP IS WORKING:
Destination Gateway Genmask Flags Metric RefUse
Iface
206.163.184.193 0.0.0.0 255.255.255.255 UH0  00
ppp0
192.168.0.0 0.0.0.0 255.255.0.0 U 0  00
eth0
127.0.0.0   0.0.0.0 255.0.0.0   U 0  00 lo
0.0.0.0 206.163.184.193 0.0.0.0 UG0  00
ppp0
(currently I don't have another box on my (non-existing)LAN to check if
eth0 is really working)

Since you asked for routetrace, 
 while not working:
1  192.168.1.11  2997.988 ms !H  2999.786 ms !H  2999.924 ms !H

 and with a working connection:
1  206.163.184.193  137.643 ms  129.836 ms  129.904 ms
 2  206.163.184.222  129.897 ms  129.941 ms  131.053 ms
 3  206.163.183.229  130.869 ms  127.891 ms  129.974 ms
 4  157.238.26.161  129.896 ms  140.073 ms  129.771 ms
 5  129.250.55.117  170.058 ms  149.834 ms  159.950 ms
 6  129.250.30.145  189.935 ms  169.899 ms  149.913 ms
 7  129.250.3.37  159.997 ms  160.124 ms  139.687 ms
 8  129.250.9.58  169.927 ms  169.998 ms  199.837 ms
 9  144.232.6.118  159.998 ms  139.878 ms  139.941 ms
10  160.81.36.90  142.231 ms  147.606 ms  150.078 ms
11  207.189.191.9  159.768 ms  159.930 ms  160.000 ms
12  207.189.137.45  179.888 ms  159.963 ms  169.909 ms

 ###

On Mon, 26 Nov 2001, Bob Miller wrote:

 Horst Lueck wrote:
 
  QUESTION:
  Which process/conf-file is responsible for directing a request for an 
  external connection to ppp0,  while, lets say 'ping 192.168.1.xxx' goes 
  through eth0 ? 
  (I have tried subnet mask 255.255.255.0 and 255.255.0.0)
 
 Hi, Horst.
 
 Whenver the kernel has an outgoing IP packet to send, it looks in its
 routing table.  You can view the routing table type by typing
 /sbin/route -n.
 
 Here's what it shows on my workstation.
 
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse Iface
 192.168.0.4 0.0.0.0 255.255.255.255 UH0  00 eth0
 192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
 127.0.0.0   0.0.0.0 255.0.0.0   U 0  00 lo
 0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0
 
 That's not very interesting, because my workstation only has one
 network interface, eth0.  When I send a packet, the kernel looks for
 the routing table that best matches the packet's destination address
 and sends the packet through the listed interface to the listed
 gateway, or directly to the destination if there is no gateway.
 
 The line with Destination 0.0.0.0 and Genmask 0.0.0.0 is known as the
 Default Route.  Whenever a packet doesn't match any of the other
 routing table entries, it is sent through the Default Route.  In my
 routing table above, the Default Route is the last line.
 
 If I sent a packet to 207.189.137.45, the only match would be the
 default route, and the packet would be sent through eth0 to the
 gateway, 192.168.0.1.
 
 If I sent a packet to 192.168.0.44, the best match would be the third
 line (Destination = 192.168.0.0, Genmask = 255.255.255.0), so the
 packet would be sent directly to 192.168.0.44 through eth0.
 
 If you look at your routing table while your PPP link is up, I think
 you'll see that the default route (destination 0.0.0.0, Genmask
 0.0.0.0) points through eth0 to some gateway on the 192.168.0.X

[EUG-LUG:251] Re: ppp0 - eth0 conflict? //Re: RE: Cannafuel

2001-11-27 Thread Horst Lueck

Bob, that was a good lead. However, ifcfg-eth0 was not the file that
contained the gateway default; a recursive grep through the entire /etc/
listed about 5 or 6 files using 'that' IP (not counting the linuxconf
archives).
 It almost looked like draknet and linuxconf duplicated efforts to manage
the default gateway. (this maybe an aspect that's interesting to others)
I am not too happy seeing Mandrake substituting many Linux standard tools
with drake-specific ones.
 I took a pragmatic approach and let linuxconf remove the default route,
and it worked!
 - Horst.
~~~

On Tue, 27 Nov 2001, Bob Miller wrote:
...
 
 If I remember our discussion at the Tech Brewpub, your ethernet is not
 connected to any other networks when the PPP connection is down.  Is
 that correct?
YES 
 If it is correct, then you should not have a default route through
 your ethernet.  To remove the default route, edit
 /etc/sysconfig/network-scripts/ifcfg-eth0 and comment out the line
 that says, GATEWAY=192.168.0.1.
 
...




[EUG-LUG:217] ppp0 - eth0 conflict? //Re: RE: Cannafuel

2001-11-26 Thread Horst Lueck

I was just going through yesterday's digest, and appologize for sending 
a Linux related question :-(

PROBLEM:
When connected through kppp (Mandrake 8.1, external modem) I am not able 
to reach any external address except the remote IP of my ISP dialup -- 
reason: all other requests use the IP of my local eth0 as return 
(192.168.1.11)
Everything works fine if I 'ifdown eth0' before dialing and 'ifup eth0' 
after I have connected. Really! -- please consider that in your response.

QUESTION:
Which process/conf-file is responsible for directing a request for an 
external connection to ppp0,  while, lets say 'ping 192.168.1.xxx' goes 
through eth0 ? 
(I have tried subnet mask 255.255.255.0 and 255.255.0.0)

ADDITIONAL INFO:
- For the problem it doesn't matter if I ping a domain name, a clear IP, 
or an IP I have alias'd in my /etc/hosts (see ping report)
- ping report follows
- ifconfig status follows
- kppp negotiates with my ISP and temp. modifies resolve.conf (see below)
- I had that problem a couple of weeks ago ... but it 'magically' went 
away after I had changed my local eth0 IP to a slightly different number 
... now it came 'mysteriously' back after I added a new user and use kppp 
as such.

Hopefully that's enough info (right kbob? - you suggested to post this)
 - Horst.

ifconfig:
=
eth0  Link encap:Ethernet  HWaddr 52:54:05:F7:4D:A9  
  inet addr:192.168.1.11  Bcast:192.168.0.255  Mask:255.255.0.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:853
  TX packets:0 errors:594 dropped:0 overruns:0 carrier:1188
  collisions:10098 txqueuelen:100 
  RX bytes:0 (0.0 b)  TX bytes:58494 (57.1 Kb)
  Interrupt:10 Base address:0xd000 

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:841 errors:0 dropped:0 overruns:0 frame:0
  TX packets:841 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:170711 (166.7 Kb)  TX bytes:170711 (166.7 Kb)

ppp0  Link encap:Point-to-Point Protocol  
  inet addr:206.163.180.22  P-t-P:206.163.184.193  
Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  RX packets:32 errors:2 dropped:0 overruns:0 frame:0
  TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3 
  RX bytes:2326 (2.2 Kb)  TX bytes:2187 (2.1 Kb)


ping to ISP's dialup, and to another machine in that domain:
==
PING 206.163.184.193 (206.163.184.193) from 206.163.180.22 : 56(84) bytes 
of data.
64 bytes from 206.163.184.193: icmp_seq=0 ttl=255 time=132.563 msec
64 bytes from 206.163.184.193: icmp_seq=1 ttl=255 time=129.976 msec
64 bytes from 206.163.184.193: icmp_seq=2 ttl=255 time=129.981 msec
64 bytes from 206.163.184.193: icmp_seq=3 ttl=255 time=129.995 msec

--- 206.163.184.193 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/mdev = 129.976/130.628/132.563/1.201 ms

PING myefn (206.163.176.5) from 192.168.1.11 : 56(84) bytes of data.
From [EMAIL PROTECTED] (192.168.1.11): Destination Host Unreachable
From [EMAIL PROTECTED] (192.168.1.11): Destination Host Unreachable
From [EMAIL PROTECTED] (192.168.1.11): Destination Host Unreachable

--- myefn ping statistics ---
5 packets transmitted, 0 packets received, +3 errors, 100% packet loss


resolve.conf (while connected):

domain efn.org  #kppp temp entry
search localnet efn.org


# ppp temp entry
nameserver 192.168.37.186 # ppp temp entry
nameserver 128.223.32.35 # ppp temp entry
nameserver 192.168.37.186   #kppp temp entry
nameserver 128.223.32.35#kppp temp entry

### the end of the story ##







[EUG-LUG:3407] Re: html // SSI

2001-10-24 Thread Horst Lueck

YES, SSIs. 
You can do much more than just including text. Here is a clip of one of 
my .shtml files (note the file extension!). 
As another advantage, visitors who view your HTML source won't see the 
underlying filenames, just the rendered HTML code assuming 
drwx--x--x for~/public_html/
 - Horst.


!-- having uniform headers, footer, colors,... on all subpages
that can be edited at one place: --
!--#include file=ccc_header.html --
...
!-- time format for the following SSIs: --
!--#config timefmt=[%d-%b-%Y]--
...
XYZ-filename, updated: 
!--#flastmod file=most_recent_posting.txt--

 ~~~

On Tue, 23 Oct 2001, Seth Cohn wrote:

 Server Side Includes will do it.
 
 so will PHP, perl, etc... but the simplest will
 be SSI.
 
 http://www.google.com/search?q=server+side+includes
 
 
 
 --- Bob Crandell [EMAIL PROTECTED] wrote:
  How Do I
  
  I want to display the contents of a text file
  on a web page.  I only have html to work with. 
  Right now, it opens a new page it display it. 
  Not good.  I want to do something like:
  
  The quick brown fox insert text here over the
  lazy dog.
  
  Maybe assign the contents to a variable?
  
  The quick brown fox $variable over the lazy
  dog.
  
  Thanks to those who are smarter than I.
  
  The other Bob.
  
 
 
 __
 Do You Yahoo!?
 Make a great connection at Yahoo! Personals.
 http://personals.yahoo.com
 




[EUG-LUG:2646] Re: Current Projects info // python

2001-09-04 Thread Horst Lueck

On Sun, 2 Sep 2001, larry a price wrote:

 ... snipped

 
 I'm thinking about putting together a python class aimed at
 bussinesspersons and not-for-profit organizations that will focus on
 giving people enough programming knowledge to solve their own problems.
 Basically the sort of person we would call super-users in the windows
 world. If you have any suggestions of application areas i should focus on
 please let me know.
 
Larry -- good idea, I like to talk about that on Thu.
I come from a C++, Java background and started playing with python a 
couple of months ago and really enjoy the short learning curve. 
As for suggestions I can envision sorting/reporting features: e.g. my 
first self-assignment was a module that filters/combines/extracts email 
addresses from a selection of text files, showing unique and duplicate 
addresses, or a diff of addresses between a master file and various text 
files. I manage two listproc lists, with update requests originating from 
different sources (DB, email address books, and email messages from 
different accounts) -- w/o any automated script it was a nightmare to do 
that manually.
That may be too much for a beginners class but learning how to process 
files, with reporting  sorting is something useful to start with. 
Also, the (largely) platform independence of python is a selling point!
 - Horst 
(I am on digest, so for quick response use my address in addition)




[EUG-LUG:2370] Re: tomsrtbt (fwd)

2001-08-19 Thread Horst Lueck


Christopher, I haven't experienced anything like that that. I have been
using an earlier(which_?) tomsrtbt and tomsrtbt-1_7_185_dos.zip more
recently to trouble shoot Win stuff, sometimes just downloading and
expanding it onto the machines I needed to work on. 
 With questions about tomsrtbt its important to give the version# since he
seems to upgrade all the time .. Horst.

On Fri, 17 Aug 2001, Christopher Maujean wrote:

 
 Anyone have any luck booting to toms, mounting an external ext2 fs and unpack.s ing 
the disk
 image to it? I found a left over 128meg swap partition on my wifes win98 laptop,
 and reformatted it as an ext2 partition. but I get all kinds of screwy disk
 errors when I unpack my toms disk to it. no problem unpacking the .raw from the
 latest distro. hmmm. 
 
 -- 
 
 Christopher Maujean
 IT Director
 Premierelink Communications
 www.premierelink.com
 [EMAIL PROTECTED]
 
 PLEASE encrypt all sensitive information using the following:
 GnuPG: 0x5DE74D38
Fingerprint: 91D4 09FE 18D0 27C1 A857  0E45 F8A4 7858 5DE7 4D38
 
 http://blackhole.pca.dfn.de:11371/pks/lookup?op=getsearch=0x5DE74D38
 





[EUG-LUG:2190] NIC: TX errors (ifconfig) -- and what it means?

2001-08-14 Thread Horst Lueck

I have two cards that gives me trouble about twice a week (they hang) on a
RH 6.1 installation;  ifconfig shows for eth1:
TX packets:1961416 errors:4631 dropped:0 overruns:2 carrier:0
the relevant dmesg clip and the full ifconfig is at the bottom.

The first question is could the TX error indicate a faulty card?

One card can be reset with:
ifdown eth1; ifup eth1
The other requires 
S10network reload
 Swapping CAT5 cables and slots in Netgear switchbox didn't un-lock a
locked card (too early to tell if this had a log-term effect).  Taking
CAT5 cables in and out while pinging another local machine did not
necessarily add another TX error (see above) but one of the funny cards
did eventually lock during that test and then it did increment the TX
errors (my guess is that different network layers have their own logging
and recovery mechanisms)

Two of the three machines have their eth0 on global IP addresses, and eth1
via Netgear switch box on a local network; 3rd machine has only local IP.
It is odd that the problems only appear on the local cards !? 
 Has anybody experienced that a switch box can confuse or even damage a
NIC ?

Unfortunately, the downtime has to be kept at a minimum - so just swapping
NICs, rebooting, etc ... should be seen as last resort and justified by
some diagnosis first.

Thanks for any feedback . Horst.
 (P.S. I liked Ralph's clip yesterday letting Linus himself expanding on
his NIC preferences)

 ~~~
DMESG 2:
tulip.c:v0.91g-ppc 7/16/99 [EMAIL PROTECTED]
eth0: Lite-On 82c168 PNIC rev 32 at 0xe800, 00:A0:CC:D3:C1:E7, IRQ 10.
eth0:  MII transceiver #1 config 3000 status 7829 advertising 01e1.
eth1: Lite-On 82c168 PNIC rev 32 at 0xe400, 00:A0:CC:D3:FC:DF, IRQ 5.
eth1:  MII transceiver #1 config 3000 status 7829 advertising 01e1.
eth1: Setting full-duplex based on MII#1 link partner capability of 41e1.

DMESG 2:
eth0: DC21143 at 0x9000 (PCI bus 0, device 11), h/w address
00:48:54:80:00:ee,
  and requires IRQ10 (provided by PCI BIOS).
de4x5.c:V0.544 1999/5/8 [EMAIL PROTECTED]
3c59x.c:v0.99H 11/17/98 Donald Becker 
http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
eth1: 3Com 3c905B Cyclone 100baseTx at 0x9400,  00:50:da:1f:1d:3d, IRQ 9
  8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
  MII transceiver found at address 24, status 7849.
  MII transceiver found at address 0, status 7849.
  Enabling bus-master transmits and whole-frame receives.

 ~~
IFCONFIG:
eth0  Link encap:Ethernet  HWaddr 00:A0:CC:D3:C1:E7
  inet addr:xxx.xxx.xxx.108  Bcast:xxx.xxx.xxx.111
Mask:255.255.255.248
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:12418814 errors:0 dropped:0 overruns:0 frame:0
  TX packets:17719884 errors:0 dropped:0 overruns:0 carrier:0
  collisions:295789 txqueuelen:100
  Interrupt:10 Base address:0xe800

eth1  Link encap:Ethernet  HWaddr 00:A0:CC:D3:FC:DF
  inet addr:192.168.1.55  Bcast:192.168.1.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:2045925 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1961416 errors:4631 dropped:0 overruns:2 carrier:0
  collisions:0 txqueuelen:100
  Interrupt:5 Base address:0xe400

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:3924  Metric:1
  RX packets:11977918 errors:0 dropped:0 overruns:0 frame:0
  TX packets:11977918 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0








[EUG-LUG:1599] Q: transplanting entire installations

2001-07-17 Thread Horst Lueck

OVERVIEW:
I am dealing with a combination of 3 servers (1 Web server, 1 NS, 1 DB 
server, all RH 6.x); they have something like 10 GB hard drives.
Another box is sitting in the corner that should become a backup in case 
one of the three fails (a manual swap, though not ideal, would be 
acceptable for the extreme case).
NFS is disabled, but ftp works (the person who did the installation
vanished...)
This is a production system where downtime should be minimal and 
scheduled.
Footnote: my background is more in developing applications rather than 
system programming or administration (so please, be nice and not too much 
'slang')

APPROACH:
Foremost - I don't want to change any of the three installations (RAID, 
etc.) because if something breaks there I am screwed!
Instead - Get two 30 GB HDs with many partitions and prepare for multi-
boots into any of the three services (I could have a 4th, small 
installation running to handle a remote request for changing LILO to what 
is needed for a soft swap)

Now the QUESTIONs:
A) Does my approach sound feasible ?
B) How to 'transplant' ?
 1) Given the minimumDowntime/keepingCurrent conditions, opening the 
boxes, installing the extra HD and dd'ing the partitions should be 
avoided, if possible.

 2) Is tar able to handle the more delicate things, like symbolic links, 
device driver (pointers?) in /dev/ , if let's say  /boot=hda1 is now hdb6 
(assuming I did massage the fstab of each installation). I played around 
a bit by using fd0 as a target and things looked OK at the surface.
If so I would tar up things - ftp to the backup - untar into a new
partition of similar size.

 3) What else needs work, in addition to lilo and fstab to make a 
'transplant' work ?

C) All 3+1 boxes have only basic devices that should be recognized at 
boot. However, if there are fundamental differences in the motherboard I 
would not know how to predict the outcome. The series of options 
regarding that issue may be the subject of another thread ...

... instead, I am now leaving for the TechBrew at the WildDuck and hope 
to see you all there so you don't have to email me :-( 

 -  Horst





Turbolinux WS 6.0, installation, 1st impressions.

2000-02-11 Thread Horst Lueck


Paul, thanks for sending us the evaluation CDs.

ELUG:
I tested the workstation version last night on a system that is already 
configured with 2 linux installations and a small DOS 6.22 partition. So 
I had only limited space and tried the minimal installation first(ca. 
170MB).
 
The installation interface is cleanlean (mo|or leanclean), no fluffy 
stuff, mostly white on black and only color when needed. I liked that 
part.
Another good thing is that you can choose from half a dozen kernel 
version (from 386 to '686) -- very nice :)  [just to clarify some e-chat 
earlier on that subject]
 
At the end you are explicitly presented with the option of installing 
lilo on a floppy disk - which eased my mind since I was doing this all to 
a functional workstation. At that point I would like to see the option of 
creating a bootdisk too (just in case the kernel on the HD gets shot). 
Sure, you can do that all manually but for the beginner it would be a 
nice option. - [did you hear me Paul?]
 
I had not much time and chances to do more testing (just using the 
minimal installation). So I ran gpm and minicom and noticed that the 
symbolic links for /dev/mouse and /dev/modem are 'missing' -- which can 
be both, good or bad (just another aspect of being leanclean). In that 
context I am wondering why none of the distributions contains a little 
script that probes all your serial ports and assigns the correct one to 
mouse and modem? (on my machine they are mostly wrong after a fresh 
installation) - [did you hear me Paul?]
 
So much at the moment -- it would be nice to see at least as many factual 
email messages on the mailing list about actually evaluating Turbolinux 
as we had talk about getting it here. 

 - Horst.



Re: EUG-LUG Web Team?

2000-02-07 Thread Horst Lueck

Rob,

 I think your suggestion of having a Web Team, as opposed to having a 
single Web master has its advantages (just consider the Web master gets 
an 80k$ offer for a position in Beaverton that needs to be filled ASAP). 
Of course, such an arrangement requires some guidelines or 
guidance(unless you enjoy chaos). This, in turn, would give YOU the 
opportunity to develop some sort of team leadership experience! (if you 
wish so?).
 I have built and maintained the Web page for our local canoe club 
(http://www.efn.org/~canoe) and know how much 'grunt work' can be 
involved in keeping a site up-to-date and being the e-mail dispatcher at 
the same time. I would be happy to put in my share of time by joining the 
EugLUG WebTeam (my experience at the canoe Web site was somewhat limited 
to our club members' background and needs: a mid-50s group, just 
discovering the Web, partially even using Web-TV ... so including some 
SSI with some minimal .sgi was as much as I could make work across our 
clients' platforms.)

 - Horst.

 ~~~

On Sun, 6 Feb 2000, Rob Hudson wrote:

 Hi all,
 
 In Jan 1999, I volunteered to maintain the web pages for EUG-LUG.  It's
 been a great learning experience, and I think the experience of working
 on the site helped me find my present job doing web development at IMS
 (http://eugene.net).
 
 If anyone is interested, I'd like to pass on the opportunity that was
 given to me, and give someone else a chance to gain experience in
 maintaining the web site.
 
 I certainly don't mind keeping it up, and enjoy it.  I'd like to keep
 working on the CGI scripts that help run the site.  So maybe a Web Team
 would be a good thing to initiate.
 
 If anyone is interested, let me know.
 
 -Rob.
 -- 
 -
  Rob Hudson [EMAIL PROTECTED]  Web Developer
  Visit the EUGLUG homepage at http://eugene-linux.cyber-dyne.com
 -
 



Re: Copies of flyer -- costs ???

2000-02-06 Thread Horst Lueck

On Fri, 4 Feb 2000, Smith, Mike wrote:

 Went to a little copy shop outside of the Uni.  Made 62 duplex copies for
 $5.  One of the guys in the shop is --suprise-- a linux user.  At any rate,

 Hi -- do we have some sort of club funds to finance little things like
that? - I don't think those members who are most active should also carry
most odf the costs.  Unless there is a system (that im not aware of), we
could start a donation box at our meetings ... like the 'Carma Jar' at the
Espresso place  Horst.



Job at ORCAS

2000-01-24 Thread Horst Lueck


Nice to see Linux as the central theme in a job offer now also in Eugene!
I would have been interested in this position myself, but I am short of a 
number of skills requested -- nevertheless I would be curious to get some 
feedback if you interview for that position  Horst.

 --- clip: 
Computer Systems Support
Set-up and in-depth support of Linux servers, secondary
support of 10/100 LAN and clients (WinNT, 95, 98, 
Mac). Must have excellent Linux skills, and experience in
supporting WinNT/95/98 on TCP/IP LAN. Basic Mac
experience highly desirable. Casual yet professional
environment (www.orcasinc.com). Please send resume
ASAP to [EMAIL PROTECTED]



Re: My topics--Was RE: December monthly meeting

2000-01-21 Thread Horst Lueck

On Mon, 20 Dec 1999, Smith, Mike wrote:
 
 Pick a topic, something you know a little about, and
 impress the rest of it with it.
 
 
 I know *a little* about network security, project Echelon, TEMPEST,
 structure of Information Systems, and other fun things like that.  If
 anybody is interested, I could take the February meeting on ONE of these
 topics (sorry, they are all too big for 2 hours total).
...

I would be VERY interested in learning ((more)) about network security !
 - Horst.



suse 6.3 tonight?

2000-01-21 Thread Horst Lueck

Last minute call: could anyone bring a SuSE 6.3 CD tonight for an
installation on my box?
 I just tried to get my copy at Borders (but there was none on the shelf)
 - Horst.