Linux-Misc Digest #748, Volume #26                Mon, 8 Jan 01 04:13:02 EST

Contents:
  Re: booting Redhat 7.0 from floppy is very slow (David)
  Re: epoch time <-> human time ("Peter T. Breuer")
  Re: booting Redhat 7.0 from floppy is very slow (Dave Brown)
  Re: Check for bad pointer ("D. Stimits")
  Re: epoch time <-> human time (David)
  Re: Check for bad pointer (Igor Lavrinenko)
  Re: email software ([EMAIL PROTECTED])
  multisession disks
  Re: Newbie :HOw do i get my modem to pulse dial under linux (Lew Pitcher)
  Crond logging ("Jeff Lacy")
  Re: soundblaster live in 2.4.0/2.2.18 (alex k)
  Re: Backup software for Linux? ("Jeff Lacy")
  Re: Need Ethernet Help (Michael Mueller)
  Re: what news reader do you use? (Elf Sternberg)
  Re: Partition overlapped (Eric)
  Re: Chown problem (Villy Kruse)
  Re: who's rewriting /etc/fstab? (Eric)
  duplex printing (Berend van Wachem)
  Docking Station ? (mwa)
  I want to know which one calles ~/.profile ("Johnny Li(Li Guang-lei 1575623)")
  Re: auto run ("Aaron R. Kulkis")

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

From: David <[EMAIL PROTECTED]>
Subject: Re: booting Redhat 7.0 from floppy is very slow
Date: Mon, 08 Jan 2001 06:55:05 GMT

Frank wrote:
> 
> I have installed Redhat 7.0 on two machines, IBM 300GL with PII350 and
> 128MB, Dell XPS T450 with 196MB. They have the same problem. It is very
> slow to boot from floppy. It takes more than 5 minutes to read some
> information in. As soon as finishing the reading part, Redhat is working
> fine.
> 
> Did anybody experience same kind of problem before? What kind of problem
> it could be? I have another machine installed RH 7.0. It boots normally
> from floppy.

Booting from a floppy is always slower than if you boot from the hard
drive but 5 minutes on either of those systems is kind of long. Have you
tried making a new bootdisk?

As root:
              mkbootdisk  --device  /dev/fd0  x.x.xx 
                # x.x.xx is kernel version. 

-- 
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter.  http://counter.li.org
ID # 123538
Completed more W/U's than 98.988% of seti users. +/- 0.01%

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: epoch time <-> human time
Date: Mon, 8 Jan 2001 07:47:19 +0100

David <[EMAIL PROTECTED]> wrote:
>> Is there a simple way to find human-readable time from "978931272 since
>> midnight jan 1 1970"?

>  978931272 / 86400 = 11330.223 Days
>  seconds divided by seconds in a day = days since 1970 at midnight

Hmmm .. I was hoping someone else would answer this, since I don't know
a one-step method. I'd use touch to create a file with that date, I
guess. ... ha! The manpage for date pays off:

   date --date="1 Jan 1970 + 1000000000 seconds"
   % Sun Sep  9 02:46:40 MET DST 2001


Peter

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

From: [EMAIL PROTECTED] (Dave Brown)
Subject: Re: booting Redhat 7.0 from floppy is very slow
Reply-To: [EMAIL PROTECTED]
Date: 8 Jan 2001 01:57:53 -0600

In article <[EMAIL PROTECTED]>, Frank wrote:
>I have installed Redhat 7.0 on two machines, IBM 300GL with PII350 and  
>128MB, Dell XPS T450 with 196MB. They have the same problem. It is very 
>slow to boot from floppy. It takes more than 5 minutes to read some 
>information in. As soon as finishing the reading part, Redhat is working 
>fine. 
>
>Did anybody experience same kind of problem before? What kind of problem 
>it could be? I have another machine installed RH 7.0. It boots normally 
>from floppy.

I've seen this before.  (I teach Linux in several classrooms which have 
both IBMs and Dells.)  In both cases, booting from diskette is painfully  
slow.  I've been tempted to make some boot CDs to circumvent the problem.  
there's a fix for it.  (But then the IBM's seem to take forever to go  
through POST also.)  

My home systems have ASUS motherboards, and they boot rather normally from 
diskette.

-- 
Dave Brown  Austin, TX

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

Date: Mon, 08 Jan 2001 00:00:40 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Check for bad pointer

Igor Lavrinenko wrote:
> 
> Let's say I have a pointer of type char*. Is there any way to tell if I
> am going to get SIGSEGV or SIGBUS if I try to dereference this
> pointer before I actually do (dereference) it. Of course, I can catch
> these signals. What if I can't simply exit() from the program but
> would rather return some error from the routine that caused
> (or would cause if I did not prevent it) SIGSEGV/SIGBUS.

A good thing to do is to always assign new pointers to NULL, until they
point at something. Once they are freed, they should again be assigned
to NULL. You can then trust a check against mypointer == '\0' to tell
you if it is valid or not. It is unfortunate if you have to deal with
someone else's code and they don't follow that practice.

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

From: David <[EMAIL PROTECTED]>
Subject: Re: epoch time <-> human time
Date: Mon, 08 Jan 2001 07:07:38 GMT

"Peter T. Breuer" wrote:
> 
> David <[EMAIL PROTECTED]> wrote:
> >> Is there a simple way to find human-readable time from "978931272 since
> >> midnight jan 1 1970"?
> 
> >  978931272 / 86400 = 11330.223 Days
> >  seconds divided by seconds in a day = days since 1970 at midnight
> 
> Hmmm .. I was hoping someone else would answer this, since I don't know
> a one-step method. I'd use touch to create a file with that date, I
> guess. ... ha! The manpage for date pays off:
> 
>    date --date="1 Jan 1970 + 1000000000 seconds"
>    % Sun Sep  9 02:46:40 MET DST 2001
> 
> Peter

I thought maybe he was trying turn seconds into days instead of what
time it is. 

-- 
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter.  http://counter.li.org
ID # 123538
Completed more W/U's than 98.988% of seti users. +/- 0.01%

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

Date: Sun, 07 Jan 2001 23:11:02 -0800
From: Igor Lavrinenko <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Check for bad pointer

"D. Stimits" wrote:

> Igor Lavrinenko wrote:
> >
> > Let's say I have a pointer of type char*. Is there any way to tell if I
> > am going to get SIGSEGV or SIGBUS if I try to dereference this
> > pointer before I actually do (dereference) it. Of course, I can catch
> > these signals. What if I can't simply exit() from the program but
> > would rather return some error from the routine that caused
> > (or would cause if I did not prevent it) SIGSEGV/SIGBUS.
>
> A good thing to do is to always assign new pointers to NULL, until they
> point at something. Once they are freed, they should again be assigned
> to NULL. You can then trust a check against mypointer == '\0' to tell
> you if it is valid or not. It is unfortunate if you have to deal with
> someone else's code and they don't follow that practice.

This is a great idea except it does not work in cases when you receive
a pointer as an argument in the function call (say a pointer to an array
of characters) and user of the library is responsible for allocating of the
memory. The only thing one can do in this situation is to check if p != 0.
This is certainly not enough. The problem stays.


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

From: [EMAIL PROTECTED]
Subject: Re: email software
Crossposted-To: alt.os.linux
Date: Mon, 08 Jan 2001 07:10:47 GMT

I artikeln <[EMAIL PROTECTED]> skrev "Harry"
<[EMAIL PROTECTED]>:


> what's the bare minimum required for sending and receiving email over
> IP? The sofware is so wide and varied it's bewildering. Sendmail,
> procmail, mailx, pine, elm, mutt, metamail, imapd, smail etc, plus
> umpteen X-based efforts. Jesus, what's it all about?
>

If you're looking for a pretty good GUI mail client, try Balsa, that
interfaces nicely with Gnome desktop. If you're the KDE kind of guy, it's
KMail that you need.

/Mats

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

From: <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Subject: multisession disks
Date: 7 Jan 2001 23:20:44 -0800


I am having trouble making multisession CDs.  I made the first 
session with:
mkisofs -J -R -o try.iso first/=stuff/
then
cdrecord -multi dev=0,0,0 try.iso
then the second
mkisofs -J -R -o t.iso -C `cdrecord dev=0,0,0 -msinfo` \
 -M /dev/scd0 second/=stuff2
then
mount t.iso -t iso9660 -o loop /mnt
and I get:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
        or too many mounted file systems

mounting the first image works just fine....burning the second in
results in only data from the first being visible but -msinfo
returns values like a second session is there.....I don't get
it....help.  I tried using 0,0,0 instead of /dev/scd0 and removing
the joliet....neither worked.

my drive IS capable of multi-session r/w because it works fine
with the EasyCD program in win98....I have been using this thing
for a long time, but this is the first attempt at a multisession
disk in linux.

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

From: Lew Pitcher <[EMAIL PROTECTED]>
Subject: Re: Newbie :HOw do i get my modem to pulse dial under linux
Date: Sun, 07 Jan 2001 22:27:29 -0500

[EMAIL PROTECTED] wrote:
> 
> Newbie :HOw do i get my modem to pulse dial under Corel linux

In your chatscript, put in the Hayes AT command that switches the modem
to pulse dialing. IIRC, it should be ATDP (for "Attention, Dial/Pulse").
To reset back to touchtone, the command would be ATDT (for "Attention,
Dial/Touchtone").


-- 
Lew Pitcher

Master Codewright and JOAT-in-training
Registered Linux User #112576

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

From: "Jeff Lacy" <[EMAIL PROTECTED]>
Subject: Crond logging
Date: Mon, 08 Jan 2001 07:48:26 GMT

Hello everyone.  I'm kind of new to the list, so please bear with me if I
sound stupid or something.  Thanks.

I am running RH7.0, and it seems like most of /var/log/messages is consumed
with 'dumb' logs from crond.  I was wondering if I could maybe tell crond to
log it's output to /var/log/cron or something, and if it can be done, how do
I do it?  I would really appreciate any advice/help someone could give me.
Thanks a bunch in advance :-D

Jeff




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

From: alex k <[EMAIL PROTECTED]>
Subject: Re: soundblaster live in 2.4.0/2.2.18
Date: Mon, 08 Jan 2001 07:35:41 GMT

In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> Find a short .wav file or something, then "cat example.wav > /dev/dsp"
> as root.  That should make the speakers do *something*, even if the
> sound's distorted and bursty.  If that works, "chmod 666 /dev/dsp
> /dev/mixer" as root, and your problems should be over.
>
> BTW, the alphabetical commands for chmod don't always do what you
> expect.  The octal modes are often a better choice.  FWIW, the result
> you got with "chmod +w" seems to be expected behavior, though "chmod
> ugo+w" does the appropriate thing.  HTH,
>

indeed. i haven't seen that before, that the alphabetical
flags could be 'worse'. it worked now.

i was thinking that perhaps they werent supposed to be +w
and hence couldnt be made that way, and that the problem
was elsewere.

thanks

--
. 
. 
...: [ ~~~~~~~ ] :...


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

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

From: "Jeff Lacy" <[EMAIL PROTECTED]>
Subject: Re: Backup software for Linux?
Date: Mon, 08 Jan 2001 07:51:49 GMT

You might try amanda.  It is at http://www.amanda.org.

Jeff


"Chris MacTavish" <[EMAIL PROTECTED]> wrote in message
news:W2066.115260$[EMAIL PROTECTED]...
> Hello all,
> Does anyone know of a good backup program for Redhat 6.2? I have tried
> "taper" but i get a memory fault error halfway through when running it
from
> the command line. I have a Seagate 20/40 Dat backup drive and im trying to
> back up 30 GB of data. I need a backup program that does compression.
Maybe
> taper will work if i can figure out why it memory faults. If anyone has
any
> ideas as to why taper memory faults or of another way to back up my data
> then please help me....i can't be the only one trying to back up large
> amounts of data!
>
> Thanks
> Chris
>
>



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

From: Michael Mueller <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.admin,comp.os.linux.help,comp.os.linux.networking,comp.os.linux.questions,comp.os.linux.setup
Subject: Re: Need Ethernet Help
Date: Mon, 08 Jan 2001 08:36:35 +0100

Hi Ali,

you wrote:
> eth0: 3c509 at 0x300 tag 1, BNC port, address  00 20 af 35 54 6f, IRQ
[...]
>   Board assembly 668081-004, Physical connectors present: RJ45

Additionally to the general cabling problems already mentioned by others
have a look at above messages. You wont get the cards working together
if one of them (the 3COM) does use the BNC port (looks like the
connector for an antenna) while the other one uses the RJ45 port (looks
like an american phone connector).

You may have to modify the settings of the 3COM card using the DOS
utiltiy (3c5x9cfg) to use the RJ45 port (could be called "TP" there)
too.


Malware

Fup2 comp.os.linux.networking

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

From: [EMAIL PROTECTED] (Elf Sternberg)
Crossposted-To: linux.redhat.misc
Subject: Re: what news reader do you use?
Date: 8 Jan 2001 07:49:59 GMT

In article <e1x56.122136$[EMAIL PROTECTED]> 
    "blix" <[EMAIL PROTECTED]> writes:

>I am currently using PAN... it seems to be the closest to the newsreader
>I am used to on my Windows machine (MS Outlook Express). 

        trn.  Once properly tuned, reading news becomes an obvious and
intuitive process.

                Elf

--
Elf M. Sternberg, Immanentizing the Eschaton since 1988
http://www.halcyon.com/elf/

"You know how some people treat their body like a temple?
     I treat mine like issa amusement park!" - Kei

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

From: Eric <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.install,linux.redhat.misc
Subject: Re: Partition overlapped
Date: Mon, 08 Jan 2001 09:16:54 +0100
Reply-To: [EMAIL PROTECTED]

> In the first example, the partitions 3 and 4 are overlapped.
> In the second example, you have a native Linux logical in a
> W95 extended- is this possible?
> 

It is possible to have any partitiontype inside any extended.
(don't put another extended in though)
Whether it's usable or not depends on the OS that reads the table.
Putting a windows ID inside a linux extended is also possible. 
Linux won't care, windows wouldn't be able to find it though.

The overlap should not be possible, but poor partitioning programs
exist.
Normally you wouldn't be able to create such a table though.

Eric

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

From: [EMAIL PROTECTED] (Villy Kruse)
Crossposted-To: alt.os.linux
Subject: Re: Chown problem
Date: 8 Jan 2001 08:28:58 GMT

On Sat, 06 Jan 2001 16:50:27 +0100,
                     Michael Heiming <[EMAIL PROTECTED]> wrote:

>Eric en Jolanda wrote:
>
>>
>> Escape the shell interpreterer?
>> try andrew\.chan instead.
>
>Doesn't work on my system SuSE 7.0 - 2.2.16...
>


Which is not to be expected either, as the dot is not special to the
shell but to the chown command itself, and the shell will strip the
backslash before chown even sees it leaving the original andrew.chan.

Villy

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

From: Eric <[EMAIL PROTECTED]>
Subject: Re: who's rewriting /etc/fstab?
Date: Mon, 08 Jan 2001 09:31:22 +0100
Reply-To: [EMAIL PROTECTED]

jeff wrote:
> 
> On 7 Jan 2001 16:54:51 GMT, Carl Fink <[EMAIL PROTECTED]> wrote:
> > On Sun, 7 Jan 2001 09:08:23 +0100 Eric en Jolanda <[EMAIL PROTECTED]> 
>wrote:
> > >
> > >to use dd for volume copy, you'd use
> > >
> > >dd if=/dev/hda of=/dev/hdb
> > >
> > >No UNIX file(point of argument), no defrag, no touching of data in anyway.
> > >hdb would be an exact copy of hda, partition table included.
> >
> > What would happen if the drives are different?  (Different
> > capacities, different block sizes, etc.)

I don't know what you mean by blocksizes, but if you mean sector sizes,
there are equal for all
HDD's. It's always 512 bytes per sector. You can convert blocksizes with
dd too. Read the manpage
of dd for more info. (dd is an *extremely* useful tool, it's worth
checking out)

> I use a full-drive dd to backup my multi partition system on a weekly basis
> - but only to a drive with identical geometry.  I've never tried copying to
> a different type of drive but my guess is that the result would be an
> unusable mess.  Since dd does, AFAIK, a block-for-block copy, I'm guessing
> that all boundaries (partition, partition table, etc.) would be off.
> 

I wouldn't be sure about that.
If you would let the BIOS go its way, then yes, but luckily in linux you
can specify
the number of CHS to use for any specific IDE HDD. Specify what the old
drive's values were,
and I think you should be capable of at least accessing the data.

If you don't like the hassle of this (I'm not even sure if it will work)
make images
of the partitions, instead of the entire disk.

`dd if=/dev/hda1 of=a_file_on_backup_device`

Eric

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

From: Berend van Wachem <[EMAIL PROTECTED]>
Subject: duplex printing
Date: Mon, 08 Jan 2001 09:46:06 +0100

Dear All,

I am working with Red Hat 7.0 and I can't get our HP 4050 to print in
Duplex mode. I can't find any options under printtool. Does anyone know
how I can print either duplex or simplex with red hat 7.0?

Thanks in advance,

Berend.



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

Subject: Docking Station ?
From: mwa <[EMAIL PROTECTED]>
Date: Mon, 08 Jan 2001 09:02:12 GMT


HP Omnibook 4150 with docking station.  What I would
like, is to get the NIC card, which is plugged into
a PCI slot on the docking station, functional.  I have
tried this before with no success.  The card is an
AMD (lance) which uses the pcnet32 module.  The card is recognized,
by the kernel, and exists as eth0.  I configured the card
with great detail using ifconfig, making sure everything was
right - and set a default route to another box to ping.
The card will not transmit...period.  My question is:
what kind of things could be preventing the kernel with
actually communicating with the card?  Specifically, what
caveats are there, if any, with extending the PCI bus
via a docking station and having the kernel recognize and
use the hardware correctly?


-mwa

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

From: "Johnny Li(Li Guang-lei 1575623)" <[EMAIL PROTECTED]>
Subject: I want to know which one calles ~/.profile
Date: Mon, 08 Jan 2001 17:08:54 +0800

I want to know which one calles ~/.profile during your login session of CDE in a
Solaris box.

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

From: "Aaron R. Kulkis" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: auto run
Date: Mon, 08 Jan 2001 04:08:32 -0500

[EMAIL PROTECTED] wrote:
> 
> Aaron R. Kulkis <[EMAIL PROTECTED]> did eloquently scribble:
> > since I've never seen a self-running program, I'm merely
> > asking you what the fuck this "autorun" thing is supposed to be?
> 
> Ever heard of a daemon?

Yes, i'm fully aware of daemons :-)

> (And it DOES mean without human intervention AS WELL AS "self running"
> these days. Words change their meaning over time y'know).

no...deamons are started by init via either /etc/inittab or
other mechanisms such as /etc/rc.d/rc[n].d/S[XX]script_name

> 
> You're not worth the effort.
> You've been told three times now to cut it out with the sig, and you haven't

My .sig serves it's purpose....to dissaude personal attacks as described
therein by the various individuals listed.

> even responded to it... Let alone cut it down to size.

It only works if it's constructed right.

Besides, 1000 copies of my .sig are less bandwidth than one jpeg.

> 
> You even left this bit....
> 
> >> Oh, and I noticed you totally ignored the rest of my posting...
> >>
> >> So I'll repeat it as you seem to be incredibly thick. It might sink in this
> >> time...
> 
> But snipped the bit you didn't want to see because it'd make your stupid sig
> shrink.
> 
> The "accepted" sig length is 4 lines although some people go 2 or 3 lines
> over... You're going 33 lines over!
> 

A currently frivolous  rule written when 1 Megabyte of mem, a 1 MHz processor,
and 200M disk drive was considered to be a rather impressive system, and
1200 bits/second was blazzzzzzzing speed for a modem.



> Now sod off until you've got a clue.
> 
> --
> |                          |What to do if you find yourself stuck in a crack|
> |  [EMAIL PROTECTED]    |in the ground beneath a giant boulder, which you|
> |                          |can't move, with no hope of rescue.             |
> |Andrew Halliwell BSc(hons)|Consider how lucky you are that life has been   |
> |           in             |good to you so far...                           |
> |    Computer Science      |   -The BOOK, Hitch-hiker's guide to the galaxy.|


-- 
Aaron R. Kulkis
Unix Systems Engineer
DNRC Minister of all I survey
ICQ # 3056642


H: "Having found not one single carbon monoxide leak on the entire
    premises, it is my belief, and Willard concurs, that the reason
    you folks feel listless and disoriented is simply because
    you are lazy, stupid people"

I: Loren Petrich's 2-week stubborn refusal to respond to the
   challenge to describe even one philosophical difference
   between himself and the communists demonstrates that, in fact,
   Loren Petrich is a COMMUNIST ***hole

J: Other knee_jerk reactionaries: billh, david casey, redc1c4,
   The retarded sisters: Raunchy (rauni) and Anencephielle (Enielle),
   also known as old hags who've hit the wall....

A:  The wise man is mocked by fools.

B: Jet Silverman plays the fool and spews out nonsense as a
   method of sidetracking discussions which are headed in a
   direction that she doesn't like.
 
C: Jet Silverman claims to have killfiled me.

D: Jet Silverman now follows me from newgroup to newsgroup
   ...despite (C) above.

E: Jet is not worthy of the time to compose a response until
   her behavior improves.

F: Unit_4's "Kook hunt" reminds me of "Jimmy Baker's" harangues against
   adultery while concurrently committing adultery with Tammy Hahn.

G:  Knackos...you're a retard.

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


** 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