mrinalraj

Social and Technical Blogger

Scenario

Folks! Have you ever wondered how to create a URL that always points to your router, even when its public IP address changes? It might sound complex and costly, but it's actually free!

Concept

This involves setting up Dynamic DNS (DDNS).

What you need

  1. A Wi-Fi Router supporting NO-IP as DDNS
  2. An account on NO-IP website

Steps for creating hostname in NO IP:

  1. Login to NO-IP website. Make sure to avoid use of special character in the password.
  2. Create a hostname.
  3. We are Done!!!

Steps for configuring DDNS in router:

  1. Login to your router with credentials.
  2. Navigate to DDNS which would possibly under Internet tab.
  3. Configuring DDNS. 3.1 Keep WAN Connection as 'auto'. 3.2 Provider: 'No-IP' 3.3 Username: 3.4 Password: 3.5 Hostname: Give the newly created hostname
  4. We are Done!!!

Testing

Reboot your router and verify if NO IP website is showing the recent router's public IP.

Result

Now every time your router public IP changes it would reflect the recent IP on the website.

Usage

NO-IP provides a free DDNS hostname that can be used in projects instead of the router's public IP address. Simply confirm the renewal email after 30 days.

Thank you !!! Follow Mrinal

Scenario

Imagine wanting to stream video from a device behind your home router to your personal phone over the internet. This may sound like a complex task, but with port forwarding, it's simpler than you think.

What you need:

  1. A Wi-Fi Router
  2. A computer displaying the video feed connected to the Wi-Fi router
  3. A VNC viewer on your remote mobile device

The Solution:

Port forwarding is the secret sauce that makes this setup seamless. Here's how you can do it:

Steps:

Router –> Computer –> Display | Internet –> Mobile –> VNC

  1. Lets Visualize the network diagram as above.
  2. Be physically near your router.
  3. Login your Wi-Fi router with credentials.
  4. Navigate to Port Forwarding section. It must be in the Security section.
  5. Set the Port forwarding rules 5.1. Service Name: Give the port forwarding rule a descriptive name. 5.2. Port Range: Specify the range of ports you want to forward (e.g., 5900- 5901 for a single port). 5.3. Local IP Address: Enter the IP address of the device on your local network that you want to forward the ports to. Refer my previous post on How to make a connected device static. 5.4. Protocol: Select the protocol for the port forwarding rule (TCP, UDP, or both). 5.5 Keep WAN HOST IP as 0.0.0.0

We are done here!!! See its that simple. Lets now test it over is my port open? website.

On Personal Mobile over Internet

  1. Install VNC over mobile phone
  2. Enter the router public IP followed by port number eg. 24.57.121.123:5900
  3. Suppose you don't have a router public IP address handy you can get it from what's my IP address? website.
  4. Above IP means that in the router public IP, connect to device at port 5900
  5. Enter credentials and we are done!!!

Limitation

  1. Since your router IP changes after reboot. Refer my previous post on How to get free url for Router's public IPs
  2. If the local device streaming feed is not static. It me loose the IP after device restart. Making device static is better solution. Refer my previous post on How to make a connected device static.

Thank you !!! Follow Mrinal

Scenario

I recently needed to establish a static IP for my Python project to facilitate SSH access. The issue I faced was that DHCP kept assigning a new IP every time my system rebooted.

I discovered that we can set the IP address to be static, and the steps for doing so are outlined below:

About:

dhcpcd.conf:

Location: /etc/dhcpcd.conf Usage: DHCP client daemon is used towards the client side to configure the interfaces.

while

dhcpd.conf

Location: /etc/dhcp/dhcpd.conf Usage: It acts as server for dynamically assigning IPs to devices in the network

Step 0: Setup dhcpcd:

Install: sudo apt-get install dhcpcd Enable: sudo systemctl enable dhcpcd sudo systemctl start dhcpcd Verify: sudo systemctl status dhcpcd

Step 1: Open the dhcpcd.conf file

sudo nano /etc/dhcpcd.conf

If your project uses Wi-Fi, proceed with the following steps; otherwise, replace the interface name accordingly. interface wlan0 static ip_address=your_desired_static_ip/24 static routers=your_router_ip static domain_name_servers=your_dns_server_ip or interface wlan0 static ip_address=your_desired_static_ip/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1 8.8.8.8

Replace “your_desired_static_ip”, “your_router_ip”, and “your_dns_server_ip” with the appropriate values for your network. Ensure you choose an IP address that is not already in use on your network.

How to get router ip: Refer whats my ip address?

How to get the dns server: On terminal do nslookup google.com

Note: you need to have package 'dnsutils' installed. (sudo apt-get install dnsutils)

Step 2: Restart the dhcp service

sudo service dhcpcd restart or do sudo reboot

Scenario

I recently wanted my Python program to execute right after the system boots up. I discovered several options to achieve this, eliminating the need for manual intervention to run the program.

Option 1: Editing through Crontab

  1. Open a terminal with elevated privileges: sudo su -
  2. Edit the crontab configuration: crontab -e
  3. Add the following command to start the Python program (assuming you want to run it on a Raspberry Pi terminal): ```bash
  4. @reboot /usr/bin/python3 /path/to/your/script.py

Option 2: Editing through services using systemd

  • Create a script, name it as “myscript.sh”
  • Make the script executable: chmod +x myscript.sh
  • Navigate to the systemd directory: cd /etc/systemd/system/
  • Create a service file named “myscript.service” inside the systemd directory.
  • And below lines using nano myscript.sh
Description=My Script

[Service]
ExecStart=/path/to/myscript.sh
WorkingDirectory=/path/to/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=<replace_username>

[Install]
WantedBy=multi-user.target
  • Reload systemd: sudo systemctl daemon-reload
  • Enable the service: sudo systemctl enable myscript.service
  • Start the service: sudo systemctl start myscript.service
  • To check the service status: sudo systemctl status myscript.service

Option 3: Autostart using lxsession

  • Edit the autostart configuration file: nano ~/.config/lxsession/LXDE-pi/autostart
  • Add the following line to automatically start the Python script: @lxterminal -e python3 /path/to/your/script.py
  • Save the file and initiate a system reboot: sudo reboot

धर्मो रक्षति रक्षितः जो लोग ’धर्म’ की रक्षा करते हैं, उनकी रक्षा स्वयं हो जाती है। means the Dharma protects those who protect it. Here, Dharma means the righteous path.

The entire Ramayana carved out of a mountainside, Ellora Caves, India

Namaskaram, look at the India that is Bharat, proudly standing with its ancient civilization.

What is going on in Bharat?

You see, from ancient times, we have been celebrating Diwali around November by lighting up with Diyas to welcome the arrival of Lord Vishnu's twenty-fourth incarnation, Maryada Purushottam Shri Ram. So, lighting up with diyas is to showcase the arrival of the path for Prabhu Shree Ram after mankind's victory over evil, thereby establishing Dharma(that is, the righteous path). This is different from the traditional Deepawali celebration.

But how this Jan 22nd is different?

You see after the historical judgment passed by the Supreme Court of India in 2019, which started in 1986 that is after 37 years long legal battle and 500 years wait, Lord Ram's child incarnation will be established in his birthplace, Ayodhya by January 22, 2024. It symbolizes the return of Shri Ram back to his birthplace. This January 22nd, a highly knowledgeable saint will perform Pran Pratishthanam.

So now, what does Pran Pratishthanam mean?

Pran Pratishthanam means to connect with the godly vibe of the Maryada Purushottam Shri Ram and to breathe life into the shaligram stone which arrived from Nepal, so again the Ayodhya diplomacy comes into the picture.

The Uncertainty and Turbulence of 500 Years.

What was uncertainty and Turbulence? Though there was uncertainty and turbulence for 500 years after the destruction, the people of Bharat/World didn't lose hope and continued their contribution with labor/money/by sending granite stones from various places which would be later utilized for the reconstruction of the holy place.

Ram Rajya and Ayodhya Diplomacy

Continuing with the above point I am making; the entire people of India & the World are contributing by some means and are feeling connected to the land of Ayodhya. * Mauritus announced 2 hours leave. * Nepal sending more than 3000 gifts. and many more incoming.

Conclusion

Rejuvenation of the ancient civilization sometimes helps us understand ourselves. When the path in front of us seems blurry then it acts as the guiding principle for us to continue the path of Dharma (this is the correct path)

References:

Follow Mrinal

By God's grace, India amounts to 30% of the world's Thorium reserve.

So, India is working on something amazing, India's first large-scale fast breeder reactor, going to be completed by Dec 2024 in Kalpakkam. Hence making it India's only Thorium-based nuclear plant.

Why Thorium?

Thorium is a light silver metal substance used as fuel in Advanced heavy-water reactors.

Once Homie J. Bhabha stated the fact that:

The total reserves of Thorium in India amount to over 500,000 tons in the readily extractable form, while the known reserves of uranium are less than a tenth of this. The aim of a long-range atomic power program in India must therefore be to base the nuclear power generation as soon as possible on thorium rather than uranium...

This reserve is so enormous that it will make India self-sufficient in energy so much so that it is believed to fuel India's growing energy demand for 10,000 to 60,000 years.

Thorium vs Uranium

Traditional Uranium 235 is best due to its simple series for a nuclear chain reaction, but it makes only one-tenth of what India has as Thorium reserve.

So, for the longer run, we need to look for Thorium as fuel.

The good news is that thorium can be converted into fissile Uranium 233 which is close to Uranium 235, when it's exposed to a series of reactions with neutrons.

Hence Thorium is a very good alternative to rare earth traditional Uranium 235.

Challenge

India is racing against the cost of exposing Thorium fuel to neutrons compared to easy traditional Uranium 235.

Why Thorium and India are in the news?

By December 2024 India's first Thorium-based nuclear reactor, named Kamini will be operational in Kalpakkam, Tamil Nadu.

It is going to be a hybrid nuclear plant that is designed to work on both traditional PFBR (Prototype Fast Breeder Reactor) which uses Uranium 235 and Thorium AHWR (Advanced Heavy Water Reactor)

References:

Scenario

We proudly remember the importance of Gandhiji's role in Bihar's Champaran. Not only farmers received partial relief from the Tyrant British law but also made Gandhiji in realizing the grand dream of taking people in India's quest for Freedom using Non-Violence as a tool.

It was during the British Colonial period of 1917. Farmers were craving individual rights to choose what to produce on the rented lands from landlords. Britishers colluded with these greedy Landlords and Nawabs forcing Famers to indigo production as a condition to get the necessary financial loan while purchasing them at a throwaway price. Bihar farmer's life became a mere joke. Everybody felt the pain. All that needed was a little push.

Task

Seeing the Bihar farmers' deteriorating condition, a moneylender, Raj Kumar Shukla persuaded Gandhiji to come and understand the plight of farmers.

Action

On seeing Gandhiji's survey of farmers' plight, British Raj was very cautious about Developments.

British Raj tried all possible tricks to trap him under chains of court. But it acted as a catalyst and the news fell out in nearby villages.

Gandhiji started the Champaran Satyagraha. Soon this started getting attention. British Raj felt the pressure to stop public awareness from spreading like wildfire and get it sorted out soon.

Result

Finally, the deal with farmers was successful. Not only farmers got the raise but also Champaran Satyagrah proved to be the booming ground for Non-Violence. It was for the first time Gandhiji felt the importance of Non-Violence that if exercised by society can become a possible part of India's Independence.

Most probably, you have faced/ heard about the recent Facebook outage. Do you know Cisco Thousand Eyes pinpointed the issue – “Facebook Internal DNS unreachability”

How are Cisco Thousand Eyes able to do it? To explain broadly, it all happens with Agents known as Vintage Points.

  1. External Vantage Points: In these agents, are distributed globally like a public agent.
  2. Internal Vantage Points: Agents are monitoring the enterprise contribute to internal Vantage Points.
  3. End-User Experience: These agents understand the employees and customer experience.

So all these agents cover almost all possible sectors hence are responsible for accurately identifying the issue.

Why Cisco ThousandEyes? To explain the need for Cisco ThousandEyes there is a need to understand the current problem. In the past company relied only on its enterprise Syslog and SNMP protocols to identify and troubleshoot the issues. In this way, the reporting of issues became reactive rather than proactively informing the customer. i.e. customer first used to report the outage then the service provider identifies and troubleshoots it. But this gap is now solved using Cisco ThousandEyes by proactively identifying and troubleshooting before the issue is notifiable to the customer.

Isn't it exciting? Yes, it is.

Here are a few articles related to Cisco ThousandEyes I find useful 1. Link to Issue Reported 2. Link to Complete Analysis of the issue

Next Coming: How Cisco ThousandEyes helping in revolutionizing maintaining high uptime.

According to wiki “ Cloud computing is the on-demand availability of computer system resources, especially data storage (cloud storage) and computing power, without direct active management by the user”

Benefits it has brought

With the benefits of Iaas(Infrastructure as a Service) , Paas(Product as a Service) we can now use the service on the go without any headache of maintenance of the facility.

The Difference

Differnces

Today I am very much excited to share with you my first song video on the Dgplug platform via YouTube 'Zara Zara'.

Do you know what gives more satisfaction in life? Is it academics or getting an engineering degree? ;D Mostly it is Nurturing your skills and finding a platform to present yourself.

For me publishing my song gives me more satisfaction. In the end, when the time will come to retire it will not be the CGPAs but the risky path in chasing your passion and the crazy things we did with friends that will keep us smiling :)