Default Stuck in recovery loop return to stock on linux

I have got into a recovery loop and need to flash the stock rom. I see a way that you can with windows with lgtools but how would i do it on linux? I tried running lg tools in wine but it just comes up and says something like invalid dll. I can adb my phone it works and comes up recovery. Just need help getting the phone unbricked in linux.