[SOLVED] Network configuration in CentOS minimal

Issues related to configuring your network
bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

[SOLVED] Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 00:50:06

I started a thread about this a few weeks ago but never really got the issue solved.

Heres a link to the other thread https://www.centos.org/modules/newbb/viewtopic.php?topic_id=36961&forum=58

So the issue I'm having is that I cannot yum anything because there is no network connection yet. I need to run system-config-network-tui to configure the network, but that tool is not installed yet.

So I downloaded system-config-network-tui-1.6.0.el6.2-1.el6.noarch.rpm

But when I try to run: rpm -ivh system-config-network-tui-1.6.0.e16.2-1.e16.noarch.rpm

It came back with:

[code]warning: system-config-network-tui-1.6.0.e16.2-1.e16.noarch.rpm: Header V3 RSA/SHA526 Signature, key ID c105b9de: NOKEY
error: failed dependencies.
dbus-python is needed by system-config-network-tui-1.6.0.e16.2-1.e16.noarch
pciutils is needed by system-config-network-tui-1.6.0.e16.2-1.e16.noarch.rpm
python ethtool is needed by system-config-network-tui-1.6.0.e16.2-1.e16.noarch.rpm
usermode is needed by system-config-network-tui-1.6.0.e16.2-1.e16.noarch.rpm[/code]

Because the system does not yet contain all the proper dependencies. I got the below response in my last thread:

[quote]
Run `system-config-network-tui` and see if that helps you - it's the text mode network setup utility. Needs to be run as root and if it is not installed at the moment then you can install it from the DVD by mounting it on /media/CentOS then using `yum --enablerepo=c6-media install system-config-network-tui`
[/quote]
Im not really sure how to go about doing that. Can anybody help me with this or lead me in the right direction?

bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

Re: Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 00:52:23

I apologize for potentially giving the wrong impression.

When I said:

[code]I cannot yum anything because there is no network connection yet.[/code]

I meant that I cannot yum install anything thats not local.

bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

Re: Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 00:56:18

Also, one more thing.

Can the recommendation I mentioned above be done from USB drive and not a DVD. Or does it have to be done from a DVD?

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Network configuration in CentOS minimal

Post by TrevorH » 2012/04/28 01:34:09

It can be done from anywhere you like. You need to mount the DVD or iso or USB key on /media/CentOS first. If it's a DVD and the device is e.g. /dev/sr0 then

[code]
mount -t iso9660 /dev/sr0 /media/CentOS
[/code]

If it's an iso image then

[code]
mount -t iso9660 -o loop,ro /path/to/CentOS-6-whatever.iso /media/CentOS
[/code]

If you have copied the contents of the DVD onto your USB key then you can just mount that directly on /media/CentOS and if you have a copy of the iso on the USB key instead then first mount the USB key to some other location then mount the iso image as above.

When it comes to doing the install you probably want to run

[code]
yum --disablerepo=\* --enablerepo=c6-media install system-config-network-tui
[/code]

so that it doesn't even attempt to connect to the network but only uses the DVD.

bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

Re: Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 01:53:49

Normally I mount the USB drive to /mtn/usbdrive

I run:

[code]fdisk -l
mount /dev/sdb1 /mtn/usbdrive[/code]

So if I put the iso file on the USB drive then mount it in the normal location, would I then run the following:

[code]mount /mnt/usbdrive /media/CentOS[/code]

or

[code]mount -t iso9660 /mnt/usbdrive /media/CentOS[/code]

Also, where do I get the ISO file. Can you send a link? Thank you for your help.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Network configuration in CentOS minimal

Post by TrevorH » 2012/04/28 01:54:40

You must have had installation media in order to do the install. Can you not reuse that?

bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

Re: Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 02:17:51

Oh, I see what your saying. I thought you were referring to something additional.

I do have a CD that I burned an ISO onto for the initial installation.

Ill give that a shot first thing tomorrow. Thanks for the tips.

bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

Re: Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 02:52:23

I just gave it a shot.
I ran:

[code]mount -t iso9660 /dev/sr0 /media/CentOS

then

yum --disablerepo=\* --enablerepo=c6-media install system-config-network-tui[/code]

It came back with:

[code]Loaded plugins: fastestmirror, presto
Loadeing mirror speeds from cached hostfile
* c6-media
Setting up Install Process
No package system-config-network-tui available
Error: Nothing to do[/code]

Not sure what to do from here.

bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

Re: Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 02:55:05

Update...

When I look in /media/CentOS I do not see the ISO image that is on the CD. Maybe it got mounted incorrectly.

bdainis
Posts: 28
Joined: 2012/04/18 00:02:24
Contact:

Re: Network configuration in CentOS minimal

Post by bdainis » 2012/04/28 03:01:13

I take back that last statement. When I unmounted the CDrom files disappeared from the /media/CentOS directory. However I did not see an ISO file. I used magic ISO to burn the ISO file into a bootable CDrom. Is it possible to use the CDrom to do what I am trying to do?

Post Reply