The Cellar

The Cellar (http://cellar.org/index.php)
-   Technology (http://cellar.org/forumdisplay.php?f=7)
-   -   Installing redhat 7.0 woes (http://cellar.org/showthread.php?t=1049)

That Guy 02-07-2002 04:31 PM

Installing redhat 7.0 woes
 
So I borrowed this RH7.0 disk from a buddy and installed it. Everything came up fine. I set the IP of the machine to 192.168.50.3 and the gateway to 192.168.50.1 (my d-link firewall router -- kicks ass). I have a Win2k box set to 192.168.50.4 with its DNS set to 127.0.0.1 (don't ask me how, but it works -- I also use RR for my cable provider).
The Linux box was kicking ass until I realized I didn't install any of the development suite (I guess I forgot to check that box in setup). Instead of installing manually, I figured I'd just go back and reinstall since it only took 30 minutes beforehand. Now that I finally got everything I need, the damn thing won't bring up my NIC. All I get when I do it manually is "Delaying eth0 initialization." Nothing points me to believe the NIC is going bad -- I even tested it with the 3COM driver package from a bootable DOS prompt. The card is a 3c509 ISA. I tried to set the IRQ to 3 (as it is programmed on the card) from netcfg.
Any ideas why RH refuses to bring up this card now? I haven't found anything in the dmesg other than the error above.

Undertoad 02-07-2002 04:41 PM

Check the contents of

/etc/sysconfig/network

and more importantly

/etc/sysconfig/network-scripts/ifcfg-eth0

The latter ought to look something like this:

DEVICE="eth0"
BOOTPROTO="none"
BROADCAST="192.168.50.255"
IPADDR="192.168.50.3"
NETMASK="255.255.255.0"
NETWORK="192.168.50.1"
ONBOOT="yes"

The former:

NETWORKING=yes
HOSTNAME=something
GATEWAY=192.168.50.1

My guess: the second installation blew away the setup in preparation for the install, but decided later that the package was already installed and didn't need to be re-installed, and so didn't run the configuration script.

Or something.

Undertoad 02-07-2002 04:45 PM

One more thing, what comes up if you enter "ifconfig"?

dave 02-07-2002 05:01 PM

/sbin/ifconfig, more precisely.

Also, paste the output of this command:

cat /proc/modules

juju 02-08-2002 04:22 AM

You should also make sure the 3c509 driver is loaded. I forget the name of it, but you should be able to find it out pretty easily on google. Just type 'lsmod' to list the currently loaded kernel modules. If it's not in the list, then type 'insmod <modulename>' and the module will be loaded.

Nic Name 02-08-2002 10:37 AM

I know that Linux just wants to be free, but isn't it funny when folks call for help with a thread that starts ...

Quote:

So I borrowed this RH7.0 disk from a buddy and installed it.
Maybe you could borrow a Red Hat manual from a buddy, if you can find one who actually bought a copy?

Undertoad 02-08-2002 11:00 AM

It doesn't just WANT to be free, it IS free, and the standard RH install manual doesn't cover this kind of thing. The idea is that RH sells support and would answer this question, but you don't need it if you have a bunch of friendly Linux-heads sitting around waiting for a question like this.

Having spent two years in Unix tech support I would wager that our support is better than any pro support for this particular kind of question. For some other kinds of questions, paid support is better (especially where someone has to talk you through a procedure, step by step, on the phone).

Nic Name 02-08-2002 11:07 AM

RH Linux isn't free, and it doesn't want to be free. But I thought that one of the points of differentiation between linux re-sellers is their installation wizards, ease of set-up, and manuals, as well as support.

So, if it's all so bad at Red Hat, why borrow RH 7.0? Just get linux free on the Internet.

If I wanted to get free linux, what software solution should I borrow? :)

That Guy 02-08-2002 11:28 AM

yup, yup, yup.. Did all that.
ifconfig told me that the broadcast was loopback, and the mask was 255.255.255.0, though i need 255.255.248.0. hmph.
lsmod -a didn't help either. It claims the mods are all there, and I don't see anything incorrect from netcfg.
I'll have to check up on Tony's suggestion when I get home tonight. I'll keep you all posted on my progress as I figure out the problem (unless it's something extremely minor, which will force me to make up an elaborate story about my HW config).
Thanks to all with the exception of Nic, the instigator.

Undertoad 02-08-2002 11:34 AM

RH Linux isn't free if you buy it. But it's free as in licensing, so once you've got it, you're free to share it with whomever you like or to install it on however many systems as you like.

That Guy 02-08-2002 11:39 AM

In the lab where I used to work, we would place orders for several people at once to RH. This didn't come with any fancy packaging or manuals, just the CD. 2$ was the price for RH6.2. That covered their manufacturing costs plus S&H. I doubt they made enough to go public on a deal like that.
You can also d/l any package you like from redhat.com for <i>free</i>. The manuals on the site (including the HOW-TO guides) are also <i>free</i>.

Nic Name 02-08-2002 11:40 AM

I'm not really sure of the business model of RHAT-Q. http://www.dvdtalk.com/forum/images/...s/rotflmao.gif

That Guy 02-09-2002 02:56 PM

Quote:

Originally posted by Nic Name
I'm not really sure of the business model of RHAT-Q.
It's called the open-source business model. They're making quarterly expectations, and expect to see a profit sometime this year.

dave 02-09-2002 02:59 PM

I liked a troll I saw one time on Slashdot.

Open Source Business Model

1) Write Free Software
2) ?????
3) PROFIT!

Hahahahahaha. :)

Nic Name 02-09-2002 03:31 PM

The 2nd stage ???? used to be IPO, but that's a big ? these days.

While we might laugh now, RedHat founder Bob Young laughed all the way to the bank with RedHat's IPO. Even his aunt who gave him about $5,000 startup money got stock worth about $40 million in return.

I think she had a gut feeling that this money was taken from the public, and would have been an unjust enrichment to her ... so she gave it to charity. ALL OF IT. Nice lady.

Joyce Young, Bob Young's aunt gives $40 million from RedHat (RHAT) stock to Hamilton Community Foundation... WAY TO GO!...

'President Carolyn Milne said the donation increases the foundation's asset base to more than $73 million and will allow it to double the $2 million a year it hands out to 200 local organizations, including arts groups, homeless shelters, the Royal Botanical Gardens, and a program for young single mothers.'

dave 02-09-2002 03:40 PM

Maybe you missed the joke? As in, there's no real business plan in the middle. Just a bunch of nothing.

Nic Name 02-09-2002 03:49 PM

Got it. :biggrin: My point was that for many of the dotcoms, the IPO was the entire business plan. And for some, that plan actually worked.

That Guy 02-11-2002 09:25 AM

Alright, juju, you get the credit!
I finally got a few minutes to sit down to this ting today and ran lsmod. I guess the last time I installed, it was there, just not recognized. This time, it wasn't there at all. 3c509.o is the name. I went through about 15 minutes of searching the web for it before I thought to look in /lib/modules. For some reason, I just figured it would've been loaded automatically if it's in /lib. Oh well. Mark another learning experience for me. :)
So I ran insmod -p 3c509.o and came back with nothing. Then I ran insmod 3c509.o and came back with quite a bit o' stuff. Everything's pinging. I am happy.
Thanks for the help.

dave 02-11-2002 11:18 AM

Whateva! I told you to paste the output of /proc/modules like 11 hours beforehand! Dork. :P Anyway, glad it's working now.

You will need to add it to an init script so that it's insmod'd every time the system boots. I forget which script this is on Red Hat - I'll check it out and get back to you.

That Guy 02-12-2002 02:13 AM

Are you talking about in one of the runlevel startups? I figure it will have to be before eth0 initializes.
Now I'm having problems with Enlightenment. This is my first time to try it out. Anyone know the basics of it? I figured it would come up fine after running /usr/bin/enlightenment.install, but I log out and back in still to find kde running. damndamndamndamn!

dave 02-12-2002 02:28 AM

You're assuming that Linux programs make sense. That's a big mistake. You will need to tell X specifically that it needs to run Enlightenment (or use a session manager such as GDM). To do so, make a cute little file called .xinitrc in your home directory. Put the following in it:

exec eterm &
exec enlightenment

That will make it so an eterm opens up when you start X, and it will use Enlightenment as the window manager. It is important not to background the enlightenment process - when Enlightenment dies, X will shut down. Same is true if it's backgrounded. So the application that you want to use to determine whether X should be running or not (usually the window manager) should be the last thing in the .xinitrc, such that when it dies, X will shut down as well. I'm not sure if it needs to be last, but it helps me personally keep track of what's going on.

Now, you shouldn't have to do this, but this is <b>Linux</b>, you see. Linux isn't something you can do on the weekends, unfortunately. You have to be full time to really use it. You can do it though. It just takes some time. :)

Seriously though, there's probably an easier way, such as KDE's login manager. Look for a "session type" selector and see if you can pick "Enlightenment" from that. Hopefully, you'll be in good shape. If not, let me know and we'll talk.

That Guy 02-12-2002 10:04 PM

I got Enlighenment up and running from the chooser menu at the login. The E-help screen appeared and gave me a little tutorial, though I never did get any applications menu to appear when I clicked the left mouse button. I'm definitely missing something.

MaggieL 02-13-2002 12:01 AM

I started off letting Red Hat configure Gnome, then went to the Gnome panel and picked Enlightenment on Programs/Settings/Desktop/Window Manager....this seems to work fine. By default RedHat will configure Gnome with Sawfish as your window manager. I don't know how well E will run with KDE only; personally I run Gnome with E with KDE compatibility turned on in both Gnome and E. All the KDE apps work just fine, and the Gnome stuff does too.

For your insmod, one script that runs at every startup is /etc/rc.d/init.d/rc.local. There's a more Redhattish place to put it: a Red Hat "Control Panel" that has a kernel module configuration in it, but rc.local will work fine.

It is possible to learn Linux without running it full-time, but it does take longer. I ran it as just a firewall for ages, but eventually took the plunge, while still running a lot of Windows at work, of course. My lifepartner set up her machine as dual-boot, but once she did and got the basic services running, she never went back...especially since she had her old C: drive mounted so she could pick up stuff she'd left behind. Even some of her Windows ham radio programs actually run OK under WINE, which was helpful while she located Linux equvalents.

dave 02-13-2002 08:04 AM

Problem with rc.local is that it's executed after the network is brought up, which then won't come up if the NIC isn't functioning, which won't function if the module isn't loaded. :( rc.local is good for modules for sound cards and the like, but it'll be a real problem for network. For reference, Red Hat executes network as S10 and rc.local as S99 - lower numbers are launched first.

The place to do it is conf.modules or modules.conf, depending on which distro you use. I still haven't looked at mine, though I guess I should right now.

A failsafe way to do it is to add it through linuxconf, which is probably on your system. However, it's NOT on mine so I can't walk you through it.

However, add this line to /etc/modules.conf and reboot.

alias eth0 3c509

where 3c509 is the name of your kernel module. That should hopefully do it.

MaggieL 02-13-2002 11:03 AM

Quote:

Originally posted by dhamsaic
Problem with rc.local is that it's executed after the network is brought up, which then won't come up if the NIC isn't functioning, which won't function if the module isn't loaded. :( rc.local is good for modules for sound cards and the like, but it'll be a real problem for network. For reference, Red Hat executes network as S10 and rc.local as S99 - lower numbers are launched first.
Yike...good point. D'oh.
Quote:

[i]
The place to do it is conf.modules or modules.conf, depending on which distro you use. I still haven't looked at mine, though I guess I should right now.

That's what the kernel gadget in control-panel diddles....and also linuxconf. linuxconf rocks, except when it's being stupid. I'm kind of surprised that kudzu didn't probe the card initially, but I hear 7.2 overhauls a *lot* of network crap. The pppd and dialer stuff "rp3" stinks and has since it was interoduced....one of the larger incentives for me going to 7.2, which I still haven't done yet, of course.

dave 02-13-2002 11:20 AM

I hate Internet Explorer. I just had this long ass post written out, accidentally hit Backspace when I wasn't in the text box and now it's gone.

To recap: Linuxconf is cool but can be a pain in the ass.

Kudzu didn't like my KVM and wanted to reinstall the mouse every time I booted, so I disabled it.

The proper way to disable a service on Red Hat is to use the chkconfig program - i.e., become root with its environment set up (su -) and run

chkconfig sendmail off
chkconfig kudzu off

The proper way to kill/restart/stop a service is via the "service" command -

service sendmail restart
service sshd stop

I was delighted when I found these things out - I used to manually rename the init scripts for services and when I wanted to stop other ones, I'd issue a command like

/etc/rc.d/rc3.d/S10network restart

but just doing "service network restart" is much easier. :)

Many people don't know about those commands, so I thought I'd go ahead and toss 'em out there.

MaggieL 02-13-2002 11:28 AM

Quote:

Originally posted by Nic Name
Got it. :biggrin: My point was that for many of the dotcoms, the IPO was the entire business plan. And for some, that plan actually worked.
See: Underpants Gnomes, South Park episode 217....which is where that was quoting from.

Gnome:This is where all our work is done.
Cartman:So what are you gonna do with all these underpants that you steal?
Gnome:Collecting underpants is just phase 1. Phase 1: collect underpants.
Kyle:Sooo, what's phase 2?
Gnome:[has no response. Looks around, then calls out to the other gnomes on the underpants mound] Hey, what's phase 2?
Gnome 2:Phase 1: we collect underpants.
Gnome:Yeah yeah yeah, but. What about phase 2?
Gnome 2:[says nothing, then] Well, phase 3 is profit. Get it?
Stan:I don't get it.
Gnome 2:[walks up to a large chart] You see, Phase 1: collect underpants. Phase 2: ? Phase 3: Profit.
Cartman:Oh, I get it.
Stan:No you don't, fatass!
Kyle: Do you guys know anything about corporations?
Gnome:You bet we do!
Gnome 2:Us gnomes are geniuses at corporations.


It was poking fun at that kind of "business plan", which worked only long enough for the investment bankers to pump-and-dump the stock. Post-Enron, that kind of stunt may be a little harder to do. Maybe.

But there *are* ways to make money from open-source, it's just more than a little a bit harder than hooking your customers on a proprietary secret-source product and then exploiting them because they're locked in. That approach works a bit longer than stealing underpants, but ultimately when your customers are tired of getting screwed and the differential between the value of what they're getting and what it really costs them is too negative, they'll move on to another solution.

The problem is, these kind of technical, economic and market forces operate on such a scale as to be invisible to software company management who are driving the company by watching the quarterly numbers and the stock price. It's a bit like driving a car by watching the oil pressure and ammeter. It's true that those need watching too, your car will melt down if there's no oil. But those instruments won't help you actually get anywhere.

That Guy 02-13-2002 11:31 AM

Quote:

Originally posted by dhamsaic
I hate Internet Explorer. I just had this long ass post written out, accidentally hit Backspace when I wasn't in the text box and now it's gone.
The same thing just happened to me on another post. You can left-click the text box and whup up a little undo action in there usually.

These are all great ideas, but I'll have to wait until I get home. The telnet gateway at work won't let me ssh out. And unfortunaltey, we don't have an ssh gateway.
I've tried to stay away from things like linuxconfig and other graphical sysadmin tools until I get a real feel for what happening behind the scenes. Sometimes it's the only way to get where I want to be, but I lose the feel for the OS that way.

jaguar 02-13-2002 02:28 PM

blowme, you have more than one computer?
set up a telnet server on it, then telet into that, then use that to ssh into your other box.
If not mabye someone else here has one they could lend you (shell)

dave 02-13-2002 03:18 PM

Quote:

Originally posted by blowmeetheclown
The same thing just happened to me on another post. You can left-click the text box and whup up a little undo action in there usually.
BTW -

not when you hit Backspace, which goes Back a page in your browser. Then go forward, where it SHOULD be, but it's not because IE redraws the form. Go Fucking Figure. P.S. - this is what happened to me. :)

That Guy 02-13-2002 04:34 PM

Quote:

Originally posted by jaguar
blowme, you have more than one computer?
set up a telnet server on it, then telet into that, then use that to ssh into your other box.
If not mabye someone else here has one they could lend you (shell)

Yep - I have a win2k pro server box. I turned off everything in IIS except ftp from within my network to avoid SK's. I'm a little apprehensive about leaving that sort of stuff out in the open for all to see. I am thinking of opening up the telnet port on the router, but only for the IP of our telnet gateway up here at work. Anyone see potential catastrope here?

mbpark 02-13-2002 05:04 PM

yes. big problems
 
#1. All communications are unencrypted.

#2. Packet spoofing.

#3. You can run a line from the console to a Linux box running sshd and just ssh to the linux box and use Minicom to connect directly to console. Out-Of-Band management rocks like that.


All times are GMT -5. The time now is 07:06 AM.

Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.