Thursday, June 27, 2013

Access Windows Applications from Ubuntu

If you want to access windows applications from ubuntu here is the way to do that you need to install WINE and PLAYONLINUX applications which can be allow you to execute .exe files . Here I posted clear steps to do it.

Step 1 : Install Wine


You can install Wine from the official Ubuntu repositories however from my experience I can say the Wine version in the Wine PPA, even though is not officially "stable" works very good. So to add the Wine PPA and install Wine, use the following commands in terminal to install

sudo add-apt-repository ppa:ubuntu-wine/ppa

sudo apt-get update

sudo apt-get install wine1.4


Step 2 : Add the PlayOnLinux repository and install the app :


You can add the repository and install using following commands

wget -q "http://deb.playonlinux.com/public.gpg" -O - | sudo apt-key add -

sudo wget http://deb.playonlinux.com/playonlinux_$(lsb_release -cs).list -O /etc/apt/sources.list.d/playonlinux.list 

sudo apt-get update

sudo apt-get install playonlinux

Thats all you installed PlayOnLinux application goto your dashboard and open the application you can see ,


you can get some default applications on PlayOnLinux application itself if you want to install any other applications click install button in that bottom left corner you can see install non-listed program click that and you can install with .exe files .

 Choose your exe files in your system and install , happy using it....


Friday, June 21, 2013

NginX Web Server


Nginx is open source and alternative to Apache httpd web server. Its provide more performance and little memory foot print.

In this post i given clear steps to install NginX web server on ubuntu 12.04 operating system . We can install nginx by 2 ways

First Step : Installation from Ubuntu PPA
 sudo -s
 nginx=stable # use nginx=development for latest development version
 add-apt-repository ppa:nginx/$nginx
 apt-get update 
 apt-get install nginx
 

After that nginx will be installed in default location usr/local/nginx

To start nginx server do the following steps

Open terminal and type  : cd /usr/local/nginx/sbin/
                                          sudo ./nginx

Nginx is started now to check open browser and type localhost


 if u can see this that's all your nginx server is installed.

Second Step :  Installation from Source 

If you want to install from source you need to download nginx latest version from nginx website and do the following steps in terminal . Currently stable version is nginx.1.4.1 check here for versions

wget http://nginx.org/download/nginx-1.4.1.tar.gz

tar xzf nginx-1.4.1.tar.gz

cd nginx-1.4.1

Build nginx by following steps 

sudo ./configure

sudo make 

sudo make install  

Nginx will be installed in default location usr/local/nginx . If you want to install in different location follow below steps 

./configure --prefix=/home/giluxe/nginx

you can give your own path using --prefix option . To start nginx go to nginx installed directory and execute ./nginx in sbin folder.


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 ....


Wednesday, June 5, 2013

BEST WAY TO FIX BROKEN PACKAGES IN UBUNTU

Hello ,
              When we installing some packages in ubuntu we may get some errors in terminal like below , 

trying to overwrite '/usr/bin/opencv_haartraining', which is also in package
libopencv2.3-bin 2.3.1+svn6514+branch23-12~oneiric
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libcv-dev_2.1.0-7build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) 
 
 
 That time we have to fix the broken packages by following commands , after surfing some websites I got good solution and its perfectly working..

sudo apt-get update --fix-missing

sudo dpkg --configure -a

sudo apt-get install -f


the problem of a broken package still exist the solution is to edit the dpkg status file manually .

sudo gedit /var/lib/dpkg/status 

Locate the corrupt package, and remove the whole block of information about it and save the file.




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, May 13, 2013

Working around new Distributed Databases

I am currently working on Distributed Database named COUCHBASE . Its really awesome and good to work with this . Here i given some features in couchbase server.

  • Flexible Data Model
  • Easy Scalability 
  • High performance 
  • Always on 24*365
  • Fully supported SDKs for Java, C#, PHP, C, Python and Ruby.

 Problems with RDBMS :


Distributed Database :

Really lot of things to know about Distributed Databases.....

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