Monday 3 April 2017

Reset Grace Period of Windows Server 2012 RDS

Error:

the remote session was disconnected because there are no remote desktop license servers available to provide license in aws

Solution:

The solution is to delete the REG_BINARY in:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod

To delete the key you must take ownership and give admin users full control.

After a restart the server will reset the grace period to 120 days.

Friday 10 February 2017

Install awscli on windows using cygwin

1. download https://cygwin.com/install.html 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 "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py

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
solution:

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

error :
-bash: python: command not found

solution:
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 https://github.com/xxxx/store.git/info/refs

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 https://git-core.googlecode.com/files/git-1.8.5.3.tar.gz
# tar xzf git-1.8.5.3.tar.gz

3. Install it

# cd git-1.8.5.3
# 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 1.8.5.3

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...