Since you have installed Linux with raspberry pi, you can look into installing the supervised version of HA. Its mostly simple and should work with any Debian Linux just follow this guide.
With this, you will install HA in docker. As a tip I recommend you to not do this through SSH as there some packages that will terminate your network connection. Please try this process after you connect the monitor and keyboard to the pi. It would be more stable.