Monday, 30 November 2015

How to create nic channel bonding in redhat/centos/fedora linux.

Step 1: Creating Bonding Channel


As a root, create a new file name bonding.conf in the /etc/modprobe.d/ directory.
#cd  /etc/modprobe.d/
#vim bonding.conf

alias bond0 bonding
options bond0 mode=1 miimon=100

Save & exit

For each configured channel bonding interface, there must be a corresponding entry in your new /etc/modprobe.d/bonding.conf file.

Step 2: Creating Channle Bonding Interface
# vim /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.1.8
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

Step 3: Configuring Channel Bonding Interface
For eth0

# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

For eth1

# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none


Step 4: Restarting Network Service

Restart the network service and see the output of ifconfig.

# service network restart
[root@amir network-scripts]# ifconfig

bond0     Link encap:Ethernet  HWaddr 00:0C:21:60:30:C4
          inet addr:192.168.1.8  Bcast:172.16.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe69:31c4/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1                                RX packets:19676 errors:0 dropped:0 overruns:0 frame:0
          TX packets:342 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1623240 (1.5 MiB)  TX bytes:42250 (41.2 KiB)

eth0      Link encap:Ethernet  HWaddr 00:0C:21:60:30:C4
          UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
          RX packets:10057 errors:0 dropped:0 overruns:0 frame:0
          TX packets:171 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:832257 (812.7 KiB)  TX bytes:22751 (22.2 KiB)
          Interrupt:19 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:0C:21:60:30:C4
          UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
          RX packets:9620 errors:0 dropped:0 overruns:0 frame:0
          TX packets:173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:791043 (772.5 KiB)  TX bytes:20207 (19.7 KiB)
          Interrupt:19 Base address:0x2080

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

          RX bytes:104 (104.0 b)  TX bytes:104 (104.0 b)

Saturday, 7 November 2015

How to install orangehrm on centos 6 an open human resource management solution

Orangehrm is an awesome Open Source HR Management System that is freely available at http://sourceforge.net/projects/orangehrm/.  or you can download from from Orangehrm official website You can follow the step by step installation and deployment for your companies used. I will show you how to install Orangehrm  CentOS.

At first we have to configure  apache, php, mysql support web server, we can follow this link

Web Server configuration on Centos 6.5
Copy the BEST Traders and Make Money : http://bit.ly/fxzulu
install Apache2, PHP5 And MySQL Suppo

Copy the BEST Traders and Make Money : http://bit.ly/fxzulu
install Apache2, PHP5 And MySQL Suppor

Copy the BEST Traders and Make Money : http://bit.ly/fxzulu

Make sure your webserver, mysql are working properly.
Now go to orangehrm download directory

#cp /root/Download/orangehrm-3.3.2.zip /var/www/html
#mkdir orangehrm
#unzip orangehrm-3.3.2.zip -d orangehrm
#chown -R apache:apache orangehrm 
#chmod -R 755 /var/www/html/orangehrm/lib/confs/

open your web brower type on your address bar http://your_ip/orangehrm






Click on Next
 
Click on I accept
Configure your database
In step 3 you will face two problem, those one is .htaccess allow another is mysql event scheduler
let's solve this problem

Click on this url ,htaccess allow access

Another is Mysql Event scheduler enable

In the [mysqld] section of the my.cnf, add this:

#vim /etc/my.cnf
event_scheduler=ON

and now click on recheck, now you can see all component status are ok, then click on next

 

Set your admin password and click next
Check details and click install, wait for a moment than....


Installation finish... Enjoy....


Sunday, 1 November 2015

How to configure osTicket, An Open Source Support Ticket System


Configuring MySQL for osTicket
At first we have to configure  apache, php, mysql support web server, we can follow this link
 Web Server configuration on Centos 6.5

Now, log in to the MySQL console and create a database for the osTicket.
#mysql -u root -p
This will prompt you for a password, so enter your MySQL root password and hit Enter. Then, Create the database for osTicket and assign proper permission.
mysql> create database osticketdb;
Query OK, 1 row affected (0.01 sec)
mysql> CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec);
mysql> grant all on osticketdb.* TO 'osticketuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
Mysql> grant all on osticket.* to username@localhost identified by 'password'    #for existing user
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye

Downloading osTicket installation script
Go to the Apache root directory:
#cd /var/www/html
Download osTicket latest version from the official download page.

#wget http://osticket.com/sites/default/files/download/osTicket-v1.9.8.1.zip
Create a directory called ‘osticket’ and extract the zip in it.
#mkdir osticket
#unzip osTicket-v1.9.8.1.zip -d osticket
Change html/osticket  folder permissions:
Finally, restart the Apache service.
#service httpd restart
#chkconfig httpd restart
Step 6. Accessing osTicket.. And See the Installation wizard has been started.. Open your favorite browser and navigate to
http://yourdomain.com/osticket/upload or http://server-ip/osticket/upload.

On this page click on continue
#cd /var/www/html/osticket
#cd upload/include
#cp ost-sampleconfig.php ost-config.php

Now change permission:
As I mentioned above, configuration file is not writable. So change the file permission from 0644 to 0666 then hit Done, Continue button.

#chmod 0664 include/ost-config.php


How to configure osTicket mail setting.

 In this case we have osTicket installed, and we would like to configure the software to automatically send/recieve email using a designated mailbox, in this case

 First things first, enable the email configuration, go to Admin Panel > Settings > Emails 


set the email configuration to be enabled for osTicket

Save setting, 

Now configure email id, password and other setting. 
from here browse to  Admin Panel > emails

select/add the email address you would like to associate with osTicket.


Done...! Enjoy open source...