So, I got an older g5 iMac for free from my brother-in-law because it was acting up on him. When I first got it, it worked fine for me! But after a few months, it would just start shutting down randomly…and eventually it wouldn’t turn on at all.