Monthly Archives: July 2013

How to use ssh/scp without password on CentOS 6.4

On server (192.168.0.2): Generate keys: # ssh-keygen -t rsa press enter for all Copy the public key onto the other server (192.168.0.3) # ssh-copy-id -i /root/.ssh/id_rsa 192.168.0.3 Now you should be able to ssh/scp to 192.168.0.3 on 192.168.0.2 without password. Advertisements

Posted in Linux Admin Basics | 1 Comment

How to change the numeric order of Network Interface on CentOS 6.4

Edit /etc/udev/rules.d/70-persistent-net.rules: You can change the NAME into eth0, eth1, eth2, eth3, etc to change the order. # PCI device 0x10ec:0x8168 (r8169) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”xx:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″ # PCI device 0x10ec:0x8168 (r8169) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”xx:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, … Continue reading

Posted in Linux Admin Basics | 1 Comment

Basic Understanding of PATH in Linux

According to LINFO, PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files in response to commands issued by a user. For example, when you want to … Continue reading

Posted in Linux Admin Basics | Leave a comment

Install and Configure Master and Slave DNS Servers on CentOS 6.4

Assume the master server’s IP is 192.168.1.2, and the slave server’s IP is 192.168.1.3. Before you start, make sure you have installed caching only DNS server on both the master and slave servers.  Refer to this post for caching only server … Continue reading

Posted in Linux Admin Basics | 1 Comment

Install and Configure Authoritative DNS server on CentOS 6.4

Assume the IP of the authoritative DNS server is 192.168.1.2, and the server IPs used in the data files are 192.168.1.3 and 192.168.1.4. Before reading the rest of this post, make sure you have installed caching only name server as … Continue reading

Posted in Linux Admin Basics | 1 Comment