Friday, May 24, 2013

GitLab installation on linux

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Initially designed and developed by Linus Torvalds for Linux kernel development.

Here I will explain how to install,
       
Git - version control system
GitLab - Self hosted Git management software
Gitclient - TortoiseGit

For this I am using a fresh Ubuntu based system and the steps are explained below ..

Install Redis-server

Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

Download the latest package from the link below,

wget http://redis.googlecode.com/files/redis-2.6.13.tar.gz

Thursday, May 16, 2013

svn installation on linux


Subversion is an universally recognized and adopted open-source centralized version control system and is used in the development of many software projects.

Here I will explain the installation procedures for the latest subversion software and some configuration related to it along with the installation of web based subversion administration interface.
                                                                                                   
I am going to explain the two methods of subversion installation on a fresh ubuntu server.

First method is the stock installation from ubuntu repository,

Install Subversion, Apache and Subversion server modules for Apache by issuing the below commands,

apt-get install apache2 libapache2-svn subversion

Thats it !!

But I prefer the installing from source, ( Method Two )

Sunday, May 12, 2013

Redmine installation on linux


Redmine is a flexible project management web application written in the Ruby on Rails framework, it is cross-platform and cross-database and is an open source project released under the terms of the GNU General Public License v2 (GPL).

Redmine requires Ruby on Rails support which is an open source web application framework that runs on the Ruby programming language.

Here I am going to explain how to install Redmine 2.3.X with the latest rails (3.2) support in a source compiled method on a fresh ubuntu based linux server.

First we need to install all the dependencies for building ruby on rails, For that issue the following commands,

apt-get update
apt-get install gcc g++ mysql-server libmysqlclient-dev libssl-dev zlibc

Now we can start installing Ruby,
Download the latest package from the link below

ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz

Thursday, May 9, 2013

Openvas installation on linux

OpenVAS is a framework of several services and tools offering a comprehensive and powerful vulnerability scanning and vulnerability management solution.

Here I am going to explain how to install openvas using source complied method on debian lenny flavour,
For that edit the source.list file the /etc/apt folder and add the following line.

deb http://archive.debian.org/debian/ lenny contrib main non-free 

apt-get update
Install the dependencies ..
apt-get install bison flex
tar -zxvf cmake.tar.gz
./configure
make && make install
apt-get install libglib2.0-0  libglib2.0-dev

Wednesday, May 8, 2013

Speed up your webservers


Here I will explain how to optimize a webserver for faster communication between the server and browser clients using compression and caching methods.

APACHE
Apache achives this by gziping the webcontents before transfer using deflate module and by enabling caching of static files at client browsers for a particular period.

For compressing ..

Load deflate module to apache using apxs utility by issuing the following command,

apxs -c -i -a mod_deflate.c

Load header module by issuing the following command,

apxs -c -i -a mod_headers.c

restart apache, and list out the loaded modules

Monday, May 6, 2013

Nagios Installation on Linux


Nagios is an Open Source monitoring solution that started a phenomenon and continues to provide dependable monitoring to hundreds of thousands of organizations worldwide.

Here I will explain how to install nagios server and clients and its various plugins.

Nagios Server Installation

Install the following dependencies ..

apt-get update
apt-get install gcc make apache2 php5

Now download the latest nagios core and plugin from the link below ..
nagios-3.5.0.tar.gz
nagios-plugins-1.4.16.tar.gz

start installation,

Saturday, May 4, 2013

Load balanced mysql cluster installation


MySQL Cluster is a real-time open source transactional database designed for fast, always-on access to data under high throughput conditions.

Here I will explain how to setup a mysql cluster environment in load balanced scenario. For that I am using 3 nodes.
One Management node and Two Data/SQL nodes. I am also using this management node for load balancing.

Management node - 192.168.26.1
SQL nodes - 192.168.26.2/192.168.26.3

Download latest stable linux Generic MySQL Cluster 7.2.12 from the link below.
mysql-cluster-gpl-7.2.12-linux2.6-i686.tar.gz

First we can setup cluster Management node [ server(ndb_mgmd) / client (ndb_mgm) ]

mkdir /usr/src/
cd /usr/src
tar -zxvf mysql-cluster-gpl-7.2.12-linux2.6-i686.tar.gz
cd mysql-cluster-gpl-7.2.12-linux2.6-i686
mv bin/ndb_mgm /usr/bin
mv bin/ndb_mgmd /usr/bin
chmod 755 /usr/bin/ndb_mg*

Thursday, May 2, 2013

openvpn installation on ubuntu

OpenVPN is a Virtual Private Networking (VPN) solution.  It is flexible, reliable and secure. It belongs to the family of SSL/TLSand not IPSec. It uses Public Key Infrastructure (PKI) to encrypt VPN traffic between nodes.

Here I am going to explain how we can install bridged and tunneled openvpn under ubuntu.

Open vpn server installation.
apt-get update

apt-get install openvpn

Now copy the easy-rsa directory to /etc/openvpn folder

mkdir /etc/openvpn/easy-rsa/
cd /usr/share/doc/openvpn/examples/easy-rsa/2.0/
cp -r * /etc/openvpn/easy-rsa/
chown -R root /etc/openvpn/easy-rsa/

Install tomcat native for faster processing

Here we will discuss about giving Tomcat Native support,

Apache 2.4 intallation can be followed from this link
apache 2.4 installation

Tomcat native is a package for using the apache apr libraries for faster processing.

Download the package from this url  tomcat-native-1.1.27-src.tar.gz

tar -zxvf tomcat-native-1.1.27-src.tar.gz

cd tomcat-native-1.1.27-src/jni/native

./configure --with-apr=/usr/local/bin/apr-1-config --with-java-home=/usr/lib/java/ --with-ssl=/usr/local/ssl/ --prefix=/usr/share/tomcat6/


jk_module for source compiled apache 2.4


Apache 2.4 intallation can be followed from this link
apache 2.4 installation

After the successful installation of apache 2.4, we can give jk mount support by following the below steps

Download the tomcat-connector source from the below link

tomcat-connectors-1.2.37-src.tar.gz
then,

tar -zxvf  tomcat-connectors-1.2.37-src.tar.gz
cd  tomcat-connectors-1.2.37-src/native
LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --with-apxs=/usr/local/bin/apxs
make
make install