Thursday, March 2, 2017

Configure ftp server on Redhat 7.3 in AWS ec2


Step  1 :    Install   software

[root@ip-172-31-31-134 ~]# yum  install  vsftpd  -y

Step  2 :  configure server   

Note:    It  is already configured  for donwloading and uploading

Step  3 :   create an user account  for your clinet  and start  the service

[root@ip-172-31-31-134 ~]# useradd   kenny
[root@ip-172-31-31-134 ~]# passwd   kenny
Changing password for user kenny.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.


Service  start  :

[root@ip-172-31-31-134 ~]# systemctl   start  vsftpd  
[root@ip-172-31-31-134 ~]# systemctl   status   vsftpd  

● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2017-03-02 21:43:04 EST; 6s ago
  Process: 9417 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 9418 (vsftpd)
   CGroup: /system.slice/vsftpd.service
           └─9418 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

Mar 02 21:43:04 ip-172-31-31-134.us-west-2.compute.internal systemd[1]: Start...
Mar 02 21:43:04 ip-172-31-31-134.us-west-2.compute.internal systemd[1]: Start...
Hint: Some lines were ellipsized, use -l to show in full.


Turn off  firewalld  and  selinux 

[root@ip-172-31-31-134 ~]# setenforce 0                 #  Selinux 
[root@ip-172-31-31-134 ~]# iptables  -F                    #  firewalld 



Now  connect  from  Linux  based  client  via  ftp command :


adhoc@adhoc:~/Desktop/Desktop$ ftp  35.166.60.13
Connected to 35.166.60.13.
220 (vsFTPd 3.0.2)
Name (35.166.60.13:adhoc): kenny
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put result.php                                             #  uloading a file  from my computer to ftp server
local: result.php remote: result.php
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp> 


Note:  if  you are a windows user then you can use  Filezilla



Thursday, February 23, 2017

Getting Started with AWS and cloud computing concepts

Cloud  Computing  is a really big domain and understanding its concepts and practical approach .

Computing services and its some of component listed here :

Cloud  Category 
---------------------

1.  SAAS     
2.  StAAS
3.  IAAS 
4.  PAAS  

IN  AWS  we  are discussing  about  some sort of services  listed below :-


  1.   Virtual Service  Model for client access 



2.   IAAS  service  overview : providing complete infra is called IAAS .




3.   StAAS  Storage service overview for AWS or Openstack




4.   Ec2 access diagram with real seen 







We explain more  ....

NFS Deployment on EC2

Network File System 

OS :  Redhat / Centos  7

NFS  is one of the most popular  protocol  for Directory sharing  among Linux/Unix based Servers and Operating  system .




 Configuring  NFS  Server  : 


Step 1 :     Login to your EC2 instances  and get root account access  and Install software as given bleow

root@adhoclabs:~# yum  install nfs-utils  rpcbind  

Step 2  :    Create or choose a  Directory  which you want share

Note :     in my case i am creating

root@adhoclabs:~# mkdir  /test

Step  3 :    Export this directory  to  /etc/exports   , this file should be  look like this  use any text editor to edit .

i)   share in Read only mode 

root@adhoclabs:~#  cat   /etc/exports 

/test              *(ro)                              


ii)  share in  read write mode 

[root@ip-172-31-31-234 ~]# chmod  o+w   /test


root@adhoclabs:~#  cat   /etc/exports 

/test              *(rw)          


starting  the nfs  service

======================


[root@ip-172-31-31-234 ~]# systemctl  start   nfs-server

[root@ip-172-31-31-234 ~]# systemctl  start   rpcbind


Now client  side  :  

Note :   generally nfs  is  used for  linux based  clients  sharing 

Step  1:  Installing  client side software  

[root@ip-172-31-31-134 ~]# yum  install  nfs-utils  -y

Step  2:  check with   sharepoint 

[root@ip-172-31-31-134 ~]# showmount  -e  52.26.249.237
Export list for 52.26.249.237:
/test *

Step  3 : mount is somewhere 

[root@ip-172-31-31-134 ~]# mkdir    /mnt/d
[root@ip-172-31-31-134 ~]# mount  52.26.249.237:/test  /mnt/d