Forum Moderators: bakedjake

Message Too Old, No Replies

Help a Linux relative-newbie

         

snowman

4:41 am on Mar 9, 2004 (gmt 0)

10+ Year Member



I did mess around with Linux a long time ago - 1999 - and have forgotten much.

This evening I installed RedHat Linux 6.1 to run in emulation on my PowerMac via Virtual PC. It boots up ok.

I have a firewall active on my Mac's Ethernet port which maintains my internet connection. It's configured through any web browser at it's IP address.

I use the KDE environment when running Linux.

I'd like to enter the appropriate TCP/IP connection information (IP address and Subnet Mask) into Linux 6.1

I assume there must be some kind of TCP/IP control panel or entry point. But do not know for certain - I am unable to find any such control panel.

So I can run a browser and go on the internet with it, I'd need to enter this, but I am having absolutely no success in finding where I should enter this vital information.

Without entering it, I cannot connect to the internet through Linux at all. The built-in help files aren't very helpful at all.

HELP!?!

henry0

12:19 pm on Mar 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you could forget about 6.1
and look at least for 7.++ or 8 or 9
those mostly 8 & 9
will set it up for you
I mean you will need to enter the minimal info but very easy
and the stat up will be on the task bar

do a custom install
if you have room do not try to figure what you need or do not
just do a custom and select all packs

good luck

Henry

snowman

1:01 pm on Mar 9, 2004 (gmt 0)

10+ Year Member



I don't have access to anything newer. This is all I've got.

henry0

1:37 pm on Mar 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Snowman
did you envision to D-load it
you can do that at no charge
although if you do not have cable access
be ready to take a nap :)
Henry

snowman

4:23 pm on Mar 9, 2004 (gmt 0)

10+ Year Member



I bought this CD from Yahoo auction. It's a Virtual PC emulation of RedHat Linux 6.1 for Power Macintosh. They don't have any downloads for the Power Mac on the RedHat site. I don't own a PC.

encyclo

4:30 pm on Mar 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try Yellow Dog Linux:

[yellowdoglinux.com...]

It's Linux for Macs - I've not used it (I don't have a Mac) but it has the reputation as being the best Linux for the PowerPC processor. Apple like them, too, and you can even buy a G5 with Yellow Dog preinstalled! I think you can also get Debian for PowerPC. If you want to try one of the BSDs, NetBSD runs on Mac hardware too: [netbsd.org...]

All of these are better than the unsupported Red Hat 6.1

snowman

5:13 pm on Mar 9, 2004 (gmt 0)

10+ Year Member



I've actually got a copy of Yellow Dog. But in spite of what their website says [yellowdoglinux.com] it does not run on this computer. I cannot boot from any of the CDs at all.

It only runs on Power Macs, like the iMac - running open firmware - as opposed to mine which is not an open firmware Mac (G3 PowerMac 750) [apple-history.com], in spite of everything else being ok (G3, 400 MHz, 768 meg ram, 120 gig HD).

And judging from the NetBSD site:

[netbsd.org...]

It looks like they have the same requirements - open firmware. :(

That's why I was hoping for emulation to work. And it does, but I just can't input an IP address.

MattyMoose

9:51 pm on Mar 9, 2004 (gmt 0)

10+ Year Member



Snowman:

How does it configure the interfaces for the virtual machine? I mean, does it create a new virtual interface in you mac?

If it does, then have a look at what I Address if gave this new virtual interface. I'll go through some steps now, too...

Let's say that this interface exists, and it has an IP address of 192.168.1.1 with a subnet mask of 255.255.255.0, what you'd want to do is assign your RedHat machine with an IP address on the same network as this virtual if. Something like 192.168.1.2 (anything but .1 or .255), and also give RedHat the same subnet mask.

A quick and dirty way of assigning an IP to your redhat box would be:
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up

now you want it to know how to get to the outside world:
route add default 192.168.1.1

The last command tells it to route anything destined for a non-local network (!= 192.168.1.x ) through the virtual interface.

HTH,
-MM

snowman

1:34 am on Mar 10, 2004 (gmt 0)

10+ Year Member



MattyMoose - yes, you've described precisely what I wish to do.

The Mac OS (OS 9.2.2) I've already assigned an IP address to, through the TCP/IP control panel. I've given it 192.168.0.2

The router/firewall has a fixed LAN IP address of 192.168.0.1 with a subnet mask of 255.255.255.0

The router/firewall maintains my DSL connection automatically and will accept any LAN device with any address falling in the range of 192.168.0.2 to 192.168.0.255 so all I need do is fire up an application which uses TCP/IP and the connection is already in place.

The Virtual Linux does recognize upon startup the presence of the Mac's built-in Ethernet port and exclaims it to be OK. But once in the GUI this Linux doesn't seem to continue to detect this because internet access does not function. How I know this?

The desktop links to various www.redhat.com help sites, when activated by me the user, only return a message saying the page is unavailable. Seems unlikely that
www.redhat.com would be down.....

Because I'm running Linux in a shell, I can escape this shell and return to the Mac OS while the shell runs in background, run Netscape or iCab and see the connection is running, get e-mail, browse, etc.....

But not from within this Linux shell.

Within the shell are user preferences to permit or deny this Linux access to currently available system resources, such as USB, printing, and Ethernet. The preferences are all in plain English and activated to permit use of the system's current Ethernet resources.

So just from this I think it's a matter of Linux not knowing the IP address of the router/firewall I have on the system.

What I need to understand is exactly HOW do I tell this Linux what IP address the router is, since I cannot find a TCP/IP control panel to enter this information into.

Or do you think the Virtual Linux needs to connect to the host Mac OS IP address of 192.168.0.2 instead?

MattyMoose

6:33 pm on Mar 10, 2004 (gmt 0)

10+ Year Member



OK...

In the RedHat box, find an icon that says "Shell", or "Console"...

in that shell/console, enter this command:

ifconfig -a

as well as:

netstat -arn

Also, for informational purposes later, type in:

whoami
or
who am i

Tell me wheter it says "root" or not.

And paste the results here. :)

-MM

snowman

7:09 pm on Mar 10, 2004 (gmt 0)

10+ Year Member



This is what I got when I ran the "root console" (the icon at the task bar is that of a black monitor, with green text, and a clam shell in front of it):


[root@localhost /root]#
[root@localhost /root]# if config -a
>if config -a
>netstat -arn
>whoami
>who am i
>
[root@localhost /root]#

It didn't tell me anything. Just kept offering the ">" prompt then I'd type the next command you offered, and still kept with the ">" prompt.

I got the same results when I ran this in "Konsole" as well.

When I log in, I do so as root since I have no other accounts set up on it.

What am I doing wrong?

MattyMoose

6:01 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



The problem was the space between "if" and "config". What the shell is doing is it's thinking that you're giving it an "if/then/else" statement. :(

The command "ifconfig" has no spaces in the command itself, just between the options (ie: space before the "-a"). BTW, ifconfig stands for "InterFaceconfig". :)

If you ever see your prompt change from normal to ">" it means that the shell is waiting for more input. It usually happens for me with I accidentally hit "\" at the end of the command... It's waiting for more input from me. I usually just hit Ctrl-C, and redo my command.

Let me know how it goes!

-MM

snowman

9:24 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



Here are the results. See if any of this makes sense? How would I cause any change to any of these bits of information if necessary?

[root@localhost /root]# ifconfig -a
eth0 Link encap: Ethernet HWaddr 00:05:02:B6:28:7A

inet addr: 192.168.1.253Bcast: 192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNINGMTU:1500Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0x1080

lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:3924Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

[root@localhost /root]# netstat -arn
Kernet IP routing table
Destination Gateway Genmask Flags MSS Window
e
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0.0.0.0 192.168.1.252 0.0.0.0 UG 0 0
[root@localhost /root]# whoami
root
[root@localhost /root]#

MattyMoose

7:16 pm on Mar 12, 2004 (gmt 0)

10+ Year Member




Here are the results. See if any of this makes sense? How would I cause any change to any of these bits of information if necessary?

Believe it or not, it does make sense. ;)
Here's the relevant stuff:

inet addr: 192.168.1.253Bcast: 192.168.1.255
Mask:255.255.255.0

route:
0.0.0.0 192.168.1.252 0.0.0.0 UG 0 0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0

Basically what your RedHat Machine is doing is setting its IP address to "192.168.1.253", with a subnet mask of 255.255.255.0, and setting its default route to 192.168.1.252.

You've got two options... One, is to set the machine to dhcp. I'm not sure how you would do this in RedHat, but a quick guess would be to try running the following command in the console:

dhcpcd eth0

That might get you a DHCP configuration from your router...

The quick-and-dirty manual way would be to type in this command in the console:

 ifconfig eth0 192.168.0.5 netmask 255.255.255.0

followed by:
route add default 192.168.0.1

if it complains that the route already exists, type this in first:
route delete default

then type in the previous command in again (route add).

That should get this thing up and running (I hope). This is all assuming that the VM didn't create a virtual interface on your mac, and expects you to route through it (which if it was this case, should work "out of the box").

Let me know how it goes!

-MM

snowman

10:03 pm on Mar 12, 2004 (gmt 0)

10+ Year Member



Thanks. I entered the info you generously offered. This is what I received.

[root@localhost /root]# dhcpcd eth0
bash: dhcpcd: command not found
[root@localhost /root]# ifconfig eth0 192.168.0.5 netmask 255.255.255.0
[root@localhost /root]# route add default 192.168.0.1
SIOCADDRT: No such device
[root@localhost /root]# route delete default
SIOCDELRT: No such process

And I'm still getting the message:
"KFM Error Unknown host in [redhat.com"...]

:(

danny

5:15 am on Mar 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



route add default 192.168.0.1

Try "route add default 192.168.1.1" or "route add default 192.168.1.1 eth0".

snowman

2:48 pm on Mar 14, 2004 (gmt 0)

10+ Year Member



danny - this is what I got when I tried it.


[root@localhost /root]# route add default 192.168.1.1
SICCADDRT: No such device
[root@localhost /root]# route add default 192.168.1.1 eth0
Usage: inet_route [-vF] del {-host¦-net} Target[/prefix]
[gw Gw] [metric M] [[dev] If]
inet_route [-vF] del {-host¦-net} Target[/prefix]
[gw Gw] [metric M]
[netmask N] [mss Mss] [window W] [irtt I]
[mod] [dyn] [reinstate] [[dev] If]
inet_route [-vF] del {-host¦-net} Target[/prefix]
[gw Gw] [metric M] reject
inet_route [-FC] flush NOT supported
[root@localhost /root]#

Does any of it make sense?

MattyMoose

5:16 pm on Mar 18, 2004 (gmt 0)

10+ Year Member




Try "route add default 192.168.1.1" or "route add default 192.168.1.1 eth0".

I think that should read "192.168.0.1", not 1.1, since his real network is on 0.x.

It's still unclear as to whether or not the "software" creates a new virtual interface on the Mac, like vmware and such.

If it doesn't, I'm still unclear as to how it would communicate with anything on the outside world...

Hey, snowman, what does the following command show:

lspci -v

I'd be interested to see what it creates.

Also, what's the name of this software package, do they have a website or anything that we could look at?

Thanks!
-MM

snowman

5:53 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



MM - This RedHat Linux is running on my Mac under Connectix Virtual PC 3.0.1

The website given with it - www.connectix.com - seems no longer to be available.

Here's what I get when I type the command you suggested:


[root@localhost /root]# lspci -v
00:00.0 Host bridge: Intel Corporation 430FX - 82437FX TSC [Triton I] Flags: bus master, fast devsel, latency 0

00:04.0 VGA compatible controller: S3 Inc. 86C764_1 [Trio 32/64 vers 1] Flags: bus master, fast devsel, latency 0 Memory at d0000000 (32-bit, non-prefetchable)

00:07.0 ISA bridge: Intel Corporation 82371FB PIIX ISA [Triton I] (rev 02) Flags: bus master, medium devsel, latency 0

00:07.1 IDE interface: Intel corporation 82371FB PIIX IDE [Triton I] (rev 02) (prog-if 80) Flags: bus master, medium devsel, latency 0 I/O ports at 1000

00:08.0 USB Controller: Unknown device 2955:6e61 (rev 11) (prog-if 10) Subsystem: Unknown device 2955:6e61 Flags: fast devsel, IRQ 9 Memory at cc000000 (32-bit, prefetchable)

00:09.0 Ethernet controller: Ditigal Equipment Corporation DECchip 21041 [Tulip Pass 3] (rev 11) Flags: medium devsel, IRQ 11 I/O ports at 1080 [disabled] Memory at d4000000 (32-bit, non-prefetchable) [disabled] Expansion ROM at d4000800

[root@localhost /root]#