I just give the simple and core points as following:
1) Firstly you need to register a free vps at Amazon AWS.
2) sudo ufw allow 14265/udp
3) set the security group from the aws web, add udp 14265 and tcp 14265 port for all incoming.
4) Download the headless iota client iota-1.o-minus1.jar and run it.
nohup java -jar iota.jar &