How to Install Linux and run Steam on PlayStation 4
When the Sony PS3 was released, it was shipped with support for Linux installation on the console. This was later removed in updates, and the idea was scrapped entirely with the PS4. However, there exists a method to get Linux running on the PS4, and you can even play PC games through Steam if they have Linux ports.
This guide will walk you through installing Fedora Linux and Steam on the PS4, but be warned that this only works on PS4 consoles on firmware 1.76 – which is fairly outdated at this point, and there is no way to downgrade a PS4 console’s firmware once it’s been upgraded. Fortunately, brand new PS4 consoles running the 1.76 firmware can still be found for sale around the internet.
Check here for a list of PS4 bundles that will have the 1.76 firmware on them. Make sure you only purchase a brand-new, still sealed console. A used console will likely have the firmware updated, and as mentioned before, there’s no going back.
Requirements
Minimum 8GB USB disk
Fedora Live ISO
PS4 Radeon Drivers
bZimage + initramsfs
VirtualBox for Windows
FileZilla
Creating the Bootable Linux USB
First, plug an empty USB disk into your PC, and then run the Fedora Live ISO from within VirtualBox. You’ll be greeted with a welcome screen.
Note: You can also partition and configure drives for Linux UEFI Boot.
Choose to “Try Fedora”, and when you’re on the Fedora desktop, launch a Linux terminal and type the following commands:
su fdisk -l
The “fdisk -l” command will show the path of your USB disk, for example “/dev/sda”, so now we will partition it. In the following code, make sure to change /dev/sda to your USB disk’s actual path, if that isn’t the path being used:
parted /dev/sda mklabel msdos mkpart primary fat32 1MiB 513MiB mkpart primary ext4 513MiB 100% quit mkfs.fat –F32 /dev/sda1 mkfs.ext4 /dev/sda2
Do not close the terminal at this point – simply go back to the Fedora launcher welcome screen and choose “Install to Hard Drive”, and then “Installation Destination”. Finally, click on “I will configure partitioning” in the storage options, and click done.
Now it will ask what partition to install to – choose /dev/sda2, and in the box for “Mount Point:”, enter a single / slash. Finally, check the “Reformat” box and click “Update Settings”, then Done. Now you can begin the installation, and choose your root username/password.
When the installation is done, do not exit Fedora yet. We need to install the Radeon drivers for PS4. So go back into the Linux terminal and type these commands:
Mount /dev/sda2 /mnt systemct1 restart sshd ifconfig
Now after you type “ifconfig”, you need to look for the IP address of your virtual machine. When you have it, use FileZilla to push the “ps4-radeon-rpm.zip” to a folder called “/mnt/tmp” in the Fedora environment. Now go back into the terminal and type:
cd /mnt mount -t proc proc proc/ mount -t sysfs sys sys/ mount -o bind /dev dev/ chroot /mnt cd /tmp unzip ps4-radeon-rpms.zip cd ps4-radeon-rpms rm -rf drm-utils-2.4.65-1.fc23.i686.rpm dnf install --nogpgcheck *.rpm dnf install awesome
Now look inside the /home// folder of Fedora and find a file called “.xinitrc”. Open it with a text-editor and add these lines:
type into the Linux terminal:
dnf install https://rpmfusion.org/Configuration/ -E %fedora).noarch.rpm https://rpmfusion.org/Configuration/ -E %fedora).noarch.rpmdnf install --nogpgcheck steam
Finally, type:
Exit cd / unmount –R /mnt poweroff
And before unplugging the USB disk from your PC, copy the bzImage and initramfs files from above to the Fat32 partition of the USB disk. Installing Linux on the PS4Plug the USB disk into your PS4 and turn on the console, then boot the USB with PS4 Playground. It will take you to an init screen, so type:
Fdisk -l mount /dev/sda2 /newroot exec switch_root /newroot /newroot/sbin/init
When you get to the login screen, type the username and password you set earlier during the Fedora installation, then type:
startx
After you’re booted into the DM, open the Linux terminal and enter:
glxinfo | grep vendor
Now we can launch Steam, but we need to make sure it executes with the proper libs for running on Linux. So type into the terminal:
LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1' steam &
That’s all! The PS4 can run older titles in the Steam library that have a Linux port, and some modern titles as well if you lower the graphics settings. Here’s a list of PC games that have been reported to run on PS4 / Linux: