I have a 9th generation Celeron mini pc and I want to leave it on 24/7 to serve as a personal server.

My main goal is to be able to keep running scripts I make in python (I’m studying computer science), create a personal VPN and also be able to manage some files, put or remove movies to use in something called “plex”.

What would be the best operating system to do this?

Important detail, I’m going to keep this mini PC in my house, but I’m going to live abroad for a few months, so remote access would be a fundamental part.

PS: I have 0 experience in home servers.