Showing posts with label installations. Show all posts
Showing posts with label installations. Show all posts

Friday, February 21, 2014

Apache Solr 4.6.1 Tomcat7 Setup on Ubuntu 12.04 ( Simple and Clear Steps )

We need a tomcat server to install and run Apache solr search engine .

Setup Java run time environment by following blog post 


Install Tomcat 7 and Solr 4.6

sudo apt-get install tomcat7 tomcat7-admin


tar zxvf solr-4.6.1.tgz

sudo mv solr-4.6.1 /usr/share/solr

Setup Solr on Tomcat


sudo cp /usr/share/solr/example/webapps/solr.war /usr/share/solr/example/multicore/solr.war 

From the Apache Solr lib, copy all the jar files to the tomcat lib

sudo cp -r solr/example/lib/ext/* /usr/share/tomcat7/lib

sudo cp -r solr/example/resources/log4j.properties /usr/share/tomcat7/lib

Edit /usr/share/tomcat7/lib/log4j.properties and set your log path by setting

solr.log=/usr/share/solr

Now add solr to the Catalina config


cd /etc/tomcat7/Catalina/localhost
sudo gedit solr.xml

add the following to solr.xml

<Context docBase="/usr/share/solr/example/multicore/solr.war" debug="0" crossContext="true">
  <Environment name="solr/home" type="java.lang.String" value="/usr/share/solr/example/multicore" override="true" />
</Context>

Setup Tomcat Manager

sudo gedit /etc/tomcat7/tomcat-users.xml

add the tomcat user within the users block:

<tomcat-users>
  <role rolename="manager-gui"/>
  <user username="giluxe" password="giluxe" roles="manager-gui"/>
</tomcat-users>

sudo chown -R tomcat7 /usr/share/solr/example/multicore

Test tomcat

sudo service tomcat7 restart

Test Solr


Note : If you get any problem while restarting tomcat   " no JDK found - please set JAVA_HOME "
follow this step 

sudo gedit /etc/default/tomcat7  

uncomment JAVA_HOME path . 





Monday, June 10, 2013

INSTALLATION OF ORACLE JAVA 7 ON UBUNTU 12.04

This post will be useful to install oracle java 7 on ubuntu .

If you have the OpenJDK/JRE installed on your system, you can remove it by typing the following at the command line:

Type/Copy/Paste: sudo apt-get purge openjdk-\*  

This command will completely remove OpenJDK/JRE from your system .

 Create java folder in usr/lib/jvm , you can create it by following command line :

Type/Copy/Paste: sudo mkdir -p /usr/lib/jvm/java

This command will create a directory to hold your Oracle Java JDK and JRE binaries.

 Download jdk and jre from here

Extract that files and copy and paste it into usr/lib/jvm/java folder 


Edit the system PATH file /etc/profile and add the following system variables to your system path

Type/Copy/Paste: sudo gedit /etc/profile

Scroll down to the end of the file using your arrow keys and add the following lines below to the end of your /etc/profile file:  

Type/Copy/Paste:

JAVA_HOME=/usr/lib/jre/java/jdk1.7.0_21
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
JRE_HOME=/usr/lib/jre/java/jre1.7.0_21
PATH=$PATH:$HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH


Save the /etc/profile file and exit.

Inform your Ubuntu Linux system where your Oracle Java JDK/JRE is located. This will tell the system that the new Oracle Java version is available for use. 

Type/Copy/Paste: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jre/java/jre1.7.0_21/bin/java" 1 

this command notifies the system that Oracle Java JRE is available for use .

Type/Copy/Paste: sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jre/java/jdk1.7.0_21/bin/javac" 1 

this command notifies the system that Oracle Java JDK is available for use

Type/Copy/Paste: sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jre/java/jre1.7.0_21/bin/javaws" 1 

this command notifies the system that Oracle Java Web start is available for use

Inform your Ubuntu Linux system that Oracle Java JDK/JRE must be the default Java.

Type/Copy/Paste: sudo update-alternatives --set java /usr/lib/jre/java/jre1.7.0_21/bin/java  
this command will set the java runtime environment for the system

Type/Copy/Paste: sudo update-alternatives --set javac /usr/lib/jre/java/jdk1.7.0_21/bin/javac

this command will set the javac compiler for the system

Type/Copy/Paste: sudo update-alternatives --set javaws /usr/lib/jre/java/jre1.7.0_21/bin/javaws

this command will set Java Web start for the system

Reload your system wide PATH /etc/profile by typing the following command

Type/Copy/Paste: . /etc/profile

Note your system-wide PATH /etc/profile file will reload after reboot of your Ubuntu Linux system

Test to see if Oracle Java was installed correctly on your system. Run the following commands and note the version of Java:

Type/Copy/Paste: java -version 
 this should display

java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b21)
Java HotSpot(TM) Server VM (build 23.1-b03, mixed mode)

Type/Copy/Paste: javac -version  

javac 1.7.0_21

That's all you just installed Oracle Java on your Linux system .

Note : Check your JAVA_PATH and JRE_PATH in terminal by following commands :

Type/Copy/Paste: echo $JAVA_HOME

it will display   /usr/lib/jvm/java/jdk1.7.0_21


Type/Copy/Paste: echo $JRE_HOME

it will display  /usr/lib/jvm/java/jre1.7.0_21


If terminal show this paths then all is set . Sometimes you may not get this paths correctly that time you should follow this steps

Goto your home folder and press CTRL + F , you can get .bashrc file  in that file you can export your java path add following line at end of the file or modify JAVA_HOME

 export JAVA_HOME=/usr/lib/jvm/java/jdk1.7.0_21


That's all everything done ....


Tuesday, June 4, 2013

FFMPEG FULL INSTALLATION ON UBUNTU

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video . Here you can get clear steps to install FFMPEG in ubuntu 12.04 and ubuntu 11.10 .

STEP 1 : First step is remove all existing packages that are needed for FFMPEG just copy and paste the command in terminal .

sudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev yasm

STEP 2 :  Get the dependencies

sudo apt-get update 

sudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev \ libgpac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \ libsdl1.2-dev libspeex-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libx11-dev \ libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev

STEP 3 : Installation

  • Yasm

    Yasm is an assembler and is recommended for x264 and FFmpeg.

    cd 

    wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz 

    tar xzvf yasm-1.2.0.tar.gz 

    cd yasm-1.2.0 

    ./configure 

    make 

    sudo checkinstall --pkgname=yasm --pkgversion="1.2.0"       --backup=no \ --deldoc=yes --fstrans=no --default

     

    x264

    H.264 video encoder. The following commands will get the current source files, compile, and install x264. See the x264 Encoding Guide for some usage examples.

    cd 

    git clone --depth 1 git://git.videolan.org/x264.git

    cd x264

    ./configure --enable-static 

    make 

    sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \ awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \ --fstrans=no --default

     

    fdk-aac

    AAC audio encoder. 

    cd 

    git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git 

    cd fdk-aac

     autoreconf -fiv 

    ./configure --disable-shared 

    make 

    sudo checkinstall --pkgname=fdk-aac --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \ --deldoc=yes --fstrans=no --default 

     

    libvpx

    VP8 video encoder and decoder.

    cd 

    git clone --depth 1 http://git.chromium.org/webm/libvpx.git 

    cd libvpx 

    ./configure --disable-examples --disable-unit-tests 

    make 

    sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no \ --deldoc=yes --fstrans=no --default 

     

    opus

    Opus audio encoder and decoder.

    cd

     git clone --depth 1 git://git.xiph.org/opus.git 

    cd opus 

    ./autogen.sh 

    ./configure --disable-shared 

    make

    sudo checkinstall --pkgname=libopus --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \ --deldoc=yes --fstrans=no --default 

     

    FFmpeg

    cd 

    git clone --depth 1 git://source.ffmpeg.org/ffmpeg 

    cd ffmpeg

     ./configure --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame \ --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-libtheora --enable-libvorbis \ --enable-libopus --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 

    make 

    sudo checkinstall --pkgname=ffmpeg --pkgversion="7:$(date +%Y%m%d%H%M)-git" --backup=no \ --deldoc=yes --fstrans=no --default 

    hash -r

     

    Installation is now complete and FFmpeg is now ready for use. You can keep the x264, libvpx, and ffmpeg directories in your home directory if you plan on updating later.

     

     


     

     


     

     

     

     

     


     

     

     

     


     

     

Wednesday, May 15, 2013

Easy Steps To Install Couchbase Server2.0 and ElasticSearch

Couchbase server Installation

Couchbase Server 2.0 adds powerful indexing and querying capabilities through its distributed map reduce implementation. But in addition to that many applications, particularly content applications also need full-text search capabilities .

Step 1 :  Download Couchbase server latest version form Here .

Step 2 :  If you are installing in ubuntu just double click the .deb file it will 
               install from software center .

Step 3 :  After installation completed just open http://localhost:8091 you can see
               couchbase web console setup page complete the steps .

Finally it will ask sample buckets just choose beer-sample bucket and click ok .


That's it..


ElasticSearch Installation :

 Here i am installing elasticsearch0.20.2 version its working fine. If you want to install different version download from Here

Step 1  :  Open terminal and type  : curl -sLO \http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.tar.gz      It will download elasticsearch package .

Step 2  :  tar zxf elasticsearch-0.20.2.tar.gz    extract it

Now that we have the ElasticSearch core, let's add some plugins.

 The first is called "head". It provides a basic web UI to ElasticSearch so that we can more easily see what is going on. Installation is as simple as:

$ cd elasticsearch-0.20.2
$ bin/plugin -install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/zipball/master... (assuming site plugin)
Downloading .....................................DONE
Identified as a _site plugin, moving to _site structure ...
Installed head


 Now we are ready to install the Couchbase plug-in

 $ bin/plugin -install transport-couchbase -url http://packages.couchbase.com.s3.amazonaws.com/releases/elastic-search-adapter/1.0.0/elasticsearch-transport-couchbase-1.0.0-beta.zip
-> Installing transport-couchbase...
Trying http://packages.couchbase.com.s3.amazonaws.com/releases/elastic-search-adapter/1.0.0/elasticsearch-transport-couchbase-1.0.0-beta.zip...
Downloading ...........................................................................DONE
Installed transport-couchbase


Now that the plug-in is installed we need to set the password for the Couchbase transport.

 $ echo "couchbase.password: password" >> config/elasticsearch.yml


All the plug-ins we need are installed, let's go ahead and start ElasticSearch.
$ bin/elasticsearch
 This starts ElasticSearch and puts it into the background.







Monday, January 7, 2013

Installation of Joomla on Ubuntu 11.10 / 12.04

1. After installing LAMP, add support and enable Joomla in Apache with the following commands:

cd /etc/apache2/

sudo cp sites-available/default sites-available/joomla

sudo a2ensite joomla

sudo /etc/init.d/apache2 restart


2. Next, we will create a MySQL database and MySQL user to use during the installation of Joomla later on. I will mark them in red, you can rename them to whatever you want.


- Via the terminal sign in to the MySQl server with this command:
mysql -u root -p 
- Create a MySQL database with this command:
create database joomla;
- We need also to create a MySQL user having the same name of the MySQL database with this command (replace "1234" with any password of your choice):
CREATE USER 'joomla'@'localhost' IDENTIFIED BY '1234';
- Grant now this user all access privileges on the already created database:
GRANT ALL PRIVILEGES ON joomla.* TO 'joomla' IDENTIFIED BY '1234';
Exit the MySQL server with this command:
exit

3. IIt's time now to download and install Joomla. The installation folder will be in /var/www/joomla. Via the terminal, run these commands:
cd /tmp && wget -O Joomla_2.5.7-Stable.zip http://goo.gl/41TMS
sudo mkdir /var/www/joomla

sudo unzip Joomla_2.5.7-Stable.zip -d /var/www/joomla

sudo chown -R www-data.www-data /var/www/joomla/
- Start now the installation of Joomla 2.5.1 by opening one of these two links:
http://127.0.0.1/joomla
or 
http://localhost/joomla

Monday, December 10, 2012

Installing Sun JDK, MySql and Apache Tomcat on Ubuntu Linux


Sun Java 6 Installation

To install Sun JDK 6 on ubuntu:

1. Open Terminal
To open Terminal click the Dash home from unity launcher. And type terminal in the search field.And click Terminal.

2. Type the below code in terminal and hit enter.
sudo add-apt-repository ppa:ferramroberto/java
Type your ubuntu password if needed and press enter.

3. Then press enter to continue or ctrl-c to cancel adding the ppa.
  
4. Type below command and hit enter
sudo apt-get update

5. Then type below command and press enter
sudo apt-get install sun-java6-jdk sun-java6-plugin

6. Type y and hit enter to confirm the installation.

7. Select
OK
and press enter enter

8 . To accecpt the DLJ licence select yes and press enter  

9. After the successful installation,to check the installed version type
java -version

MySQL 5.0 Installation 

MySQL is a fast, multi-threaded, multi-user, and robust SQL database server. It is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

Installation 
To install MySQL 5.0, Run the following command from a terminal prompt:
sudo apt-get install mysql-server

During the installation process you will be prompted to enter a password for the MySQL root user.
Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:
sudo netstat -tap | grep mysql

When you run this command, you should see the following line or something similar:

tcp        0      0 localhost.localdomain:mysql           *:* LISTEN -

If the server is not running correctly, you can type the following command to start it:
sudo /etc/init.d/mysql restart

Configuration

You can edit the /etc/mysql/my.cnf file to configure the basic settings -- log file, port number, etc.
For example, to configure MySQL to listen for connections from network hosts, change the bind_address directive to the server's IP address:

bind-address            = 192.168.0.5

[Note]     

Replace 192.168.0.5 with the appropriate address.

After making a change to /etc/mysql/my.cnf the mysql daemon will need to be restarted:

sudo /etc/init.d/mysql restart


Resources

See the MySQL Home Page for more information.

The MySQL Handbook is also available in the mysql-doc-5.0 package. To install the package enter the following in a terminal:

sudo apt-get install mysql-doc-5.0

The documentation is in HTML format, to view them enter
file:///usr/share/doc/mysql-doc-5.0/refman-5.0-en.html-chapter/index.html 
in your browser's address bar.

Run MySql Server:
Launch terminal and execute following command

mysql -h <ipaddress> -u <username> -p

for example

mysql -h localhost -u srinu -p

This will prompt for the password, once successfully entered will show you the following mysql prompt

mysql>   

Install Apache Tomcat 7 on Ubuntu
Apache has officially launched version 7.0 of the servlet container for Java applications, Tomcat. Major changes in this version, you can highlight support for Servlet 3.0 and JavaServer Pages 2.2.

Installation:

1. Install JDK
2. download the package "apache-tomcat-7.0.6.tar.gz" from http://tomcat.apache.org/download-70.cgi [tar.gz]

Now unpack it with the following command:
tar xvzf apache-tomcat-7.0.8.tar.gz

Then we let in a more appropriate directory, in our case in /usr/share/tomcat7, but can be in any directory.

We do this with the command:
sudo mv apache-tomcat-7.0.8/ /usr/share/tomcat7

Now we define the environment variables
JAVA_HOME and JRE_HOME

This file is in the "environment" in /etc. 

Command to edit the file:
sudo gedit /etc/environment

Here we record the routes where we have installed Java in my case this is as follows:

JAVA_HOME="/usr/local/jdk1.6.0_23"
JRE_HOME="/usr/local/jdk1.6.0_23/jre"

PATH="...(other path):$JAVA_HOME:$JRE_HOME"

IMPORTANT: Verify the routes where they have installed Java.

I have had some problems in defining these environment variables,
as sometimes tomcat does not recognize,
but a surefire way of recognizing that tomcat is to define the file paths inside "catalina.sh"located intomcat7/bin.

To modify this file use the command:
sudo gedit /usr/share/tomcat7/bin/catalina.sh

Now just insert the JAVA_HOME and JRE_HOME after the first line,
so the file is as follows:

#!/bin/sh
JAVA_HOME="/usr/local/jdk1.6.0_23"
JRE_HOME="/usr/local/jdk1.6.0_23/jre"
# Licensed to the Apache Software Foundation (ASF)...
#...
#...
....

Now let's configure Tomcat users,
this is done in the file "tomcat-users.xml"directory tomcat7/conf.

Unlike previous versions where the administrator should own role "manager" now it should be "manager-gui"to operate on the web administration tomcat7.

The file would be as follows:


<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="admin"/>

<user username="usuario" password="contrasena" roles="manager-gui,admin-gui,manager,admin,manager-script,admin-script"/>
</tomcat-users>



Now you should be all ready to try tomcat7.

First we must lift the server with the following command:
sudo /usr/share/tomcat7/bin/startup.sh

With this we get the following output on console:

Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using JRE_HOME: /usr/local/jdk1.6.0_20/jre
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar

Verify that the JRE_HOME is where we define.

Now open your web browser and type the following url:

http://127.0.0.1:8080/

If we enter the administration Tomcat Manager we click on the menu or directly at URL:

http://127.0.0.1:8080/manager/html

Here we ask the user data from previous record in mind tomcat-users.xml.

I recommend testing the sample to make sure everything works ok, they are in the section "Miscellaneous" from the side menu or at the URL:
http://127.0.0.1:8080/examples/

Commands

Start server:
sudo /usr/share/tomcat7/bin/startup.sh

Stop server:
sudo /usr/share/tomcat7/bin/shutdown.sh


Tomcat should now be fully installed and operational. Enjoy!

Friday, November 9, 2012

INSTALLATION OF ECLIPSE

Here is how you can install JAVA Eclipse on Windows 7

  • Decide which version you want to use. If you are using 64-bit windows 7, you should install 64-bit JAVA JDK and JAVA Eclipse. If you are using 32-bit windows 7, you should install 32-bit JAVA JDK and 32-bit JAVA Eclipse.


  • Download and install JAVA JDK from here.

  • After JAVA JDK is download, install it as we normally install any software on Windows.

  • Download JAVA Eclipse from here.

  • After you have downloaded JAVA Eclipse, extract it using any zip software like winzip, winRaR. Do not use Windows default explorer to extract files, as it may not extract files properly. It will create a folder “eclipse”, with multiple subdirectories under that.

  • JAVA Eclipse is installed now. Double click eclipse.exe to run JAVA eclipse

Note : If u want to get help for how to install JDK and JRE  click here

Saturday, February 25, 2012

How to install and configure phpmyadmin

PhpMyAdmin is a nice database management and administration tool, it is easy to install it, but some people are having problems making it work under apache, that’s because it needs configuration. I presume you already have LAMP installed and configured on your machine, if not, please read this post – Install and Configure LAMP on Ubuntu first.

ust in case you haven’t installed phpMyAdmin yet, type the following line in the Terminal:

sudo apt-get install phpmyadmin

To set up under Apache all you need to do is include the following line in /etc/apache2/apache2.conf, first type the following command to open up this file:

gksudo gedit /etc/apache2/apache2.conf

Add the following line of code inside apache2.conf:

Include /etc/phpmyadmin/apache.conf

Now restart Apache:

sudo /etc/init.d/apache2 restart