Monday, September 9, 2013

How to create a yum server

How to create a yum server


Here I show how to create a yum server. At first all that's rpm packages you have to copy from cd to HDD drive in given location. You also may install your rpm package using "rpm -ivh (package name)". If you use this command you have no need any yum server. If have any dependency package then you need internet connection.

At first go to your packages folder/directory, then use below command. Please follow the command & make a yum server. Enjoy.........

[server9@www ~]# rpm -ivh vsftpd
[server9@www ~]# rpm -ivh createrepo
[server9@www ~]# rpm -ivh deltarpm
[server9@www ~]# rpm -ivh phython-deltarpm
[server9@www ~]# cp -vfr Packages/ /var/ftp/pub
[server9@www ~]# cd /var/ftp/pub
[server9@www ~]# createrepo /var/ftp/pub/Packages
[server9@www ~]# cd /etc/yum.repos.d
[server9@www ~]# vim server.repo
  [RHEL]        [what ever you type in third cotation]
  name=centos        [what ever you type in third cotation]
  baseurl=ftp://192.168.10.25/pub/Packages    [this ip is your own machine]
  enabled=1
  gpgcheck=0
  :wq!            [save]
[server9@www ~]# yum clean all
[server9@www ~]# yum list

Friday, September 6, 2013

how to create a mail server in centos 6 & redhat 6

 

How to Create a mail server in centos 6 & redhat 6


Mail Server Configuration in RHEL6

MUA = Mail User Agent (Example: outlook, eudora, thanderbird etc)
MTA = Mail Transfer Agent (Protocol: SMTP) (Example: Postfix, Sendmail etc)
MDA = Mail Delivery Agent (Protocol: POP3)

SMTP Port = 25
POP3 Port = 110
MTA: Postfix
Port: 25
Package: Postfix
Daemon: Postfix
Install: yum install postfix* -y
Conf File: /etc/postfix/main.cf
MDA: Dovecot
Port: 110
Package: Dovecot
Daemon: dovecot
Install: yum install dovecot* -y
Conf File: /etc/dovecot/dovecot.conf

How to create a dns server

  How to Create a dns server


Dear Viewer: I'm trying to shortly some command how to create a dns server. Only some steps you follows, you will be create a dns server. dns server is mandatory mail server, web server, yum server and many more. Lets start..

Package Name: bind, bind-chroot
Daemon: named
Port: 63
Install: yum install bind* -y
Configuration file: /etc/named.conf
                          /etc/named.rfc1912.zones


[root@server10 named]# yum install bind* -y
[root@server10 named]# vim /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//