Tuesday, 18 September 2012

How to install Zimbra 8.0.0 mail server on Ubuntu 12.04 LTS



Install Zimbra Open Source on Ubuntu 12.04 LTS


Preparing before install Zimbra

# sudo apt-get update
# sudo apt-get install openssh-server  libgmp3c2  sysstat  sqlite3

  If you face Time related issues with server then use below command.
# sudo apt-get install language-pack-en 

And check by below command

# locale -a  
 # hostname   (check your hostname and set which you want to put your zimbra mail server name. 
 Eg: mail.bil.com 
# hostname mail.bil.com   (it's for temporary set hostname)
# vim  /etc/hostname       (it's for permanent set host-name)
mail.bil.com
:wq|  save it)
Now Download The latest version for now is Zimbra Collaboration Suite Open Source Edition 8.0.0 GA


# ls
# tar -xvf zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631.tgz
# ls
# cd zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631/
# cd

Install BIND9 for Network Address Transtlator (NAT 1-1)

In many case, your server didn't got public IP directly. But you got public IP by NAT by network device. In this condition you have to use Split DNS as Zimbra suggest (More Info)

# sudo apt-get install bind9

Now we will edit /etc/bind/named.conf.options by the line forwarders change to our DNS IP then append zone that the bottom of line

# sudo vim /etc/bind/named.conf.options
 

then create /var/cache/bind/db.mail.bil.com don't forget to change filename to match with zone file

# vim /var/cache/bind/db.mail.bil.com

  Then edit /etc/resolv.conf and change nameserver to 192.168.100.20
 
Now restart bind9 services
sudo /etc/init.d/bind9 restart
Test by dig command and it should return like below
#dig mail.bil.com   mx
; <<>> DiG 9.7.0-P1 <<>> mail.bil.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57886
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
 
;; QUESTION SECTION:
;mail.bil.com.           IN      MX
 
;; ANSWER SECTION:
mail.bil.com.    38400   IN      MX      10 mail.bil.com.
 
;; AUTHORITY SECTION:
mail.bil.com.    38400   IN      NS      ns1.mail.bil.com.
mail.bil.com.    38400   IN      NS      ns2.mail.bil.com.
 
;; ADDITIONAL SECTION:
mail.bil.com. 38400 IN   A       172.16.44.70
ns1.mail.bil.com. 38400  IN      A       172.16.44.70
ns2.mail.bil.com. 38400  IN      A       172.16.44.70
 
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Nov  4 21:00:19 2011
;; MSG SIZE  rcvd: 145

Install Zimbra

sudo ./install.sh
If you are getting some packages missing. Then you can install manual this

sudo apt-get install libgmp3c2 sysstat sqlite3

sudo ./install.sh

Operations logged to /tmp/install.log.1615
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND
 
 
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
 
License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra_public_eula_2.1.html
 
 
 
Do you agree with the terms of the software license agreement? [N] Y
 
Checking for prerequisites...
     FOUND: NPTL
     FOUND: netcat-openbsd-1.89-3ubuntu2
     FOUND: sudo-1.7.2p1-1ubuntu5.3
     FOUND: libidn11-1.15-2
     FOUND: libpcre3-7.8-3build1
     FOUND: libgmp3c2-2:4.3.2+dfsg-1ubuntu1
     FOUND: libexpat1-2.0.1-7ubuntu1
     FOUND: libstdc++6-4.4.3-4ubuntu5
     FOUND: libperl5.10-5.10.1-8ubuntu2.1
Checking for suggested prerequisites...
     FOUND: perl-5.10.1
     FOUND: sysstat
     FOUND: sqlite3
Prerequisite check complete.
 
Checking for installable packages
 
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy
 
 
Select the packages to install
 
Install zimbra-ldap [Y] Y
 
Install zimbra-logger [Y] Y
 
Install zimbra-mta [Y] Y
 
Install zimbra-snmp [Y] Y
 
Install zimbra-store [Y] Y
 
Install zimbra-apache [Y] Y
 
Install zimbra-spell [Y] Y
 
Install zimbra-memcached [N] N
 
Install zimbra-proxy [N] N
Checking required space for zimbra-core
checking space for zimbra-store
 
Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell
 
The system will be modified.  Continue? [N] Y
 
Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.
 
Finished removing Zimbra Collaboration Suite.
 
Installing packages
 
    zimbra-core......zimbra-core_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...
    zimbra-ldap......zimbra-ldap_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...done
    zimbra-logger......zimbra-logger_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...done
    zimbra-mta......zimbra-mta_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...done
    zimbra-snmp......zimbra-snmp_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...done
    zimbra-store......zimbra-store_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...done
    zimbra-apache......zimbra-apache_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...
    zimbra-spell......zimbra-spell_8.0.0_GA_5434.UBUNTU12_64_amd64.deb...done
Operations logged to /tmp/zmsetup.11042011-195302.log
Installing LDAP configuration database...done.
Setting defaults...
 
DNS ERROR resolving MX for mail.bil.com.
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [mail.bil.com.] mail.bil.com
        MX: mail.bil.com. (192.168.100.20)
 
        Interface: 192.168.100.20
        Interface: 127.0.0.1
done.
Checking for port conflicts
 
Main menu
 
   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@mail.bil.com
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.87xyz2_zvy@mail.bil.com
        +Enable automated spam training:       yes
        +Spam training user:                   spam.l1bceniwua@mail.bil.com
        +Non-spam(Ham) training user:          ham.205v2giqh@mail.bil.com
        +SMTP host:                            mail.bil.com.
        +Web server HTTP port:                 80
        +Web server HTTPS port:                443
        +Web server mode:                      http
        +IMAP server port:                     143
        +IMAP server SSL port:                 993
        +POP server port:                      110
        +POP server SSL port:                  995
        +Use spell check server:               yes
        +Spell server URL:                     http://mail.bil.com.:7780/aspell.php
        +Configure for use with mail proxy:    FALSE
        +Configure for use with web proxy:     FALSE
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@mail.bil.com
        +Version update source email:          admin@mail.bil.com
 
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Default Class of Service Configuration:
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit
 
Address unconfigured (**) items  (? - help)
  • Put number 3 to config Admin Password (Number 4) then put r to return and put a to apply Zimbra configuration
Main menu
 
   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-store:                            Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Default Class of Service Configuration:
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit
 
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] Yes
Save config in file: [/opt/zimbra/config.8588]
Saving config in /opt/zimbra/config.8588...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup.11042011-205010.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher  password...done.
Creating server entry for webmail.mail.bil.com...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on webmail.mail.bil.com...done.
Adding mail.bil.com. to zimbraMailHostPool in default COS...done.
Installing webclient skins...
        smoke...done.
        pebble...done.
        sky...done.
        sand...done.
        bones...done.
        lavender...done.
        tree...done.
        lemongrass...done.
        carbon...done.
        steel...done.
        bare...done.
        waves...done.
        lake...done.
        beach...done.
        twilight...done.
        hotrod...done.
        oasis...done.
Finished installing webclient skins.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on webmail.mail.bil.com...done.
Creating domain mail.bil.com...done.
Setting default domain name...done.
Creating domain mail.bil.com...already exists.
Creating admin account admin@mail.bil.com...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.l1bceniwua@mail.bil.com...done.
Creating user ham.205v2giqh@mail.bil.com...done.
Creating user virus-quarantine.87xyz2_zvy@mail.bil.com...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for webmail.mail.bil.com...done.
Configuring SNMP...done.
Checking for default IM conference room...not present.
Initializing default IM conference room...done.
Setting up syslog.conf...done.
 
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.0.0_GA_5434.UBUNTU12_64)
        The ADMIN EMAIL ADDRESS created (admin@mail.bil.com)
 
Notify Zimbra of your installation? [Yes] Yes
Notifying Zimbra of installation via http://www.mail.com/cgi-bin/notify.cgi?VER=8.0.0_GA_5434.UBUNTU12_64&MAIL=admin@mail.bil.com
 
Notification complete
 
Starting servers...done.
Installing common zimlets...
        com_zimbra_bulkprovision...done.
        com_zimbra_attachcontacts...done.
        com_zimbra_linkedin...done.
        com_zimbra_cert_manager...done.
        com_zimbra_webex...done.
        com_zimbra_date...done.
        com_zimbra_social...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_phone...done.
        com_zimbra_email...done.
        com_zimbra_url...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_dnd...done.
        com_zimbra_attachmail...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
 
 
Moving /tmp/zmsetup.11042011-205010.log to /opt/zimbra/log
 
 
Configuration complete - press return to exit


After done installing. Test by open https://mail.bil.com:7071 and put the user admin with password
 

 If success so we will enter to Administration page


Let's  Enjoy with zimbra mail server >>>>>> 

Thursday, 13 September 2012

Zimbra Interview Questions & Answers with TCS


-->
Zimbra Interview Questions & Answers


Q.1> What is Zimbra ?
Ans> Zimbra provide enterprise-class and open-source edition. Email, calendar and groupware software for Linux and MAC operating system.

Q.2> How to create email Account on command line ?
Ans> zmprov createAccount firstname.lastname@example.com password displayName "firstname lastname"

Q.3> How to Reset Email account Password ?
Ans> zmprov sp firstname.lastname@example.com NEW_PASSWORD

Q.4> How to check zimbra services are running or not running ?
Ans> zmcontrol status
or you can view with admin panel of zimbra over GUI.
Q.5> How to start only MTA services of zimbra if it's not running ?
Ans> zmprov -l ms mail.example.com +zimbraServiceEnabled mta
Q.6> How to check Zimbra server version which you have to use.
Ans> zmcontrol -v
Release 7.1.1_GA_3196.UBUNTU10_64 UBUNTU10_64 FOSS edition.

Q.7> How to set Forwarder and how much limit for forwarding email id
You can go through Admin penal over GUI interface and select specific user account, edit account and go to Forwarder tab. and you can set Forwarding Email id and Forwarder limit is only 100 ID's.

Q.8> What are key differnces between open source zimbra and network edition of zimbra server?

Ans> Clustering/High-Availability feature is available in network edition of zimbra server. Hot Backup is also possible in zimbra network edition Email Archiving & Discovery is not possible in opensource zimbra server. Real-time backup and restore is also possible in network edition of zimbra server.

Q.9> Is it possible to mix ZCS Open Source Edition accounts with Network Edition accounts in one installation?

Ans> Unfortunately you can not mix them, but there are multiple versions of Network Edition available to meet varying needs.

Q.10> How to take Backup of Zimbra ?
Ans> At first you have to need stop the zimbra services and then rsync /opt/zimbra directory on another backup systems.
eg:-- su zimbra
zmcontrol stop
ps auxww | grep zimbra

rsync -aHz --force --delete live_server:/opt/zimbra/ /opt/zimbra/


Q.11> How much storage does each Zimbra account come with?

Ans> If you are installing ZCS on premise then storage is only limited by how much physical storage space you wish to allocate to each account eg:-- it can be unlimited, 10GB, 2GB 13MB, etc) depending on hardware constraints. The Administration Console allows IT team to easily set up "Class of Service" for the accounts.

Q.12> How to fix quota limit on Zimbra account?
Ans> You can go through Admin penal over GUI interface and select specific user account, edit account and go to Advanced tab. and you can set quota limit.

Q.13> How much create Email account on Zimbra mail server ?
Ans> unlimited..

Q.14> Where is log file of Zimbra ?
Ans> cat /var/log/zimbra.log and also you can view # tail -100f /var/log/mail.log


Q.15> How to Made mirror server for live data sync ?
Ans> Exactly the same version of Zimbra must be installed on both the live and mirror server. To start with we work on the live server. There is no need to stop Zimbra for most of the install. Only a short amount of down-time will need to be scheduled later to perform a final rsync operation between the two servers.

Go As user root....
# apt-get install inotify-tools on both server Main and Mirror server.
service zimbra stop on Mirror server.
# rsync -aHz --force --delete live_server:/opt/zimbra/ /opt/zimbra/
# service zimbra start
service zimbra start
service zimbra status

Q.16 > What happens when my Network Edition 60 day Trial license expires?
Ans> Your basic ZCS features will still be working, but the following occurs:
  • You can no longer add new user accounts
  • Zimbra Mobile and the Zimbra Outlook & iSync Connectors will be disabled
  • Administrators will see an alert message when they log into the Admin console
Q.17> What phones are supported by Zimbra Mobile?
Ans> All Windows Mobile 5 devices Symbian S60 and S80 devices like the Nokia E-Series, Palm devices like the Treo 700P sync natively with Zimbra. (Some require additional 3rd party plugins) Blackberry is supported through a third party partner.


Best of Luck.........

Friday, 18 May 2012


How to Configure FTP Server on RHEL 6

In this example we will configure a vsftpd server and will transfer files from client side.For this example we are using three systems one linux server one linux clients and one windows xp clients. To complete these per quest of ftp server Follow this link
  • A linux server with ip address 192.168.0.254 and hostname Server
  • A linux client with ip address 192.168.0.1 and hostname Client1
  • A window client with ip address 192.168.0.2 and hostname Client2
  • Updated /etc/hosts file on both linux system
  • Running portmap and xinetd services
  • Firewall should be off on server
We have configured all these steps in our pervious article.
We suggest you to review that article before start configuration of ssh server. Once you have completed the necessary steps follow this guide.
Three rpm are required to configure ssh server. vsftpd, portmap, xinetd check them if not found then install

Now check vsftpd, portmap, xinetd service in system service it should be on

#setup
Select System service from list
[*]portmap
[*]xinetd
[*]vsftpd
Now restart xinetd and portmap and vsftpd service

   

On Linux client

ping from ftp server and run ftp command and give username and password
 

Most commonly commands used on ftp prompt are


put To upload files on server

get To download files from server

mput To upload all files

mget To download all files

? To see all available command on ftp prompts

cd To change remote directory

lcd To change local directory

  Now go on window clients and create a file. copy con command is used to create files on window. To save use CTRL+Z 

 

Tuesday, 15 May 2012

HOW TO INSTALL DHCP SERVER ON RHEL 6


HOW TO INSTALL DHCP SERVER ON RHEL 6

Note: Whenever we designed DHCP Server first we set static IP on that server system

Step1-  Now we install dhcp packages






















Step2- Now go to dhcp configuration file
Here is available only sample file path not to configuration file.
[root@localhost ~]# vim /etc/dhcp/dhcpd.conf 

 
Step3- Now we will go to copy sample file and then configure dhcpd.conf file
[root@localhost ~]# 
[root@localhost ~]# cp -r /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
cp: overwrite `/etc/dhcp/dhcpd.conf'? y
[root@localhost ~]# vim /etc/dhcp/dhcpd.conf


Step4- Now start the dhcp server services

[root@localhost ~]# service dhcpd restart
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
[root@localhost ~]# chkconfig dhcpd on

Step5- When DHCP Server release IP Address of DHCP Client's then server maintain dhcpd.leases file of IP details and system mac.

[root@localhost ~]# cat /var/lib/dhcpd/dhcpd.leases
[root@localhost ~]#
NOW CONNECT CLIENT WITH DHCP SERVER 

HOW TO INSTALL RedHat 6 Operating System


                                  INSTALLATION OF RHEL 6


In following Screen you will be able to see 4 Installation Methods, Let me explain Methods here:- 
1) Local CD/DVD – It is obvious that If you use CD/DVD media then Choose this option. 

2) Hard Drive – Select this if you have dumped your source into any other Linux partition. 

3) NFS Directory – You can select this option if you have configured NFS server. 

4) URL – Select this if you want to install using FTP or HTTP Source link.


So for step by step installation of RHEL 6 I had Local CD/DVD Installation Method.
If you are not sure about your media then select OK to verify else select Skip.



  • After Booting from DVD you will get below screen. Select Install or Upgrade an Existing System and press Enter.
  • If you get the following screen then let Anaconda take another step.

  • Select your preferred Language and Select Keyboard Layout.


    So for step by step installation of RHEL 6 I had Local CD/DVD Installation Method.
    If you are not sure about your media then select OK to verify else select Skip.
    • If your media is fine till now it will take you to the Graphical Installation Screen of RHEL 6 Installation.  Please wait for few minutes after getting following screen


    • Now you can see  the first screen after Getting GUI Installation Wizard as follow Click on NEXT to Continue…
    • Because we are installating Beta Release of Red Hat Enterprise Linux you will get warning of pre-release version. Have a look at following screen….

    • Now, For installating RHEL there is two storage options are available Let me explain bit…..
    • Basic Storage Devices – Select this if you are installation on Local Hard disk or some local Storage
    • Specialized Storage Devices -  Select this if you are installing on SAN ( Storage Area Network ) or DASD ( Direct Access Storage Devices)

    • Don’t worry if you don’t get following step, because if your Hard disk is blank then only you will get following screen.

    • Set your Hostname here. Remember FQDN hostname is always preferable (i.e. rhel-serve.linuxsoftwares.com) and Click Next and configure network during installation then click on Configure Network and Configure your Network by Editing Ethernet Cards.
    • Select Time Zone and set  root Password here.

    • Now Create Custom Layout because if you have windows already installed then please select  Create Custom Layout and  click on NEXT.

    • I have blank Hard Disk now, So If you have also got Blank Hard Disk then you will get screen like below :-
    • Here we’ll create only Three Most required Partitions….. You can create as per your requirement.  Now we will start creating partition………
    • Let’s create boot partition first. Click on Create -> Select Standard Partition, Enter /boot as Mount Point, EnterSize 500MB, and Keep all information as it is, Click on OK.

    • Now let’s create swap partition Click on Create -> Select Standard Partition, Select Swap as File system Type,Enter size 2000 (it should be double than RAM) and Keep all information as it is, Click on OK.
    • Now create root partition. Click on Create -> Select Standard Partition, Enter / as Mount Point, Select Fill to maximum allowable size and Keep all information as it is, Click on OK.
    • Now if everything is perfectly fine then you will jump to formatting screen to Format all your partition which you have created, here if you are not sure then reboot your system without clicking on anything. If you are sure that you want to continue then click on Write Changes to disk.

    • Here is the Boot Menu screen. You can set password for Grub here; you can modify booting entry here.
    • Different Kinds of Software packages are available so you can  Select as per your requirement and click NEXT. If you plan to do customize installation then click on Customize Now and Click NEXT, Select your required packages and then click Next

    • As soon as you click Next installation will be started and after that you will get below screen to Reboot your system
    • After rebooting RHEL 6 Beta will be load as per screen below

    • You will get the “Welcome Message” click  Forward Select Yes, I agree to the License Agreement and Click on Forward
    • If you have RHN Login then Select Yes Otherwise Select No, I prefer to register at a later time and click on Forward.
    • Create User and Click Forward

    • You can set your Date & Time Here
    • Enable Kdump if you want to configure it otherwise Click on Forward


    NOW HERE IS SHOWING RHEL6 DESKTOP ENVIRONMENT 



    Monday, 14 May 2012


    How to Configure YUM Server on rhel 6



    [root@rhel6 ~]# mount /dev/dvdrw /mnt
    [root@rhel6 ~]# cd /mnt
    [root@rhel6 ~]# cd Packages
    [root@rhel6 ~]# rpm –ivh vsftpd……………..
    [root@rhel6 ~]# cd /var/ftp/pub
    [root@rhel6 ~]# cp –r /mnt/* /var/ftp/pub
    [root@rhel6 ~]# service vsftpd start , restart
    [root@rhel6 ~]# service network restart
    [root@rhel6 Packages]# rpm –ivh deltarpm-3.5-0.5………..
    [root@rhel6 Packages]# rpm –ivh python-deltarpm…………..
    [root@rhel6 Packages]# rpm –ivh createrepo…………………..
    [root@rhel6 Packages]# cd
    [root@rhel6 Packages]# vi /etc/yum.repos.d/packages.repo

    [Packages]
    name=Packages
    baseurl=file:///var/ftp/pub/Packages
    gpgcheck=0
    enabled=1

    Press Key-- Esc :wq! {for save file}

    [root@rhel6 ~]# createrepo .
    [root@rhel6 ~]# createrepo –g /var/ftp/pub
    [root@rhel6 ~]# cd /var/ftp/pub
    [root@rhel6 ~]# ls
    [root@rhel6 ~]# cd repodata
    [root@rhel6 ~]# ls
    [root@rhel6 ~]# cp 21f8a36d9bca1bca1b6b………….. .. ..Server.xml /tmp/
    [root@rhel6 ~]# createrepo -g /tmp/21f8a36d9bca1bca1b6b………….. .. ..Server.xml /var/ftp/pub/Packages/
    [root@rhel6 ~]# yum clean all
    [root@rhel6 ~]# yum list
    [root@rhel6 ~]# yum install kernel*

    Note: if any Error plz check iptables –F {Here is firewall off}
    Warning: Should be available only one packages.repo file no /etc/yum.repos.d/ Directory not to any others file should be available.
     



    How to install Sun-java,jre on Ubuntu 12.04



      # sudo apt-get update
      # sudo apt-add-repository ppa:flexiondotorg/java
      # sudo apt-get update
      # sudo apt-get install sun-java6-jre sun-java6-plugin
      # sudo apt-get install sun-java6-jdk

    Enjoy...