Tag: centos

  • Identity Management with IPA

    Introduction: FreeIPA is a Red Hat sponsored open source project which aims to provide an easily managed Identity, Policy and Audit (IPA) suite primarily targeted towards networks of Linux and Unix computers. Assumption: 1. Domain: example.com 2. Netbios name: EXAMPLE 3. Hostname: ipa-srv1.example.com Note: Before start the installation make sure system has static IP configured,…

  • Setting up FTP Server for WordPress in Centos

    Setting up FTP Server for WordPress in Centos. STEP-1 Install Software Dependencies: [mp@web-srv1 ~]$sudo yum install vsftpd ftp -y [mp@web-srv1 ~]$yum install gcc php-devel php-pear libssh2 libssh2-devel make –y STEP-2  FTP Server Setup: #Make changes in /etc/vsftpd/vsftpd.conf and Uncomment following Lines anonymous_enable=NO ascii_upload_enable=YES ascii_download_enable=YES chroot_local_user=YES [mp@web-srv1 ~]$sudo /etc/init.d/vsftpd start [mp@web-srv1 ~]$chkconfig vsftpd on STEP-3 User…

  • How to clean inactive memory or caches in Linux

    First check the memory Utilization [root@ localhost ~]# vmstat -s -S m 8066 m total memory 7932 m used memory <pre> 2051 m active memory 5508 m inactive memory 134 m free memory 3197 m buffer memory 3897 m swap cache . . output omitted… Now run following commands as required to clean inactive memory/caches…

  • How to automate ssh

    Please find below the script and run form client machine from where you want to set login without password. #!/bin/bash #withoutPasswordLogin.sh #Author : Mahendra Pratap Singh #Created on : Dec 18, 2013 #Modified on : Dec 18, 2013 #Version : 1.1 #Description : This script is to automate login on linux machine without password, Script…

  • How to get IP address in shell script

    There is many ways to get IP address some popular and easier are mentioned below- In Example 2 we may get IP from particular interface. Example 1: !/bin/bash IPADDRESS=`ifconfig | awk -F’:’ ‘/inet addr/&&!/127.0.0.1/{split($2,_,” “);print _[1]}’` echo “Machine IP address is: $IPADDRESS” Example 2: !/bin/bash IPADDRESS=`ifconfig eth0 | grep ‘inet addr:’ | cut -d: -f2…

  • Samba Server version 4 as Domain Controller on Linux (Centos 6.4)

    Introduction: Installation and configuration of Samba Server version 4 as a Domain Controller which is compatible with Microsoft’s Active Directory, to use of Microsoft Windows clients for domain services such as Domain Logon, share folder etc. Assumption: 1. Domain: testdomain.com 2. Netbios name: TESTDOMAIN 3. SELINUX is disabled Note: Before start the installation make sure…

  • Installation of Skype on Fedora 17 64bit

    Step-1: Download Skype from Link – http://download.skype.com/linux/skype-4.0.0.8-fedora.i586.rpm Step-2: install following Dependencies – t# yum -y install qt-x11.i686 libXScrnSaver.i686 alsa-plugins-pulseaudio.i686 libXv.i686 Step3-Install skype – # rpm -ivh skype-4.0.0.8-fedora.i586.rpm –nodeps Enjoy! with it. Different remedies existing from the Web to why to waste when and visit dispensary if you can easily purchase medications sit at home. There…