Install Apache Solr on Ubuntu

Installing Solr using apt-get (easy way)

Solr doesn't work alone; it needs a Java servlet container such as Tomcat or Jetty. In this article, we'll use Jetty, although Tomcat is just as easy. First, we should install the Java JDK.

To install Open JDK 7

sudo apt-get -y install openjdk-7-jdk

Create a directory named 'java' into directory 'usr'

sudo mkdir /usr/java

Create a simple soft link for folder /usr/lib/jvm/java-7-openjdk-amd64 as /usr/java/default

Copy File From Remote To Local

Below are the list of commands that you can effectively use for copying file from Remote to your Local machine.

Copy the file "foobar.txt" from a remote host to the local host

$ scp your_username@example.com:foobar.txt /some/local/directory

Copy the file "foobar.txt" from the local host to a remote host

$ scp foobar.txt your_username@example.com:/some/remote/directory

Copy the directory "foo" from the local host to a remote host's directory "bar"

Create Individual Virtual Hosts Entry

For this, We have assumed that you have  your local site setup completed where “/var/www/example.com/public_html” is the folder of site and
“/var/www/example.com/public_html/index.html”  is the index page for that site.

Step 1 : Create New Virtual Host Files

           First Start by copying the file for the domain:

sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf

           Open the new file in your editor with root privileges:

Setup Local Server To Serve multiple sites

To make your local machine in LAN serve as a server for other team members.

  1. $ sudo apt-get update
     
  2. $ sudo apt-get install php5-memcached memcached
     
  3. Edit the file : /etc/apache2/sites-enabled/000-default.conf            
    {Common File to update the Virtual Host Entries per user per port}
     
  4. Make an entry for virtual host :

    <VirtualHost *:9090>
            ServerAdmin webmaster@localhost
            DocumentRoot /home/username/site_folder_name

Install Ruby & SASS

Steps(commands) to Install Ruby and SASS on Ubuntu 14.04 LTS:

01.   $ sudo apt-get update

02.   $ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev

03.   $ sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev

04.   $ sudo wget http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz

05.   $ sudo tar -xzvf ruby-2.2.3.tar.gz

06.   $ cd ruby-2.2.3/

Some GIT Commands

Below are list of commands you might find useful and handy for day-to-day work. 

Install LAMP on Ubuntu

A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and 
web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a 
MySQL database, and dynamic content is processed by PHP.

Add SSH Key to GIT

Well, friends we have seen how to generate SSH Public key's in two of my previous post.  But what's use of that Public Key if you don't know how to add it to GIT.

Add your key to the ssh-agent

Step 1 :     Ensure ssh-agent is enabled:
                 eval "$(ssh-agent -s)"   (# start the ssh-agent in the background)

Step 2 :     Add your SSH key to the ssh-agent:
                 ssh-add ~/.ssh/id_rsa

Generating SSH public/private key pair (Linux / Ubuntu)

Now that in previous post, we have seen how to generate SSH Public / Private keypair in Windows system, how about generating it in Linux or Ubuntu ?   Well, here it is.

To generate SSH public/private key pair :

Step 1 : Open a shell or command-line instance on your computer.

Step 2 : Ensure that you don't already have a public key saved to your computer. To do this, run the following command:

Generating SSH public/private key pair (OSx)

Generating a SSH public / private key pair for Mac OS X is as simple as that.

Before moving further ahead, lets first decide a passphrase.  passphrase is your special password for these files, even though its not mandatory to have one, but its strongly recommended to set for better security.
Good mix of upper lower characters, numbers, punctuations and spaces, all below 31 characters is the ideal one to go for it.

Pages

Subscribe to RSS - blogs