ldap

LDAP stands for Lightweight Directory Access Protocol. LDAP is a solution to access centrally stored information over network. This centrally stored information is organized in a directory that follows X.500 standard. The information is stored and organized in a hierarchical manner and the advantage of this approach is that the information can be grouped into … Continue reading ldap

nagios

 Nagios-Server-Side [root@nagios ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm warning: /var/tmp/rpm-tmp.mL7UUO: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing...                ########################################### [100%] 1:epel-release           ########################################### [100%] [root@nagios ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm warning: /var/tmp/rpm-tmp.MpyvoN: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY Preparing...   … Continue reading nagios

omd

-----------------------------------SERVER-SIDE--------------------------------------- wget https://labs.consol.de/repo/stable/rhel6/x86_64/omd-1.30.rhel6.x86_64.rpm rpm -ivh omd-1.30.rhel6.x86_64.rpm or rpm -Uvh "https://labs.consol.de/repo/stable/rhel6/i386/labs-consol-stable.rhel6.noarch.rpm"  yum install omd* or(If rhel-7) rpm -Uvh "https://labs.consol.de/repo/stable/rhel7/i386/labs-consol-stable.rhel7.noarch.rpm"  yum install omd* [root@li911-180 ~]# omd create prod Adding /omd/sites/prod/tmp to /etc/fstab. Creating temporary filesystem /omd/sites/prod/tmp...OK Restarting Apache...OK Created new site prod with version 1.30. The site can be started with omd start prod. The default web … Continue reading omd

self signed certs

steps to generate csr 1 Prerequisites 2 Generate the RSA key 3 Create a CSR 4 Verify your CSR 5 Submit your CSR [root@machine1 ~]#yum install openssl openssl-devel -y [root@machine1 ~]# mkdir example.com.ssl [root@machine1 ~]# cd example.com.ssl/ [root@machine1 example.com.ssl]# openssl genrsa -out ./example.com.key 2048 Generating RSA private key, 2048 bit long modulus .....+++ .....................+++ e … Continue reading self signed certs

https

Apache generates its private key and converts that private key to .CSR file (Certificate signing request). Then Apache sends the .csr file to the CA (Certificate Authority). CA will take the .csr file and convert it to .crt (certificate) and will send that .crt file back to Apache to secure and complete the https connection … Continue reading https

apache

yum install httpd ------------------------------------------------------------------------------------------------- service httpd start ------------------------------------------------------------------------------------------------- vim /var/www/html/sample.html <head> <body> hello guies how are u </body> </head> ------------------------------------------------------------------------------------------------- <virtualhost *:80> documentroot /var/www/html/ directoryindex sample.html servername mywebserver.com </virtualhost> -------------------------------------------------------------------------------------------------- httpd -t -------------------------------------------------------------------------------------------------- service httpd restart ------------------------------------------------------------------------------------------------- In browser just type server-name or ipaddress 1. What is Apache web server? Answer : Apache web server … Continue reading apache

dns

Domain Name Servers (DNS) are the Internet's equivalent of a phone book. They maintain a directory of domain names and translate them to Internet Protocol (IP) addresses. This is necessary because, although domain names are easy for people to remember, computers or machines, access websites based on IP addresses. ---------------------------------------------------------------------------------------------- [root@server-rhel6 ~]# ip a | … Continue reading dns

yum

 copy the iso image to the server by scp or ftp or samba mkdir /mnt/iso vim /etc/yum.repos.d/my.repo [1] name=rhel6 baseurl=file:///mnt/iso enabled=1 gpgcheck=0 vim /etc/fstab /root/rhel-server-6.7-x86_64-dvd.iso  /mnt/iso iso9660  loop,ro  0  0 mount -a df -hT yum repolist ------------------------------------------------------------------------------------------------------------------ How to make online repository 1. Adding RPMForge Repository Use following commands to install rpmforce repository on your … Continue reading yum

mysql

[root@MYSQL ~]# rpm -qa  mysql mysql-server [root@MYSQL ~]# yum list all |grep   mysql* [root@MYSQL ~]# yum install mysql mysql-server [root@MYSQL ~]# netstat -tlpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name … Continue reading mysql

telnet

[root@server-rhel6 ~]# rpm -q telnet-server [root@server-rhel6 ~]# yum install telnet-server [root@server-rhel6 ~]# vim /etc/xinetd.d/telnet          disable         = no [root@server-rhel6 ~]# /etc/init.d/xinetd status xinetd is stopped [root@server-rhel6 ~]# /etc/init.d/xinetd start Starting xinetd:                                   … Continue reading telnet