The wiki page you linked earlier should allow you to log into the web console. You might have to reboot he FOG server after you reset the password in the database because of the way FOG cache’s recent activity.
https://wiki.fogproject.org/wiki/index.php?title=Reset_WebUI_FOG_password
From the wiki this command should do it for you.
UPDATE users SET uPass = MD5('password') WHERE uName = 'fog'; exit;I do have to say FOG 1.2.0 running on ubuntu 12.04 is really old. Unless you really need access to the images stored on that server, I (personally) would just spin up a new FOG server using a current build. FOG 1.2.0 doesn’t support win10, uefi firmware, nvme disks, or current hardware. If you need the images from the FOG 1.2.0 server you can copy them over to a new fog server and use them.