Professional Documents
Culture Documents
---------------------Initial setup:
--------------password break:
-------------------restart system
----> press esc key
linux...
--- > press e
----> fi ( line not enter)
----> linux16 /boot/vmliuz ----> go to end of the line and enter below the comond
rd.break console=tty1
---->ctrl+X
switch_root:# mount -o remount,rw /sysroot
switch_root:# chroot /sysroot
sh-4.2# passwd
---> in exam they give passwd
newpasswd:
retypepasswd:
sh-4.2# exit
switch_root:#exit
--------------------------------------------------------------------------root@server6 ~]# systemctl set-default multi-user.target -----> go to single user mode
[root@server6 ~]# systemctl set-default graphical.target
Terminal open"
Alt+f2
Enter a command: gnome-terminal---> enter
------------------------------------------------------------------------[root@server6 ~]# nmtui
---> Edit a connection
---> system eth0
----> Edit
------>Profile name:system eth0
------> ipv4 configuration -->show(click)--Enter
( IP address,gateway,dns,search domain give in EXAM u can enter below)
Addressed:172.25.20.11/24 ----> exam they give ip,dns,gateway ,domain
Gateway :172.25.254.254
DNS server:172.25.254.254
search Domain: example.com
-----> ok
-----> quit
xfs
defaults
00
[admin]
name=adminrepo
baseurl=http://content.example.com/rhel7.0/x86_64/errata/
gpgcheck=0
enabled=1
[root@server6 yum.repos.d]# yum clean all
[root@server6 yum.repos.d]# yum clean dbcache
[root@server6 yum.repos.d]# yum repolist
[root@server6 yum.repos.d]# yum install kernel -y
[root@server6 yum.repos.d]# reboot -f
[root@server6 ~]# uname -r
3.10.0-123.1.2.el7.x86_64
[root@server6 ~]# vim /etc/grub.conf
---------------------7.create a swap memory.
. create a swap partition 512MB size.
Ans:
--[root@server6 ~]# fdisk /dev/vdb
Command (m for help): p
Command (m for help): n
Select (default p): e
--enter
---enter
--- enter
Command (m for help): n
Partition type:
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): l
Last sector, +sectors or +size{K,M,G} (1028096-20971519, default 20971519): +512M
Command (m for help): p
Command (m for help): t
Partition number (1,2,5, default 5): 5
Hex code (type L to list all codes): 82
Changed type of partition 'Linux' to 'Linux swap / Solaris'
Command (m for help): w
[root@server6 ~]# partprobe /dev/vdb
[root@server6 ~]# mkswap /dev/vdb5
[root@server6 ~]# vim /etc/fstab
/dev/vdb5
swap
[root@server6 ~]# swapon -a
[root@server6 ~]# swapon -s
[root@server6 ~]# free -m
[root@server6 ~]# lsblk
swap
defaults
00
-----------------------------8. ARCHIVE.
Archive /etc/hosts to /var/tmp/archive.tar.bz2.
Please read carefully the question /var/ and /tmp are directory. So remove
the /tmp or /var and try it.
Ans:
[root@server6 /]# tar -cjvf /var/tmp/archive.tar.bz2 /etc/hosts
UnZip:
-----[root@server5 /]# tar -xjvf /var/tmp/archiv.tar.bz2 -C /root/Desktop/
etc/hosts
----------------------------9.Bind to the LDAP domain example.com provided by classroom.example.com
for user..
note the following.
ldapuserX should be able to log into your system, where X is your server
number, but will not have a home directory until you have completed the autofs
requirement below.
.
all ldap user have a password of password
Note:your ldap user TLS certificate path
http://classroom.example.com/pub/EXAMPLE-CA-CERT
Ans:
---[root@server6 ~]# yum install sssd* -y
[root@server6 ~]# yum install auth* -y
[root@server6 ~]# yum install autofs* -y
[root@server6 ~]# systemctl restart sssd
Job for sssd.service failed.
[root@server6 ~]# authconfig-gtk
one new window open
User accound database: LDAP
Ldap Search base DN : dc=example,dc=com
Ldap server
:ldaps://classroom.example.com
/mnt/database
ext4
defaults
00