I know there are elasticsearch dockers I could pull but I'm trying to understand so I'm starting from scratch. I'm in Ubuntu Mate 17.04.
To be even more annoying, I want to avoid installing as a service because that route is fraught with issues -- so because apt install ES as service I have to install from the tarball.
Quite happy with that. I like simple.
On starting I get that old chestnut ...
max virtual memory areas vm.max_map_count  is too low, increase to at least [262144
The only instruction I can find is to use sysctl which as I understand is a service setting, and indeed I find that setting the vm.max_map_count using sysctl has no effect.
So ! What do I do?
I'm open to being told I'm really off track with this, but if so please point me to the right track.