CyberKeeda In Social Media

Host your website or application on Internet using ngrok.


Ngrok, yet another ultimate free open source and cross-platform reverse proxy server for exposing local servers behind NATs and firewalls Internet over secure tunnels. 

It essentially establishes secure tunnels to your local hosted server that allows us to run demos of web sites before actual deployment, testing mobile apps connected to your locally running backend and building web-hook consumers on your development machine.

Use Case : Are you looking for a ready to go and secure solution to showcase your website or application which is behind NAT gateways or firewall to public facing internet, Ngrok is the way to go ahead.

Lets know, how to install, configure and use it.


Installation is pretty much simple and straight, download , unzip and yes you are done.

[root@CKcentos01x ~]# mkdir /usr/local/ngrok

[root@CKcentos01x ~]# cd /usr/local/ngrok

[root@CKcentos01x ~]# wget -c

[root@CKcentos01x ~]# unzip

And yes you are done, we are ready to use it.

Lab setup : We have our demo website hosted within our local virtual machine behind NAT network with an IP of

We will access the website from Internet after application of ngrok.

Here is how our website looks like.

Now using ngrok, we will host the same website using ngrok's secure tunnel on internet.

Note : Our website is hosted on Apache Webserver on port 80

[root@CKcentos01x ~]# cd /usr/local/ngrok
[root@CKcentos01x ~]# ./ngrok http 80

Our server has been hosted using ngrok secure tunnel, we can access using any of forwarding URL provided by ngrok.

One easy way to inspect the traffic is using the ngrok UI, let's access it.


We can access it from our local host only and use any one of the URL to access our demo website from internet.

Even we can use ngrok to see stats too.

I hope ngrok's above guide looks informative to you, do comment !
Read more ...

Dell: How to get the DRAC IP address from the installed localhost


The exceptionally One need to install srvadmin package to run racadm cli commands to use it further.

Once installed, we can use below command to find IP address details for IDRAC from installed base operating system.

root#  racadm getniccfg
NIC Enabled = 1
DHCP Enabled = 0
IP Address =
Subnet Mask =
Gateway =

Here IP address resembles to the configured IDRAC IP, use it to access installed server remotely.
Read more ...

An introduction to Dashing and Smashing dashboard frameworks


The exceptionally handsome dashboard framework in Ruby and Coffeescript.

You can go through the slide to have a intro about it.

Read more ...

S3cmd - A faster way for AWS S3 Operations.


A very faster and reliable CLI tool for AWS object storage (S3) operations.

So this tutorial is just a walk through to
  • How to install s3cmd
  • How to configure S3cmd
  • Basic operations copy, move, list.

  • AWS Console access.
  • API Token for same account.
  • PIP is installed within Windows system to install python packages


For Windows
pip install s3cmd
For Linux
sudo apt-get install s3cmd -y


Before we proceed to run cli commands, let configure s3cmd configuration file to authenticate.

For Linux -
Toggle to home directory of your account.

# cd ~
Create an empty hidden file named as .s3cfg

# touch .s3cfg
Add the below lines and add your own access_key and secret_key and save.


# Login credentials
secret_key = 1DwMYownAccessSecretKeyoOV8

Now we are ready to do s3 operations using s3cmd cli, all cli commands are same for windows and linux operating systems.

Object Storage operations.

  • List content of your S3 Bucket.
# s3cmd ls s3://<Your AWS Bucket Name/
  • Create an new Bucket
# s3cmd mb s3://my_own_s3_newbucket/
  • Uploading content within a Bucket.
# s3cmd put myfile1.txt myimage.jpg s3://my_own_s3_newbucket/
    • Download content from Bucket.
    # s3cmd get s3://my_own_s3_newbucket/myimage.jpg myimage.jpg
    • Remove and existing Bucket
    # s3cmd rb s3://my_own_s3_newbucket/
      • Move content of one bucket(Source) to another(Destination).
      # s3cmd mv --recursive s3://failed/ s3://old_failed/

      Read more ...

      Ubuntu 18.04 Error : We cannot detect a running copy of GNOME on this system.

      You might be trying to install GNOME-Shell Extension from browser and got an error like "We cannot detect a running copy of GNOME on this system, so some parts of the interface may be disabled"

      Fix : Install GNOME Shell Integration plugin

      How to install it, lets follow the below steps.

      For Chrome :

      • Chrome Web Store --> Search for "Gnome shell integration" --> Add to Chrome
      • Open Terminal and install chrome-gnome-shell

      sudo apt-get install chrome-gnome-shell
      • Restart Browser and try to install additional Gnome extensions.

      For Firefox :
      • Firefox Add On --> Search for "Gnome shell integration" --> Add to Firefox --> Followup the instructions asked by Firefox to add it.

      • Restart Browser and try to install additional Gnome extensions.

      Read more ...

      Creating Random password generator using AWS Lambda Function

      AWS Lambda

      AWS Lambda is an serverless computing platform served by Amazon  Amazon Web Services. It is a PAAS computing service that runs code in response to events and automatically manages the computing resources required by that code.

      So this tutorial is just a walk through to
      • How to run your python code from AWS Lambda
      • How to make use of AWS lambda to create tiny python application
      • Python based random strong password generator hosted on AWS Lambda.
      • How to create AWS Lambda Function for Python

      Let's begin.
      In order to run python code from Lambda function, the first thing we do is to create a Handler within Lambda function, which will trigger the ineer python function using event and context

      A basic lambda function handler looks like the below code.

      def handler_name(event, context): 
          return some_value

      Now let's focus on the above code.

      • handler_name : type (String ) It could be anything, but there is great use of it further.
      • event : type (dictionary) It's the way through which we can feed variable to our inner python code/programme.
      • context : In simple terms it will be used for the logging and debugging purpose.
      Above things are just theory, i'm quite sure once i let you know how to run our python code using above defined parameters, you will use it then further for you.

      Lets toggle down to Lambda Service from AWS Console and create a function.

      Services --> Compute --> Lambda --> Functions --> Create Function

      Select Author from Scratch and proceed to fill the basic information for your new lambda function and then click on create function.

      Function name : Enter a name that describes the purpose of your function, it must be anything.
      Here i will be creating a lambda function to generate random password, hence we will name it as "Password_Generator"

      Run time : Choose your desired language, we will  python 3.7 here.

      Permissions : Lambda function need appropriate IAM role to run, for now choose option "Create a new role with basic lambda permissions"

      Permissions --> Choose or create execution role --> Create a new role with basic lambda permissions --> Create Function

      Once function created, it will redirect into the below looking page.

      Scroll down to section "Function code" and let's paste our python code within the lambda handler function.

      from random import choice
      def lambda_handler(event, context):
          # TODO implement
          def Gen_Strong_Pass(pass_len,pass_no):
              for i in range(pass_no):
                  if i == 0:
                      print('Here are your', cast_pass_no, 'random', cast_pass_len, 'digit tpasswords ! \n')
                  for j in range(cast_pass_len):

      The top most mandatory function "lambda_handler" can be replaced by anything, and the same must be entered within Handler, inlined to the next text after lambda_function
      as to look like lambda_function.lambda_handler

      For example, if we want to name our function lambda_handler as my_lambda_handler.

      Handler on the top box must be replaced by lambda_function.my_lambda_handler

      We are ready now lets scroll up to "Configure test events"  and add our events, what is events ? a way to define variables using python dictionary... more is written on top.

      Now let's replace Event name and the key-value pairs by our own inputs.

      Event name : We will name it as "Generate8digit3password" and paste the required key value pairs by our own.

      You might be wondering why this key value pair and where it would be used !

      Events defined within test events can be called within lambda function as
      event['name_of_your_key']  as we defined two key-values as pass_len and pass_no
      let's look into our code and the red boxes will give you the idea, where the event values are called.

      Once Test event is created, it will be visible under test events drop down.

      Now, we are ready  !

      Go back to your function "Password_Generator" choose from your recent saved test events.
      and click on test.

      Once completed, expand logs to look into log output to see code output as below.

      Conclusion : We have created a simple password generator using python, deployed it into AWS PASS services named as Lambda.
      We got a run time infrastructure without any setup.

      Tip : You can save more test events like, 9 digit, 16 digit password generator and use it as per your requirements.

      Read more ...
      Related Posts Plugin for WordPress, Blogger...
      Designed By Jackuna