Here are the steps to make the xampp auto start in linux.
Open the ‘Terminal’ and Login as a root user.
Now type the command
$sudo gedit /etc/rc.local
it will open the file in a editor and add the following lines in the last line of the file.