st<\/sup> option \u201cInstall or upgrade an existing system.\u201d It will then proceed to load and take\u00a0you to the\u00a0next screen, where it tells you that the disc was found and asks you to test the media.<\/p>\nYou can skip that part, as more than likely you have burned the disc properly. You can always proceed to test the disc though, but\u00a0that will take some time. After this step, you will be brought to the GUI\u00a0(graphical user interface) of the install process.<\/p>\n
You can simply select the default selections for the language and keyboard. Even the Ethernet configuration and hostname you can skip for now, as we will address that after the install finishes.<\/p>\n
It can also ask you what type of install, if it\u2019s a fresh install or upgrade. Select fresh install, as this is what we are trying to do (we will address doing OS major revision upgrades in a later article).<\/p>\n
Once you proceed and select all the defaults that are pre-selected, you will be asked to provide the partition layout of the drive. On most scenarios you will simply need the default partition layout by selecting \u201cUse all space,\u201d which will create a default partition layout. Most of the time this is the default install, unless your customer has a specific requirement on the partition layout, which in that case you will then have to select \u201cCreate Custom Layout\u201d and create your client\u2019s partition there.<\/p>\n
After this, you will definitely need to write changes to the disk in the next menu. In cases where you have a more complex hardware setup, like having RAID\u00a0or SCSI, you might want your own partition scheme or even need to load drivers first to detect the drive, which this article will not cover, as most of the time, you will need to follow the instructions of the hardware manufacturer and they would have provided you drivers to install.<\/p>\n
Once the changes have been written to disk, it will then ask you what type of install you want. Most of the time, you just select \u201cBasic Server\u201d for most clients, as they will be the ones installing their own modules and plugins, or they will configure themselves after you have provisioned the server and turned over to them.<\/p>\n
It will then proceed to complete the install, and you wait for the install to finish. Once done, it will eject the disc and ask you to restart.<\/p>\n
At this point you might think you are done, but not just yet. Remember in the beginning we selected pretty much all default pre-selected options. So after the server reboots and brings you to the console login, you will need to connect it to the internet.<\/p>\n
The next step to do is to login as root and enter your password. Then once logged in, enter the following command: \u201csetup.\u201d Since you selected basic server configuration, that command should work. If it does not, then it means you selected a different configuration and will need to install some modules\/plugins manually (we will cover this in a different article).<\/p>\n
Once you are in setup, you go to \u201cNetwork Configuration,\u201d select \u201cDevice configuration.\u201d Most of the time, you select Eth0, assuming you put the network cable in the 1st<\/sup>\u00a0Ethernet port of the server.<\/p>\nIn Network Configuration menu, you leave Name and Device as eth0. Uncheck \u201cStatic IP\u201d so you can enter the IP manually. You then have to enter the public IP you want to assign, the subnet or netmask, default gateway IP, and DNS servers. You can then exit and save so you are brought back to the console. You are almost done! You type the following:<\/p>\n
Nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p>\n
Then it will bring you a text based configuration setting, which will look something like this:<\/p>\n
DEVICE=eth0
\nHWADDR=00:0a:00:f8:4a:bf
\nNM_CONTROLLED=yes
\nONBOOT=no
\nIPADDR=1.2.3.4
\nNETMASK=255.255.255.0
\nGATEWAY=1.2.3.1
\nBROADCAST=1.2.3.255
\nNETWORK=1.2.3.0
\nBOOTPROTO=none
\nTYPE=Ethernet
\nIPV6INIT=no
\nUSERCTL=no<\/p>\n
Scroll to the section where it says ONBOOT=no and replace no with yes. Then press Ctrl-X and save the changes to the same file (just press enter when it asks you to save). And finally, you need to restart the network for the new IP to get assigned. You can do this by typing:<\/p>\n
service network restart<\/p>\n
The network services will now restart and apply the new IP you have assigned. At this point the server should now be accessible, assuming you have assigned the correct IP, and the correct IP subnet has been configured. To test that everything is up and running, you then try to see if you can access outside addresses:<\/p>\n
ping yahoo.com<\/p>\n
If it\u2019s working, it should show something like this:<\/p>\n
PING yahoo.com (98.139.183.24) 56(84) bytes of data.<\/p>\n
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=1 ttl=50 time=17.0 ms<\/p>\n
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=2 ttl=50 time=11.8 ms<\/p>\n
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=3 ttl=50 time=15.3 ms<\/p>\n
And now you are done. The next step is to email the IP information and the root password to your client. However, you need to advise them to login to their server and change the default root password and secure the server. At this point it is now up to your client to harden his server and setup his firewall and disable root access, etc.<\/p>\n
Congratulations, you have done your initial CentOS installation.<\/p>\n