How to attach a potentiometer to a servo motor shaft

Then the previous comment about knowing the position because the Servo command takes a position argument does not apply.