Hope you are doing great.
Please have a look on the attached document for your reference.
Here is the PDF by Hortonworks so you can easily install the same.
For Linux machine, please download Oracle Virtual box for Linux then we can easily load the Sandbox VM on the same.
Link : http://docs.hortonworks.com/HDPDocuments/Ambari-22.214.171.124/bk_using_Ambari_book/content/ambari-chap1.html
Link : https://hortonworks.com/wp-content/uploads/2013/03/InstallingHortonworksSandboxonWindowsUsingVMwarePlayerv2.pdf
Link : http://hortonworks.com/wp-content/uploads/unversioned/pdfs/InstallingHortonworksSandbox2onWindowsusingVB.pdf
Please try the installation and let us know if you have any issue so we can help you out.