Friday, 10 February 2017

Install awscli on windows using cygwin

1. download and Install cygwin  with following packages python -(select this package python:python language interpreter ), curl (select all)

2. open cygwin terminal and run below command

curl "" -o ""

Then, we need to install awscli via pip:

pip install awscli

3. Configure aws account in awscli
$aws configure

run upload command
$aws s3 cp /cygdrive/e/file.vhd s3://bucketname

Comman error :
curl: (48) An unknown option was passed in to libcurl

install proper curl package or may be resolve by install apt-cyg

error :
-bash: python: command not found

run again cygwin setup file and select package python - python:python language interpreter  and install it

Tuesday, 24 January 2017

The requested URL returned error: 403 Forbidden

Error : 
error: The requested URL returned error: 403 Forbidden while accessing

fatal: HTTP request failed

Solution :

check git version ; may be using older version if using older version please update it

Install require packages
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

Download latest git source

# cd /usr/src
# wget
# tar xzf git-

3. Install it

# cd git-
# make prefix=/usr/src/git all
# make prefix=/usr/src/git install
# echo "export PATH=$PATH:/usr/src/git/bin" >> /etc/bashrc
# source /etc/bashrc

4. git version

# git --version
git version

Friday, 30 December 2016

How to Send Email via SMTP Server from gmail Account or other mail account

Configure SSMTP on Linux/Centos

1. install ssmtp package
   #yum install ssmtp

2. Configure SSMTP  - edit vi /etc/ssmtp/ssmtp.conf

save and exit.

3. Test sendmail command line
    type masg
    Ctrl+D       ( close and send the massage)

 4. Send mail to multiple recipients using in script
    #ssmtp, < msg.txt