Linux-Misc Digest #794, Volume #26               Fri, 12 Jan 01 22:13:01 EST

Contents:
  Re: cron setup (Pete)
  Unreliable deliverance of Linux Journal (Dieter Rohlfing)
  Re: Setting time using time reference on the internet ? ("Peter T. Breuer")
  Re: How do you use "checksum"? ("David A. Gershman")
  Re: starting xterm with environment set (Floyd Davidson)
  Re: processes stopping without warning ([EMAIL PROTECTED])
  Re: automount ([EMAIL PROTECTED])
  Re: RPM 3.0 -> 4.0 foxhole (Remi Villatel)
  Re: [OT] - AntiTrust comes out this Friday! (jtnews)
  Re: need more /usr (Floyd Davidson)
  Format for config files ("Julio")
  Re: How to tell HW problem from SW problem? (John Hasler)
  Re: Your Experiences with StoreAnywhere.COM (Mark Post)
  Re: Tax Software?? (Mark Post)
  Re: How do you use "checksum"? (Bill Hudson)
  Re: [OT] - AntiTrust comes out this Friday! ([EMAIL PROTECTED])
  What Linux version is needed for Xinerama? (Arctic Storm)
  Re: How to tell HW problem from SW problem? (Jean-David Beyer)
  Re: What Linux version is needed for Xinerama? ([EMAIL PROTECTED])

----------------------------------------------------------------------------

From: Pete <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup
Subject: Re: cron setup
Date: Sat, 13 Jan 2001 00:01:32 GMT

In article <93o3jf$p9s$[EMAIL PROTECTED]>,
  "Darren Welson" <[EMAIL PROTECTED]> wrote:
> I want to run a virus scanner once a night at midnight and run an
update to
> it once a week.  I also have a security checker I want to run once a
week as
> well.  The virus scanner I want run on Wednesday nights, but the
security
> checker I don't care when it runs.  What is the most appropriate way
to CRON
> this?  Should I enter these into my /etc/crontab or run them in
cron.daily /
> cron.weekly directories?  Also, if I do the latter, how do I specify
what
> days of the week they run?
>
> What might an entry in the /etc/crontab look like?
>
> darren welson
>
> Life is Good
> People are Great
> Business is Wonderful
>
>

Quick extract fom /etc/crontab:

============

#Run Every Day @ 03:22 as user root
22 3 * * *  root /usr/bin/winbackup

# Run on Wed only as root at 10:30,12:30,15:30,18:30,21:30
30 10,12,15,18,21 * * 3 root /usr/sbin/cmq

#Run Every Day Except Wednesday @ 05:15,12:15,18:15,23:15
15 5,12,18,23  * * 0,1,2,4,5,6 root /usr/sbin/cmq -i

============
The format is:
<minutes> <hours> <week> <month> <days> <user> <command>

I prefer to add user entries directly into crontab and leave cron.weekly
etc alone personally.

Pete


Sent via Deja.com
http://www.deja.com/

------------------------------

From: [EMAIL PROTECTED] (Dieter Rohlfing)
Subject: Unreliable deliverance of Linux Journal
Date: Fri, 12 Jan 2001 02:22:41 +0100
Reply-To: [EMAIL PROTECTED]

I'm a subscriber of the Linux Journal since issue #1. During the last
two years I noticed, that the deliverance of the journal is getting
more and more unreliable, say: issues got lost. For example: yesterday
issue #81 (Jan. 2001) arrived, but issue #80 (Dec. 2000) never found
its way to me.

Every time I complained with the publisher (SSC Publication), they sent
me the lost issue, but I had to order it as a past issue and pay for it
(US$ 8,00). IMHO that's not user-friendly, because I have no choice
about the company, which delivers the journal. SSC sends it with US Mail
from Yamaica, NY (USA), and here in Germany (where I live) it comes with
Deutsche Post (German Mail).

Nobody is perfect, but now my patience reaches its limits. I think about
stopping my subscription. In addition, I mind the increasing advertising,
which makes the journal more and more unreadable.

I would be very interested, if you share your experience with the
deliverance of the Linux Journal, especially if you're located in
Europe and/or Germany.

Thanks for reading this article. Have a nice day.

Dieter Rohlfing

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Setting time using time reference on the internet ?
Date: Sat, 13 Jan 2001 00:45:41 GMT

John Hasler <[EMAIL PROTECTED]> wrote:
> Bo Jacobsen wrote:
>> Does anyone know how to make linux syncronize it's clock with a
>> reference on the internet.

> Install chrony or ntp.  I recommend chrony (I'm the Debian maintainer
> thereof).

Can you tell me what happened to netdate in potato? It disappeared.

Peter

------------------------------

From: "David A. Gershman" <[EMAIL PROTECTED]>
Subject: Re: How do you use "checksum"?
Date: Fri, 12 Jan 2001 16:25:43 -0800

MH wrote:
> 
> David A. Gershman wrote:
> 
> > The program is called 'md5sum'.  Use the filename as an argument:
> >
> > % md5sum filename
> >
> > A string of HEX numbers are printed.  Compare this number with one
> > provided by the location where the file was retrieved from.  If legit,
> > it should match.  Keep in mind though md5 does not deal with security of
> > the program, but rather the successfulness of the download, i.e. no
> > erroneous bytes.
> >
> Gotta be the fastest NG reply EVER!!  Thanks!  I guess I misunderstood the

I work real hard at my employment. :)

> purpose of the "checksum".  I thought it was to verify that the file hadn't
> been tampered with.  Why would anyone want to check for "erroneous" bytes,
> as IP and the modem/router should be handling that, no?

Yeah, but they don't always catch it, especially if someone is hacking a
line or if a site releases the program but *not* the checksum.

David

------------------------------

From: Floyd Davidson <[EMAIL PROTECTED]>
Subject: Re: starting xterm with environment set
Date: 12 Jan 2001 15:03:59 -0900

[EMAIL PROTECTED] (Peter Bismuti) wrote:
>I have a script that opens a new xterm 
>
>       cd $PWD && xterm &

What is the purpose of the "cd $PWD" command???

>Can I also somehow set the environment variables to be the same as the 
>shell that calls it? 

When xterm is invoked with no arguments, it comes up with a
command line shell (see the xterm man page for details).  That
shell will inherit the environment of "the shell that calls it",
and hence you will already have the same environment variable
definitions as the original command line shell.  However, the
new shell will read init files depending on how your environment
is configured, and those files might change certain of the
environment variables.  You can read the man page for your shell
to determine how a shell can be invoked to disable reading the
init files, and invoke xterm with a specified shell using that
option.  The resulting shell will have the same environment as
your original command line shell, minus aliases and any
variables which are not exported.

If your shell is bash, you might try:

  xterm -e /bin/bash --noprofile --norc &


-- 
Floyd L. Davidson         <http://www.ptialaska.net/~floyd>
Ukpeagvik (Barrow, Alaska)                 [EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: processes stopping without warning
Date: Sat, 13 Jan 2001 01:05:06 GMT

[EMAIL PROTECTED] wrote:
> I've recently migrated a MUD from a proprietary HP-UX box to a Red Hat
> 7.0 Linux box.
[...]
> into action, and the MUD starts without problem.  Then, some time later
> (a period of time I haven't identified yet), the MUD and script
> processes stop without warning.  To the best of my knowledge, they're
> stopping near the same time, but I still haven't confirmed that.
[...]
> The MUD didn't generate any errors in the log, and showed no signs
[...]
> Can anyone tell me why the processes would stop?  To start the process

There's not a lot to go on, but my gut feeling would be that you
should watch the memory usage and see if you are running out of
swap. No evidence, just a hunch.

If that's not it, I'd consider looking into Electric Fence and gdb. I
assume the code is in C, and you have the source, of course. It's
really saved me in similar situations. If you have a pointer going out
of bounds, this will likely catch it. If your data set is large, make
sure that you have a *lot* of swap, Electric Fence allocates a lot of
unwritable memory to trap illegal writes, I had to use 1G of swap when
debugging a news server a few years ago.

If this does not work out, perhaps adding some fprintf's to stderr
with locations inside the program (in gcc, use __FILE__ and __LINE__
to print the file and source code line out), and time stamps. Then
perhaps you can tell what the last thing it did was. Make sure to use
stderr, not stdout, unless you use something like

setvbuf (stdout, NULL, _IOLBF, 0);

before you print. You don't want buffering here.

-- 
Jim Buchanan        [EMAIL PROTECTED]     [EMAIL PROTECTED]
=================== http://www.buchanan1.net/ ==========================
"Where...the ENIAC is equipped with 18,000 vacuum tubes and weighs 30
 tons, computers in the future may have 1,000 vacuum tubes and perhaps
 weigh just 1-1/2 tons." -Popular Mechanics, March 1949
========================================================================

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: automount
Date: Sat, 13 Jan 2001 01:16:56 GMT

Peter Cork <[EMAIL PROTECTED]> wrote:
> The automounting of the filesystems is working but
> I am unable to see the files on the mounted drive.

Are you sure they're mounting? When you type mount w/o any arguments
are you seeing entries like this?

jbuchana@zaphod$ mount
[... local stuff deleted ...]
automount(pid568) on /misc type autofs (rw,fd=5,pgrp=568,minproto=2,maxproto=3)
flenser:/dp1/local_user/jbuchana on /misc/jbuchana type nfs 
(rw,nolock,addr=192.168.0.3)
flenser:/var/spool/mail on /misc/mail type nfs (rw,nolock,addr=192.168.0.3)
flenser:/dp1/mp3 on /misc/mp3 type nfs (rw,nolock,addr=192.168.0.3)
jbuchana@zaphod$ 

I'm using the automounter to mount my home, my mail spool, and my
mp3's at the moment. (I have symlinks from where I want to see them
into the /misc directory, and only one NIS automounter map, auto.misc)

If not, can you manually mount them?

If so, do you have permissions on the remote directories? Perhaps the
numeric UID and GID's are different between the systems?

-- 
Jim Buchanan        [EMAIL PROTECTED]     [EMAIL PROTECTED]
=================== http://www.buchanan1.net/ ==========================
"For a successful technology, reality must take precedence over public
 relations,for Nature cannot be fooled."  -Richard Feynman
========================================================================

------------------------------

From: Remi Villatel <[EMAIL PROTECTED]>
Subject: Re: RPM 3.0 -> 4.0 foxhole
Date: Sat, 13 Jan 2001 02:20:00 +0100

hi_potent wrote:

> Hello,
> I wanted to upgrade RPM to RPM 4.0 because i was getting the now
> infamous "only packages with major nos <= 3 are supported by this
> version of RPM" error. So i carefully removed the rpm package manager
> and all programs with associations with it and tried to install rpm-4.0
> tar.gz in /usr/local/bin where it lived before. The ./autogen command
> complained i needed libtool-1.3.5, autoconf-2.13 and automake-1.4 (which
> i did have but earlier versions). I downloaded the gzipped tape archives
> of those files, of which autoconf and automake installed but not
> libtool. libtool during ./configure says:

The versions can be changed at the beginning of the autogen script. Any way, I
tried... and failed so I looked for another solution. And I found one!

I don't remember where I found this but here's what I found... Go to:

http://rpmfind.net

Search for "rpm" and get the package:

rpm-4.0-6x-i386.rpm      (RPM.org)

This package was built with RPM 3. No problemo! Then:

# echo "Just for the safety..."
# cp /var/lib/rpm/packages.rpm ~/
# cp /bin/rpm ~/
# echo "Now unpack the package."
# rpm -Uvh rpm-4.0-6x-i386.rpm
# echo "Next line is more than extremely important!  ;-)"
# rpm --rebuilddb

Et voil�! That's what I did on my SuSE 7.0 distribution.

Beware: The safety stuff isn't useless! Rebuilding the database may take a very
long time. For example, my poor Pentium 200 MHz needed 15 minutes to rebuild the
database. I interrupted it twice before to realize that my packages.rpm was
around 46 Mb. I was very happy that I made that backup copy. It saved my life...
twice!

The only problem I got with RPM 4 is that KPackViewer doesn't work with RPM 4.

Maybe it's because I was too lazy to do all the recommended stuff. I spent a
whole day on this frigging RPM 4... digging deep into Internet, downloading
packages that I couldn't unpack, compiling sources that didn't want to... etc!
Once it worked, I stopped.

Any way, here's the recommended procedure. That's shame I don't remember where I
found that stuff... I'd build a statue of that guy who gave the solution.

Get the packages:

db3-3.1.14-0.3.6x
db3-devel-3.1.14-0.3.6x
db3-utils-3.1.14-0.3.6x
popt-1.6-6x
rpm-build-4.0-6x
rpm-devel-4.0.6x
rpm-python-4.0.6x
rpm-4.0.6-6x

# cp /var/lib/rpm/packages.rpm
# cp /bin/rpm

# rpm -Uvh db3-* {rpm,popt}-*
# rpm --rebuilddb
# rpm -q --whatrequires librpm.so.0

Then get and rebuild all required packages from RedHat 7.0 sources.

If you just want to unpack RPM 4 packages, the first (short) procedure is
(apparently) enough.

Hope it helps.

See ya,

=====================
Remi Villatel
[EMAIL PROTECTED]
=====================

------------------------------

Date: Fri, 12 Jan 2001 20:33:58 -0500
From: jtnews <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc,rec.arts.movies.current-films
Subject: Re: [OT] - AntiTrust comes out this Friday!

tim wrote:
> 
> http://us.imdb.com/Title?0218817
> Looks to be a hot movie, especially for Linux afficionados!

I just saw a yahoo movie review quote from
Entertainment Weekly that said...

(grade: C) "...as full of bugs...as a new release of
                             Windows." 

I wonder if it was really mediocre or if the movie
reviewer just couldn't understand it.

http://movies.yahoo.com/shop?d=hv&id=1802760268&cf=info

------------------------------

From: Floyd Davidson <[EMAIL PROTECTED]>
Subject: Re: need more /usr
Date: 12 Jan 2001 15:29:28 -0900

"Darren Welson" <[EMAIL PROTECTED]> wrote:
>I need to expand my /usr directory a little and want to take some space from
>an adjoining partition.  Does Linux offer a re-partitioning tool, or will I
>need to destroy my existing partitions for the larger one?  I was going to
>make a .tar backup of /usr and repartition then recopy back the data.  Is
>there a better way?

There is a better way.  

Add another disk, or find an existing partition that is or can
be formatted as an ext2 filesystem.  Then move sub-directories
on /usr to the other partition by using symbolic links for the
directory.

For example, if you have added another disk you might have one
or more entire partitions available.  There are a number of
conventions for naming them, and I happen to like /u1, /u2, /u3,
etc., but you might like something else (/usr1, /usr2,
etc. perhaps).  Anyway, lets say that /u1 has a partition
mounted on it with enough space.  Make a /u1/local directory,
then copy everything from /usr/local into /u1/local (cp -a
/usr/local/* /u1/local); then mv /usr/local to some other name
(mv /usr/local /usr/local.old); and then make a symlink from
/u1/local to /usr/local (ln -s /u1/local/ /usr/local).

It is advisable to not log out of your root shell until you have
tested this!  Login again as root on a different virtual console
and verify that /usr/local/bin programs work.

At this point, you need to restart anything using /usr/local.
You can either go down to single user and then bring it back to
multiuser or just reboot the system.  Once you have verified
that programs in /usr/local/bin work, you can delete
/usr/local.old to gain space on the /usr partition.

There are several other sub-directories in /usr that might be
good candidates to relocate to another physical partition.  The
X11 directories are the most obvious...

-- 
Floyd L. Davidson         <http://www.ptialaska.net/~floyd>
Ukpeagvik (Barrow, Alaska)                 [EMAIL PROTECTED]

------------------------------

From: "Julio" <[EMAIL PROTECTED]>
Crossposted-To: gnu.emacs.help,alt.os.linux,comp.emacs
Subject: Format for config files
Date: Fri, 12 Jan 2001 21:02:00 -0500

I'm using emacs to redo my XF86Config file. The
file looks good but it doesn't parse out correctly
apparently because X always finds a syntax error.
Does anyone know what language format I should
use. Better yet, the proper emacs mode?
Furthermore, is there a way to get emacs to
display control characters?



------------------------------

From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: How to tell HW problem from SW problem?
Date: Sat, 13 Jan 2001 00:22:22 GMT

> If it is a hardware problem, I guess I replace the (US Robotics - 3Com
> 56K V.90 internal fax-) modem.

Not necessarily.  It could still be memory.  _How_ does it crash?  What are
the symptoms?
-- 
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin

------------------------------

From: [EMAIL PROTECTED] (Mark Post)
Subject: Re: Your Experiences with StoreAnywhere.COM
Date: Sat, 13 Jan 2001 02:24:48 GMT

On Thu, 11 Jan 2001 20:05:01 GMT, [EMAIL PROTECTED] (Kevin) wrote:

>Anyone have anything to say about their purchases from
>StoreAnywhere.COM?  Prices look pretty good.  But, I wonder
>about quality, delivery, after sales support, and all that.

Before I buy from anyone online, I always check them out at
http://www.resellerratings.com.

Mark Post

Postmodern Consulting
Information Technology and Systems Management Consulting
To send me email, replace 'nospam' with 'home'.

------------------------------

From: [EMAIL PROTECTED] (Mark Post)
Subject: Re: Tax Software??
Date: Sat, 13 Jan 2001 02:31:32 GMT

On 11 Jan 2001 18:25:04 -0600, Michel Catudal <[EMAIL PROTECTED]> wrote:

>[EMAIL PROTECTED] a �crit :

>> [EMAIL PROTECTED] (Christopher W. Aiken) writes:
>> > Is there any tax software like Kiplinger TAXCUT from
>> > H&R Block for FreeBSD or Linux?

>> You may be able to run TaxCut atop WINE; I must confess to not having
>> tried this out in a couple years, but I did run it successfully 2
>> years ago, and Wine _has_ to have improved since then...

>Is it possible to run wine when you don't have winblows on your PC?

Yes.  That's kind of the whole point.  :)

Mark Post

Postmodern Consulting
Information Technology and Systems Management Consulting
To send me email, replace 'nospam' with 'home'.

------------------------------

From: Bill Hudson <[EMAIL PROTECTED]>
Subject: Re: How do you use "checksum"?
Date: 13 Jan 2001 02:35:02 GMT

MH wrote:
> 
> David A. Gershman wrote:
> 
> > The program is called 'md5sum'.  Use the filename as an argument:
> >
> > % md5sum filename
> >
> > A string of HEX numbers are printed.  Compare this number with one
> > provided by the location where the file was retrieved from.  If legit,
> > it should match.  Keep in mind though md5 does not deal with security of
> > the program, but rather the successfulness of the download, i.e. no
> > erroneous bytes.
> >
> Gotta be the fastest NG reply EVER!!  Thanks!  I guess I misunderstood the
> purpose of the "checksum".  I thought it was to verify that the file hadn't
> been tampered with.  Why would anyone want to check for "erroneous" bytes,
> as IP and the modem/router should be handling that, no?

Yes, but there are times when a glitch can creep thru.  

Also, most security-conscious sites will post checksums for the packages
they have for download.  If the site is cracked, and the package
tampered with, the sums won't match anymore.  Of course the cracker
could try to tamper with the published sums...

-- 
Bill Hudson

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: linux.redhat.misc,rec.arts.movies.current-films
Subject: Re: [OT] - AntiTrust comes out this Friday!
Date: Sat, 13 Jan 2001 02:33:37 GMT

There's some pretty whacked discussion at the movie's website bulletin
boards.  http://www.mgm.com/antitrust.  Click on the "forums."
I am leaving to see this flick in about fifteen.  Looks rockin to me.

In article <[EMAIL PROTECTED]>,
  jtnews <[EMAIL PROTECTED]> wrote:
> tim wrote:
> >
> > http://us.imdb.com/Title?0218817
> > Looks to be a hot movie, especially for Linux afficionados!
>
> I just saw a yahoo movie review quote from
> Entertainment Weekly that said...
>
> (grade: C) "...as full of bugs...as a new release of
>                              Windows."
>
> I wonder if it was really mediocre or if the movie
> reviewer just couldn't understand it.
>
> http://movies.yahoo.com/shop?d=hv&id=1802760268&cf=info
>


Sent via Deja.com
http://www.deja.com/

------------------------------

From: Arctic Storm <[EMAIL PROTECTED]>
Subject: What Linux version is needed for Xinerama?
Date: Sat, 13 Jan 2001 02:41:13 GMT

What Linux version is needed for Xinerama?
I'm running RedHat 7, which came with Linux 2.2.16-22.
Do you absolutely need Linux version 2.3.46 or above?
Has anyone successfully setup multiple monitors using Linux version 
2.2.16-22?

-


------------------------------

From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: How to tell HW problem from SW problem?
Date: Fri, 12 Jan 2001 21:54:20 -0500

John Hasler wrote:
> 
> > If it is a hardware problem, I guess I replace the (US Robotics - 3Com
> > 56K V.90 internal fax-) modem.
> 
> Not necessarily.  It could still be memory.  _How_ does it crash?  What are
> the symptoms?

X Window System locks up solid (Running GNOME/Enlightenment).
Control-Alt-F[1-6] do nothing, Control-Alt-Backspace does nothing. I
have two machines on a LAN, and I cannot ssh into this machine when I
try it. (I can when both machines are up; that stuff all works fine when
this one is not crashed.)

Running on the panel (what Microsoft would call the taskbar) is a
"ModemLights" applet. The login sequence to my ISP has gone through
almost everything. It locks up with both the Receive and the Send light
on. I have heard the DTMF tones, and the beeps and growls of the
handshake go by normally and I have gotten almost to the point where
they tell me my local IP address and their IP address, but if they told
me that, it never made it into /var/log/messages.

Anything else you would like to know that would help?

-- 
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 9:45pm up 4:08, 3 users, load average: 2.50, 2.11, 2.04

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: What Linux version is needed for Xinerama?
Date: Sat, 13 Jan 2001 03:04:21 GMT

Arctic Storm <[EMAIL PROTECTED]> wrote:
> What Linux version is needed for Xinerama?
> I'm running RedHat 7, which came with Linux 2.2.16-22.
> Do you absolutely need Linux version 2.3.46 or above?
> Has anyone successfully setup multiple monitors using Linux version 
> 2.2.16-22?

Oy...  The version of Linux doesn't matter, the version of XFree86 does... 
XFree86 allows Xinerama in version 4.0 and higher.

Adam


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to