I am using Ubuntu 14.04. I wrote a small script named trial. The contents of the script are as follows:
#!/bin/sh SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin sh -c firefox
I copied the script to
/etc/init.d, modified permission using
chmod +x trial and used
update-rc.d trial defaults. The file made link but when I rebooted the machine. It did not run firefox. I tried cron @reboot but with no success. I tried rc.local too again failure. I think something is wrong in my script. I am new to linux so can some one point out my mistake?