How To Determine the Number of Days Left in Windows Remote Desktop Service

Hi folks, If you want to know the how many days left in your Windows RDS Grace period, below command would help you out.

Just open Command Prompt in elevated mode by searching for CMD on the start -> right click -> choose ‘run as an administrator’.

Once the CMD is up there, simply copy and paste the below command and it will the result in days.

wmic /namespace:\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !=””) CALL GetGracePeriodDays

Cio! ūüėÄ


Simple and Easiest Way to Create A Hotspot on Ubuntu

Hi There, Today I just came to a remote place for some office work and found my mobile phone 4G connectivity is very weak due to the steel building. Quickly I Googled for an article to setup a hotspot and found the below nice and simple one.

Simple steps: Create wifi hotspot in ubuntu

  1. Disable Wifi (Uncheck Enable Wi-Fi)
  2. Go to network connection (Edit Connections…)
  3. Click “Add”
  4. Choose “Wi-Fi” and click “Create”
  5. Type in Connection name like “wifi-hotspot”
  6. Type in SSID as you wish
  7. Choose Device MAC Address from the dropdown (wlan0)
  8. Wifi Security select “WPA & WPA2 Personal” and set a¬†password.
  9. Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.
  10. Then save and close.
  11. Open Terminal (Ctrl+Alt+T) and type in the following command with your connection name used in step 5.
    sudo gedit /etc/NetworkManager/system-connections/<connection-name>
  12. Find mode=infrastructure and change it to mode=ap (in Ubuntu 16, this had already changed)
  13. Now check the network section where wi-fi will be connected to the created hotspot automatically. If you can not find it, go to¬†Connect to Hidden Network…¬†Find the connection and connect to it.


Much thanks for the original poster.


Check remote ports with nmap

This is going to be a quick note about checking ports using nmap tool.

Simply install it using sudo apt-get install nmap and you will have command line nmap installed

Simple commands :

nmap -p 80


You can install  Zenmap GUI tool if you are not very familiar with command line operations via sudo apt-get install znmap


Source :

Connecting Sony Bluetooth speaker with Ubuntu 17.10

Hi People, last weekend I got a SONY SRS-XB20 Bluetooth speaker as a gift from my brother which worked perfectly with my Android mobile. Then I wanted to connect this with my Ubuntu laptop and had to go through lot of Googling to play a song on it!. Here is the steps I have taken in case anybody wanted..

First thing I noticed was my Bluetooth is not enabling correctly on through the GUI. When I click the Bluetooth ON button it moves to the Off side showing its enabling but not really working.

This made me sure about the hardware has identified correctly by the system,

lspci -nnk | grep -iA3 net; lsusb; dmesg | egrep -i 'blue|firm'

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 05)
Subsystem: Dell RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [1028:0597]
Kernel driver in use: r8169
Kernel modules: r8169
02:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network Adapter [168c:0032] (rev 01)
Subsystem: Dell AR9485 Wireless Network Adapter [1028:0209]
Kernel driver in use: ath9k
Kernel modules: ath9k
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0c45:649a Microdia
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 0cf3:e004 Atheros Communications, Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 09da:c10a A4Tech Co., Ltd.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[ 2.715869] usb 1-1.1: Product: Bluetooth USB Host Controller
[ 12.567728] Bluetooth: Core ver 2.22
[ 12.567748] Bluetooth: HCI device and connection manager initialized
[ 12.567752] Bluetooth: HCI socket layer initialized
[ 12.567754] Bluetooth: L2CAP socket layer initialized
[ 12.567759] Bluetooth: SCO socket layer initialized
[ 28.907788] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 28.907790] Bluetooth: BNEP filters: protocol multicast
[ 28.907794] Bluetooth: BNEP socket layer initialized
[ 83.309988] Bluetooth: RFCOMM TTY layer initialized
[ 83.310004] Bluetooth: RFCOMM socket layer initialized
[ 83.310012] Bluetooth: RFCOMM ver 1.11

Next step is reinstalling my Bluetooth driver completely. So if there’s any issue, it will wipe out and reinstall correctly with the current system config

sudo apt-get --reinstall install bluez

Now make sure your Bluetooth device is not blocked by rfkill.

  1. Run rfkill list and it should give you a screen similar to below if the device is blocked by the utility.

    manjula@Cluster-M:~$ rfkill list
    0: phy0: Wireless LAN

    Soft blocked: no
    Hard blocked: no

    1: hci0: Bluetooth

    Soft blocked: yes
    Hard blocked: no
  2. Notice the above device 1 is soft blocked. Let’s unblock it too..
    rfkill unblock 1
  3. Run rfkill list and make sure the device is no more blocked.

That’s it, Bluetooth device is enabled correctly but still the GUI is unresponsive and can’t connect to my speaker. No Worries, let’s do this through the console!!!

Fire the console and you will have a nice and cool tool bluetoothctl comes with Ubuntu.

Below the steps to connect to a device,

  1. Run bluetoothctl.
  2. Set the default agent default-agent.
  3. Power on the device power on. (The device will power off on each startup and you can set it to auto power on by adding AutoEnable=true in /etc/bluetooth/main.conf at the bottom in the [Policy] section).
  4. Let’s scan for available devices, scan on. (make sure your BL device is on pairing mode, the connection LED should blink continuously).
  5. Once the scan is finished it will list down the MAC addresses of the available devices and note the BL speaker you wanted to connect.
  6. Type pair and hit enter. (enter the first two letters of the MAC and hit TAB to auto complete. ‘Case Sensitive’)
  7. Once the device is successfully paired, connect to start the paired connection.
  8. Now the connection is successfully established and you are ready to play with sound tool. Take a look at my sample connection terminal snap below if you missed any of above point.

    manjula@Cluster-M:~$ bluetoothctl
    [NEW] Controller F4:B7:E2:8A:C8:8C Cluster-M [default]
    [NEW] Device B8:D5:0B:5A:4E:64 B8-D5-0B-5A-4E-64
    Agent registered
    [bluetooth]# default-agent
    Default agent request successful
    [bluetooth]# power on
    Changing power on succeeded
    [bluetooth]# scan on
    Discovery started
    [CHG] Controller F4:B7:E2:8A:C8:8C Discovering: yes
    [CHG] Device B8:D5:0B:5A:4E:64 RSSI: -44
    [CHG] Device B8:D5:0B:5A:4E:64 TxPower: 0
    [CHG] Device B8:D5:0B:5A:4E:64 Name: SRS-XB20
    [CHG] Device B8:D5:0B:5A:4E:64 Alias: SRS-XB20
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 00000000-deca-fade-deca-deafdecacaff
    [CHG] Device B8:D5:0B:5A:4E:64 ManufacturerData Key: 0x5349
    [CHG] Device B8:D5:0B:5A:4E:64 ManufacturerData Value: 0x53
    [CHG] Device B8:D5:0B:5A:4E:64 ManufacturerData Value: 0x43
    [bluetooth]# pair B8:D5:0B:5A:4E:64
    Attempting to pair with B8:D5:0B:5A:4E:64
    [CHG] Device B8:D5:0B:5A:4E:64 Connected: yes
    [CHG] Device B8:D5:0B:5A:4E:64 Modalias: bluetooth:v0039p1582d2203
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 00000000-deca-fade-deca-deafdecacaff
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
    [CHG] Device B8:D5:0B:5A:4E:64 ServicesResolved: yes
    [CHG] Device B8:D5:0B:5A:4E:64 Paired: yes
    Pairing successful
    [CHG] Device B8:D5:0B:5A:4E:64 ServicesResolved: no
    [CHG] Device B8:D5:0B:5A:4E:64 Connected: no
    [bluetooth]# connect B8:D5:0B:5A:4E:64
    Attempting to connect to B8:D5:0B:5A:4E:64
    [CHG] Device B8:D5:0B:5A:4E:64 Connected: yes
    Connection successful


Not let’s look at the audio controller, just play a song and see whether it plays on the BL speaker. If not, just follow the below steps,

Install the Pulse Audio controller for more tweaking

  1. sudo apt-get install pavucontrol
  2. Open PulseAudio Volume Control and go to the Configurations tab and set your Bluetooth speaker profile to A2DP Sink as shown in the blow screenshot,
    Screenshot from 2017-12-26 22-46-19
  3. Move to the Playback tab and switch to the secondary audio device shown in the drop down as shown below,Screenshot from 2017-12-26 22-48-58

Annd that’s it. Your speakers should start showing it’s colors. Let me know your thoughts in comments.

Happy Christmas and happy new year 2018!!.

Here is mine, Love it ‚̧


Source : ArchLinux wiki

Hosting a static HTML site on Google App engine for FREE

Hi all,¬†after quite long time today I had to host someone’s static HTML site on Google App Engine and unfortunately I couldn’t remember the right¬†steps I used to do and somewhat I have forgotten it.

So I though¬†the best way to get it back is the blog :D.. So here we go I’m writing here all the steps roughly and if anybody need a help please comment here I would like to help you all :)))..

  1. Create a new app from (App ID should be a unique one)
  2. Download and install the Python too from their website (I recommend the 2.7x version)
  3. Download the Google App Engine SDK for Python and install.
  4. Open Google App Engine Launcher and add your site as a new project. File > Create New Application.
  5. Enter the App ID and select the project folder and… ready to go now..
  6. now you can see few files has created by the app engine in your folder like below,app engine files
  7. so then all your web files copy to that folder like below 2014-08-07 18_10_36-ictsolutionsweb
  8. and now open the app.yaml file from your favorite code editor (mine is Brackets)

This article is not completed, just put a comment if you have any query I will be happy to answer.

Issue Google G Suite Migration Lotus Notes: Databases move to completed stage without migrating data

Hello people, recently I was working on a Lotus to Google G Suite migration project and it all went nicely and smoothly until I met this Domino database user_x.nsf with almost 10GB in size..

So I put user_x.nsf to the migration, it was in the active feeder for a while, BHOOM!, “Feeder Migration Completed!!”

It had nearly 50,000 of emails but how come it didn’t recognize by Google Migration service ?!?!. I did every possible ways by attaching as a separate archive even, but non of these helped me to get over the problem.

But finally I found a solution by making a replication, the Ultimate path to the wisdom ^_^, here is the steps of what I have done.

Create a database replication

  1. Open Lotus Notes client, Open Workspace.
  2. Right click on the Workspace > Open Application > search for the affected database file and click Open (eg: user_x.nsf), the database will be added to the Workspace as a new application.
  3. Right click on the added user file, go to Replication > New Replica.. , In the next window,
    select any location,
    give a new name (eg : user_x_new.nsf),
    remove Encryption,
    remove Create Immediately and
    click OK.replica_new
  4. Replication process will take some time depending on the database size and you will have a new copy of the database once this is finished.
  5. Run the migration tool again and register the newly created DB as an individual database and start the migration.

This is all, your migration should start without any issue.. Check the feeders and make sure everything is working fine..

Let me know if you got stuck anywhere,

Happy Migrating Folks!


How to connect to a Google k8 mongodb ReplicaSet to robomongo on Ubuntu 17.04/17.10

Hey folks, this is an incident I came across where I wanted to connect to one of our k8 application DB to robomongo client. It was bit of a ride so I thought of keeping a track.

How to install robomongo on Ubuntu 17.04/17.10

  1. Download robomongo from official site.
  2. Rename the downloaded archive to robo3t.tar.gz
  3. Extract the archive to a preferred folder with below command,
    tar -xvzf robo3t.tar.gz
  4. Create a new folder and put the extracted robomongo folder to it.
  5. Create another folder as robomongo-backup.
  6. drive into the robomongo/lib and move below two files to robomongo-backup folder.
  7. Drive into the robomongo/bin folder and run robo3t file and make sure the application running.

Connect the Kubernetes ReplicaSet to robomongo

Before starting, make sure you have installed Google Cloud SDK on your computer and authenticated with your project correctly. Google Cloud SDK quickstart for Debian and Ubuntu

  1. Open the terminal and give following command with your project information,
    gcloud container clusters get-credentials –zone –project You can obtain the above command easy by logging into GCP Console Cluster section and clicking the Connect button on right side of the cluster.
  2. Once the kubectl command obtained an entry, type the below command to get the db pod name.
    kubectl get pods
  3. Above command will list down the running pods and notice the db pod name.
    eg: demo-mongodb-4312459532-l8ix7
    demo-xxxxxxxxxx-xxxx                       1/1            Running       0                       4h
    demo-mongodb-4312459532-l8ix7     1/1            Running       0                       54d
  4. Run the following command with above db pod name and it will open a proxy between the GCP ReplicaSet and the local host port.
    kubectl port-forward demo-mongodb-4312459532-l8ix7 27017:27017
  5. If the port forwarding is successful it will show you ‘Forwarding from -> 27017‘ notification in the terminal.
  6. Open the robomongo client as guided in the very first section and connect to the localhost via given 27017 port annnnd that’s it!!

Let me know your outcome in the comments below!.

May your coming year be filled with successful builds!


Windows Trusted Certificates Not Updating Issue

This is a quick note for anyone come across this issue with AD.

  • Go to Resultant Set of Policy option by typing rsop.exe in CMD
  • Drive into Computer Configurations > Windows Settings > Security Settings > Public Key Policies.
  • Open¬†Certificate Path Validation Settings,¬†
  • Go to Network Retrieval Tab and make sure it is set to ‘Automatically update certificates in the Microsoft Root Certificate Program(recommended)
  • If above screen is different from yours, then certainly the issue is this!. Open this exact setting on your AD controller and set it to automatic. or de-select custom policy definer.

Screenshot from 2017-11-06 16-18-47

I know this article is lacking lot of in detailed information but let me know if you any queries I’d happy to assist.


GCP : Recover Windows instance when RDP is not accessible

I have come across many incidents where GCP server RDP connections got interrupted due to different implementation conflicts. That’s where GCP startup scripts comes to play.

What it does is, host machine connects to the VM through serial port and pushes the startup script to the server on its boot.

Follow below steps in case you got caught up in above similar cases,

  • Open the GCP project.
  • Fire up CloudShell, enter below command with your script.
  • gcloud compute instances windows-instance-name –tags http-server \
    –metadata startup-script=’netsh advfirewall set allprofiles state off’
  • Restart the server.

Source 01 :

Source 02: “It’s possible that internal firewall of Windows Server is blocking the non-standard port that you configured for RDP service. Did you try turning off Windows firewall to verify if this is the cause of issue? To turn off internal firewall, you can setup a¬†startup script on your Windows machine¬†and then reboot the VM. For example, add¬†windows-startup-script-cmd¬†custom metadata key with value of¬†netsh advfirewall set allprofiles state off¬†¬†to your VM and then reset the machine. Startup script will run and turn off Windows firewall. At this point you can try connecting to your Windows machine through RDP to verify if the internal firewall was blocking the RDP connection.

Also, I’d like to ask if Remote Desktop Services role is installed on the Windows server or you were using the regular Remote Desktop Service that comes as default with a fresh Windows server?
Please let me know if you have any further questions and I’ll be glad to assist you on troubleshooting this issue.”

Blog at

Up ↑