Category: Centos Notes

  • How to create a symbolic link in CentOS

    This is an example on how to link the files from the current directory to /etc folder. /bin/ln -sf myfile.conf /etc/myfile.com

  • Apache (httpd) is not working on external IP address after fresh install of CentOS.

    By default port 80 is not added in the accepted of the builtin firewall/iptables of CentOS. Below is the default content of the ip tables. /***************************************************************/ # Generated by iptables-save v1.3.5 on Thu Nov 22 14:43:27 2012 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [4076:351018] :RH-Firewall-1-INPUT – [0:0] -A INPUT -j RH-Firewall-1-INPUT -A…

  • How to install a Desktop Environment in Centos Server

    Type the command below to the terminal. $ yum groupinstall -y ‘X Window System’ $ yum groupinstall -y ‘Desktop’ after installation you may need to type the command below to switch from CLI to GUI $ startx

  • Creating Virtual NIC in Centos

    Type this to the terminal cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0 Change the values to your desired IP address which is in different subnet. It should look like this [root@choi ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:FD:78:BE inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fefd:78be/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:469 errors:0 dropped:0 overruns:0 frame:0 TX…

  • Installing LAMP server in Centos

    Installing LAMP in CentOS Installing MySQL 5.0 Type the commands below to the terminal. -yum install mysql mysql-server -chkconfig –levels 235 mysqld on

  • Configure Static IP Address in CENTOS

    /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static BROADCAST=192.168.2.255 HWADDR=00:00:00:00:00:00 IPADDR=192.168.2.123 IPV6ADDR=192.168.2.123/64 IPV6INIT=yes DNS1=8.8.8.8 NETMASK=255.255.255.0 NETWORK=192.168.2.0 ONBOOT=yes then restart the service /etc/init.d/network restart

  • Change HOSTNAME in CENTOS

    NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=centos ~ ~ ~ ~ ~ ~ “/etc/sysconfig/network” Update the record then reboot