The easiest way to do it, assuming that you are using level scope mounts, is to put the rifle in a vise, or other means of safely securing it, and use a standard level on your scope bases to level the rifle. Then attach your scope and tighten the rings. Then place the same level on top of the adjustment turret cap and tighten/loosen the screws on the rings until it is level. Now turn the rifle sideways so that the bolt knob is up, place the level on a flat part of the rifle, level it, and clamp it down. Place the level on the cap on the other adjustment turret and adjust screws until it is level. It is very time consuming, and you have to be careful not to scratch the rifle with whatever type of clamp or rest you intend to use. However, if you do it right it should get you in the ball park.
Now to bore sight the rifle, take the bolt out and rest it securely on a stand or some sand bags. Look down the bore, making sure to center your eye on the bore. It should be fairly easy to tell if you are looking at it dead straight. Line up the rifle so that a target is centered in the bore. Being careful not to move the rifle, look through the scope and adjust the cross hairs to the center of that target. It won't be perfect, but for me it works just as well as a professional bore sight. It will get you on paper. And it is free. Hope this helps.