[SOLVED] Network configuration in CentOS minimal

Issues related to configuring your network

[SOLVED] Network configuration in CentOS minimal

Postby 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/vi ... 1&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: Select all
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


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

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`

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

Re: Network configuration in CentOS minimal

Postby bdainis » 2012/04/28 00:52:23

I apologize for potentially giving the wrong impression.

When I said:

Code: Select all
I cannot yum anything because there is no network connection yet.


I meant that I cannot yum install anything thats not local.
bdainis
 
Posts: 28
Joined: 2012/04/18 00:02:24

Re: Network configuration in CentOS minimal

Postby 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?
bdainis
 
Posts: 28
Joined: 2012/04/18 00:02:24

Re: Network configuration in CentOS minimal

Postby 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: Select all
mount -t iso9660 /dev/sr0 /media/CentOS


If it's an iso image then

Code: Select all
mount -t iso9660 -o loop,ro /path/to/CentOS-6-whatever.iso /media/CentOS


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: Select all
yum --disablerepo=\* --enablerepo=c6-media install system-config-network-tui


so that it doesn't even attempt to connect to the network but only uses the DVD.
User avatar
TrevorH
Forum Moderator
 
Posts: 9167
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Network configuration in CentOS minimal

Postby bdainis » 2012/04/28 01:53:49

Normally I mount the USB drive to /mtn/usbdrive

I run:

Code: Select all
fdisk -l
mount /dev/sdb1 /mtn/usbdrive


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: Select all
mount /mnt/usbdrive /media/CentOS


or

Code: Select all
mount -t iso9660 /mnt/usbdrive /media/CentOS


Also, where do I get the ISO file. Can you send a link? Thank you for your help.
bdainis
 
Posts: 28
Joined: 2012/04/18 00:02:24

Re: Network configuration in CentOS minimal

Postby TrevorH » 2012/04/28 01:54:40

You must have had installation media in order to do the install. Can you not reuse that?
User avatar
TrevorH
Forum Moderator
 
Posts: 9167
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Network configuration in CentOS minimal

Postby 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

Re: Network configuration in CentOS minimal

Postby bdainis » 2012/04/28 02:52:23

I just gave it a shot.
I ran:

Code: Select all
mount -t iso9660 /dev/sr0 /media/CentOS

then

yum --disablerepo=\* --enablerepo=c6-media install system-config-network-tui


It came back with:

Code: Select all
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


Not sure what to do from here.
bdainis
 
Posts: 28
Joined: 2012/04/18 00:02:24

Re: Network configuration in CentOS minimal

Postby 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

Re: Network configuration in CentOS minimal

Postby 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?
bdainis
 
Posts: 28
Joined: 2012/04/18 00:02:24

Next

Return to CentOS 6 - Networking Support

Who is online

Users browsing this forum: No registered users and 2 guests