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.
//

Tuesday, July 9, 2013

How to create LVM partition in command mode

LVM partition in command mode



LVM is most popular porcess in HDD partition. In LVM partition has a great facitilities. When you extend your partition using LVM, then without data loss you may extend any partition if you have free space. The free space will be same HDD or any other HDD. You may add or extend with your partition without data loss. As a system admin you have to know LVM partition.

If you have to maintain a mail server, your /var is 1TB. In a certain time (may be 5 - 8 years later, it depends on your user) your /var/log/mail will be fill up 1 TB. Then what will you do?

Whatever, to ignore your problem, please follow below step:

# fdisk -cul /dev/sda [to see hdd status]

# fdisk -cu /dev/sda [hdd partition command]

Command (m for help): n

Command action

e extended

p primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-1044, default 1):                   [blank enter]


Monday, July 8, 2013

How to configure nfs


NFS Configuration Command

 

 

NFS = Network File System

Share File or Directory/Folder in Server PC:

In Server PC:

# mkdir /test20
# vim /etc/exports
  test/20    192.168.0.43(rw)        [Only this ip will get shared]
  or
  test/20    192.168.0.0/24(rw)        [all ip will get shared under this network]
  or
  test/20    example.com(rw)            [all ip will get shared under this domain]
  :wq!
# service nfs restart                                                        [service will be restart. N.B: some service will 
                                                                                       failed, need second time this command]
# service nfs restart
# chkconfig nfs on
# showmount -e localhost

Thursday, July 4, 2013

How to create ISO file using command line.

Command of ISO Making


You may use this command for Redhat Linux 6.X version/CentOS 6.X/. 

How to make ISO from cd ROM, please follow the steps:

$ su                                                                [super user]
password:                                                      [type your root password]
# dd if=/dev/cdrom of=/xyz.iso                    [iso command]

After complete ISO making, go to Computer > Filesystem > xyz.iso. Now you may use this ISO where you lile.

dd= Destroyer of Disks
if= input file
of= output file 

How to make ISO from hard drive, please follow the steps:

$ su -                                                              [super user]
password:                                                      [type your root password]
# cd /home/guest/rony/Desktop                    [go to present user desktop]
# mkisofs -o etc.iso /etc                                [ISO making command]

After complete ISO making, please cheak your desktop. A etc.ios file are available in your desktop. Now you may use this ISO where you lile.

Tuesday, June 11, 2013

What is Navigation of /(root) directory

What is under /(root) director

It is very important to know which folder/directory create under /(root) directory. Because when you install any software, add a external/usb storage device, DVD ROM or any server install you have to know where they install, or mount, documentary root or any other.