It is important to take sufficient pain medication to allow to participate in the rehabilitation exercises.
Do your post-op exercises as instructed by your physical therapist.
Balance rest and activity, especially until some restrictions are lifted by your doctor.
Follow doctor's orders. If you are told to do something, there is a sound reason for it.