Tuesday, April 19, 2016

Centos 6

Work around using Centos 6 in Minimal mode:

To start:
Configure the network:

 [root@rex ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
Dynamic IP configuration
 





Static IP configuration
 DEVICE=eth0
 HWADDR=08:00:27:CD:DD:9D
 TYPE=Ethernet
 UUID=43dec226-bd53-4ad2-af70-b80fe17f779b
 # change
 ONBOOT=yes
 NM_CONTROLLED=yes
 # change
 BOOTPROTO=none
 # add follows
 # this server's IP address
 IPADDR=10.10.0.50
 # subnet mask
 NETMASK=255.255.255.0
 # default gateway
 GATEWAY=10.0.0.1
 # DNS server's IP address
 DNS1=10.0.0.10
 IPV6INIT=no
 USERCTL=no 
:Restart network
 [root@rex ~]#/etc/rc.d/init.d/network restart  
:Check updated network address
 [root@rex ~]#chkconfig network on
 [root@rex ~]#ifconfig
:Display services | Adding and Stopping services you don't need
 [root@rex ~]#chkconfig --list
 [root@rex ~]#/etc/rc.d/init.d/netfs stop
 [root@rex ~]#chkconfig netfs off
Update it to the latest system
 [root@rex ~]#yum -y install yum-plugin-fastestmirror
 [root@rex ~]#yum -y update  
:Configure sudoer
 [root@rex ~]#visudo
 # add follows to the end: "cent" can use all root privilege
 cent    ALL=(ALL)       ALL
 
 

No comments:

Post a Comment