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 then need to wipe the existing system, cache and data partitions. This is to ensure that the partitions are formatted correctly.
To wipe the system partition, once you are in the recovery:
1. Select Advanced
2. Select Wipe system partition
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
To then wipe the cache and data partitions:
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 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!
Now that Replicant is installed, it's a good idea to do a backup of the EFS partition which has the modem data.
This way it would be way easier to restore it if it becomes corrupted (it can sometimes happen with Replicant).
To do a backup of the EFS, follow the instructions on the BackupTheEFS wiki page.