Linux-Misc Digest #387, Volume #24 Sat, 6 May 00 23:13:04 EDT
Contents:
Re: Need to find my IP address (brian moore)
Re: Why partition a Disk? (Christopher Browne)
Re: using gaim for linux (Andrew Purugganan)
Re: "Core" file ([EMAIL PROTECTED])
Re: [HELP] Mounting Macintosh fileserver on Linux ([EMAIL PROTECTED])
Re: Choice of modem (Ian)
Re: incremental backup with tar? (Leslie Mikesell)
Re: Need to find my IP address (Kaz Kylheku)
Re: Why partition a Disk? (Rick Hoffman)
Re: Man display error ("James Li")
Re: Driver for Panasonic/MKE CDROM? (Tim Lines)
Re: sound in corel linux (Prasanth Kumar)
Re: Benchmarks and relative speeds (Raj Rijhwani)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (brian moore)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development.system,comp.os.linux
Subject: Re: Need to find my IP address
Date: 7 May 2000 01:25:34 GMT
On Sat, 06 May 2000 21:06:50 GMT,
Chris <[EMAIL PROTECTED]> wrote:
> On Sat, 6 May 2000 17:51:38 +0200, [EMAIL PROTECTED] (Tobias Anderberg)
> wrote in comp.os.linux.development.apps:
>
> > int fd;
> > struct ifreq i;
> > fd = socket(AF_INET, SOCK_DGRAM, 0);
> > strncpy(i.ifr_name, "eth0", 5);
> > ioctl(fd, SIOCGIFADDR, (int) &i);
> > close(fd);
> > return (char *)inet_ntoa(((struct sockaddr_in *)
> > &i.ifr_addr)->sin_addr);
>
> Herein lies one of my biggest complaints about the Linux development
> environment: there should be no reason why an application programmer must
> rely on undocumented "catch-all" calls to accomplish simple tasks. The
> "man ioctl_list" page is a complete waste of time-- it's hopelessly out of
> date and only contains the argument type for each command without any
> explaination of where, why or how each should be used. Application
> programmers shouldn't have to resort to sifting through the kernel source
> code to figure out how to perform simple and common tasks.
Perhaps you should just buy a book? Something like Unix Network
Programming should have the above.
It will certainly have the much-more-recommended method of finding your
IP number, which is to find your hostname and then look it up. Both
methods will be lacking in some circumstances (think of machines with
more than one IP number for a trivial case).
> People who write device drivers or kernel modules should provide a proper
> man(2) or man(3) page. Ideally, we should kill off the ioctl() function
> and place all accessible driver variables in /proc.
If you remove ioctl(), how will you plan on maintaining compatibility
with other Unix systems?
--
Brian Moore | Of course vi is God's editor.
Sysadmin, C/Perl Hacker | If He used Emacs, He'd still be waiting
Usenet Vandal | for it to load on the seventh day.
Netscum, Bane of Elves.
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Why partition a Disk?
Reply-To: [EMAIL PROTECTED]
Date: Sun, 07 May 2000 01:34:12 GMT
Centuries ago, Nostradamus foresaw a time when Rick Hoffman would say:
>> My inclination would be to fix things up by reinstalling, perhaps moving
>> ahead to a newer distribution version, and recovering data from the backup
>> of /etc as needed.
>>
>> You're not required to agree with that approach...
>
>Well, you all are giving me a better feel for what multiple partitions
>provide. I am also beginning to realize that backing up Linux
>doesn't necessarily require the backup to be a full bootable system.
>Just the data that changes regularly and if the partition strategy
>is done well then recovery will be just a matter of reinstalling the
>"system friendly" partitions like you just mentioned which would then
>be automatically integrated with the partitions/data that you backed up.
>Did I say that right?
That sounds pretty appropriate.
You know, I'd suggest virtually the same approach for a Windows install,
with much of the same reasoning.
Basically:
- Have C: be where Windows is installed, and, probably, applications.
- D: is where user data gets put.
This way, if the Registry gets so screwed up that you need to reinstall
Windows, there's at least a hope of keeping data on D: around.
I have gradually moved to using cfengine to set up increasing amounts
of my system configuration. <http://www.iu.hioslo.no/cfengine/> This
amounts to constructing scripts that dribble necessary configuration into
configuration files wherever they may be.
The result is that the control of configuration on my system is wandering
into /etc/cfengine. Net result is that when I install a new system,
an early thing I do is to install cfengine, and then run it on that set
of data, whether:
a) NFS mounted from another system,
b) Sitting on a floppy, or
c) Burnt onto a CDROM backup.
I run cfengine, and it copies some config files into place, and inserts
entries into others, as needed. The beauty of this is that this leads
towards a "self-configuring" system. I _wish_ cfengine was a tad
friendlier; it would be quite wonderful to have a GUIed front end to
help generate rule sets. It's still useful enough to be valuable...
--
"Are [Linux users] lemmings collectively jumping off of the cliff of
reliable, well-engineered commercial software?" -- Matt Welsh
[EMAIL PROTECTED] - - <http://www.ntlug.org/~cbbrowne/lsf.html>
------------------------------
From: [EMAIL PROTECTED] (Andrew Purugganan)
Crossposted-To: comp.os.linux.networking,comp.os.linux.x
Subject: Re: using gaim for linux
Date: 7 May 2000 01:34:23 GMT
Rob Flynn ([EMAIL PROTECTED]) wrote:
<snip>
: That should be all you'll need to do. If you have any other questions,
: fire off and email to me.
: > Has anyone gotten gaim to work? I've downloaded both the rpm and tar
: file
how do u run it greg? I am using it but the only problem I think is it
resets my buddies. I have to see when it does this though, I am not sure
it has to do with switching screen names.
--
jazz
Doesn't it bother you, that we have to search for intelligent life
--- OUT THERE??
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: "Core" file
Date: Sun, 07 May 2000 01:37:26 GMT
Federico Czerwinski <[EMAIL PROTECTED]> did eloquently scribble:
> Hey! This site rules!, Here's the question: When i got an error (usualy
> under X) a file is created, named "CORE", which is quite larger......can i
> erase it?
Yes.
> What is that file!?
When a program crashes, it produces a snapshot of the state it was in at the
time of the crash called CORE.
> What's it for?
Debugging/finding out why it crashed.
Using something like
file CORE
will tell you what program produced the CORE file.
And using
gdb (program_name> CORE
Will allow you to find out why it crashed (if you're into that kinda thing).
--
=============================================================================
| [EMAIL PROTECTED] | Windows95 (noun): 32 bit extensions and a |
| | graphical shell for a 16 bit patch to an 8 bit |
| Andrew Halliwell BSc | operating system originally coded for a 4 bit |
| in |microprocessor, written by a 2 bit company, that|
| Computer Science | can't stand 1 bit of competition. |
=============================================================================
|GCv3.12 GCS>$ d-(dpu) s+/- a C++ US++ P L/L+ E-- W+ N++ o+ K PS+ w-- M+/++|
|PS+++ PE- Y t+ 5++ X+/X++ R+ tv+ b+ DI+ D+ G e++ h/h+ !r!| Space for hire |
=============================================================================
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.networking,comp.protocols.appletalk,comp.sys.mac.misc
Subject: Re: [HELP] Mounting Macintosh fileserver on Linux
Date: Sun, 07 May 2000 01:35:04 GMT
In article <8HAQ4.66$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> [Posted and mailed]
>
> In article <PNyQ4.127$[EMAIL PROTECTED]>,
> "Paul Harman" <[EMAIL PROTECTED]> writes:
> > I have a very large picture archive stored on an Apple Mac server, which I
> > would like to be able to mount (nfs style) onto a Linux server. The Mac
> > server already exports volumes to many other Macs in my organisation, so
> > effectively I just want my Linux box to "pretend" to be a Mac.
> >
> > I've had some experience with netatalk, but as I understand it netatalk does
> > the exact opposite of what I require here - copying all of the files off
> > this large Mac server just isn't an option.
> >
> > Has anyone had any experience doing something like this, and if so could
> > they point me in an appropriate direction?
>
> Your only practical solution is to buy an NFS or SMB server for the
> Macintosh, then use NFS or smbmount to mount the share in Linux. There is
> a package for Linux that theoretically mounts AppleTalk shares, but it's
> alpha-level software and is reportedly not usable. Check
> http://www.panix.com/~dfoster/afpfs/ if you want more information on it.
I agree on NFS or SMB being your solution. Is the server running AppleShare
6.x? That does SMB sharing pretty well, you just have to configure it right
on the server end.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Ian <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.hardware
Subject: Re: Choice of modem
Date: Sun, 07 May 2000 02:14:26 GMT
Sandhitsu R Das wrote:
>
> On Sat, 6 May 2000, Rob Clark wrote:
>
> I've checked the big list. It isn't as clear as I wanted it to be. So I
> thought I'd ask for personal accounts.
>
> >
> > Please check the "big list" at http://www.o2.net/~gromitkc/winmodem.html
> >
> > Rob Clark, [EMAIL PROTECTED]
> >
Mostly any internal ISA or external modem will work. To be sure, don't
touch any PCI modem.
I've had a Supra Express internal ISA 33.6 and now a Zoom internal ISA
56k Dual V90/Flex, both work flawlessly.
--
Ian
http://www.bigfoot.com/~skullfang
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup,redhat.servers.general
Subject: Re: incremental backup with tar?
Date: 6 May 2000 21:19:54 -0500
In article <8f0scj$fni$[EMAIL PROTECTED]>,
ChemSoft GmbH <[EMAIL PROTECTED]> wrote:
>hi all,
>i try to do an incremental backup with tar on an 4mm DAT.
>is this possible?
>first i backed up all files on an multiple volume (3 tapes) now i want to
>backup every night only the files that are new or have changed. is that
>possible with tar/cron without using an expensive backup-application?
>after the backup an email should sent to the admin with a list of the
>backuped files (tar tf /dev/st0 >backup.log). the problem is how to send
>this log-file to the admin/root?
If you are using GNUtar there are several options to control which
files are archived, the best of which is "--listed-incremental
filename". If 'filename' does not exist, it is created and you
get a full backup. If it does exist, you get all files newer than
the last run and everything (including old files) under renamed
directories. Additional information is included in the archive to
optionally allow you to delete files during the restore that were
not present at the time the backup was taken (there is no way to
do this with cpio or non-GNU tar). The --listed-incremental file
is modified in place after an incremental run. If you want to base
all incrementals from the initial full, you should copy the file
before each incremental and replace it with the original afterwards.
If you want to create a 'chain' of incrementals that must be restored
in sequence, leave the modified file each time. A simple script
can do this, including mailing the output to the admin. Or, if you
have more than a few filesystems you might want to install the
free 'amanda' system that not only performs this scripting across
machines but also does the scheduling of full/incrementals to
match the tape space you have.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development.system,comp.os.linux
Subject: Re: Need to find my IP address
Reply-To: [EMAIL PROTECTED]
Date: Sun, 07 May 2000 02:20:58 GMT
On 7 May 2000 01:25:34 GMT, brian moore <[EMAIL PROTECTED]> wrote:
>Perhaps you should just buy a book? Something like Unix Network
>Programming should have the above.
>
>It will certainly have the much-more-recommended method of finding your
>IP number, which is to find your hostname and then look it up. Both
>methods will be lacking in some circumstances (think of machines with
>more than one IP number for a trivial case).
The recommended method is to not try to find your IP number. Programs that try
to discover the IP address of the local machine are kludgy, and will break
under circumstances that the author did not take into account: multiple
interfaces, IP aliasing, dynamic IP, etc.
--
#exclude <windows.h>
------------------------------
From: Rick Hoffman <[EMAIL PROTECTED]>
Subject: Re: Why partition a Disk?
Date: Sat, 06 May 2000 22:21:32 -0400
>
> That sounds pretty appropriate.
>
> You know, I'd suggest virtually the same approach for a Windows install,
> with much of the same reasoning.
>
> Basically:
> - Have C: be where Windows is installed, and, probably, applications.
> - D: is where user data gets put.
>
> This way, if the Registry gets so screwed up that you need to reinstall
> Windows, there's at least a hope of keeping data on D: around.
>
> I have gradually moved to using cfengine to set up increasing amounts
> of my system configuration. <http://www.iu.hioslo.no/cfengine/> This
> amounts to constructing scripts that dribble necessary configuration into
> configuration files wherever they may be.
>
> The result is that the control of configuration on my system is wandering
> into /etc/cfengine. Net result is that when I install a new system,
> an early thing I do is to install cfengine, and then run it on that set
> of data, whether:
> a) NFS mounted from another system,
> b) Sitting on a floppy, or
> c) Burnt onto a CDROM backup.
>
> I run cfengine, and it copies some config files into place, and inserts
> entries into others, as needed. The beauty of this is that this leads
> towards a "self-configuring" system. I _wish_ cfengine was a tad
> friendlier; it would be quite wonderful to have a GUIed front end to
> help generate rule sets. It's still useful enough to be valuable...
Boy, I am really glad I kept up with this line of conversation because every
response has been very helpful and now yours, Chrisopher, has stepped, I think,
into an area that I ultimately was looking to get to. I am fairly new to Linux
and just started using it on my home PC recently. There is one hell of a lot of
files that make up this system. WHEW! Maybe 2% of all these files I feel
comfortable with. Out of all these files what do I backup and replace, after a
disaster or upgrade, to allow as much as possible returning to the same
configurations on everything as I had before? I want to get to that point as
quickly as possible before my configuration matures too much, you know what I
mean? This cfengine you speak of can help with that? I am definently interested
in knowing more. Thanks, I think, for bringing this up!!
hoffy
------------------------------
From: "James Li" <[EMAIL PROTECTED]>
Subject: Re: Man display error
Date: Sun, 7 May 2000 10:31:46 +1000
Thanks Bob. fsck does not help. Maybe it's time to get a new hard disk.
"Bob Martin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> James Li wrote:
> >
> > I have installed RedHat Linux 6.2 on a Pentium machine. I can't search
man.
> > It display some errors.
> > Take "ls" for example. Display looks like the following:
> > man ls
> > hdb: read_intr: status=0x59 { DriveReady SeekComplete DataRequest
Error }
> > hdb: read_intr: error=0x40 { UncorrectableError }, LBAsect=1737096,
> > sector=1499145
> > end_request: I/O error, dev 03:46 (hdb), sector 1499145
> > Error executing formatting or display command.
> > System command /bin/gunzip -c /var/catman/cat1/ls.1.gz |
/usr/bin/less -is
> > exited with status 135
> >
> > Please help troubleshoot the problem.
> >
> > James Li
>
> man doesn't look to be the problem, you are getting errors from your
> disk drive , hdb. You might run fsck on it, see if it can fix anything.
> but may be having a hardware failure, which means it's time for a new
> drive.
> --
>
> Bob Martin
>
>
------------------------------
From: Tim Lines <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: Driver for Panasonic/MKE CDROM?
Date: Sun, 07 May 2000 02:48:00 GMT
It's been years since I've used one of these. A couple things occur though:
1. You say that the CT1810 card is set for IO address of 0x230 but you later
say that you've tried to load the module with "linux sbpcd=0x250,1". Why are
you using 250 here instead of 230?
2. The second parameter you mention (,1) represents the type of CD connected
where 0=LaserMate, 1=SB, 2=Soundscape, 3=Teac16bit. I remember having to cycle
through the CD types until I found one that worked.
Darrell Earnshaw wrote:
> Hi.
>
> I have recently installed RH60 on an old Pentium system that has a Panasonic
> CR563B CDROM, which in turn uses a Create CT1810 interface card. (The CDROM
> is not IDE, alas.) The jumpers on the CT1810 card are set to the default
> address of 230 (JP1).
>
> When I initially installed Linux, I selected CDROM type of "SoundBlaster",
> and the boot diskette obviously found a suitable driver, because the rest of
> the installation worked directly from the RH CDROM without problem. However,
> now that Linux is installed, I cannot find a driver that wil allow me to
> mount the CDROM. All documentation seems to suggest that the SBPCD driver is
> the one to use, but this driver does not seem to recognize the device. (When
> I issue the command: "mount -t iso9660 /dev/sbpcd /mnt/cdrom", all I get is
> a couple of messages about scanning for certain devices, followed by a
> failure to locate a suitable device. Likewise, issuing the following command
> "linux sbpcd=0x250,1" to the Lilo BOOT: command doesn't seem to make any
> difference.)
>
> I've tried posing the problem on the Red Hat Installation mail reflector
> without any success. Can anyone suggest what I may be doing wrong?
>
> Thanks in advance,
>
> Darrell.
------------------------------
From: Prasanth Kumar <[EMAIL PROTECTED]>
Subject: Re: sound in corel linux
Date: Sun, 07 May 2000 03:03:01 GMT
mike_mcc13 wrote:
>
> I can't get my soundcard to setup in corel linux 1.1 when i run sound setup
> it says it can't open isapnp.conf. i have teh correct module installed
> into my kernel the es 171 module thanks for the help
>
> --
> Posted via CNET Help.com
> http://www.help.com/
If the file /etc/isapnp.conf doesn't exist, then you might try (as
root):
pnpdump >/etc/isapnp.conf
--
Prasanth Kumar
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Raj Rijhwani)
Crossposted-To: uk.comp.os.linux
Subject: Re: Benchmarks and relative speeds
Date: Sun, 07 May 2000 02:58:05 GMT
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>
[EMAIL PROTECTED] "David Efflandt" writes:
> What clock speed and memory speed does that K6-2/500 use? The older K6
> chips are not known for their fpu speed. When I went from P180 MMX
Bus speed 100MHz, chip speed 500Mhz, fast memory in the BIOS, can't
remember the actual memory times.
> overdrive (200 MHz) to Evergreen K6-2/400 upgrade, my SETI@home times only
> improved about 15% (~29 hrs). My PIII 500 laptop does SETI@home over 3
> times faster (~8 hrs) and compiles a kernel more than twice as fast.
Hmmm - maybe I should consider substituting a PIII...
> Benchmarking-HOWTO
Doh! Why is it (with the complete HOWTOs on disk) I never think to
look there? I must have a mental block. Thanks.
> >(I heard some rumblings about Linux not behaving well with more than
> >64Mb of RAM. Since the new machine has 128Mb I wonder, is this a true
> >concern?)
> Note likely. I can definitely tell you that 96 meg works better than 32
> meg, since it just about eliminates swapping.
I thought this was probably a bogus argument when I heard it, but I
wondered.
--
Raj Rijhwani (umtsb5/16) | This is the voice of the Mysterons...
[EMAIL PROTECTED] | ... We know that you can hear us Earthmen
| "Lieutenant Green: Launch all Angels!"
http://www.courtfld.demon.co.uk/raj/ (demon, and gods, willing...)
------------------------------
** 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 (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
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
******************************