install a lamp server on ubuntu

Reading Time: < 1 minute

Easy!

sudo apt-get install lamp-server^

Be careful not to delete the ^ character.

This will install: 

Modify the session timeout in phpmyadmin

Reading Time: < 1 minute

Login and re-login and re-re-login in phpmyadmin is a huge pain.

Here is the way to extend sessions duration.

Open the file config.inc.php in /usr/share/phpmyadmin or in /etc/phpmyadmin

Add the following line:

$cfg['LoginCookieValidity']=86400;

And in php.ini, modify the following line:

session.gc_maxlifetime = 86400

Restart apache.

apache2ctl restart

You now have 24h sessions.

Assign a fix MAC address to a vmware network interface

Reading Time: < 1 minute

MAC addresses are assigned at the bootup of a virtual machine. But there is a way to assign a fix hardware address to a vmware network interface by editing the virtual machine with Vi.

Simply connect with SSH to your ESXi and go to /vnfs/datastore1 or anywhere you put your vm.

If your virtual machine is called vm1, go to /vmfs/datastore1/vm1

Open the file vm1.vmx using Vi.

Around the end of the file there will be the configuration of the network interfaces.

You should see things like:

Qutub Minar

Reading Time: 4 minutes

Indians seem to be very proud of Qutub Minar. It is a nice sight to visit, no too crowded even on a Saturday afternoon.

As usual when it is available I decided to hire an audio guide. Audio guides will give you only advantages.

First no pseudo fake official guide is going to annoy you and try to get your money in exchange of dodgy historical facts…

Second the information you receive is probably accurate. It probably doesn’t work in every country but I think I can trust India for not trying to change History.