How to compile and run ue4 dedicated server on clean ubuntu server?

I want to run a ue4 dedicated server on ubuntu server, but I can’t find exact instructions. All instructions are either for services like “game lift” or are “legacy”.