Change your Network IP with CentOS

For some purpose, you might want to change the Network IP from your CentOS server such as switching the data center, etc.

To done this, just simply check your main network interface with typing ifconfig from the server.Then get the network interface name.

Next, edit the file from
/etc/sysconfig/network-scripts/ifcfg-<interface-name>

You shall see the following setting.
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
BROADCAST=127.0.0.255
HWADDR=00:e0:81:c0:b1:ae
IPADDR=127.0.0.100
NETMASK=255.255.255.0
NETWORK=127.0.0.0
ONBOOT=yes
GATEWAY=127.0.0.1
TYPE=Ethernet

Change the IPADDR to the new server IP.

Note: You might need to change the Broadcast, Netmask, Network or Gateway with the need.

How to use Linux Screen

Screen is one of the powerful command in Linux(Unix System) that allow user to run command in remote mode and this is to avoid connection timed out or etc issue causing the previous launched command stopped.

You may install screen by running yum or apt-get depending on your box, then you can start screen by typing screen at the command prompt.

screen

Once screen session has started, you can use the following commands to mess around:

– Ctrl + A + ‘c’ = To open a New Windows
– Ctrl + A + ‘n’ = next window (if you have multiple windows running)
– Ctrl + A + ‘0…9’ = go to window number x where it should come with 0 to 9.
– Ctrl + A + ‘d’ = detach from a window. Say, if you want to close your session and return later.
– Ctrl + ‘d’ = detach and clear the screen session,

To re-attach to a screen, you may need to check the number of screen is running.

screen -ls


This will display the screens currently running, you could run the command as below to resume the screen session.
[code]$ screen -x pid.tty.user[/code]

Not able to login to FrontPage Extension Admin Page

When you have IIS 6 with Frontpage extension 2002 and you have installed the FrontPage Extension 2002 to your IIS 6.0 and wish to check the FrontPage Extension Health and recalculate it but you failed to login (Keep on prompt the login page) to the Administrator page after hit on the Administrator page from the FrontPage manage page.

Firstly, please verify if you have used the correct login detail by typing the login password to a notepad at first. If you still failed to login and hit the cancel button where the page redirect you to a unauthenticated page, you may try with the solution as below where to disable the loopback checking.

Continue reading Not able to login to FrontPage Extension Admin Page