I'm on my phone so I can't give you the links but it s very easy to Google them.
1) go to the HTC developer website to download the android sdk and follow the steps from the website to unlock the bootloader. Please note that you need to add ./ in front of all commands in osx. So, for example...