Linux-Misc Digest #77, Volume #25 Sat, 8 Jul 00 21:13:02 EDT
Contents:
Re: Question about ls ("Andrew N. McGuire ")
Re: Problem with compilation ("Andrew N. McGuire ")
Re: Linux wont boot ("Andrew N. McGuire ")
Re: booting stops when trying to mount partitions. ("Andrew N. McGuire ")
Re: Changing keymappings ("Andrew N. McGuire ")
Re: booting stops when trying to mount partitions. (Buchan Milne)
Re: I want to give free web hosting and email (antipop)
Re: dd of DOS MBR wanted (to boot dos on hdb) (Homer Jay)
CHILD_MAX: can't limit the number of processes per real UID (Olivier ROBERT)
Re: kudzu,pcmcia and sound (Bob Martin)
Re: booting stops when trying to mount partitions. (Bob Hauck)
Re: Linux in China? ([EMAIL PROTECTED])
Re: DSL connection (Jim McIntyre)
Re: DSL connection (Hal Burgiss)
Re: named no starting on boot? (Jim McIntyre)
----------------------------------------------------------------------------
Crossposted-To: comp.os.linux,comp.os.linux.help
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: Question about ls
Date: Sat, 8 Jul 2000 17:25:21 -0500
On 8 Jul 2000, Andrew Onifer quoth:
[] On Sat, 08 Jul 2000 15:41:27 GMT, Chris Ahlstrom <[EMAIL PROTECTED]> wrote:
[] >Tandem Guy wrote:
[] >> Hello. I'm a pretty new linux user and I'm having trouble using the
[] >> command ls. I would like to search the current directory (or some
[] >> arbitrary directory for that matter) and ALL subdirectories located
[] >> under it for the existence of a given file, but I can't make that
[] >> happen.
[] >Use the "find" command. Do "man find" to learn about it.
[] >The command you want would be something like this:
[] > find . -name *.zip
[]
[] Correction: It should be
[] find . -name "*.zip"
[]
[] Without the quotes, the asterisk will get passed to the shell.
Correction: no it won't. ( depending on your shell )
[anm@hawk ~] find . -name *.txt
./docs/ac_dns.txt
./ac_dns.txt
Works just fine in tcsh anyway.
anm
--
/*------------------------------------------------------------------------.
| Andrew N. McGuire |
| [EMAIL PROTECTED] |
| perl -le'print map?"(.*)"?&&($_=$1)&&s](\w+)]\u$1]g&&$_=>`perldoc -qj`' |
`------------------------------------------------------------------------*/
------------------------------
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: Problem with compilation
Date: Sat, 8 Jul 2000 17:29:12 -0500
On Sun, 9 Jul 2000, Slip Gun quoth:
[] Hi,
[] I have been using linux for about 2 years now, but one thing that seems
[] to mess up more often than not is compiling programs which I have
[] downloaded. I can compile the kernel fine, and have done so about 20
[] times over the past year. However, I always seen to get a problem when
[] compiling other progams. I am using gcc 2.95.2, kernel 2.2.14. I have
[] been using redhat up till recently, now I am giving mandrake a try.
[] An example of a typical problem is something I tried to do five minutes
[] ago. I am trying to install the latest stable version of isapnptools for
[] use with my sound card. When I type 'make' it tries to compile the first
[] module, but then simply replies:
[]
[] pnpdump_main.c:64: initializer element is not constant
I do not know exactly what this problem is in your case, but I have
fixed a similar problem in compiling a program before.. Look around for
references to stdout... You can do a search on Deja-news for similar
errors involving stdout ( if my guess is correct ). That is where I
got the answer before. I believe it had something to do with a change
in the C standard.
anm
--
/*------------------------------------------------------------------------.
| Andrew N. McGuire |
| [EMAIL PROTECTED] |
| perl -le'print map?"(.*)"?&&($_=$1)&&s](\w+)]\u$1]g&&$_=>`perldoc -qj`' |
`------------------------------------------------------------------------*/
------------------------------
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: Linux wont boot
Date: Sat, 8 Jul 2000 17:32:26 -0500
On Sat, 8 Jul 2000, JLH quoth:
[] I have just installed TurboLinux Workstation 6.0 on the 2nd partition of my
[] Western Digital 20Gig drive. I had the setup program install LILO on the
[] MBR.
[] when setup rebooted the computer, there was no sign of LILO and windows
[] loaded.
[] I tried XOSL and it wont boot linux either. If you can help me out I would
[] really appreciate it.
Did you make a boot disk? If so use that to boot into Linux, and
try to reinstall LILO. Make note of the errors that it gives you.
Then after checking your documentation, and a search at Google and
Deja-news, repost the errors here.
anm
--
/*------------------------------------------------------------------------.
| Andrew N. McGuire |
| [EMAIL PROTECTED] |
| perl -le'print map?"(.*)"?&&($_=$1)&&s](\w+)]\u$1]g&&$_=>`perldoc -qj`' |
`------------------------------------------------------------------------*/
------------------------------
Crossposted-To: comp.os.linux,comp.os.linux.advocacy,alt.os.linux.mandrake
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: booting stops when trying to mount partitions.
Date: Sat, 8 Jul 2000 17:37:41 -0500
On Sat, 8 Jul 2000, [EMAIL PROTECTED] quoth:
[] Hi all,
[]
[] I cannot boot linux anymore because I did something I should not have.
[]
[] I changed fstab to get access to a windows partition. Then I changed
[] mtab as well. I tried to shutdown and reboot. It would not shutdown
[] because it could not unmount partitions. (I probably should not have
[] changed mtab). So I rebooted violently pressing the reboot button.
[] Now it starts to boot up and stops after mounting root system. Then it
[] does nothing. I cannot boot with a boot floppy disc because it has been
[] damaged.
[] I was running Linux Mandrake 6.0.
[] Can anybody help me?
[] Thanks.
Can you boot in to single user mode? If so, do that, then edit
/etc/fstab. Or use a boot disk, then:
mount /dev/hda2 ( or whatever your root slice is ) /mnt
and edit /mnt/etc/fstab.
anm
--
/*------------------------------------------------------------------------.
| Andrew N. McGuire |
| [EMAIL PROTECTED] |
| perl -le'print map?"(.*)"?&&($_=$1)&&s](\w+)]\u$1]g&&$_=>`perldoc -qj`' |
`------------------------------------------------------------------------*/
------------------------------
Crossposted-To: comp.os.linux.setup
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: Changing keymappings
Date: Sat, 8 Jul 2000 17:42:09 -0500
On Sat, 8 Jul 2000, Jordi Warmenhoven quoth:
[] Hi,
[]
[] Can someone perhaps explain how to change the keyboard mappings in X11?
[] I browsed through the documentation on loadkeys, XF86Config and so on.
[] But it is not clear to me how I can easily switch from my standard US
[] keymapping to say a French one. Do I need to change the fonts as well? I
[] guess I am more or less looking for something similar to the MS Windows
[] way of adding an extra keyboard in Control Panel|Keyboard and switching
[] witch Alt+Shift.
Start with 'man xmodmap'.
anm
--
/*------------------------------------------------------------------------.
| Andrew N. McGuire |
| [EMAIL PROTECTED] |
| perl -le'print map?"(.*)"?&&($_=$1)&&s](\w+)]\u$1]g&&$_=>`perldoc -qj`' |
`------------------------------------------------------------------------*/
------------------------------
Date: Sun, 09 Jul 2000 00:45:14 +0200
From: Buchan Milne <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,comp.os.linux.advocacy,alt.os.linux.mandrake
Subject: Re: booting stops when trying to mount partitions.
If it mounts the root in read/write, then you're OK without the need of a boot
floppy. Type "linux 1" at the LILO prompt and you will be booted into a minimal
shell. From here you should be able to check your filesystems and edit you fstab.
If you just want to access your windows partitions, you can just mount them
manually. Once this works, you can put it in fstab.
mkdir /mnt/win_c
mount -t vfat /dev/hda1 /mnt/win_c
(assuming windows is your first - historically - primary partition)
Buchan
"moonie;)" wrote:
> On Sat, 08 Jul 2000, [EMAIL PROTECTED] wrote:
> >Hi all,
> >
> >I cannot boot linux anymore because I did something I should not have.
> >
> >I changed fstab to get access to a windows partition. Then I changed
> >mtab as well. I tried to shutdown and reboot. It would not shutdown
> >because it could not unmount partitions. (I probably should not have
> >changed mtab). So I rebooted violently pressing the reboot button.
> >Now it starts to boot up and stops after mounting root system. Then it
> >does nothing. I cannot boot with a boot floppy disc because it has been
> >damaged.
> >I was running Linux Mandrake 6.0.
> >Can anybody help me?
> >Thanks.
>
> There is a disk image called Toms RootBoot, it will boot your system with a
> small linux kernel, and allow you to fix the problem. Sorry don't know where
> it is but a search should come up with something. I do remember searching for
> a boot disk (for a similar problem) and finding many different images that
> would allow this.
> --
> moonie ;)
>
> Registered Linux User #175104
------------------------------
From: antipop <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,comp.os.linux.admin
Subject: Re: I want to give free web hosting and email
Date: Sat, 08 Jul 2000 22:49:55 GMT
PHP is a scripting language similiar to C that dynamicly creates web pages. It
can also be used to write frontends, ie. like add news for your site through a
form. PHP in combination with MySQL (a database) is very powerful. I don't see
why either one would use a tremendous amount of resources, since they would only
run when called.
------------------------------
From: Homer Jay <[EMAIL PROTECTED]>
Subject: Re: dd of DOS MBR wanted (to boot dos on hdb)
Date: Sat, 08 Jul 2000 23:25:35 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Svend Olaf Mikkelsen) wrote:
> Homer Jay <[EMAIL PROTECTED]> wrote:
[...]
> >> >Right now, if I point lilo to hdb1 or minix monitor to hdb6 (=hdb1),
> >> >I get "invalid system disk". Inserting a dos boot floppy works ok
> >> >and I can switch to the C: filesystem just fine. I want to do this
> >> >front the bootloaders however.
[...]
> >past. However, I think now that the DOS MBR is intact, but either:
> >-DOS MBR is _incapable_ of booting an OS on hdb
> >-DOS MBR can boot hdb, but as written it points to hda
[...]
> If we assume that BIOS is set to boot from hda:
> Boot Windows 95/98 from disk no 2 or later with Lilo
> Method 2.
> Explained with an example. If a disk with DOS/Windows 95/98 is
> installed as hdb, and no primary FAT partitions exists on
> hda, the following method can be used:
> First copy the boot sector to /boot:
> dd if=/dev/hdb1 of=/boot/bootsect.b1 bs=512 count=1
> Open Midnight Commander and find the file bootsect.b1.
> Select View (F3)
> Select Hex (F4)
> If FAT16: Go to offset hex 00024.
> If FAT32: Go to offset hex 00040.
> The value will be hex 80.
> Select Edit (F2)
> Change the byte from hex 80 to hex 81.
> (this is the embedded BIOS disk number)
> Select Save (F6)
> (My copy of MC will do Edhex when EdText is shown).
> In stead of MC, any hex editor can be used.
> Make sure the file size is still 512 bytes.
> Then add to lilo.conf:
> other=/boot/bootsect.b1
> label=win98
> and run Lilo.
> Svend Olaf
I finally got around to trying this and I thought it beared
mentioning that it worked *perfectly*. This is certainly the
way I needed to boot DOS on a second disk using lilo. Thanks Svend!
Homer Jay
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Olivier ROBERT <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system,comp.os.linux.setup
Subject: CHILD_MAX: can't limit the number of processes per real UID
Date: Sun, 09 Jul 2000 01:42:49 +0200
Dear usenet readers!
I need to limit the maximum number of processes per real user id on
my server, I thought it had to be done by modifying
/usr/include/linux/limits.h, and changing the following line:
#define CHILD_MAX 999 /* no limit :-) */
to this one:
#define CHILD_MAX 64 /* limited now! :p */
and then recompiling the kernel...
That's what I did, I installed it, LILOed it, and rebooted the
machine, but a getconf CHILD_MAX still returns a value of 999! I suppose
there's something to do I didn't do, but what?
I have a 2.2.16 kernel (with a Slackware distribution)...
Thanks in advance!
O.R.
------------------------------
From: Bob Martin <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.portable,comp.os.linux.hardware
Subject: Re: kudzu,pcmcia and sound
Date: Sat, 08 Jul 2000 23:52:50 +0000
"Edward A. Falk" wrote:
> What's the "proper" way to disable an rc script? I usually rename
> the file from "S99xxx" to "s99xxx", but I don't know if there's
> a better way.
>
> Also, am I the only one who thinks that "kudzu" is a stupid name
> for a piece of system software? I prefer names that *mean* something,
> rather than having to read the source just to figure out WTF this
> does.
>
If you are going to rename it, you should use "K99xxx". That is what the
config tools do. type setup at the prompt, you can then select system
services to start.
--
Bob Martin
------------------------------
From: [EMAIL PROTECTED] (Bob Hauck)
Crossposted-To: comp.os.linux,comp.os.linux.advocacy,alt.os.linux.mandrake
Subject: Re: booting stops when trying to mount partitions.
Reply-To: bobh{at}haucks{dot}org
Date: Sun, 09 Jul 2000 00:12:59 GMT
On Sat, 08 Jul 2000 12:28:39 GMT, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>I changed fstab to get access to a windows partition. Then I changed
>mtab as well.
Changing mtab was a bad idea, but it is probably fstab that's causing
your current trouble.
BTW, comp.os.linux.{misc, setup} might have been a better place to ask
this.
>Now it starts to boot up and stops after mounting root system. Then it
>does nothing.
Did you try "linux single" at the LILO boot prompt? If that works,
you'll be in single-user mode with only the root partition mounted.
The root partition may be mounted read-only, to fix that type "mount
-no remount,rw /". After which you can back out your edits to
/etc/fstab. Then remount read-only with "sync; mount -no remount,ro
/". Then reboot.
--
-| Bob Hauck
-| To Whom You Are Speaking
-| http://www.bobh.org/
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Linux in China?
Date: Sat, 8 Jul 2000 16:45:22 -0700
On or about 8 Jul 2000 21:33:33 GMT, James Lee <[EMAIL PROTECTED]> scrivened:
> MaryP <[EMAIL PROTECTED]> wrote:
>> Front page headline in July 7, 2000 New York Times
>> Fearing Control by Microsoft, China Backs the
>> Linux System
>> is this true? anybody in China want to comment?
>> (parts of this article are very funny incidentally)
>> (http://www.nytimes.com - but if you are reading
>> this after 7/7/2000 it will be archived already)
> this is actually old news. Red Flag Linux has been unveiled for quite a
> while already. Search the archive in linuxtoday.com.
Yes and no. The significance is that you're getting add'l confirmation
of direct government support for Linux as a preference over Microsoft in
China. New data, existing theme.
You might as well say that Linux is an old story <g>.
--
Karsten M. Self <[EMAIL PROTECTED]> http://www.netcom.com/~kmself
Evangelist, Opensales, Inc. http://www.opensales.org
What part of "Gestalt" don't you understand? Debian GNU/Linux rocks!
http://gestalt-system.sourceforge.net/ K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
------------------------------
From: Jim McIntyre <[EMAIL PROTECTED]>
Subject: Re: DSL connection
Date: Sun, 09 Jul 2000 00:53:13 GMT
==============8338320AC02BE87A5B6DA546
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi riski
A DSL connection is usually straight forward. To connect using DSL, you
need to know how to configure a nic. You also need to know if your a
using a dhcp connection or a static IP address.
Go to roaring-penguin for some good information on DSL and Linux. They
have a good script available, and a lot of other good info on DSL and
Linux.
Good Luck
Jim McIntyre
==============8338320AC02BE87A5B6DA546
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi riski
<p>A DSL connection is usually straight forward. To connect
using DSL, you need to know how to configure a nic. You also need to know
if your a using a dhcp connection or a static IP address.
<br>Go to <a href="http://www.roaringpenguin.com">roaring-penguin</a>
for some good information on DSL and Linux. They have a good script available,
and a lot of other good info on DSL and Linux.
<p>Good Luck
<p>Jim McIntyre</html>
==============8338320AC02BE87A5B6DA546==
------------------------------
From: [EMAIL PROTECTED] (Hal Burgiss)
Subject: Re: DSL connection
Reply-To: [EMAIL PROTECTED]
Date: Sun, 09 Jul 2000 01:03:41 GMT
On Sun, 09 Jul 2000 00:53:13 GMT, Jim McIntyre <[EMAIL PROTECTED]> wrote:
>Hi riski
>
>A DSL connection is usually straight forward. To connect using DSL, you
>need to know how to configure a nic.
Unless the DSL modem is PCI or USB, in which case he is SOL.
>You also need to know if your a using a dhcp connection or a static IP
>address.
Or PPPoE, or again, PPPoA.
>Go to roaring-penguin for some good information on DSL and Linux.
>They have a good script available, and a lot of other good info on DSL
>and Linux.
This is a PPPoE client. Which may be a good idea, if indeed PPPoE is
necessary in this case. But DHCP and PPP would seem to be mutually
exclusive since both are used to log on/authenticate.
--
Hal B
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
------------------------------
From: Jim McIntyre <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.admin,comp.os.linux.networking,comp.os.linux.questions,comp.os.linux.setup
Subject: Re: named no starting on boot?
Date: Sun, 09 Jul 2000 01:08:24 GMT
Devon Harding wrote:
> How can I get named to start on boot up on RHL62?
>
> Thanks,
>
> -Devon
For named, or any other daemon you want to run when your system boots,
follow this procedure:
1.su to root
2. from the command line, run control panel
3. When the control-panel runs click on the run-level editor icon. It's
the second icon in the row. It looks like two sets of traffic lights.
4. Select the daemon you want to run.
5. Click on the add button below the list of daemons.
6. Another small window will appear. Select the run levels you want
named to run in. You probably want named to start in run levels 3 & 5,
and stop in run-level 1.
7. Click on done
8. Go back to the previous window, and click on execute if you want the
daemon to run now.
9. Click on file --> rescan rc.d
10. Click on file--> quit
That's it.
I hope this helps
Jim McIntyre
------------------------------
** 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
******************************