Monday, 22 April 2013

What is LINUX ?







There are lots of reasons for Linux popularity, but the main one is that it gives you a huge amount of software to work with completely free of charge. If you want to render 3D models, Linux has a program for it. If you want to mix music or edit a podcast, Linux has a program for it. If you want to edit Microsoft Office documents, organize family photos, chat to your friends, burn CDs and DVDs, watch movies,edit images or do just about anything, Linux has a program for it. And it's almost certainly free!
  
KNOW ABOUT LINUX
  
Linux is a free Unix-type operating system originally created by Linus Torvalds with the assistance of developers around the world. It originated in 1991 as a personal project of Linus Torvalds, a Finnish graduate student. The Kernel version 1.0 was released in 1994 and today the most recent stable version is 2.6.9 Developed under the GNU General Public License the source code for Linux is freely available to everyone.

NFS Server


If you have two or more machines, you may wish to share disk space or devices, such as a CD drive, between machines. For this there is network file system (NFS), the easiest way of sharing files and resources across a network.


NFS is the way of working with files on a remote machine as if they are on your local one. NFS is the standard de facto solution to access the same $HOME directories from any machine on the Net. Using it also is a good way to avoid keeping duplicated informatioNFS n from eating large amounts of disk space.

How to make NFS

System should be Yum Server or Yum Client.

yum install nfs* -y                                    (package install)

yum install portmap* -y                           (package install)

mkdir /Data_Share                                  (making Dir for sharing)

vim /Data_Share/file1                              (making file)

vim /etc/exports
(Entry)
/Data_Share   *(rw,sync)
:wq!

service nfs restart                                  (Restart the Service)

service portmap restart                         (Restart the Service)

chkconfig nfs on

chkconfig portmap on



Configuration on Client Side   


mount -t nfs 192.168.1.1:/xyz  /mnt           (Considering server ip as 192.168.1.1)

vim /etc/fstab                                             (To make Permanent Entry)

192.168.1.1:/Data_Share /mnt nfs default 0 0

How to make FTP server on redhat linux

FTP Server on RedHat

It is a file transfer protocol, which is use to transfer the file and receive the file from a Central server up to client, it work at application layer of OSI model and port no. is 20 & 21. port no. 20 is used for connectivity and port no. 21 is used for send & receive data.

FTP Important note:-

  •  The configuration file for vsftpd is "/etc/vsftpd/vsftpd.conf"
  •  By default root user can't access ftp server
  •  By default other user can't access ftp server
  •  By default anonymous user can assess ftp server & it need no password.

Server configuration:-


Step-1 install vsftpd package
#yum install vsftpd*
(package is installing from yum server)

Step-2 make changes in vsftpd.conf file

#vim /etc/vsftpd/vsftpd.conf

Step-3 restart ftp service
#service vsftpd restart  (Service on temporary )
#chkconfig vsftpd on (Service on permanent)


Step-4  Make directory as per requirement

#cd /var/ftp/pub
#mkdir upload download
#cat /download file1


Client Configuration:-


Step-1 Now access ftp server

#ftp 172.24.0.56  (change ip address as ftp server ip)
user: anonymous
Password: (No password require)
>cd pub
>cd download
>mget file1 (mget use for multiple file)
or
>get file1 (get use for one file)
>bye (bye use for exit from ftp)
or
>quit
>good bye (Reply from server side)