Posts

Showing posts from August, 2015

How to Confiure YUM server in Linux

Image
What is yum? The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager. Yum allows automatic updates, package and dependency management, on RPM-based distributions. yum works with software repositories (collections of packages), which can be accessed locally or over a network connection. Step1:  Prerequisites: Below are the rpm based packages need to be installed to continue. vsftpd*, deltarpm*, python-deltarpm*, createrepo* Install below packages using rpm command from /misc/cd/Server/Packages Command:  rpm -ivh vsftpd Command:  rpm -ivh deltarpm* Command:  rpm -ivh python-deltarpm* Command:  rpm -ivh createrepo* Step2: Create directory Server under /var/ftp/pub/ Command: mkdir -p /var/ftp/pub/Server Step3: Now move to  /misc/cd/ and copy all the content to /var/ftp/pub/Server/ Command:  cp -avr * /var/ftp/pub/Se...

How to install java and set environment variables in linux

Image
What is JAVA? Java is a programming language designed for use in the distributed environment of the Internet. Java can be used to create complete applications that may run on a single computer or be distributed among servers and clients in a network. It can also be used to build a small application module or applet for use as part of a Web page. Applets make it possible for a Web page user to interact with the page. Both jdk x64 and x86 installation are same Step1: Go to oracle website and download Linux jdk (eg: jdk-7u79-linux-i586.gz) Step2: Extract it to /opt/app/ (or any where you want to be install) Command: tar -xvf jdk-7u79-linux-i586.gz After you extract you will see: " jdk1.7.0_79" /opt/app/ jdk1.7.0_79 Create a softlink: Command:  ln -s jdk1.7.0_79 jdk After you create a softlink you will see: " jdk -> jdk1.7.0_79" /opt/app/jdk -> jdk1.7.0_79 Step3: Setting environment path globally create a file jdk.sh with below comm...

How to install Apache http with Source

What is Apache http server? Apache Web Server is an open source Web server, Apache Web Server have the ability to host one or more HTTP-based websites. Step1: Apache Installation source: The source apache for linux can be downloaded from http://httpd.apache.org/download.cgi Step2:  Prerequisites: apache source (httpd-2.4.12.tar.gz), apr, apr-util, pcre, gcc. Download the apache source /opt/apps/httpd-2.4.12.tar.gz (you can place any where you want to install) Command:  tar xvf httpd-2.4.12.tar.gz /opt/apps/httpd-2.4.12 Step3:  Go to https://apr.apache.org/download.cgi and download: Unix Source: apr-1.5.2.tar.gz [PGP] [MD5] Unix Source: apr-util-1.5.4.tar.gz [PGP] [MD5] Rename apr-1.5.2.tar.gz to apr and Rename apr-util-1.5.4.tar.gz to apr-util Step4:  copy apr and apr-util to /opt/apps/httpd-2.4.12/srclib/ Step5:  Install GCC, gcc can be installed by source or by yum package manager Command: yum install -y gcc Step...

How to mount windows system drive/folder in Linux

Temporary mount and unmout:- Note: create a mount point first: mkdir /ncm mount -t cifs -rw -o username=vfshoadmin,password=pass@123 //10.98.130.164/D$ /ncm umount /ncm Permanent mount: vi /etc/fstab //10.98.130.164/D$ /ncm cifs username=vfshoadmin,password=pass@123,dir_mode=0755,file_mode=0755,uid=500,gid=500 0 0 Verify the same: mount -a df -h