Linux-Setup Digest #231, Volume #19 Mon, 24 Jul 00 01:13:14 EDT
Contents:
Re: Simple question on Kernel Recompiling ("djmiller")
Re: Cannot install Linux, any help appreciated ("David ..")
Apache "Forbidden" error in RH 6.2 ("Mark Cookson")
Re: Just Getting Serious ("David ..")
Re: Change boot parameters LILO ("Ken Crofts")
Re: Change boot parameters LILO (Chem-R-Us)
Re: kernel compile issues (J. Roe)
Re: No ISA Duron :-( shopping for compatible PCI modem. (Sandhitsu R Das)
Booting redhat Linux using LILO ("Manjula")
Cut and paste from xterm? (Ken Arromdee)
----------------------------------------------------------------------------
From: "djmiller" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.networking,comp.os.linux.redhat,comp.os.linux.help,linux.redhat.install
Subject: Re: Simple question on Kernel Recompiling
Date: Mon, 24 Jul 2000 04:07:58 GMT
A co-worker of mine walked me through recompiling the kernel once, and it
seemed so easy.
His first bit of advice: back up everything, even the source files. That
way, if something goes wrong... This is where I found out just how much
symlinks rock. The original source was in /usr/src/linux-2.2.14, with a
symlink /usr/src/linux pointing to it. I copied linux-2.2.14 to
linux-2.2.14dj (my "custom" Linux source directory) and pointed the symlink
to it. cd'ed into linux, and did the following in this order:
make menuconfig
make dep
make bzImage
make modules
make modules_install
Then there was something about moving vmlinuz to /boot (after copying the
original to vmlinuz.orig, of course!), running lilo to set it up to boot to
the new kernel, and rebooting.
I hope I'm getting this right. I'm running Red Hat 6.2 with two nics, a Dec
Tulip-compatible (it's actually a Kingston something-or-other) and a SMC
ez-net, and everything is working great. Even set up the Tulip as eth0 and
SMC as eth1, just like I wanted, but don't ask me how; it was kind of just
that way, so I didn't ask questions.
And always, always keep a notebook of things you learn, and even things you
do. Just so you don't find yourself having to do it again (or having to
undo it) and wonder, "how'd I do that?" Trust me, this is experience
talking.
--DJ
Linux *is* user-friendly. It's just picky about its friends.
"Roger Atkinson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> As near as I can tell you are doing all the right things and this is way
> over my head. With all of the info you have here I would suggest that
> you post something similar to linux.dev.kernel as they are going after
> final test of the 2.4.0-test kernel now and someone there will probably
> have the experience you need to get it working. At the very least
> perhaps you might even spark an interest in one of the maintainers to
> help debug a problem. Sorry I can't be more help and good luck. BTW I
> was just looking at linux.dev.kernel and I don't see any articles that
> pertain to your problem but that dosen't mean there isn't one. After all
> you are trying to build the next generation kernel.
>
> HTH, Roger A.
>
> BTW Thanks for all the detail. I'm one the very beginnings of setting up
> my own Fire Wall and possible Linux Router at work so all of this is a
> big help in things to be aware of.
>
> Jason wrote:
> >
> > I think it may have solved one of the anomolies I was getting, namely
the "every
> > third compile seems to work better than the others" phenomenon I was
experiencing.
> > So here's my compile process now...
> >
> > rm -rf the /lib/modules/KernelToCompileDirectory
> > make mrproper
> > make menuconfig (cuz I'm a textual junkie)
> > make dep
> > make bzlilo
> > make modules
> > make modules_install
> > cp bzImage to /boot/vmlinuz
> > lilo
> > shutdown -r now
> >
> > Note the following: I have my stable kernel hidden as vmlinuz.working
(not to mention
> > it's a 2.3.XX), and LILO refers to it as "safety", so I don't have to
worry about
> > being destructive with either my sources, modules, or vmlinuz. Like I
said, it takes
> > care of MOST of my problems (but the modules.dep file doesn't exist
until the second
> > reboot). However, my problem remains. Here's what it does, followed by
what I've
> > found out (since I've just recompiled 7 times from scratch many
different ways):
> >
> > What it does:
> > Bringing up interface eth0 insmod:
/lib/modules/2.4.0-test4/net/smc-ultra.o: insmod
> > eth0 failed
> > Delaying eth1 initialization.
> >
> > What's in the modules.dep file (just the one relevant line):
> > /lib/modules/2.4.0-test4/net/smc-ultra.o:
/lib/modules/2.4.0-test4/net/8390.o
> >
> > What I've found out:
> > When you have 2 eth cards, the kernel will only load 1 card, the other
will be
> > forgotten. Also, invariably, the card you want as eth1 will load as
eth0 from the
> > kernel. The only choice is to load both as modules. On top of that,
you MUST
> > specify the drivers for each, and the IRQ for at least one, or at least
one card
> > (usually both) will balk on boot.
> >
> > PNP doesn't matter... I have a smc-ultra.o card and a tulip.o card.
When both are
> > compiled in the kernel, the smc card is recognized as PNP, but only the
tulip card is
> > loaded. It is also loaded as eth0, and I want it to be eth1.
> >
> > So there's my problem, and more info than you probably needed. If I
compile both
> > drivers into the kernel, one loads. As modules, none load (though under
all
> > circumstances it detects the SMC card as a PNP device). I can also,
under all
> > circumstances, simply reboot to my "safety" in lilo, and the devices
work fine... so
> > I don't believe it's a config problem... unless there's something in the
changes file
> > I didn't understand (read: skipped over) about dualing ethernet cards.
Any help from
> > you or the rest of the Linux community would bring tears of joy to my
eyes. Thanks
> > all.
> >
> > A very red-eyed,
> > Jason
> >
> > Roger Atkinson wrote:
> >
> > > Not knowing (you didn't post them) what commands you have entered to
> > > make your new kernel makes it hard to help. So, I'll just try to
explain
> > > what I do to see if this helps.
> > >
> > > After installing RedHat and the Source in /usr/src/linux (which is
> > > usually a link to the kernel version you are building) I decide
whether
> > > I want to replace the existing kernel or make a new test kernel. I
> > > usually do the later and after testing it satisfactorily I set it up
to
> > > be the primary boot kernel later. If I am making a new test kernel I
> > > edit the .Makefile and add something like ".1" or "-1" which will make
a
> > > kernel that will install next to the kernel I currently boot. I then
> > > execute the following as root from the /usr/src/linux dir:
> > >
> > > 1) make mrproper <---gets rid of everything not needed including the
> > > old config file.
> > > 2) cd into the configs dir and cp the base config file for my machine
> > > into /usr/src/linux/.config (cd back into /usr/src/linux when done).
> > > 3) make xconfig <---since the config file has all the default Red
Hat
> > > config all I need to do is modify the configuration for my SCSI and
> > > ethernet which I usually put into the kernel instead of making them
> > > modules. NOTE - I do not have a dual eth machine so I don't know if
you
> > > should build in two different eth drivers but i don't see why not.
> > >
> > > After you close and save off the new config file, you must:
> > >
> > > 4) make dep <---make the dependencies.
> > > 5) make clean <--- I'm not sure if this is required but it always
works
> > > for me.
> > > 6) make zImage or bzImage <---usually a bzImage as the default Red
Hat
> > > config makes a large kernel.
> > > 7) make modules <------ must be run since the default Red Hat config
> > > contains lots of modules which I use like the sound driver, zip ppa
> > > driver, etc.
> > > 8) make modules_install <----- here is where it gets interesting.
> > > Notice above I modified the .Makefile. This will cause a new directory
> > > and modules set to be put into /lib/modules/<kernel version>. If you
> > > don't change the Version number you are making (in the .Makefile) then
> > > you *must* move the old modules out of the way before you do the "make
> > > modules_install" or it will look as if it is doing what you want but
it
> > > will, in fact, not install anything. This is the default behaviour
and
> > > the probable cause of all your module problems. In other words your
> > > modules do not match your kernel and they must.
> > > 9) If everything builds OK IE: good exit code, I then edit the
> > > /etc/lilo.conf file to have an entry for the new kernel I am going to
> > > install. This is usually vmlinuz-<version> for me. YMMV. To keep it
easy
> > > to remember I usually make sure that the .Makefile is one version more
> > > than what is currently being booted in /etc/lilo.conf. This makes
sure
> > > I don't make typo mistakes.
> > > 10) make install <--- this will scan through the last build
directories
> > > verifying that everything got made, install the new kernel into the
> > > /boot dir and run /sbin/lilo for you making sure that everything is
> > > ready for the next reboot.
> > > 11) reboot and at the lilo prompt, enter the tag name (what you
labeled
> > > your new kernel in /etc/lilo.conf) of the new kernel. I usually use
> > > linux_new until I have tested that all is well and then later install
it
> > > as the default Linux kernel to boot.
> > >
> > > I hope this helps you and others as I have seen a lot of posts about
> > > kernel building and I want to try to help if I can. BTW Every thing I
> > > have listed above is mentioned in either HowTos or the kernel readme
> > > that Linus keeps up to date and it should all be required reading
before
> > > anyone starts to build there own new kernel.
> > >
> > > Ciao, Roger A.
> > >
> > > Jason wrote:
> > > >
> > > > Hello...
> > > >
> > > > I tried that, and unfortunately it did the same thing. I moved the
modules.dep
> > > > to oldmodules.olddep so it couldn't find it, and "touch"ed a new
modules.dep
> > > > file. I got the same number of the following error that I got even
before I
> > > > wiped out the modules.dep file (this is guessing, because I don't
know how to
> > > > copy the bootup errors to a file yet):
> > > >
> > > > depmod: *** Unresolved symbols in /path/goes/here/somemodulename.o
> > > >
> > > > ...and I get that for tulip.o, and a couple other net drivers. Any
ideas?
> > > >
> > > > --Jason
> > > >
> > > --snip rest of article----
------------------------------
From: "David .." <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.os.linux.mandrake,comp.os.linux.misc
Subject: Re: Cannot install Linux, any help appreciated
Date: Sun, 23 Jul 2000 22:57:58 -0500
Robert Schumacher wrote:
>
> I am having a problem installing Linux (tried four distributions thus far).
> Keeping the differences between distributions in mind, basically what is
> happening is that the installers either a) freeze at language selection or
> b) the keyboard and mouse will not work in the installer. I can't tell for
> sure which is the case, but at any rate I boot up with the Linux CD in the
> drive, the installer runs, I get the language selection screen and that is
> it...I have no way to provide any input or continue the installation
> process. I don't believe it's a hardware problem, at least not with the
> keyboard or mouse (and the computer itself is less than a year old and
> performs flawlessly in Windows). That is the dilemma. I've poured through
> www.linuxnewbie.org, and the sites for the distributions I've tried
> (Mandrake 7.1, Red Hat 6.2, WinLinux 2000, and Corel), and found no answers
> (I haven't even seen a similar problem listed). Has anyone encountered
> this, or have any suggestions for a workaround. My computer setup is as
> follows:
> Pentium III 450 MHz
> 96 MB RAM
> 6.8 GB HDD (6.0 GB Windows, 1.8 GB Linux partition with 125 MB Linux swap
> partition, set up using Partition Magic 5)
> Toshiba 40X CDROM and HP 8210i CDRW
> 3Com EtherLink 3C905C-TX NIC with Internet access via cable modem
> Microsoft Intellieye Explorer PS/2 mouse (but tried each installation with a
> "plain" PS/2 mouse also, no difference).
> Plain, garden variety 102 key US keyboard
In the RedHat 6.2 install did you use the TAB and SHIFT keys to answer
the questions until you got to the partition section? The mouse has
never worked for me during the installation of RedHat.
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
------------------------------
From: "Mark Cookson" <[EMAIL PROTECTED]>
Subject: Apache "Forbidden" error in RH 6.2
Date: Sun, 23 Jul 2000 21:15:54 -0700
Hi, I have installed RedHat 6.2, and after getting sendmail working, I'm
totally stumped by Apache. I can't get to serve even the default pages. It
didn't work right out of the box (even locally), and after lots of fiddling
I can't get it to serve pages to the localhost, or to remote hosts.
I have checked that the complete path the to html files is world readable
(and executable), and the strange thing is that the error I get is:
You don't have permission to access / on this server.
Apache/1.3.12 Server at www.marksplace.org Port 80
How can this be? Isn't / world readable?
The error in the log is:
client denied by server configuration: /home/httpd/html
I have set the owners of the various files and directories to be
root/nobody.
Any tips would be appreciated as I haven't been able to figure this one out
by reading the FAQs and tip pages.
Thanks,
Mark
------------------------------
From: "David .." <[EMAIL PROTECTED]>
Subject: Re: Just Getting Serious
Date: Sun, 23 Jul 2000 23:02:33 -0500
Kenneth Downs wrote:
>
>
> Linux box that can be my "Household ISP." I'd like it have a web
> server, a mail server and an FTP server, and I'd like to point the
> domain name I've registered to this box. I'd like Network Address
> Translation so that the ADSL line can be shared (right now I'm using
> Sygate 3.1 on an NT workstation to do that). For file sharing, I'm
> using an NT server, and can continue to do so indefinitely, as what I've
> read suggests that attaching to Linux shares from a Windows box is
> klunky at best.
>
> So, Question 1. I have Red Hat 5.2. Can I do it with this? Or do I
> need to get 6.2?
Yes, Apache which is FREE
Proftpd for the ftp server which is FREE
qmail for the mail server which is FREE
Samba which also FREE, if you are wanting to share files with M$ OS.
I would get 6.2 it is more up to date with hardware and drivers. You can
download it for FREE.
ftp://ftp.redhat.com/pub/redhat/
> Question 2. If I put a 2Gig FAT partition on the target box to start
> with, can I download images and install from that partition?
Yes! I have a 1 GB Windoz partition for just that purpose. Doesn't get
used any more except for storage.
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
------------------------------
From: "Ken Crofts" <[EMAIL PROTECTED]>
Crossposted-To: aus.computers.linux,comp.os.linux.hardware
Subject: Re: Change boot parameters LILO
Date: Mon, 24 Jul 2000 14:14:05 +1000
Sorry if I'm a bit slow but exactly how do I "reinstall LILO to the
superblock of the partition ". APC stands for Australian Personal Computer.
It's a very popular computer magazine in Australia.
Ken
"xiangola" <[EMAIL PROTECTED]> wrote in message
news:zsOe5.15414$[EMAIL PROTECTED]...
> Greetings:
>
> You would need to reinstall LILO to the superblock of the partition that
> your Linux system rests in. And then have BootMagic (or whatever boot
> manager you care to use) add the partition into the menu of partitions
that
> would also include your Windows. (By the way, what's APC? Mail me at
> [EMAIL PROTECTED] if you care)
>
> Live long and prosper.
>
> Xiangola
>
==========================================================
CAUTION - Any views expressed in this message are those of
the individual sender and may not necessarily reflect the
views of Department of Public Works and Services
==========================================================
------------------------------
Date: Sun, 23 Jul 2000 21:23:46 -0700
From: Chem-R-Us <[EMAIL PROTECTED]>
Crossposted-To: aus.computers.linux,comp.os.linux.hardware
Subject: Re: Change boot parameters LILO
Ken Crofts wrote:
>
> Hi,
>
> I am a newbie to Linux and need probably what is simple help.
>
> I have just installed Red Hat 6.2 onto my Toshiba Satellite 4100XDVD laptop.
> To prepare I created a separate partition of about 2GB using Partition Magic
> in native Linux file format. The first partition on my drive is 2GB Fat32
> running Win95. I then installed BootMAgic and disabled it, the intention
> being to enable it once Linux software was installed so I could bott into
> either Linux or Windows.
You don't need boot magic. LILO will also boot winders. Just add it to
/etc/lilo.conf:
=====cut here=====
other=/dev/hda1
label=winders
table=/dev/hda
=====cut here=====
And you can, errgh, even make winders the default. Just add to the top
of /etc/lilo.conf:
default=winders
HTH. HAND.
--
Chem-R-Us
------------------------------
From: J. Roe <[EMAIL PROTECTED]>
Subject: Re: kernel compile issues
Date: Mon, 24 Jul 2000 04:16:06 GMT
michael,
I am curious what exact commands
> you are using to build a kernel and whether you have tried to download
and install a new
> kernel and if it still fails.
I have not downloaded a new kernel. I'm using what came with RH6.2
Do you think that this might help with my problems?
As far as what I am doing. First I run
make xconfig
Save and exit , then run
make dep; make clean; make bzImage
I then attempt to run:
make modules
make modules_install
However the make is bailing out on errors, I see.
Here are the errors:
make[2]: *** [radio-miropcm20.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.2.14/drivers/char'
make[1]: *** [_modsubdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.14/drivers'
make: *** [_mod_drivers] Error 2
I don't know what these errors mean or how to remedy this.
Again, you help is greatly appreciated!
--
Janine Roe
[EMAIL PROTECTED]
...the more i learn, the less i know about before
the less i know, the more i want to look around...
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Sandhitsu R Das <[EMAIL PROTECTED]>
Subject: Re: No ISA Duron :-( shopping for compatible PCI modem.
Date: Mon, 24 Jul 2000 00:44:25 -0400
On Sun, 23 Jul 2000, E J wrote:
> >
> > I'm looking for a Linux compatible PCI modem. Must be PCI because I'm
> > using it with the new Duron/Thunderbird compatible boards which DON'T
> > have an ISA slot. I've checked the modem knowledge base at:
> >
> > http://www.kcdata.com/~gromitkc/20000716a.html
> >
> > But holy cow nothing seems to be turning up. Can anyone help me shop
> > for this? Again, requirements are PCI, Linux compatible, (and low cost?)
> >
I'm using the Actiontec PCI Call waiting modem - it even has linux setup
section in their manual (probably the first hardware vendor to do this :).
Works fine for me...
------------------------------
From: "Manjula" <[EMAIL PROTECTED]>
Subject: Booting redhat Linux using LILO
Date: Mon, 24 Jul 2000 04:46:35 GMT
I recently installed Redhat in my computer. I had a 14.6G hard drive and I
partitioned it 7773.6 G for Windows 98 and the rest I reserved for linux.
In linux I created:
125 MB swap partition
16 MB /boot partition
Rest (6761 MB) for Linux.
When I boot up I get LILO and two options. DOS and Linux.
The DOS option works well. Windows start-up and run properly.
But when linux start up I get the following messages and the computer
freezes.
Kernel panic: attempted to kill idle task!
In swapper task - not syncing.
I'm not sure what the problem is. Please let me know if someone knows how to
fix this.
Manjula
------------------------------
From: Ken Arromdee <[EMAIL PROTECTED]>
Crossposted-To: comp.windows.x.misc
Subject: Cut and paste from xterm?
Date: 24 Jul 2000 04:47:57 GMT
I cannot cut and paste from an xterm into Netscape. Cutting and pasting from
Netscape to xterm, or xterm to xterm, does work.
I had assumed this was just a problem with the old version of Netscape I
was using (3.0) but I tried it in Netscape 4 and Mozilla and couldn't do it
there, either. I'm running fvwm2 and XFree86 3.3.5. Do I need KDE or Gnome
to be able to do this?
--
Ken Arromdee / [EMAIL PROTECTED] / http://www.rahul.net/arromdee
"Eventually all companies are replaced." --Bill Gates, October 1999
------------------------------
** 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.setup) 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-Setup Digest
******************************