18 January 2007

Start fighting with the machine

After the extremely successful attempt in my previous post, the first problems arise.
I deactivated the network on my working laptop (the one that host the vmware player and the centos "test" server) ... After that, the linux box lost his network connection, and refuse to regain-it again.

I started digging for a method to tell linux to use DHCP to fill the eth0 settings. Here it is (learned from here) :

  • tell etho to go down (if your network interface is not eth0, use ifconfig to identify it):
    ifdown eth0
  • edit (or create) /etc/sysconfig/network-scripts/ifcfg-eth0 and be sure it contains only :
    device=eth0
    bootproto="dhcp"
    onboot="yes"
  • bring eth0 back up, and all is done :
    ifup eth0
My network is again up and running. Feeew !

But, cd-ing and vi-ing trough the linux file system, I starting to wonder if I could use something easier, like Midnight Commander (MC). OK, I admit, I was sure the answer is "Yes", but how ?

It's simple, type:
yum install mc
Answer 'y' when prompted, and you're ready. Really. Type mc and see for yourself.

1 comment: