In this article, I will show you how to install ‘Ansible’ on RHEL/CentOS 7/6. Like other configuration management tools like puppet, chef and CFEngine, server software is installed on one machine and client machines are managed through the agent. Wherein Ansible, the nodes are managed by controlling machine (Ansible server) over SSH, so there won’t be any agent running on node machines.
Base Requirements :
- Controlling Machine ,
- Client Nodes ,
- Required Packages
Software Prerequisites :
- Operating System: RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint
- Jinja2: A modern, fast and easy to use stand-alone template engine for Python.
- PyYAML: A YAML parser and emitter for the Python programming language.
- parmiko: A native Python SSHv2 channel library.
- httplib2: A comprehensive HTTP client library.
- sshpass: A non-interactive ssh password authentication.
My Controlling Machine and Nodes :
- 192.168.87.145 server.gekvplabs.com server
- 192.168.87.146 node1.gekvplabs.com node1
- 192.168.87.147 node2.gekvplabs.com node2
Installation of Ansible on On RHEL/CentOS :
- Run yum update for updating all existing packages
- yum update -y
- Install EPEL repo
- yum install epel-release
- After configuring epel repository, you can install Ansible using following command
- sudo yum install ansible -y
- After installed successfully, you can verify the version by executing below command.
- ansible --version
AIDE:
AIDE (Advanced Intrusion Detection Environment) is a file and directory integrity checker
It creates a database from the regular expression rules that it finds from the config file(s). Once this database is
Installation Procedure:
1. Install AIDE package on CentOS/RHEL:
# yum install -y aide
2. Check and adjust aide configuration file to fulfill your needs:
# vim /etc/aide. conf
3. Initialize AIDE database - it will scan all the files in folders that were included in the config file and save their hash as well as attributes info
Once initialized we may see below line
### AIDE database at /var/lib/aide/aide. db . new . gz initialized.
4. we need to modify newly created database with mv command
5. Check the database before making any changes
6. Make any changes Ex : touch /usr/sbin/mytestfile.txt( just relating any file to test)
7. You may consider keeping golden copy of AIDE database (default is set to /var/lib/aide/aide. db . gz ) is secure and read-only location. It will allow you to compare current system integrity to the golden copy.
To check what changed run:
# aide -C
Let’s consider the following for easy understanding of tutorial
DB DB Name: admindb
DB UserName : postgres
DB Backup:
Backup: $ pg_dump -U postgres admindb -f admindb.sql
Config DB Restore:
Restore: $ psql -U postgres -d admindb -f admindb.sql
Backup a single postgres table:
Example: test.sql and test1.sql from admindb
pg_dump --table test -U postgres admindb -f test.sql
pg_dump --table test1 -U postgres admindb -f test1.sql
Restore a single table to config DB( admindb ):
![]() |
| Screen-Recording |
Video speaks louder than text.Many of us wants to share their knowledge by creating
Screen capture video lectures and upload to you tube.But new tech guys may don't know
how to make video lectures.They are many screen recording software's are available
in market example 1.JING ,2.CAPTURE FOX ,3.BB FLASHBACK EXPRESS ,4.CAM STUDIO,
5. WEBINARIA.
I found it is very easy to work with bb flashback express and we can get free student
licence for it. You just need follow bellow steps carefully.
1.DOWNLOAD BB FLASHBACK EXPRESS
- Download bb flashback express from here DOWNLOAD.
- Install bb flashback express and follow bellow procedure.
- Open bb flash express by clicking here
- You will see window prompt.You can see many options for web cam recording,etc..!
- Click on record video button.
- Screen recording automatically begins after clicking record button.
- You just have to click on stop icon from notification section to finish recording.
- Save it where ever you want.
Note:The recorded video file has the . fbr extension.You need export it to .AVI format.
- Click on export option.
Note: The exported file is very large in size since it has high quality you just need
compress it with HANDBRAKE software.
- Download handbrake from here DOWNLOAD.
- Install handbrake and convert video.
- That's it your done.
Run-Shortcuts
|
In windows operating system RUN command prompt is application which is used to
access all executable files which are reside inside system.Every executable application
in windows operating system can be access through RUM box.Each application has
Unique name to access them for example:Notepad Application Name(notepad) and
I have listed some important commands here.
IMPORTANT RUN COMMANDS:
Add/Remove Programs = appwiz.cpl
Administrative Tools = control admintools
Authorization Manager= azman.msc "New"
Calculator = calc
Certificate Manager = certmgr.msc
Character Map = charmap
Check Disk Utility = chkdsk
Control Panel = control "New"
Command Prompt = cmd.exe
Component Services = dcomcnfg
Computer Management = compmgmt.msc = CompMgmtLauncher "New"
Date and Time Properties = timedate.cpl
Downloads = Downloads "New"
Device Manager = devmgmt.msc
Direct X Troubleshooter = dxdiag
Disk Cleanup Utility = cleanmgr
Defragment User Interface = dfrgui "New"
Ditilizer Calibration Tool = tabcal "New"
Disk Management = diskmgmt.msc
Disk Parmelonion Manager = diskpart
Display Properties = control desktop or desk.cpl
DPI Scaling = dpiscaling "New"
Driver Package Installer = dpinst "New"
Driver Verifier Utility = verifier or /reset
DVD Player = dvdplay "New"
Encryption File System = rekeywiz "New"
Event Viewer = eventvwr.msc
Fax Cover Sheet Editor = fxscover "New"
File Signature Verification Tool = sigverif
Folders Properties = control folders
Fonts = control fonts
Free Cell Card Game = freecell
Game Controllers | joy.cpl
Group Policy Editor = gpedit.msc
Internet Explorer = iexplore
Iexpress Wizard = iexpress
Internet Properties = inetcpl.cpl
IP Configuration = ipconfig.exe
iSCSI Initiator = iscsicpl "New"
Keyboard Properties = control keyboard
Libraries = explorer or Windows key + E
Local Security Settings = secpol.msc
Local Users and Groups = lusrmgr.msc
Logs You Out Of Windows = logoff
Microsoft Support Diagnostic Tool = msdt "New"
Microsoft Paint = mspaint.exe
Mouse Properties = control mouse
Mouse Properties = main.cpl
Mobility Center (only on mobile) = mblctr or Windows key + X
Network Connections = control netconnections
Network Connections = ncpa.cpl
Notepad = notepad
ODBC Data Source Administrator = odbcad32 "New"
Optional Features Manager = optionalfeatures "New"
On Screen Keyboard = osk or Windows key +U
Package Installer = dpinst
Pen & Touch Options = tabletpc.cpl
People Near Me Identifier = collab.cpl
Performance Monitor = perfmon.msc
Phone and Modem Options = telephon.cpl
Power Configuration = powercfg.cpl
Printers and Faxes = control printers
Printer Migration = PrintBrmUi "New"
Private Character Editor = eudcedit
Problem Steps Recorder = psr.exe
Programs and Features = appwiz.cpl
Regional Settings = intl.cpl
Registry Editor = regedit.exe
Remote Assistance = msra "New"
Remote Desktop = mstsc
Resultant Set of Policy = rsop.msc
Scheduled Tasks = control schedtasks
Screen Resolution = desk.cpl
Security Center = wscui.cpl
Services = services.msc
Shared Folders/MMC = fsmgmt.msc
Shuts Down Windows = shutdown
Snipping Tool = snippingtool "New"
Sounds and Audio = mmsys.cpl
Sound Recorder = soundrecorder "New"
Sound Volume = sndvol "New"
Spider Solitare Card Game = spider
SQL Client Configuration = cliconfg
Stored User Names and Passwords = credwiz "New"
Sticky Note = StikyNot "New"
System Configuration Editor = sysedit
System Configuration Utility = msconfig
System File Checker Utility = sfc
System Information = msinfo32
System Properties = sysdm.cpl or Windows key + Pause/Break
System Restore = rstrui.exe
Task Manager = taskmgr
Trusted Platform Module = TpmInit "New"
Utility Manager = utilman
User Accounts = netplwiz or control userpasswords2
Windows Activation = slui "New"
Windows Backup Utility = sdclt "New"
Windows Fax and Scan = wfs "New"
Windows Firewall = firewall.cpl
Windows Firewall with Advanced Security = wf.msc "New
Windows Image Acquisition = wiaacmgr "New"
Windows Media Player = wmplayer
Windows Magnifier = magnify
Windows Management Infrastructure = wmimgmt.msc
Windows Update App Manager = wuapp "New"
Windows Standalong Update Manager = wusa "New'
Windows System Security Tool = syskey
Windows Share Creation Wizard = shrpubw "New"
Wordpad = write
------------------------------------------------------------------------------------------------------------
| Folder Trick |
Hi Students,I would like share s simple and funny trick with my visitors. Some times we
Have requirement for creating multiple folders,generally we create them one by one in
Windows operating system.To day i will share one trick to create multiple folders in one
Click.
Procedure:
Step 1: Open Notepad type following text in notepad
Md user1 user2 user3 user4 user5 user6 user7
Step 2: Save it where ever you want but name it folders.bat
Note: I wrote 7 folder names if write 100 it will create 100 folders and folder names
Are your choice.
Step 3: Thats it cool trick
Hi Students, The main problem with our laptops is Battery Performance issue, with in year
Generally battery life time decreases,we may not solve this problem completely as this is
A electronic device but by following following Tips we can still increase battery life time.
TIP 1:Keep Display At Low State
Similar to phones, laptop screen is also a power guzzler. Keep the brightness as low as possible. Also, If you also have keyboard back lighting, turn it off.
TIP 2:Keep Eject External Devices
Any external device plugged in the USB port constantly draws power from your laptop. Removing them after use conserves battery.
TIP 3:USE HIBERNATE
Instead of putting your computer on standby, choose to hibernate - it saves the state of your computer and shuts down the computer and saves battery.
TIP 4:WINDOWS POWER PLANS
Laptops running windows have built-in power plan settings. You can choose various items such as display brightness, when to turn off the display/hard-drives and USB power. Use these to improve your laptop battery life.
TIP 5:BATTERY CASE
This application records the battery discharge cycle and also shows a detailed battery status including consumption, manufacturer, wear level etc. It also shows CPU and hard drive temperature to indicate any overheating.
TIP 6:OVER HEATING
Overheating leads to the internal fans to run faster - which in turn consume more battery. Use a laptop cooler to keep the temperature at bay.
Credits: www.facebook.com/groups/hackingtrickschandan/
Hi Students In this post I will guide you to use USB device (pen drive) as Main--------- Memory(RAM) To Increase System Performance.We use USB to transfer the data’s.-----
The USB can be used as RAM. Those who use PC’s can use their USB drives to increase
The performances of their computer.This is called Ready Boost, Ready Boost deal with
free spacethat is on your USB drives, such as RAM. When we increase RAM that’s equal
to more speed. Ready Boost comprise on all free versions ofwindows vista and windows 7. It’s easy to setup the positions and in few minutes it can be finished.
Procedure:
Step 1: Insert the USB drive into system USB port
Step 2: Go to "My Computer" then right-click on the USB drive
Step 3: Choose Properties option
Step 4: Next, click on the "Ready Boost" tab.
Step 5: Choose the option that says "Use this device".
Under "Space to reserve for system speed", select the amount of memory that you wish to use for your USB flash drive. The amount of memory that Windows recommends is usually the best setting and should not be exceeded.
Step 6: Click on "OK" to save your settings and exit.
Step 7: Restart your computer for the changes to take affect.
Idea From: www.facebook.com/groups/hackingtrickschandan/









