Installing Apache Solr 1.4.1 on ubuntu 10.04

Hi friends,

Let’s see How to install this on ubuntu 10.04

Installing Tomcat 6 in Ubuntu 10.04 and Libmysql-java:

$ sudo apt-get update && apt-get upgrade
$ sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

$ sudo apt-get install libmysql-java

Download apache-solr-1.4.1.tgz from and extract it:
$ cd <to path of extracted solr>
$ sudo cp apache-solr-1.4.1/dist/apache-solr-1.4.1.war /usr/share/tomcat6/webapps/solr.war
$ sudo cp -R apache-solr-1.4.1/example/solr/ /usr/share/tomcat6/solr/

note : we copy solr folder into /usr/share/tomcat6 and it will pointed as solr home in next step.

Create new Solr configuration in Tomcat6:

$ sudo vim /etc/tomcat6/Catalina/localhost/solr.xml

Paste this into file :

<Context docBase="/usr/share/tomcat6/webapps/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/usr/share/tomcat6/solr" override="true" />
Enable MultipleCore in Solr 1.4.1:

$ sudo cp apache-solr-1.4.1/example/multicore/solr.xml /usr/share/tomcat6/solr/solr.xml
$ sudo cp -R apache-solr-1.4.1/example/multicore/core0 /usr/share/tomcat6/solr/
$ sudo cp -R apache-solr-1.4.1/example/multicore/core1 /usr/share/tomcat6/solr/
$ sudo mkdir /usr/share/tomcat6/solr/core0/data
$ sudo mkdir /usr/share/tomcat6/solr/core1/data
$ sudo chown -R tomcat6:tomcat6 /usr/share/tomcat6/solr/core0/data/
$ sudo chown -R tomcat6:tomcat6 /usr/share/tomcat6/solr/core1/data/
Finally, restart your Tomcat and check it out!

$ sudo service tomcat6 restart

Go to http://localhost:8080/solr/


Now, i got the screen like this,

This slideshow requires JavaScript.

I don’t know how to use this and  how to configure.xml file.  B’coz when i search something, i didn’t get anything, i got some errors ly  😦

Apache solr ==> search platform

Hi friends,

Today my room-mate Mr.Thanigai told about “apche solr” and he told try to install “Apache Solr” on his ubuntu 10.04. Then, i searched abt it in google. Finally i got a small idea abt “solr”.

[From solr main page]

Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, and rich document (e.g., Word, PDF) handling. Solr is highly scalable, providing distributed search and index replication, and it powers the search and navigation features of many of the world’s largest internet sites.

Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Tomcat. Solr uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it easy to use from virtually any programming language. Solr’s powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.


  • Uses the Lucene library for full-text search
  • Faceted navigation
  • Hit highlighting
  • Query language supports structured as well as textual search
  • JSON, XML, PHP, Ruby, Python, XSLT, Velocity and custom Java binary output formats over HTTP
  • HTML administration interface
  • Replication to other Solr servers – enables scaling QPS
  • Distributed Search through Sharding – enables scaling content volume
  • Search results clustering based on Carrot2
  • Extensible through plugins
  • Pluggable relevance – boost through formula
  • Caching
  • Embeddable in a Java Application.

Install “Apache slor” on ubuntu 10.04

Adding “Open in Terminal” in Right click menu in Fedora/Ubuntu

Hi friends,

Open in Terminal:

It allows user to open a selected folder in a terminal window by right clicking on the folder.

In fedora:

login as root user

$ yum install nautilus-open-terminal

In Ubuntu:

$ sudo apt-get install nautilus-open-terminal

Now restart Gnome (log out and back in) or we have to find the PID for “nautilus” and have to kill it. To do this, follow the following command,

$ ps aux |grep nautilus # locate the PID for nautilus

$ kill -HUP [pid]

This slideshow requires JavaScript.


Vodaphone k3570Z data-card Problem in Ubuntu Resolved :)

Hi friends,

Yesterday i faced a problem wit vodaphone 3G connection in ubuntu. My friend having a HCl laptop and vodaphone 3G data-card. i installed ubuntu 10.04 on that new lap. When i connected the vodophone dongle into laptop. Its recognized as media folder and it contains some .exe files ly. 😦  First time i’m facing this problem. Then i searched in ubuntu forum, i got the information abt “sakis3G

The model number of the data-care is : k3570z

I spent just 10 mins wit sakis3g site. i got the solution for this problem 😛

See my previous post for the solution

Sakis3G — MAGIC script :)

Hi friends,

(From the sakis3g main site)

What Sakis3G is?

Sakis3G is a tweaked shell script which is supposed to work out-of-the-box for establishing a 3G connection with any combination of modem or operator. It automagically setups your USB or Bluetooth™ modem, and may even detect operator settings. You should try it when anything else fails!

If you are lucky enough, you may be connected 30 seconds after downloading script.

Procedure to install sakis3G:

Open your terminal and login as a root user,
$ apt-get install ppp
$ cd /usr/bin
$ wget ‘’
$ echo “dda70fd95fb952dbb979af88790d3f6e sakis3g.gz” | md5sum -c
$ gunzip sakis3g.gz
$ chmod a+x sakis3g

That’s all. 🙂 🙂 🙂 Now just run that “sakis3g” script using


Now you can see a graphical window. 🙂 follow that instruction/options. Now you can use your data-card 😉

About Sakis3g : wiki page

Sakis3g main site :

Sakis3g installation:  wiki page

Procedure for installing a OS inside Virtual Box

Hi friends,

In my Fedora machine i have Vm Virtual Box. me already installed ubuntu 10.10 inside of V Box. in our Office very weekend we have spl Admin class for us.

So, i installed a REDHAT 5. In side of VBox i separately installed REDHAT 3 times. Among the 3, one was server and other 2 were client.

The simple procedure for installing OS inside Virtual Box:

This slideshow requires JavaScript.


That’s All !!! 🙂