Rhcsa Full Doc CSL
Rhcsa Full Doc CSL
Rhcsa Full Doc CSL
Contents
GETTING STARTED WITH LINUX...................................................................................................................1
LINUX TEXT PROCESSING TOOLS...............................................................................................................12
LINUX TEXT EDITOR...................................................................................................................................16
USER AND GROUP ADMINISTRATION........................................................................................................21
LINUX FILE PERMISSION............................................................................................................................31
LINUX ACL PERMISSION.............................................................................................................................39
LINUX COMPRESSION UTILITIES................................................................................................................42
LINUX PROCESS MANAGEMENT................................................................................................................46
LINUX CRONTAB AND AT...........................................................................................................................52
LINUX FILE SYSTEM MANAGEMENT..........................................................................................................54
LINUX SWAP SPACE...................................................................................................................................63
LINUX LVM MANAGEMENT.......................................................................................................................67
LINUX NETWORK MANAGEMENT..............................................................................................................72
LINUX YUM CONFIGURATION....................................................................................................................77
LINUX VIRTUALIZED SYSTEM.....................................................................................................................80
HTTP SERVER WITH VIRTUAL HOSTING.....................................................................................................85
ISCSI...........................................................................................................................................................91
NFS SERVER...............................................................................................................................................95
DNS............................................................................................................................................................99
MAIL SERVER...........................................................................................................................................106
BASH SCRIPTING......................................................................................................................................110
FTP...........................................................................................................................................................113
CACTI.......................................................................................................................................................118
SQUID......................................................................................................................................................124
DHCP........................................................................................................................................................128
GETTING STARTED WITH LINUX
=======================
[student@hostX Desktop] $
[root@hostX Desktop] #
1 2 3 4
1: user name
2: hostname
-------------------
------------------------------------
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
Working with linux CLI:
-----------------------
Login: student
pass: ******
[student@hostXDesktop]$ su
Password: ******
screen:
------
-----------------------------
ex # ping -c 4 172.25.11.254
[student@hostX Desktop]$ cd
[student@hostX ~]$ ls -l
[student@hostX ~]$ ls -la ; details list with hidden files and dir
blue - dir
b&w - file
magenta - Picture/image/media
i.e.: /home/student
================================
[student@hostX ~]$ w
Shutdown
===========
restart:
=======
-------------------------
[student@hostX ~]$ cd /
[student@hostX /]$ ls
backup boot etc lib media opt root sbin sys usr
bin dev home lib64 mnt proc run srv tmp var
lib - system libary files locations. libraries needed to execute the binaries in /bin/ and /sbin/.
proc - Also called 'proFS' system process related info (CPU,RAM, Process, Driver, Modules and Kernel)
root - root user (superuser) home dir.
run - service running data. Runtime data for processes started since the last boot.
srv - Sort for Service. User's (/home/*) service related data. Like WWW, FTP etc.
sys - Sort for system. '/sys' directory as a virtual filesystem (sysfs) mounted under /sys. similar as proc.
[student@hostX ~]$ cd /
[student@hostX /]$ ls
[student@hostX /]$ cd
[student@hostX log]$ ls
[student@hostX ~]$ cd
[student@hostX ~]$ ls
[student@hostX Videos]$ ls
[student@hostX Videos]$ cd
[student@hostX ~]$ mkdir linux
[student@hostX ~]$ ls
[student@hostX linux]$ ls
[student@hostX lesson02]$ ls
class work:
-----------
[student@hostX lesson02]$ ll
[student@hostX lesson02]$ touch test1 test2 test3 ; multiple files create with single command
[student@hostX lesson02]$ ll
[student@hostX lesson02]$ mkdir dir1 dir2 dir3 ; multiple dirs create with single command
[student@hostX lesson02]$ ll
[student@hostX lesson02]$ ll
or
[student@hostX lesson02]$ ls
----------------------------
[student@hostX lesson02]$ ll
[student@hostX lesson02]$ ll
[student@hostX lesson02]$ ll
1 2a 2b 2c 2d 3 4 5 6 7 8
1: file/dir types
2: file/dir permission: 2a: user permission, 2b: group permission, 2c: others permission 2d: ACL
Permission
4: file/dir owner
8: file/dir name
------------------------------
s = socket : /dev/log
s - A socket file is used to pass information between applications/process for communication purpose
[student@hostX dev]$ ll
[student@hostX dev]$ cd -
[student@hostX run]$ ll
[student@hostX run]$ cd -
[student@hostX lesson02]$ ls
FIle/dir Permission:
---------------------------
r = read
w = write
x = execute
- = no permission
Copy/Paste/Remove/Rename/Delete
===============================
[student@hostX lesson02]$ ls
[student@hostX lesson02]$ ll
[student@hostX lesson02]$ cd
[student@hostX ~]$ ls
file1
file3
[student@hostX ~]$ cd -
[student@hostX lesson02]$ ls
[student@hostX lesson02]$ cd
[student@hostX ~]$ ls
[student@hostX ~]$ cd -
[student@hostX lesson02]$ cp dir1 linux99 ; wrong command
[student@hostX lesson02]$ ls
[student@hostX lesson02]$ ls
[student@hostX lesson02]$ ls
[student@hostX lesson02]$ ls
C^
[student@hostX lesson02]$ rm -rf etc ; delete dir with contains and without confirmation
[student@hostX lesson02]$ ls
[student@hostX lesson02]$ ls
--------------------------------------------------------------------
[student@desktopX ~]$ cd
[student@desktopX lesson03]$ ls
[student@desktopX lesson03]$ ls
[student@desktopX lesson03]$ ls
passwd test
[student@desktopX lesson03]$ ls
[student@desktopX lesson03]$ grep -n root passwd ; search root keyword in passwd file
1 root:x:0:0:root:/root:/bin/bash
10 operator:x:11:0:operator:/root:/sbin/nologin
[student@desktopX lesson03]$ tail passwd | grep root ;search root keyword in last 10 lines
[student@desktopX lesson03]$ ll
[student@desktopX lesson03]$ ll | wc -l
------------------------------
-----------------
Online Documentation:
---------------------
docs.redhat.com
Class work:
===========
[student@desktopX lesson03]$ su
:******
-------------------
[student@hostX ~]$ cd
[student@hostX lesson04]$ ls
[student@hostX lesson04]$ ls
passwd test
:x
------------------------
[student@hostX lesson04]$ ls
Hello world !!
:set nu
Cursor Movement:
----------------
:n - Go to line n
Replacing Text:
---------------
r - Replace character
Copy/Paste:
-----------
yw - word copy
yy - Yank line
Inserting Text:
---------------
i - Insert at cursor
Deleting Text:
--------------
Undo/Redo:
---------
u - Undo
Ctrl-r - Redo
Searching:
----------
-----------------
-------------
:w - Write (save)
:q - Quit
#vimtutor
-------------------------------------
-------------
root : 0
1 2 3 4 5 6 7
1 - username
3 - userid (UID)
5 - user's comment/descriptions
Alt+Ctrl+F2 -- Alt+Ctrl+F6
1 2 3 4
1 - group name
3 - gid
4 - group members
trainer:x:1004:
trainer:x:1004:tarek,lalin
[root@desktopX ~]# usermod -G trainer,staff ikbal ; single user assign to multiple groups
-------------------
-----------------
rafat:x:1003:1003::/home/rafat:/bin/bash
rafat:x:1000:1000:Linux X student:/home/rafat:/bin/bash
rafat:x:1003:1003: :/newhome/rafat2:/bin/bash
student: ! $.............../:18026:10:30:7:::
student: $.............../:18026:10:30:7:::
or
Alt+Ctrl+F3
Login: mahedi
Pass: *****
What is SUDO do ?
-----------------
=> rm,cp,mv,
=> mkdir,touch
=> setenforce
Note: [root@desktopX ~]# which useradd ; command for location of useradd command
--------------------------------
-----------------------
Test:
-----
------------------------------
lucky:$6$ciiMIfom$cPpqBIf2NOwan2byi5BUA.G6D0iM/g.tw7fcUyLDWIs.nbp0:18026:0:99999:7:::
26 PASS_MIN_DAYS 0
27 PASS_MIN_LEN 5
28 PASS_WARN_AGE 7
=================================== x ===========================
Extra:
--------------------------
------------------------------------
----------------------------------------------------
==========================================================
[root@dektopX linux]# ls
[root@dektopX lesson06]# ll
1 2 3 4 5 6 7 8
4 - file/dir owner
6 - file/dir size
8 - file/dir name
working with link file:
=======================
------------------
2) soft link - different inode number (if original file delete, linked file delete too).
Hardlink - file
[root@dektopX lesson06]# ll
[root@dektopX lesson06]# ll
[root@dektopX lesson06]# ls
[root@dektopX lesson06]# cd network
/home/student/linux21/day6/network
-----------------------
[root@dektopX lesson06]# ll
subfield:
---------
u g o A
u = user
g = group
o = others
r = read (4)
w = write (2)
x = execute (1)
- = no permission (0)
=====================================
dir: 755
file: 644
students:x:5005:malek,sadat,sumon
others: others : no
[root@dektopX lesson06]# ls -l
[root@dektopX lesson06]# ls -l
[root@dektopX lesson06]# ls -l
[root@dektopX lesson06]# ls -l
Testing:
--------
(Ownership Test)
[malek@dektopX lesson06]$ ls
(Groupowner Test)
[sumon@dektopX lesson06]$ ls
----------------------------------------
----------------------
------------------
students:x:1008:malek,sumon,sadat
------------------------
[root@dektopX lesson06]# ll
-----------------------------------
[root@desktopX ~]# cd
[root@desktopX lesson07]# ls
[root@desktopX lesson07]# ll
ACL Test:
----------
# owner: root
# group: root
user::rw-
group::r--
other::r--
User ACL:
---------
[root@serverX lesson07]# ll
----------
Directory Permission:
---------------------
-------------------
------------------
---------------------
======================================
compression:
--------------
Archive:
---------
.tar
Archive + compression:
-----------------------
.tar.gz
.tar.bz2
.tar.xz
Archive (tar):
=============
[root@desktopX lesson08]# ls
[root@desktopX lesson08]# ls
c = Create
v = verbose
f = files
x = extract
Arcive extract:
---------------
[root@desktopX lesson08]# ll
archive + compress:
-------------------
-z - gzip (less)
-j - bz2 (more)
[root@desktopX lesson08]# ll
archive + more compress:
----------------------
[root@desktopX lesson08]# ll
------------------------------
[root@desktopX lesson08]# ll
Extract:
---------
[root@desktopX lesson08]# ll
extract: (.bz2)
========
[root@desktopX lesson08]# ls
extract: (.xz)
========
Only compress:
--------------
[root@desktopX lesson08]# ls
File Compression:
----------------
[root@desktopX lesson08]# ls
extract:
---------
[root@desktopX lesson08]# ls
Extra Knowledge:
----------------
[root@desktopX new]# ls
========================
CPU Time
[root@desktopX ~]# ps ax
Type of Process:
----------------
=> PID
=> PPID
=> CPU%
=> Memory%
PID - Process ID
PR - Priority
NI - NICE Value
S - Status
TIME+ -
COMMD
RHEL/CentOS - 7
RHEL/CentOS - 6
------------------------
Process Dealing:
---------------
Process Dealing:
=================
-> Kill
(ctrl+C) - Terminate
========================
Process Findout:
================
2869
Process Kill:
============
----------------
Nice Value:
----------
firefox 0
---------------------
firefox 15
-------------------------
---------------------------------
Daemon: crond
Package: crond
Crontab Format:
================
* * * * *
1 2 3 4 5
1 = Minutes (0-59)
2 = Hour (0-23)
3 = day of month(0-31)
4 = Months (1-12)
-----------------------
Crontab Edit
--------------
Example:
-----------
30 22 * * * cp -r /etc/* /backup
* * 31 12 * /backup/backup.sh
59 23 * * * /sbin/shutdown -h now
============================
------------------------
----------------------------------------------------------
-------------------------------------------------------------
DVD: sr0
------------------
NTFS - 7
Extended - 5
ext3/ext4/xfs - 83
swap - 82
LVM - 8e
vfat - f
RAID - fd
-----------------------------
d delete a partition
Partition type:
e extended
Selected partition 4
-----------------------------
-------------------------
Partition Mount:
----------------
Parmanent Mount:
---------------
:set nu
or
1 2 3 4 5 6
1 - partition
2 - mountpoint
3 - filesystem
4 - options(quota,acl,ro,luks)
5 - Dumping
*** specifies the option that need to be used by the dump program.
taking backup and if the option is a nonzero value, the device will be backed up
*** mentions the fsck option. That is if the value is set to zero,
the value is set. The root partition will have this value set to
================
=> Unmount
Note: Before delete, you should unmount partion and delete fstab entry.
[root@desktopX ~]# partprobe /dev/vda
/dev/vda1
/dev/vda2
/dev/vda3
-------------------
[root@desktopX mnt]# ls
[root@desktopX mnt]# cd
[root@desktopX mnt]# ls
Mount DVD:
------------
[root@desktopX media]# ls
[root@desktopX Packages]# ls
[root@desktopX Packages]# cd
[root@desktopX ~]# umount /media
[root@desktopX ~]#
----------
----------------------------------
[root@serverX ~]# free -m ; memory info physical memory & swap space
------------------------------
--------------------------------------
Partition type:
e extended
Selected partition 4
no label, UUID=7906ac34-4e2a-4b06-b57d-79dd6c66399a
Swap: 0 0 0
(Optional)
============
:set nu
or
----------
Selected partition 4
-----------------------
-----------------------
PE Size: 32 MB
[root@localhost ~]#
[root@localhost ~]#
Parmanent Mount:
----------------
VG Extended:
------------
=> vgextend
Lv remove:
----------
VG Remove:
----------
PV Remove:
----------
/dev/vda1
/dev/vda2
/dev/vda3
IPV4 (LAN/MAN/WAN)
----------------------
Private:
--------
A: 10.0.0.0 - 10.255.255.255
B: 172.16.0.0 - 172.31.255.255
C: 192.168.0.0 - 192.168.255.255
----------------------------
-------
loopback: lo
Bridge : br0
Wireless: wl
3.10.0-123.el7.x86_64
---------------------
desktopX.example.com
or
----------------------------
---------------------------
Bcast:192.168.11.255
Mask:255.255.255.0
Gateway Testing
--------------------------
IP Configure
--------------------------
=> Parmanet
-------------------------------
IP Client Configure
-------------------
=> Static
--------------------------------
[root@desktopX network-scripts]# ls
NAME="en***" ; no change
TYPE="Ethernet" ; no change
HWADDR="01:1C:2D:35:26:C0" ; no change
BOOTPROTO="none" ; none/static=static
NETMASK=Y.Y.Y.Y (255.255.255.0)
GATEWAY=X.X.X.G (192.168.11.1)
DNS1=A.A.A.A (4.2.2.2)
DNS2=B.B.B.B (8.8.8.8)
RPM Installation:
-----------------
----------------------------------
=> Requirments:
-------------
=> Packages:
1) createrepo - server
======= ------------------------
======= -------------------------
[root@serverX mnt]# ls
[root@serverX Packages]# ls
======= -------------------------
======= -------------------------
[root@serverX Packages]# cd ..
======= ------------------------------
[root@serverX yum.repos.d]# ls
[server]
baseurl = file:///var/ftp/pub/Packages
enabled = 1
gpgcheck = 0
:x
----------------
--------------------
[root@desktopX yum.repos.d]# ls
enabled = 1
gpgcheck = 0
:x
Check VT Support
-----------------
Packages
========
=================
[root@desktopX network-scripts]# ls
DEVICE=en***
HWADDR=aa:bb:cc:dd:ee:ff
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
BRIDGE=br0
DEVICE=br0
TYPE=Bridge
IPADDR=192.168.0.X ; (100+X)
NETMASK=255.255.255.0
BOOTPROTO=none
ONBOOT=yes
DELAY=0
[root@localhost network-scripts]# systemctl restart network.service
[root@localhost network-scripts]# cd
--------------------
=> ftp://192.168.11.254
Step 02:
--------
Create Partion:
---------------
Package Installation
-----------------------
Create a ISO:
-------------
Run VM:
=======
VM Name: Linux-7
Interface: br0
=> IP configure
[root@serverX ~]# ip addr
[root@serverX network-scripts]# ls
DEVICE=eth0
TYPE=Ethernet
HWADDR=XX:XX:XX:XX:XX:XX
IPADDR=192.168.11.X ; (200+X)
NETMASK=255.255.255.0
BOOTPROTO=none
ONBOOT=yes
[root@localhost network-scripts]# ls
[client]
name=yum client
enabled=1
gpgcheck=0
:x (SAVE & exit)
Hostname:
---------
serverX.example.com
=============
Pakcages: httpd
daemon: httpd
-------------------
[root@ns1 named]# ls
-------:
---------------------
[root@ns1 html]# ls
squirrelmail webmail
<html>
<head>
<body bgcolor="#f25dfd">
</body>
</head>
</html>
-----------------------------
[root@ns1 conf]# ls
httpd.conf magic
95 ServerName www.example.com
96 ServerName 192.168.11.254
-----------------------------
------------------------------------
DNS Part:
-----------
19 zone "example.com" IN {
20 type master;
21 file "example.com.for";
22 allow-update { none; };
23 };
24 zone "test.om" IN {
25 type master;
26 file "test.com.for";
27 allow-update { none; };
28 };
29 zone "hello.com" IN {
30 type master;
31 file "hello.com.for";
32 allow-update { none; };
33 };
ns1.hello.com. IN A 192.168.11.254
ns1.test.com. IN A 192.168.11.254
[root@ns1 html ]# ls
<html>
<head>
<body bgcolor="#fed2fd">
</body>
</head>
</html>
<html>
<head>
<body bgcolor="#d2f8cd">
</body>
</head>
</html>
------------------------------
httpd.conf magic
95 ServerName www.example.com
96 ServerName 192.168.11.254
360 </VirtualHost>
366 </VirtualHost>
372 </VirtualHost>
-----------------
Reference Table:
===============
Port: 3260
Protocol: TCP
-------------------------------------------
------------------------------------------
----------------------------------------
-------------------------------
/> ls
o- / ........................................... [...]
----------------------
--------------------------
LUN Mapping:
-----------
----------------------------------------
=========================
-----------------------------
-------------------------------------------------------
-----------------------------------------
------------------------
---------------------------------------------
-------------------------------------
[root@desktopX ~]# fdisk /dev/sdX
------------------------
NFS SERVER
=========================
NFS, stands for Network File System, is a server-client protocol used for
mount a remote share locally. You can then directly access any of the files
Reference Table:
----------------
Package: nfs-utils, nfs-utils-lib
Daemon: nfs
------------------------
-----------------------------------
-----------------------------------
[root@serverX nfsshare]# ls
[root@serverX nfsshare]# ls
[root@serverX documents]# ls
[root@serverX documents]# cd ..
[root@serverX download]# cd ..
[root@serverX office]# cd ..
[root@serverX project]# cd ..
[root@serverX software]# cd ..
[root@serverX nfsshare]#
----------------------------------------------
/nfsshare/software 192.168.11.0/24(rw,sync,no_root_squash,no_all_squash)
/nfsshare/project 192.168.11.0/24(ro,sync,no_root_squash,no_all_squash)
/nfsshare/download *(ro,sync,no_root_squash,no_all_squash)
/nfsshare/documents 192.168.11.254(rw,sync)
/nfsshare/office *.example.com(rw,sync)
Note:
====
--------------------------------
=========================
---------------------------------------------------
-----------------------------------
-------------------------------------
/nfsshare/download *
/nfsshare/office *.example.com
/nfsshare/project 192.168.11.0/24
/nfsshare/software 192.168.11.0/24
/nfsshare/documents 192.168.11.254
------------------------------------
[root@instructor mnt]# ls
------------------------------------
DNS
Daemon: named
Packages: bind
Port: 53
Configuration file:
=> /etc/sysconfig/network-scripts/ifcfg-en*
=> /etc/hosts
=> /etc/hostname
=> /etc/named.conf
=> /etc/named.rfc1912.zones
--------------------------------------
[root@desktopX network-scripts]# ls
NAME=********
HWADDR=*******
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.11.X
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
ONBOOT=yes
DNS1=192.168.11.X
------------------------------
----------------------------------------
ns1.example.com
------------------------------
[root@ns1 ~]# yum install bind* -y
----------------------------------------
---------------------------------------
19 zone "example.com" IN {
20 type master;
21 file "example.com.for";
22 allow-update { none; };
23 };
31 zone "11.168.192.in-addr.arpa" IN {
32 type master;
33 file "example.com.rev";
34 allow-update { none; };
35 };
[root@ns1 named]# ls
[root@ns1 named]# ls -l
---------------------------------------------------------
--------------------------------
$TTL 1D
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS ns1.example.com.
IN A 192.168.11.X
ns1 IN A 192.168.11.X
Note:
-----
IN - Internet
--------------------------------
$TTL 1D
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS ns1.example.com.
X IN PTR ns1.example.com.
------------------------------------------------------------
---------------------
Server: 192.168.11.X
Address: 192.168.11.X#53
Name: ns1.example.com
Address: 192.168.11.X
status: NOERROR
status: NOERROR
Mail Server:
============
Email Protocol:
================
DNS Part:
----------
IN NS ns1.example.com.
IN MX 10 mail.example.com.
IN A 192.168.11.X
ns1 IN A 192.168.11.X
Server: 192.168.11.251
Address: 192.168.11.251#53
Name: ns1.example.com
Address: 192.168.11.251
Firewall: off
SElinux: off
Step 01:
--------
Step 02:
--------
75 myhostname = mail.example.com
83 mydomain = example.com
99 myorigin = $mydomain
=====================
Trying 192.168.11.251...
Connected to mail.example.com.
quit
========================:
========================:
[root@linux06 ~]# vim /etc/dovecot/dovecot.conf
30 listen = *
24 mail_location = maildir:~/Maildir
10 disable_plaintext_auth = no
90 #mode = 0600
91 user = postfix
92 group = postfix
93 }
=====================
Trying 192.168.11.253...
Connected to mail.example.com.
-------------------
BASH SCRIPTING
Shell:
=======
Types of shell:
-----------------
1. shell sh(.sh)
5. kshell
===================================
/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin
=========================
#!/bin/bash
echo "hello"
varibale types:
=================
command:
==========================
root#vim myshell.sh
#!/bin/bash
clear
echo "hello"
sleep 2
read name
sleep 2
echo "My IP address Is": `ifconfig eth0 |grep 'inet'|cut -d':' -f2|awk '{print $2}'`
sleep 2
shell permission
-----------------
shell run:
===========
or
=================
#!/bin/bash
read server
cd /etc/yum.repos.d/
`rm -rf * `
`touch client.repo`
sleep 1
FTP
FTP Server:
============
Protocol: TCP
Packages: vsftpd
Daemon: vsftpd
---------
--------------------
Type: ftp://192.168.11.x
========================
1) Normal FTP
2) Authentication based
FTP user:
--------------
FTP Access:
-------------
username: xxxxs
passwword: ****
port: 21
------------------------------
ftp> dir
ftp> cd pub
ftp> ls
ftp> bye
--------------------------------------
[root@serverX ~]# cd /
ftpusers:x:603:shakil,shahin,shamim
Chroot Jail:
--------------
shakil
shamim
shahin
User Protect:
=================
CACTI
What is Cacti?
--------------
Cacti tool is an open source web based network monitoring and system monitoring
graphing solution for IT business. Cacti enables a user to poll service at regular
to graph time-series data of metrics such as network bandwidth utilization, CPU load,
------------------------
=> Apache : A Web server to display network graphs created by PHP and RRDTool.
=> NET-SNMP : A SNMP (Simple Network Management Protocol) is used to manage network.
-----------------------------------
---------------------------------------
--------------------------
[root@serverX ]# cd /etc/yum.repos.d/
[root@serverX yum.repos.d]# ls
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Sources.repo
CentOS-Vault.repo
epel.repo
epel-testing.repo
------------------------------------
----------------------------
-------------------------------------
#####################################################################################
###
# #
# #
# #
# #
# Bye #
# #
#####################################################################################
###
---------------------------------------
/usr/share/doc/cacti-0.8.8b/cacti.sql
Now we’ve of the location of Cacti.sql file, type the following command to install tables,
--------------------------------------------
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_port = "3306";
$database_ssl = false;
----------------------------------------
[root@serverX ~]# firewall-cmd --permanent --zone=public --add-service=http
or
---------------------------------------------
--------------------------------
---------------------------------------
password: admin
----------------------------------
=> Add
-------------------------------------------
---------------
-----------------
=> Select Data Query: (Mounted partition: /, /boot, swap), Interface: eth0
=> Create
SQUID
Proxy Server
==============
=> Caching
=> Monitoring
=> BW control
=> Authentication
=> Gateway
=> Log
Proxy Types:
=========
packages:
-------------
=> squid
-----------------------------
[root@serverX squid]# ls
-----------------------
11 #acl localnet src fc00::/7 # RFC 4193 local private network range
12 #acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) mac hines
Note:
=====
100 - MB
16 - Folder
256 - Subfolder
Chekcing:
---------
--------------
Firefox => Edit > Preference => Advanced => Network => Settings
========================
www.bdnews24.com
www.bdjobs.com
www.porn.com
movie
bdnews
sex
192.168.11.100
192.168.11.150
192.168.11.200
www.facebook.com
www.youtube.com
www.twitter.com
192.168.11.251
192.168.11.252
192.168.11.253
DHCP
-----------------------
-------------------
-------------------
HWADDR=74:D4:35:7C:F8:0F
TYPE=Ethernet
BOOTPROTO=none
NAME=enp2s0
UUID=45cf6de7-1098-45c8-ad7c-44c24cbd80d8
ONBOOT=yes
IPADDR=192.168.99.254
NETMASK=255.255.255.0
GATEWAY=192.168.99.1
DNS1=8.8.8.8
DNS2=4.2.2.2
OR
Step 01:
--------
dhcp-4.2.5-27.el7.centos.x86_64
---------
53 default-lease-time 600;
54 max-lease-time 7200;
55 }
#fixed Address
75 host printer {
77 fixed-address 192.168.99.99;
78 }
Note: DHCP server must configure with Static IP address with same subnet.