Move the lower pivot point to a position directly underneath the upper pivot point and L2 distance from it. Then you will have a simple four-bar linkage. The moving bar will remain in a vertical orientation throughout its entire path. That path will be circular, but its orientation will remain vertical.
True linear motion is almost impossible using nothing but fixed joints and rotating linkages.