Star trackers, optical attitude sensors with high precision, are susceptible to space light from the Sun and the Earth albedo. Until now, research in this field has lacked systematic analysis. In this paper, we propose an installation orientation method for a star tracker onboard sun-synchronous-orbit spacecraft and analyze the space light distribution by transforming the complicated relative motion among the Sun, Earth, and the satellite to the body coordinate system of the satellite. Meanwhile