If you have a PS4 on the correct firmware, it can run Linux, below are various articles to help you to achieve his:

 

el2lQnP.jpg

 

Hack The PS4 – Status for End Users

PS4 Hack: Tools and resources if you want to hack your PS4 today

[PS4] CTurt Publishes New Overview to booting Linux and more…