#nmcli connection.add con-name as ifname etho type ethernet ip4 172.25.7.0 gw4 172.25.0.0
#systemctl restart network
● ● ●
Network Manager (GUI) nmcli nmtui
To check set dns
Using Network Manager
#ifconfig #nmcli connection modify as ip4.dns 172.25.6.8
Go to right top where network manager icon and set ip,dns and gateway address from the question
manual assign
Using nmtui
#nmcli connection modify as ip4.method manual
#nmtui
Set auto connect
Set the values for ip,dns,gateway
#nmcli connection modify as connection. autoconnect yes
#cat /etc/resolv.conf
Setting yum repo and SElinux Setting yum repo #cd /etc/yum.repos.d/ #vim myown.repo [myown] baseurl=”paste the url from the question” enabled=1 gpgcheck=0 :wq #yum clean all #yum repolist all #yum install any package to check if its installing from our own repo
Set SELinux Permission #vim /etc/sysconfig/selinux change the line selinux=premissive to selinux=enforcing :wq #getenforce
Creating Collaborative directory Locate files of user and copy to to some path #mkdir -p /a/b #find / -user ashwin -exec cp -a {}/file path \; #chgrp sysmanager /a/b Note: If path doesnt exists create using mkdir #chmod g+rw,o= /a/b Find string in all file and copy to some path #grep "string" /source > /destination path
or #chmod 770 /a/b sets read,write to group sysmanger and other no permission to access /a/b #chmod g+s /a/b sets group permission automatically when files created in that directory
#mkfs.vfat /dev/mapper/vgname/volnam #vgcreate -s 8M vgname /dev/vdb4 e Creating volume
Create directory to mount #mkdir /lvm
Add entry to fstab #/dev/mapper/vgname /lvm ext3 defaults 0 0 :wq Refresh using mount #mount -a List the mounted directory #df -h
8 . Kernel update ,compression & NTP service
Kernel Update download the file from the given url using ezlink #rpm -vh package name #reboot NTP Service #vim /etc/chrony.conf add the source url given the question for NTP
Problem in booting due to wrong entry in /etc/fstab Booting in emergency target:
use ctl+alt+del in send keys tab in virtual server m/c when grub displays press tab key to freeze .Press e to edit grub search for Linux16 string and press end key and add this line systemd.unit =emergency.target use ctl+x to save and reboot #root: mount -o remount,rw / #vim /etct/fstab remove the wrong entry and save using :wq
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.