Sometimes in ubuntu, rc.local does not execute , specially in fresh installation.
So if you encounter this issue , you can solve it by using two methods.
I have used these methods several time with success. Also make sure you command entries are above ‘exit 0‘ line
Method # 1 , By Using WEBMIN
Method # 2 , By Removing -e from /etc/rc.loacl file
Method # 1 , By Using WEBMIN
Install webmin from http://www.webmin.com/deb.html
After installati0n is done, open webmin and goto
SYSTEM > BOOTUP & SHUTDOWN
Scroll down and and Click on rc.local
Select YES on Start at boot time?
As shown in the image below.
Method # 2 , By Removing -e from /etc/rc.loacl file
Edit rc.local file by
nano /etc/rc.local
at first line remove -e for example
Change from
#!/bin/sh -e
to
#!/bin/sh
Save & Exit, then Reboot and see, hopefully rc.local will execute on the boot.


