That's a pretty old system, I'd probably look to replace it.
If you don't need the bleeding edge, I'd recommend something like this: i3-8100 (You pay a bit more for the processor, but don't need as expensive RAM in return to get the best performance to price), 8GB of DDR4 2400 RAM, that 1050Ti is a solid card, and a 450W PSU from a reputable brand.
Example build:
https://pcpartpicker.com/list/n2s8J8
If you want to re-use the old case that saves some more money, and there are cheaper motherboards, I just picked one with some ratings and reviews that seemed positive overall (the others didn't have any, but are certainly viable options if you care to take the risk).
You can technically run Windows for free without too much of a hassle, so that's an option - though not one I'd personally use.