Even how could he even start the trading without access to the internet and so i think he doesn't need to entirely stay away from gambling or the internet like you are saying but face the problem head-on by engaging friends and if possible a psychologist and even former gamblers
if he have strong passion to change from gambler to trader then i am sure that he can found a way out from his problem especially if he have another person like other family, girlfriend, best friend to help him. i know it will be hard for him to start a new habit but he need to try and asked his self so he can do it without having a problem. i am sure that he can do it because we want to change from gambling to trading.