Before attempting to install Replicant, you need to backup everything you can from the device as most of the data will be erased during the installation.
You can skip this step if you have no data you want to keep.
To install the Replicant recovery, follow the instructions on the Recovery installation with Heimdall wiki page.
Once this is done, you will need to do a factory reset.
To do a Factory reset, you need to be in the recovery.
1. Select Factory reset
2. Select Wipe data (keep media)
3. It will ask you to confirm the wipe, so you will need to select Yes to confirm it.
4. Press the back key to get back to the general menu
Once the factory reset is done, you can then reboot the device.
In the recovery:
1. Select Reboot system now to reboot the device
2. Your device now has Replicant installed!