skanc.com Linux, Microsoft, Raspberry Pi, Python, Android

29Mar/140

Centos – Tips & Tricks 04 – Proxy Configuration

# vi /etc/profile

http_proxy=http://192.168.20.10:8080

https_proxy=http://192.168.20.10:8080

export http_proxy https_proxy

Filed under: Centos No Comments
29Mar/140

Centos – Tips & Tricks 03 – Static IP Address, DNS Set and Network Manager Configuration

Static IP Address Set

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

DEVICE=eth0
HWADDR=00:0C:29:4D:FD:91
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=192.168.12.10
GATEWAY=192.168.12.2
DNS1=192.168.12.2
DNS2=195.175.39.39

 

DNS Set

# cat /etc/resolv.conf
domain localdomain
search localdomain
nameserver 192.168.12.2
nameserver 195.175.39.39

 

Network Manager Stop

 # service NetworkManager stop

# chkconfig NetworkManager off

 

Network Service Start/Stop/Restart

# /etc/init.d/network restart

Filed under: Centos No Comments
29Mar/140

Centos – Tips & Tricks 02 – Copied or Cloned Centos VM’s Network Configuration

1. Network connection name to find out which PCI device is controlling it.

# ls /sys/class/net/

eth0 lo

 

2. Copying/moving which the name of the network adapter changes (from eth0 to eth1).

# cat /etc/udev/rules.d/70-persistent-net.rules

Remove eth0 whole line.

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:48:95:77", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Rename eth1 to eth0

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:4d:fd:91", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

 

3. Insert MAC address ifcfg-eth0 file.

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

DEVICE=eth0
HWADDR=00:0C:29:4D:FD:91
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=192.168.12.10
GATEWAY=192.168.12.2
DNS1=192.168.12.2
DNS2=195.175.39.39

 

Centos_MAC_Address_01

29Mar/140

Centos – Tips & Tricks 01 – How to install VMware tools on Centos

1. Open Vmware Worstation or ESX console

2. Choose your CentOS or Redhat Server which you want to install on Vmware Console

3. Choose Vmware tab –> Install VMware tools

4.  Mount cd to Centos Server and install VMware-tools

 

# mount /dev/cdrom /mnt

# cd /mnt

# cp VMwareTools-* /tmp

# cd /tmp

# tar -xzvf VMwareTools-*

# cd vmware-tools-distrib

# ./vmware-install.pl

Tagged as: No Comments