Also a stepper motor turning a threaded rod material and nut type travelers can make for a low cost, high torque, long linear travel actuator. You can use limit switches at both desired end of travel positions or just a home position switch and use open loop software to determine desired travel (count steps).
Lefty