MyThinkPond

On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

Archive for November 5th, 2016

How to sync your date when you restore a VirtualBox snapshot?

Posted by Venkatt Guhesan on November 5, 2016

hypervisor_logoThis article focuses on synchronizing/updating the clock in your guest linux VM after you restore a VirtualBox snapshot.

When you create a VirtualBox snapshot, it’s essentially a photo taken and frozen in time. All bits including the date and time are frozen to that instant. When you restore a snapshot, the Linux guest VM system is restored back to that snapshot including the date and time. This may not be desired all the time especially if the purpose is to restore the configuration and settings to an earlier time but your want to roll forward the clock on the VM to the present instance. The outlined steps below can also apply to other virtual hypervisors like Qemu, VMWare, Amazon S3 images, etc. (essentially where ever you may have a CentOS or Red Hat Linux Virtual instance and with slight modifications the same can be applied to any Linux guest hypervised image)

Below are a few simple steps you can take to reset the clock:

Steps to perform before you create a VirtualBox snapshot:

# Install ntp service 
yum -y install ntp
# Turn it on so that it starts up automatically on reboot
chkconfig ntpd on
# Point it to your nearest internet accessable NTP server available around the globe for time-services 
ntpdate pool.ntp.org
# Manually start it up and ensure that it comes up
service ntpd start

Now take a VirtualBox snapshot as needed.

When you restore a snapshot, do the following after the snapshot is restored:

# After snapshot restore, run 
ntpdate pool.ntp.org

That’s it! Your date & time should now be updated but all of the other settings and modifications you have done will be restored to it’s former glory!

What is NTP?
NTP stands for Network Time Protocol, and it is an Internet protocol used to synchronize the clocks of computers to some time reference.

Cheers!

Today’s Inspirational Quotes:

bust_of_marcusaureliusIf you are distressed by anything external, the pain is not due to the thing itself, but to your estimate of it; and this you have the power to revoke at any moment.

- Marcus Aurelius, Meditations

 

-AUM

Posted in CentOS 6.X, CentOS7, Hypervisior Images, Kernel, Linux | Tagged: , , , , , | 1 Comment »

Repost: Mapping the End of Malaria

Posted by Venkatt Guhesan on November 5, 2016

Mapping the End of Malaria by Bill Gates

endmalariacampaignThe article discusses two important points:

  1. How Malaria is putting mosquitoes as the #1 deadliest lifeform that kills humans? (Interestingly humans are the #2 lifeform that kills our own species) And what has/is being done to change this through the Gates Foundation in the developing countries. As well as the positive, measurable changes that can be seen from the last decade.
  2. Addresses a underlying issue on foreign aid. Does it work? And this point drives us close to home during this upcoming election in a few days as each American will cast a vote for the next president.

Here are some key points taken from Bill Gates’ blog [GatesNotes.com] on this article.

Malaria is the key reason mosquitoes are the deadliest animal in the world. Rigorous new data show that the malaria death rate in sub-Saharan Africa has declined by a stunning 57% since 2000. With almost 500,000 children still dying of malaria every year, we obviously have a long way to go. But cutting the death rate by more than half is a miracle. It’s one of the greatest success stories in the history of global health.

First, we’ll need new classes of drugs that completely clear malaria parasites from the body

Second, we need new tools that can prevent malaria transmission.

Today, this is no longer a lonely fight. More than 50 countries have joined together to mobilize billions of dollars through The Global Fund. …these resources are coming not just from wealthy countries. African countries such as Benin, Côte d’Ivoire, Kenya, Namibia, Nigeria, Senegal, South Africa, Togo, and Zimbabwe are contributing…In fact, African countries are now, for the first time ever, mobilizing more of their own resources for malaria than they’re receiving from donors.

So the next time you hear skeptics charging that foreign aid doesn’t work, point to malaria. Foreign assistance has not chased away local resources. On the contrary, it’s encouraged African nations to step up their own health efforts. And the results have been nothing short of remarkable.

Read the full article at

https://www.gatesnotes.com/Health/Mapping-the-End-of-Malaria

Cheers!

Today’s (two) Inspirational Quotes:

asokathegreat+ No society can prosper if it aims at making things easier-instead it should aim at making people stronger.
+ All men are my children. What I desire for my own children, and I desire their welfare and happiness both in this world and the next, that I desire for all men. You do not understand to what extent I desire this, and if some of you do understand, you do not understand the full extent of my desire.

- Asoka The Great (Indian Emperor waged a bitter destructive war, killed indiscriminately. In one of the battles, realized that war was not the means to the end but love for his people and all life (human or animals) is the real path. Reformed his empire on strength, love and peace. Became one the greatest emperors to rule major portions of India in a path of nonviolence.)

 

-AUM

Posted in General, In the News, Inspirational | Tagged: , , , | Leave a Comment »