Month: May 2019

Installing Centos 7 Step by Step

The following is the steps I used to install CentOS 7 on my Lenovo laptop.

(This will be updated constantly)

Reference Guide– https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/

 
— Install the mini install 
 
— Run the nmtui command to configure the network (remember to set Manual instead of Automatic)
 
—  PREVENTING THE COMPUTER FROM SUSPENDING WHEN CLOSING THE LID
When closing the lid of your laptop, your computer suspends in order to save power. You can prevent the computer from suspending when closing the lid by changing the setting for that behavior.

Warning: Some laptops can overheat if they are left running with the lid closed, especially if they are in a confined place like a backpack. Therefore, consider if changing the default setting (suspend) is the best option in your case.

Open the /etc/systemd/logind.conf file for editing.
Find the HandleLidSwitch=suspend line in the file. If it is quoted out with the #character at the start, unquote it.
If the line is not present in the file, add it.
Replace the default suspend parameter with
lock for the screen to lock;
ignore for nothing to happen;
poweroff for the computer to switch off.
For example:

[Login] HandleLidSwitch=

HandleLidSwitch=lock

Save your changes and close the editor.
Run the following command so that your changes preserve the next restart of the system:
# systemctl restart systemd-logind.service


Warning: Keep in mind that restarting the service forcibly interrupts any currently running GNOME session of any desktop user who is logged in. This can result in users losing unsaved data.

 

For more information on the /etc/systemd/logind.conf file, see the logind.conf(5) man page.

 

— Add the most popular YUM repositories (refer to another Note)
 
— Install ifconfig command
# yum install net-tools
 
— Upgrade Kernel on CentOS 7 (refer to another Note)
 
— Install updatedb command
# yum -y install locate
 
— Install Denyhosts
# rpm -Uvh xxxx.rpm
start denyhosts service
config denyhosts configuration under /etc/denyhosts
 
—