That sounds like a major task. The first thing to do with any complex problem like this is to break it down into simpler things. The first step there would seem to be to break this down into installing the various kinds of things you need to install locally and the second problem, how to do it remotely. Get your installation technology to work, then your remoting technology, then combine them. Good luck :)
Nothing is exactly what it seems but everything with seems can be unpicked.