Default Root & rom

hii friends plzzz tell how to root any device and after root how we install coustam rom for it...Tell me the Full procedure also tell me all software apps want it.....thanka in advance