Refer to the link below
Install Intel Realsense D435i driver and ROS package under Ubuntu20.04LTS - Programmer Sought