To get the mind free of the material world’s trappings,
I would say the only way is to live in the midst of it. Get guidance from one’s teacher and work towards handling it.
Come to terms with the world so that one may transcend it at the proper time.