I am totally done with Microsoft, Google, Facebook, Apple and Amazon. I want my independence back. How can I set this up myself without relying on the above mentioned service providers ?
By not asking anyone else to answer the question for you and actually doing it yourself, be independent.
Hear ye, hear ye! Junior developers you should listen to joenathanone and never ask more senior people! You should make us watch over your back everyday because of your silly hubris and for our fear of you delaying our project! Asking questions is stupid and for the feeble minded! Google is your only friend!
He is asking how he can completely replace Microsoft, Google, Facebook, Apple and Amazon. Ok start by making an OS (desktop & mobile), a social networking platform (make sure to get all your friends to join), mobile phone hardware and build some warehouses and stuff, once your done with all that ping me and I will give you the next steps. Ask a real question and I would be happy to give a real answer.
Think of it as "Microsoft, Google, Facebook, Apple and Amazon" vs. "the rest of us". There's no problem with asking other members of the community for help on self-hosting.
https://nextcloud.com is a free software alternative that's pretty mature and feature-rich. I've been using it for several years (it was originally owncloud) and it works great. Setting up backend storage to use S3 essentially gives you unlimited storage at very cheap prices.
OwnCloud (https://owncloud.org) does a pretty ok job for self-hosted file syncing.