Welcome back to our Blog, on this blog we will go through installing and setting up CentOS 7 to use any way you want really. With this setup you could change a few settings and make it an everyday Work Station, a Web Server, a Media Server, or any thing you would want. I will go over those options when we get to them. First off of coarse you would need to put the CentOS 7 ISO on a CD, USB Drive, or add it to your Virtual Server’s Data Storage so you can mount it to install from. Once you have the Media connected and turn on the Machine and boot to your ISO you should see the following screen.
To install CentOS 7 you have to move up to “Install CentOS 7” when the screen first comes up it is on “Test this media & install CentOS 7” if you are wanting to setup a Server their is no need to test the media. Once you hit Enter it will come up with a screen to Hit Enter again to install. Then you will get the following screen.
Depending on Language you would select what you want it does default to English. Next you will get the Installation Summary page On here you will set the Date and Time, make sure to change the Timezone for your locations
If you want to can install software from the Software Selection area but if you do it there you may get things you don’t need or not everything you want so its best to just leave it at Minimal Install and install the Packages after the fact. if you click on Installation Destination you will see the next screen.
This is where I messed up one of the times when I installed CentOS, I left it at Automatically Configure and when you do that even with a 3TB hard drive it only allocated 50GB to the /root so I ran out of disk space because the rest of the hard drive was allocated to the /home. This was a problem because /root is were the /var/www directory is for WebHosting. So I made changes to mine by going to “I Will Configure Partitioning” and did something close to the following but with 3TB not 1TB.
You have to set a BIOS Boot and Boot, they don’t need to be that large so I just did 2MB. Then I set the Swap for Memory to 6MB, then I Spit the rest of the drive up between /home, /, and /var. If you are using this as a Work Station. I would give more space to /home for the personal file storage and less to /var. If its going to be just a Web Server or FTP Server then give more space to /var and less to /home. the /root doesn’t really need that much its just were programs and OS files would be stored but i didn’t want to run into problems again so I gave it a large amount of space. Once you have all that set and click on done then you can scroll down to the Network Config Screen.
Here you can set your Host Name, and Turn on your Ethernet, if you are using this as a server you would want to go in and Statically set the IP address you want this Machine to have. After that you only have a couple more things. First is setting a Root Password.
Once you have it set I recommend setting a second user this can be what you use to access the machine remotely with so it doesn’t have root access that way if some one gets the password for that user you could remove that user or change the password without having to worry about it messing anything up since that is not a root user. One thing to remember about this is Do Not Set the Root and User Password the same thing. That would Defeat the purpose of creating the second user.
After that is done and you will be told to reboot the Machine and you are all to use the Machine how ever you want. First thing you want to do after you are logged in is do updates. To do those updates you first want to run the following command.
- sudo yum update yum
This will update the update manager to make sure you are getting all the most resent updates out there. Once that is done you want to update everything by doing this command.
- sudo yum update
This will update everything that is pre-installed on the Machine, from this point you are ready to install what ever you want depending on what you want to do. I hope this helps and hope to see you back for the next Post on Setting up a Web Server. If you have any questions or comments let me know. I will be happy to answer them to the best of my ability.