Required Repo's for CentOS 6.X

EPEL :

wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -Uvh epel-release-6-8.noarch.rpm

RPMForge:

## RHEL/CentOS 6 32 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.i686.rpm

## RHEL/CentOS 6 64 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

RPM Fusion:

# rpm -Uvh http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
# rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm

REMI:

# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# rpm -Uvh remi-release-6.rpm

Running Multiple Instances of MySQL in CentOS/Fedora/RedHat Linux



              Running Multiple Instances of MySQL in CentOS/Fedora/RedHat Linux


                       1. Make sure that you have installed mysql-server in your Linux , If not install it with

yum install –y mysql-server

              2.  After installing MySQL-Server , Open your terminal and paste as 
  
                        mkdir /var/lib/mysql2
chown -R mysql.mysql /var/lib/mysql2
mkdir /var/log/mysql2         
chown -R mysql.mysql /var/log/mysql2

Above code stands for creating two directories for MySQL 2nd instance , There /var/lib/mysql2  for data directory and /var/log/mysql2 is for log directory. After that changing the owner as mysql for both.

              3. Make a dump of mycnf configuration file with 
 
 cp -R /etc/my.cnf /etc/my2.cnf

                    Then Open it with
nano /etc/my2.cnf  (or ) vim /etc/my2.cnf

                     Make the changes as mentioned in the below file.

                                     # change/add the following options
                                    port = 3307     #different port
                                    datadir = /var/lib/mysql2       #diff data dir
                                    socket =  /var/lib/mysql2/mysql2.sock           # diff socket path
                                    # add [mysql_safe]
                                    log-error = /var/log/mysql2/mysql.log # diff log
                                    pid-file = /var/lib/mysql2/mysql2.pid            #diff PI


 Then save & close it.

                            4.  Now in the terminal paste these lines after one , with success of each command

mysql_install_db --user=mysql --datadir=/var/lib/mysql2/
mysqld_safe --defaults-file=/etc/my2.cnf &
mysqladmin -S  /var/lib/mysql2/mysql2.sock -u root password 'newpass'
mysql -S  /var/lib/mysql2/mysql2.sock -u root -p

5                 5. That will start your MySQL 2ndinstance and you can check it with 

netstat -nptelu | grep my
netstat -l | grep my

6                6. If you want to shutdown that instance then you can do it with

mysqladmin -S  /var/lib/mysql2/mysql2.sock -u root -p shutdown

               


               

CentOS - IP Setting - Static IP- Command Line

Commands required to set a static IP in CentOS  are

. In Terminal , turn into root user and type as

vi /etc/sysconfig/network-scripts/ifcfg-eth0
There Place the content as





There as you can see the parameter. Set similar in your PC.Then save & close it with <Shift> + <:> +<w> + <q> .

Then In terminal type as

vi /etc/sysconfig/network

There give your Gateway as shown






You can disable/Enable network from there.

Then check your Gateway updated or not with

route -n

Then after that restart your network with

service network restart


Thats it. Now you can connect to your CentOS to Internet.
Points to remember : Nothing much !! all you have to execute the commands as root user.



Lets Play with Netstat

Hello Readers !!

Today I am here with few commands that you can use in your Ubuntu System to know about Network Related information.

The command I can simply say netstat: http://linux.die.net/man/8/netstat

Man - page you surely going to need for reference. Just open a terminal with CTRL+ALT+T (If Ubuntu) and then changed to root user with

either
sudo -i
or su  -root

Then start now!!

  1. How many ports you have in your System ? 
                            # netstat -a 
     2.  How may ports are listening now ?

                             # netstat -l
     3. What is the routing of your network ?

                            # netstat -r
      4. If a program/service access some port number , what is it ?

                         # netstat -ap | grep ftp
       Hope that helps. For more information use that man-page.

What is the Best Open Source OS ?

Hello Readers!!

I am back after a long time, again I am here.

So today I would like to give you some statistical analysis of which Open Source OS is using by maximum number of users in the world.

I will just give you top 5.

  1. Ubuntu
  2. OpenSUSE
  3. Mint Linux
  4. Fedora
  5. Bodhi
  6. CentOS

1. Ubuntu

If you are new user to Linux and want to learn something about Linux , I will point you too Ubuntu only. Infact my Linux journey has started with Ubuntu only.

Rating :9/10

2. OpenSUSE

Something never change and will upgrade themselves to keep on counting their users, OpenSUSE its still rocking with new features.

Rating : 9/10

3. Mint Linux

Its actually derivative of Ubuntu.But still attracting new users and somehow its attracting current Ubuntu users too. But AFAIK its better to stay with Ubuntu.

Rating : 8/10

4. Fedora

I felt some what complicated while started this but still a most secure linux. Its advantage is its support from RedHat. Good for System Administrators.

Rating : 7/10

5. Bodhi Linux :

How you want your Linux ? As like that you can bend your linux with Bodhi Linux. A wonderful linux.

Rating : 8/10

6. CentOS

A standard Linux. What ever you learn here is definitely going to help you If you set your life a System Administrator. 
I recommend this to all Novice Sys Admins.

Rating : 8/10



Ratings has given by depending upon the experience I had. Suggestions are welcome .


Install osTicket in your Ubuntu

Hello Readers!!

Today we are going to know how to install & run osTicket , a open source(commercial too) Ticket management tool in your Ubuntu(Linux too).

Step 1: Open your terminal and run these below commands one after one.

sudo -i
aptitude install apache2 php5 libapache2-mod-php5 php5-imap
aptitude install mysql-server mysql-client php5-mysql
aptitude install phpmyadmin
aptitude install unzip
 php5enmod imap && sudo service apache2 restart

Those above commands will install Apache2,MySQL server,PHP, unzip software. If you dont aptitude installed you can install or instead you may use apt-get,yum similar tools.

Step 2: After installing , download osTicket from OS_Ticket_Download  and save it.

Step 3: Then Open your terminal and paste these commands one after one in your terminal

 mkdir /var/www/osticket
 mv  <here_path_to_OS_ticket> /var/www/osticket/
 unzip <here_path_to_OS_ticket>

Step 4: Next change your directory to extracted osticket and then do following steps.

 mv /uploads/* /var/www/osticket/

Step 5: Now rename ost-config.sample.php to ost-config.php with

 /var/www/osticket/include/ost-config.sample.php /var/www/osticket/include/ost-config.php

Then

Step 6: Now change permissions to global equal mode to ost-config.php with

chmod 777 /var/www/osticket/include/ost-config.php

Step 7: Then type as ifconfig to find your IP and then open your browser

http://<IP_here>/osticket/setup

From there you can follow remaining instructions with clicking at continue button.



Objective C Programming

Hello Readers!!

This week I am giving a start to Objective C Programming language. This a very famous and easy language to learn and the people who have learned this can lead to iPhone application Development and System  Application development too.

Actually this project has undertaken by http://www.gnustep.org/ and there we are grabbing the software we need to install from there only .

To move to download page you can click here.


There download GNUstep Startup , GNUstep Make ,GNUstep Base , GNUstep GUI , GNUstep Backend

There download the above mentioned software and install them with default order.








as I have seen you may need 500MB - 600 MB freespace in your system. In the next step , I will start you with how to write a program and compilation,run of it.


Hope that helps on installing Objective C in your windows.