[HOWTO] Play/Share Minecraft with friends without buying in Ubuntu 16.04

Me and my friends were trying to play some Minecraft on our free time, but the problem is that we all didn’t had Minecraft bought. Two of us had it bought but other four still wanted to play. So, I have to look for some sort of solution so everyone can enjoy the game. We mostly work on Ubuntu so all had same platform. This version of solution shall work on Windows and MacOS. Windows version of Minecraft were easily available to download but hard to find on other platforms.
At first, I tried to copy the working version from my PC to friend’s. On Ubuntu the folder of working copy is available on ~/.minecraft i.e. Home > .minecraft folder that is hidden. After that I checked the content inside the folder. The content that looks valid and need a change was only launcher_profiles.json.