When you say out of shape and sedentary, not sure how bad it is. If you have health issues, consult with a doctor. Otherwise, just ride enough every day and you'll get in shape. Sorry if it sounds obvious and simplistic, but there is no real mystery about getting fit.