LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   noob question about internet config (https://www.linuxquestions.org/questions/linux-general-1/noob-question-about-internet-config-7742/)

DMR 10-21-2001 05:34 PM

Weird...

A little research finds that linuxconf is no longer installed in Rh 7.1. It should be on the second CD of your installation set, or you can get the latest version here. I'm pretty sure that netconf is just a front end for linuxconf's networking section, so it's no surprise that neither work.

You mentioned using a network config tool in your first post. Which one?



Hey, just noticed that this post 300. :cool:

btb103 10-21-2001 07:41 PM

WHY ME???

i searched and searched and searched thru the second linux install cd... but it wasn't there! the download sites weren't working... so it took me a while to finally get the file i needed... i got it, burned it, booted in linux and ran the rpm... but there was an error!! do i need more than one file from the download sites... or is my linux life just hell??!?!?

Aussie 10-21-2001 07:52 PM

Can you post the error message?

DavidPhillips 10-21-2001 08:10 PM

edit these three files and plug in your cable


/etc/sysconfig/network

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

/resolv.conf



here is what mine has


[david@echo david]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=echo
GATEWAY=150.10.128.5
GATEWAYDEV=eth0

[root@echo /root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=150.10.128.255
IPADDR=150.10.128.6
NETMASK=255.255.255.0
NETWORK=150.10.128.0
ONBOOT=yes

[david@echo david]$ cat /etc/resolv.conf
nameserver 150.10.128.5




, then run this command


/etc/rc.d/init.d/network restart

It's ok to start surfing now


That's it, good luck



:Pengy: :Pengy: :Pengy:

rm -rf /bin/laden

DavidPhillips 10-21-2001 09:20 PM

Now for your other problem


put in a dos formated floppy


run this command

mount /dev/fd0 -t vfat /mnt/floppy


if all goes well you can now use the floppy


Now...


lets say you need to get the screen output on the floppy without writing it down or printing it, etc...


take ifconfig for example...

[root@echo /root]# ifconfig > /mnt/floppy/ifconfig.txt

now the file is on the floppy

cat will show the contents of the file like this

[root@echo /root]# cat /mnt/floppy/ifconfig.txt
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:150.10.128.6 Bcast:150.10.128.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:801305 errors:0 dropped:0 overruns:0 frame:0
TX packets:649096 errors:0 dropped:0 overruns:0 carrier:0
collisions:78 txqueuelen:100
Interrupt:11 Base address:0x3000

eth1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:709686 errors:0 dropped:0 overruns:0 frame:0
TX packets:875647 errors:0 dropped:0 overruns:0 carrier:0
collisions:46 txqueuelen:100
Interrupt:5 Base address:0x220

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

-----------------------------------
Great isn't it?


ok to do the same thing in windows...


C:\>ipconfig /all > a:\ipconfig.txt

type will show contents of file like cat

C:\>type a:\ipconfig.txt

Windows 2000 IP Configuration



Host Name . . . . . . . . . . . . : DPHILLI1
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

DNS Suffix Search List. . . . . . : crew321

Ethernet adapter Local Area Connection:



Media State . . . . . . . . . . . : Cable Disconnected

Description . . . . . . . . . . . : 3Com 10/100 Mini PCI Ethernet Adapter
Physical Address. . . . . . . . . : xx-xx-xx-xx-xx-xx


Ethernet adapter Local Area Connection 2:



Connection-specific DNS Suffix . : crew321
Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethernet Controller (3C905C-TX Compatible) #2
Physical Address. . . . . . . . . : xx-xx-xx-xx-xx-xx

DHCP Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.0.7

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.0.1

DHCP Server . . . . . . . . . . . : 192.168.0.1

DNS Servers . . . . . . . . . . . : 150.10.128.5
Lease Obtained. . . . . . . . . . : Sunday, October 21, 2001 9:00:59 PM

Lease Expires . . . . . . . . . . : Sunday, October 21, 2001 9:20:59 PM

-----------------------------------------------------------------------------
How to use this info...

In linux you can just select the text on the screen with the left button and paste it into the browser with the middle button.


In windows just open the .txt file with notepad or your favorite editor and copy-paste to browser.









:Pengy: :Pengy:

btb103 10-21-2001 09:21 PM

thanks for the post david, but i'm just a newbie, i don't really feel comfortable doing all that shell file editing... that might not go to well with the luck i've been having lately... i'll keep trying to get linuxconf to work, eventually i should make it, and aussie, the error box had no explanation, just stated that there indeed was an error

btb103 10-21-2001 09:23 PM

lol david you just wasted a lotta time posting those... i'm really sorry that all that info has to go to waste, i really know i could not do that!

DavidPhillips 10-21-2001 09:31 PM

You should stay away from linux config for a while, believe me it breaks things.

trust me, nothing could be easier than .....


emacs /etc/sysconfig/network


type the changes

click file menu

click save buffer

then exit.


Or gedit is like using notepad.

DavidPhillips 10-21-2001 09:35 PM

Some one will benefit from it I'm sure.

You can do it.


BTW it only took a second to copy and paste that stuff, I am using linux.

btb103 10-21-2001 09:36 PM

DUDE all these command lines and emacs/this/that are confusing the hell out of me... i don't even know what the hell i'm doing i really really don't! i know that it would take me a verrrry long time before i could do all that shit you wrote out... its so damn confusing! i just want a good 'ole easy application where i type things into little boxes... what u've explained to me is beyond my ability level trust me

btb103 10-21-2001 09:40 PM

whats the emacs thing, is that a totally different thing from all that floppy shit and command stuff that i was completely lost in... and what the hell was the floppy thing about anyway???

DMR 10-21-2001 09:59 PM

btb103,

Take a few deep breaths and calm down. If you don't, I'm going to break out my spray-can full of Troll-Be-Gone, and we don't want that happen... trust me.
:D

In your very first post, you said that you used a networking configuration app to set up eth0. What app was that? As far as Redhat goes, I've only got 6.2, so other than telling you to do what DavidPhillips already has (which isn't that hard, really), I can't help you do it graphically unless you can tell me what app you're using.


-If there are any RH 7.1 users out there, please feel free to chime in any time, this shouldn't be that difficult...
;)

DavidPhillips 10-21-2001 10:00 PM

If you have emacs and want to check it out open a terminal and type

emacs &

the & will allow you to continue to use the terminal while emacs is running.

emacs is a powerful editor that is as simple or as complex as you need it to be. It also has a news reader and calender. It supports bookmarks and text formating, etc... etc...


The posts I made are 98% screen output to show you how to post the output here. Don't worry about it for now.


The task ahead is editing those three files.

You will have to do this at some point to use linux, all the gui stuff will not always work and may break things.


try to open gedit


type

gedit &


you will get a gui that looks like wordpad.


you can use it to edit the files

they are very small simple files



:Pengy:

DMR 10-21-2001 10:22 PM

David is right about needing, at some point, to get your hands dirty with editing files. If you want to be more than a basic "user", you'll need to learn this stuff. It might appear hard at first, but that's where the real power of Linux lies; the ability to tweak virtually any part of your system if you learn how.
Just to put things in perspective, think of how many Mac/Windows users don't even know what an IP address is, let alone how to assign it to their NIC (what's a NIC?). "Difficult" is a subjective term.
The GUI was a late-comer to the Unix environment, and one of things that most of us actually like about Linux is the power of the command line. Also, as David said, the GUI tools which are supposed to make things easier don't always work. I've read many posts where the problem revolved around the fact that the poster had configured everything via a GUI tool, but the entries they made didn't apply themselves correctly. If they had done the configuration "by hand", there would have been no question.

btb103 10-21-2001 10:22 PM

i think i'm just going to reinstall linux! ha maybe i'll just download mandrake... good idea ! i'm a hopeless case... i'll try all of y'all's suggestions a few more times then its time to start all over MUAHAHA! btw i really think i could do the linuxconf thing... and i know what the error was... all packages i try and run don't work so its a problem with the package manager and installer and also DMR the program was in KDE under system... network configuration, it didn't really help much and david i don't know how to edit those files, by that i mean the edit command, i just typed in cat *** your three files and it displayed some stuff, but i don't know how to edit that ... i'll be posting away again tomorrow, and in the meantime i'll start downloading mandrake, god knows that could take days


All times are GMT -5. The time now is 03:11 AM.