A sexual deviant who preyed on children for almost half a century has been handed a life sentence with at least seven years behind bars.