So what's the proper procedure for rebarrel? what part needs to be fitted(machined?)
-remove the old barrel. Proper tools needed.
-clean the threads, both receiver and new barrel. Inspect the receiver and barrel. Cross your fingers, and screw in the new barrel. If the stars are aligned, the barrel might pull up hand tight about 15-20 degrees from the sights being top dead center.
-if the barrel turns in, close to or past index, you might be able to upset the shoulder so that the barrel will pull up tight when torqued in. Or a shim could be fitted, or the barrel shoulder machined back and a breeching washer installed.
-if the barrel is too far from index, the barrel can be machined back to allow the barrel to pull up to index when torqued in.
-the barrel needs to be seated firmly. Spec for a No. 4 was 120 ft.-lbs. You don't need that much, but the barrel does need to be firmly turned to index. You don't want it wobbling or coming loose.
-OK, the barrel is installed. Once again, cross your fingers and try the bolt. Ideally, the bolt will close easily on a GO gauge, and either not close, or makes contact on the NO GO. Maybe you will get lucky. If not, you are going to have to start playing with boltheads.
You will need a receiver wrench and barrel vise. These are not cheap if you buy commercial ones. They can also be made. But don't try some jack leg improvised setup - too much risk of damage.
It is not rocket science, but it has to be done properly.