Tag: linux

  • Linux Boot Process

      Linux Boot Process SN# Process Description 1 BIOS First thing which loads once you power on the system, generally its fix on motherboard 2 MBR(boot Loader) Its is refer as first sector of your hard-disk, called master boot record 3 GRUB It is boot loader having set of instruction for kernel, installed at next…

  • 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…

  • Subversion SVN Server on Linux Part-1

    Introduction: Subversion SVN Server most widely used software version and revision control open source software, used by developer to maintain historical data as source code and file. Software Dependencies: Apache, Subversion, mod_dav_svn and mod_ssl Installation: [root@localhost ~]# yum install httpd subversion mod_dav_svn mod_ssl -y Prerequisites: Make directory where do you want to put your svn…

  • 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…

  • How to send mail to google apps accounts

        Install ssmtp package: #yum -y install ssmtp* step-2 – Edit configuration file: #mv /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.bak //Create a new file #vi /etc/ssmtp/ssmtp.conf //Write following lines into newly created file root=xyz@domain // your email mailhub=smtp.gmail.com:587 hostname=xyz@domain //your email UseSTARTTLS=YES AuthUser=xyz@domain AuthPass=password // your email password FromLineOverrride=YES //Save file step-3 – Test send mail #echo “google…