[1]: create a script
sudo mcedit /etc/init.d/lampp
#!/bin/bash
/opt/lampp/lampp start
[2]: add my script to startup list
sudo update-rc.d lampp defaults
[3]: I have to make this file executable
sudo chmod +x /etc/init.d/lampp
[4]: reboot and enjoy
sudo reboot