Monday, July 22, 2013

Installing Bugzilla-4.4 on CENTOS Fedora Redhat

::Installing Bugzilla-4.4 on CENTOS Fedora Redhat::

Update all the Repository
#Server@server~]$ su

Enter ROOT Password

#Server@server]# rpm –Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

#Server@server]# rpm –Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

#Server@server]# yum update

#Server@server]# yum install perl-CPAN

 Also run this command for all neede install

#Server@server]# perl-GD perl-Chart perl-Template-GD perl-GDGraph perl-GDTextUtil perl-PatchReader perl-MIME-tools perl-LDAP perl-Authen-SASL perl-RadiusPerl perl-SOAP-Lite perl-JSON-RPC perl-JSON-XS perl-Test-Taint perl-HTML-Scrubber perl-Email-MIME-Attachment-Stripper perl-Email-Reply perl-TheSchwartz perl-Daemon-Generic perl-Math-Random-Secure perl-YAML perl-Class-Inspector httpd mysql-server mod_perl mod_perl-devel httpd-devel graphviz patchutils gcc perl-DateTime perl-Template-Toolkit perl-Email-Send perl-Email-MIME

#Server@server]# restorecon –Rv /var/www/html/

#Server@server]# cd /var/www/html



Now download latest bugzilla-4.4 tar.gz file from the below URL.


#Server@server]# wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.tar.gz

And untar the downloaded bugzilla tar ball

#Server@server]# tar zxf bugzilla-4.4.tar.gz
Move bugzilla
#Server@server]# mv bugzilla-4.4 bugzilla
Take ownetship
#Server@server]# chown –R 751 bugzilla
#Server@server]# chown root:apache –R bugzilla

#Server@server]# cd bugzilla


Check for missing modules by...
#Server@server]# ./checksetup.pl --check-modules
#Server@server]# ./checksetup.pl

If necessary modules are installed properly, then it will ask to edit ./localconfig file.

#Server@server]# nano ./localconfig
Search for $ db_pass=' ' line in localconfig
Type a new password for mysql
$ db_pass=’your  sql password here’

Edit /etc/my.cnf to increase bugzilla attachment file size
#Server@server]# nano /etc/my.cnf

Add the line in my.cnf file below::
max_allowed_packet=10M

Creating My SQL database bugs for bugzilla server::
start MySql server
#Server@server]# service mysqld start
#Server@server]# mysql
sql> create database bugs;
sql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY ‘your password for  mysql’;
sql> FLUSH PRIVILEGES;
Or Create database from phpmyadmin
sql> FLUSH PRIVILEGES;
sql> quit;

Rerun checksetup.pl
#Server@server]# checksetup.pl
reconfirms that all the modules are present,and notices the altered localconfig file, which it assumes you have edited to your satisfaction. It compiles the UI templates, connects to the database using the ‘bugs’ user you created and the password you defined, and creates the ‘bugs’ database and the tables therein.

It will ask you for an email for the Bugzilla Administrator account and the password for that account.

#Server@server]# nano /etc/httpd/conf/httpd.conf
Type the below two line at the end of httpd.conf file:

PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl


Now restart Apache web server:
#Server@server]# service httpd restart
Open the port 80 in firewall

#Server@server]# iptables –A INPUT –p tcp --dport 80 –j ACCEPT
#Server@server]# service iptables save
Now you can run your bugzilla server on Browsers...
http://localhost/bugzilla

Friday, July 12, 2013

Create your own WiFi Hotspot in Ubuntu


Create your own wifi Hotspot in Ubuntu
 

::find your hardware information by this command
local@local~$ sudo su
local@local~$ sudo lshw -C network
::then go to the connection icon in the upper right of your screen
You will see the following screen in your laptop:-
Go to
>>network setting >>Wireless
>>click on Use as Hotsot
::Setup Wireless

>>Give the Network a name,
>>Select mode : Ad-hoc
>>cloned your MAC address of your device give Mac address in feild
::go to Wireless Security
>>Enter a security password,
>>Select security type (wep,etc)
>>Enter Security key
>>Save
 
                                                                                                                                                                                                          
                                                                                                      
                                                                         





                                                                                                             
                                                                                                
                                                                                                            
                                                                                                    
                                                                                                  
                                                                                                             
                                                                                        
                                                                                                 
                                                                                                           
                                                                                                           
                                                                                                           
                                                                                                                    
                                                                                                                   
                                                                                                                       
                                                                                       
                                                                                                                 
                                                                                                                
                                                                                             
                                                                                           
                                                                                         
                                                                        
                                                                                
                                                       
                                                                                    
                                                                                      
                                                      
                                                                
                          

Wednesday, July 10, 2013

Uninstall OpenFire from Ubuntu system



Uninstall or completly remove OpenFire from Ubuntu System

Server@server#sudo /etc/init.d/openfire stop

Server@server#sudo update-rc.d -f openfire remove

Server@server#sudo rm /etc/init.d/openfire

Server@server#sudo rm -rf /opt/openfire

Adding Programs Icons To Ubuntu Desktop

Adding Programs Icons To The Desktop In Ubuntu

desktop@desktop~#sudo chmod +x ~/Desktop/*.desktop

Then take ownership of the icons by running the commands below.

desktop@desktop~#sudo chown username ~/Desktop/*.desktop

Replace username with your account name.

Restart or log out and log back in for the changes to take effect.



Monday, July 1, 2013

Different Between Packets, Frames, and Datagrams.

Physical layer (1Layer) the actual data is in "bits" ( 0 and 1)
When it reaches to data link layer or Layer 2 it becomes "frame" with source and destination mac address getting added.
When it reaches the 3rd layer or the networking layer it becomes a "packet" with source and destination IP address attached to it.
Finally it become "segment" at Layer 4 or TCP/IP (sercure) layer. Basically "segment" term is used for TCP connections and "datagrams" for UDP.
So what about other layers like : session, presentation and application ? In these layers the data is termed as "PDU" or "protocol data unit".
So when someone says, that a "frame" is being received by a networking device, then you know that the device is switch.

A datagram is a basic transfer unit associated with a packet-switched network in which the delivery, arrival time and order are not guaranteed. A datagram consists of header and data areas, where the header contains information sufficient for routing from the originating equipment to the destination without relying on prior exchanges between the equipment and the network. The source and destination addresses as well as a type field are found in the header of a datagram.

A packet consists of two kinds of data: control information and user data (also known as payload). The control information provides data the network needs to deliver the user data, for example: source and destination addresses, error detection codes like checksums, and sequencing information. Typically, control information is found in packet headers and trailers, with user data in between.

In computer networking and telecommunication, a frame is a digital data transmission unit or data packet that includes frame synchronization, i.e. a sequence of bits or symbols making it possible for the receiver to detect the beginning and end of the packet in the stream of symbols or bits. If a receiver is connected to the system in the middle of a frame transmission, it ignores the data until it detects a new frame synchronization sequence.