Professional Documents
Culture Documents
8-Configure CentOS 8 Client
8-Configure CentOS 8 Client
• During the overall process of configuring the Linux client, you should login to root user.
• Process of Linux configuration is very complicated, make sure that you follow the configuration process exactly;
do not jump or skip any process.
• Linux configuration are very sensitive, you have to be careful with every single component of syntax and
command such as space, sign, paragraph, etc.
• If you are not sure about the use of any command, you can type: man command_name; EX: man rm
• This academic tutorial is intended for demonstration only, you may use simple passwords here, but in real
practice, you should use strong passwords.
• You can skip the yellow highlight parts.
♦ View current time zone and make sure that Asia/Phnom_Penh is there
[root@centos ~] # ls -l /etc/localtime
♦ Set a correct date and time on the client according to your current time
[root@centos ~] # date --set "2020-10-25 13:45:30.999"
♦ Test ICMP service by ping to server’s IP addresses and make sure it can reach server. Press Ctrl + c to stop.
[root@centos ~] # ping 192.168.11.10
[root@centos ~] # ping 192.168.88.10
6. Remote Login with Password Authentication via Terminal (Mac OS and Linux OS)
From Mac OS or Linux OS, we use Terminal to remote login to the Linux client.
[InstallMedia-AppStream]
name=CentOS Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/Linux/AppStream
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
♦ Test by installing a simple package without the Internet connection; EX: Nginx
[root@centos ~] # yum -y install nginx
Note: from now on when we want to install any package, we do not need to connect to the Internet anymore, we
just connect the CentOS DVD ISO file to the VM CD ROM and mount the CD to the folder /mnt/Linux.
♦ For Windows host, go to C:\Program Files (x86)\VMware\VMware Workstation and copy file linux.iso
to the Desktop
♦ For MacOS host, go to /Applications/VMware Fusion.app/Contents/Library/isoimages/linux.iso and
copy file linux.iso to the Desktop
♦ In VMware Workstation or VMware Fusion, VM => Settings…, open CD/DVD menu then change the
ISO file of the CD/DVD and browse to the file linux.iso on the Desktop, then click Connect
♦ Mount the VMware Tools CD into /mnt/Linux
[root@centos ~] # mount /dev/cdrom /mnt/Linux
♦ Follow the instruction to install VMware Tools (just press enter) until the installation is done
♦ Return back to the home directory
[root@centos ~] # cd
♦ In VMware Workstation or VMware Fusion, VM => Settings…, open CD/DVD menu then change the
ISO file of the CD/DVD and browse to the file CentOS-8.4.2105-x86_64-dvd1.iso, then click Connect
♦ Test by editing any configuration file and make sure that VIM feature works
[root@centos ~] # vi /etc/yum.repos.d/CentOS-Local.repo
♣ Line 6: uncomment
auth required pam_wheel.so use_uid
♦ Restart the server
[root@centos ~] # init 6
♦ Login with normal user; EX: user vanndy. Try using sensitive Linux command, and make sure the
permission is denied; EX: changing user’s password
[vanndy@centos ~] # sudo passwd vanndy
♦ Restart the Linux client then test with a command below and make sure that there is no IPV6
[root@centos ~] # lsmod | grep -i ipv6
♦ Restart the Linux client and make sure that boot menu does not appear anymore
[root@centos ~] # init 6
♦ Restart the Linux client and check if Firewall service is running or not
[root@centos ~] # systemctl -t service
♦ Use the command below to check the status of Firewall services; make sure it is inactive
[root@centos ~] # systemctl status firewalld
♦ Restart the Linux client then check the status of SELinux again, and make sure it is disabled
♣ Line 3: comment
#pool 2.centos.pool.ntp.org iburst
♣ Add line 4
server www.vanndy.edu
♦ Mount the /root/nfsServer folder from the server to the /root/nfsClient folder on client
[root@centos ~] # mount -t nfs primary.vanndy.edu:/root/nfsServer /root/nfsClient
♦ Check if the mounting process is success or not, make sure all the sample folders and files inside the
nfsServer folder is mounted to nfsClient folder
[root@centos ~] # ll /root/nfsClient
Note: for Mac OS user, you have to disable Remote network card first, then login directly to the server before
testing the commands above. This is the problem of VMware Fusion.
♦ Disable the Remote network card and test the commands above
[root@centos ~] # ifdown ens192
♦ Test by log out from root user (by using GUI) then log in with any LDAP user on the welcome screen.
♦ Check the port number of Cockpit Admin Console; it listens on port 9090
[root@centos ~] # ss -napt
♦ After you restart the operating system, you need to enter the command above again to reactivate VNC service.
Go to Windows client and configure section 9