Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to know the best practices on how to install Centos 7, e.g. the amount of swap file, how to effectively partition the disk and the hardening part.
I would like to know the best practices on how to install Centos 7, e.g. the amount of swap file, how to effectively partition the disk and the hardening part.
Swap is generally personal preference, I tend to go with 4Gb and that's served me well.
Partitions, start with the default partition scheme and adjust depending on your needs. If you need a big "/home" then adjust accordingly. If you need a big "/var/www" then adjust or partition accordingly.
Consider the log partition sizes, does it needs to be in a separate partition as well, if log files consume your disk rapidly and it is located in the same partition where your systems are located, it will make your system unstable right?
Consider the log partition sizes, does it needs to be in a separate partition as well, if log files consume your disk rapidly and it is located in the same partition where your systems are located, it will make your system unstable right?
Consider the advice in the CIS guide:
Quote:
1.1.2 Ensure separate partition exists for /tmp
1.1.6 Ensure separate partition exists for /var (Scored)
1.1.7 Ensure separate partition exists for /var/tmp (Scored)
1.1.11 Ensure separate partition exists for /var/log (Scored)
1.1.12 Ensure separate partition exists for /var/log/audit (Scored)
1.1.13 Ensure separate partition exists for /home (Scored)
You're welcome. There are many, many, many examples of what people consider "best practice" when it comes to swap and partitioning, stick 4 linux guys in a room and they'll fight about it forever.
Remember that it depends on what you are installing it on. Partitions for /var and /tmp may be very important on a server, but they are a waste of time on a desktop or laptop. If you let CentOS use LVM (also more suited to a server) or you have EFI, then you need /boot. If you have a modern computer with plenty of memory, you may not need swap. The only thing that's definite is that you need root and home partitions. I have 10GB for root, but I don't have vast amounts of software. See the CentOS and Red Hat documentation for more advice.
CentOS will have the firewall and SEL enabled by default, so it's pretty secure.
Thanks David McCann! Also, does anyone knows if joining Linux to WIndows domain has advantages over standalone configurations. If so, could anyone provide any available guide of getting Centos server join to Winodws Domain
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.