Terminal Commands to install Linux applications on PS4 Distros

Detailed instructions to install all major Linux applications (Steam, Retroarch, PCSX2, Wine, DXVK, VKD3D, etc.) on PS4 Linux distros (Ubuntu, Fedora, Arch, etc.)

Do you want to install Steam on your newly made PS4 Linux distro? Or, do you want to install Wine to the PS4 Distro you use? Worry not, this page contains the detailed instructions and terminal commands to install common Linux applications on your PS4 distro.

If you need instructions for any other applications, just leave a comment below.

Wine

I have also added the command to install Winetricks. Winetricks is a neat tool that makes downloading and installing Windows dependencies easier. Learn more about it here.

Install Wine and Winetricks on Fedora for PS4

These commands will work for Fedora and Fedora-based distros for PS4.

  1. Open Terminal
    • For Fedora 35, type sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/35/winehq.repo and press Enter.
    • For Fedora 34, type sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/34/winehq.repo and press Enter.
  2. There are three versions of Wine – stable, development and staging. Choose which of these you need and here are the commands to install each of these.
    • Stable – sudo dnf install winehq-stable
    • Development – sudo dnf install winehq-devel
    • Staging – sudo dnf install winehq-staging
  3. Type cd "${HOME}/Downloads" and press Enter.
  4. Type wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks and press Enter.
  5. Type chmod +x winetricks and press Enter.
  6. Type sudo cp winetricks /usr/local/bin and press Enter.
  7. Type sudo rm winetricks and press Enter.

Install Wine and Winetricks on Ubuntu for PS4

These commands will work for Ubuntu and Ubuntu-based distros for PS4.

  1. Open Terminal
  2. Type sudo dpkg --add-architecture i386 and press Enter.
  3. Type wget -nc https://dl.winehq.org/wine-builds/winehq.key and press Enter.
  4. Type sudo apt-key add winehq.key and press Enter.
  5. There are three versions of Wine – stable, development and staging. Choose which of these you need and here are the commands to install each of these.
  6. Depending on the Ubuntu version, type the suitable command as given below to add Wine repository:
    • Ubuntu 21.10 – sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'
    • Ubuntu 21.04 – sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main'
    • Ubuntu 20.10 – sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main'
  7. Decide which edition of Wine you would like to install and run the suitable command, as given below.
    • Stable – sudo apt-get install winehq-stable
    • Development – sudo apt-get install winehq-devel
    • Staging – sudo apt-get install winehq-staging
  8. Type sudo rm winehq.key and press Enter.
  9. Type cd "${HOME}/Downloads" and press Enter.
  10. Type wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks and press Enter.
  11. Type chmod +x winetricks and press Enter.
  12. Type sudo cp winetricks /usr/local/bin and press Enter.
  13. Type sudo rm winetricks and press Enter.

That’s it. To check the installation of Wine and Winetricks on your PS4 distro, you can run the following commands on terminal:-

  • winecfg
  • winetricks

Steam

Install Steam on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm and press Enter.
  3. Type sudo dnf install steam and press Enter.

Install Steam on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt-get install steam and press Enter.

Install Steam on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -S steam and press Enter.

This would add Steam to your Applications Menu, if you have one. Else, you can run Steam by typing steam and pressing Enter on the terminal.

PCSX2

Install PCSX2 on Fedora for PS4

To install Steam on Fedora, the RPM Fusion repository must be installed first. We will do that first and then, install PCSX2.

  1. Open Terminal.
  2. Type sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm and press Enter.
  3. Type sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm and press Enter.
  4. Type sudo dnf install pcsx2 and press Enter.

Install PCSX2 on Ubuntu for PS4

The installation on Ubuntu is much simpler, as the default repository contains PCSX2.

  1. Open Terminal.
  2. Type sudo apt-get install pcsx2 and press Enter.

Install PCSX2 on Arch Linux for PS4

Like Ubuntu, Arch Linux’s default repository too contains PCSX2. So, the installation is simple.

  1. Open Terminal.
  2. Type sudo pacman -S pcsx2 and press Enter.

Retroarch

Install Retroarch on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install retroarch and press Enter.

Install Retroarch on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt-get install retroarch and press Enter.

Install Retroarch on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -S retroarch and press Enter.

Dolphin Emulator

Install Dolphin Emulator on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install dolphin-emu and press Enter.

Install Dolphin Emulator on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt-get install dolphin-emu and press Enter.

Install Dolphin Emulator on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -S dolphin-emu and press Enter.

Gamescope

Gamescope is a neat little application that will help you upscale the windows. As the name suggests, it comes in handy for gaming.

Install Gamescope on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install gamescope and press Enter.

Install Gamescope on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo add-apt-repository ppa:ar-lex/gamescope and press Enter.
  3. Then, type sudo apt update and press Enter.
  4. Finally, to install Gamescope, type sudo apt install gamescope and press Enter.

Install Gamescope on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -S gamescope and press Enter.

DXVK

DXVK is a piece of software that allows Vulkan to run Direct3D 9, 10 and 11 through Wine. This is useful if you plan on gaming on your PS4 Distro. The installation ios pretty straightforward and the instructions remain same for almost every distro.

Install DXVK on PS4 Linux

  1. If you haven’t run Wine before, type winecfg and press Enter. This will create the Wine prefix if not created. Do not run this as root though.
  2. Download the latest release of DXVK (.tar.gz). Get the download link from the Downloads section.
  3. Go to the Downloads folder and open a terminal there.
  4. Extract the DXVK file using the command, for example – sudo tar -xvf dxvk-1.10.tar.gz. Please note that you might have to change the filename, as the version changes.
  5. Go into the extracted folder and open a terminal there.
  6. Type ./setup_dxvk.sh install and press Enter.
  7. That’s it!

VKD3D-Proton

VKD3D-Proton, forked from VKD3D enables the full Direct3D 12 API on top of Vulkan. This helps bring Direct3D 12 support in Proton. In simple words, this will help you run games with DirectX 12 games on Wine. Like DXVK, the installation instructions are the same for every distro.

Install VKD3D-Proton on PS4 Linux

  1. If you haven’t run Wine before, type winecfg and press Enter. If not already created, this will create the Wine prefix . Do not run this as root.
  2. Download the latest release of VKD3D-Proton (.tar.zst). Get the download link from the Downloads section.
  3. Go to the Downloads folder and open a terminal there.
  4. Install zstd (a program to extract the VKD3D file)
    1. On Fedora, type sudo dnf install zstd and press Enter.
    2. On Ubuntu, type sudo apt-get install zstd and press Enter.
  5. Extract the VKD3D file using the command, for example – sudo tar --use-compress-program=unzstd -xvf vkd3d-proton-2.6.tar.zst. Please note that you might have to change the filename, as the version changes.
  6. Go into the extracted folder and open a terminal there.
  7. Type ./setup_vkd3d_proton.sh install and press Enter.
  8. That’s it!

Mangohud

Mangohud is an overlay software that displays FPS< temperature, CPU usage, etc. while gaming for Linux. This is similar to what MSI Afterburner does on Windows. It is a good idea to monitor the FPS and other details while gaming. While most distros have Mangohud in their official repositories, I have seen errors while installing from them. But, adding a few more steps, you could have a working version of Mangohud on your PS4 Linux distro. Here, I have detailed those steps. The installation instructions are the same for every distro.

Install Mangohud on any PS4 Linux distro

  1. Download the latest release of Mangohud (tar.gz) from the link in Downloads section.
  2. Extract the tar.gz file you just downloaded.
  3. Open the MangoHud folder.
  4. Open a terminal within that folder.
  5. Type ./mangohud-setup.sh install and press Enter.
  6. Provide your sudo password and press Enter.

That’s all you need to have Mangohud running on your Linux distro.

Gparted

Gparted is a GUI-based application manager for Linux. It does come in handy when installing PS4 Linux distros using the alternate method or even for multi-boot. Follow these instructions to install it on your Linux distro.

Install Gparted on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install gparted and press Enter.

Install Gparted on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt install gparted and press Enter.

Install Gparted on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -S gparted and press Enter.

Xdotool

Xdotool among other things helps you resize and move Windows while faking keyboard and mouse activity.

Install Xdotool on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install xdotool and press Enter.

Install Xdotool on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt install xdotool and press Enter.

Install Xdotool on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -S xdotool and press Enter.

Docker

Docker is an application development platform that is useful in many cases. The best example would be for using Honeygain on PS4 Linux to make money.

Install Docker on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf -y install dnf-plugins-core and press Enter.
  3. Type sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo and press Enter.
  4. Type sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin and press Enter.
  5. Type sudo systemctl start docker and press Enter.
  6. To check if installation was successful, type sudo docker run hello-world and press Enter.

Install Docker on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt-get update and press Enter.
  3. Type sudo apt-get install ca-certificates curl gnupg lsb-release and press Enter.
  4. Type sudo mkdir -p /etc/apt/keyrings and press Enter.
  5. Type curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg and press Enter.
  6. Type echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null and press Enter.
  7. Type sudo apt-get update and press Enter.
  8. Type sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin and press Enter.
  9. To check if installation was successful, type sudo docker run hello-world and press Enter.

Install Docker on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -Syu and press Enter.
  3. Type sudo pacman -S gnome-terminal and press Enter.
  4. Type sudo pacman -S docker and press Enter.
  5. Type sudo systemctl start docker.service and press Enter.
  6. To check if installation was successful, type sudo docker run hello-world and press Enter.

Wireguard

Wireguard is a VPN protocol. Learn how to use VPN on PS4 Linux.

Install Wireguard on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install openresolv wireguard-tools and press Enter.

Install Wireguard on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt install openresolv wireguard and press Enter.

Install Wireguard on Arch Linux for PS4

  1. Open terminal.
  2. Type sudo pacman -S openresolv wireguard-tools and press Enter.

OpenVPN

OpenVPN is yet another protocol for VPN. Learn how to use VPN on PS4 Linux.

Install OpenVPN on Fedora for PS4

  1. Open terminal.
  2. Type sudo dnf install resolvconf openvpn and press Enter.

Install OpenVPN on Ubuntu for PS4

  1. Open terminal.
  2. Type sudo apt install resolvconf openvpn and press Enter.

Install OpenVPN on Arch Linux for PS4

On some Arch-based distros, you will have to first update Glibc before installing OpenVPN. Follow these steps:-

  1. Open terminal.
  2. Type sudo pacman -S glibc and press Enter.
  3. Restart PS4.
  4. Open terminal, type sudo pacman -S resolvconf openvpn and press Enter.

Conclusion

Now, those were the commands to install many important applications on you PS4 Linux. Remember that this article will be updated with the commands for many others with time. Bookmark the page and keep visiting from time to time to get the latest updates.

14 Comments

  1. Could you please make a tutorial on how to fix virtualbox running on ps4 linux cause I’m running into an issue that I couldn’t find on the internet, since it’s related to the ps4, [Kernel driver not installed (rc=-1908)]

        • Can’t really give you a good answer since my system gets stuck at boot with that specific kernel version and wasted my time installing, gosh I thought you had a lot of response for that software, but it seems you guys are only interested with the new operating systems. (Oh, and I followed all the instructions carefully and correctly, it seems my slim is incompatible)

        • Well, we don’t have every possible variation of PS4 systems to test each and every issue that pops up on each and every system. I hope you understand. But, if you do have the patience, join the Discord group, where we could look deeper into the issue at hand.

        • After seeing other responses by other people in the discord server about virtualbox having an error, they are not assisting with the issue and somewhat avoiding it… why? (My main purpose is to run basic windows 8+ based applications not triple a games, I know linux is working with that via proton and wine)

  2. As a result of personal issues, I want to use PS4linux for ethical hacking, meaning to turn it into a hacking lab. Can I use PS4linux for hacking? It’s ethical, of course

  3. Hi guys ,
    Can someone help me Install DXVK and VKD3D-Proton , i got this error ”No such file or directory” when i type the commands ”./setup_dxvk.sh install” and please DF_AUS ,snap store and mpv player are not working i tried to uninstall and install them again but nothing worked, any help to fix that, I am using fedora 38 i find this distro quite interesting. Thanks for your help in advance.

  4. So I followed the instructions to the letter and all was fine until I tried the 1st terminal command
    sudo dnf remove galculator and enter
    nothing is happening.all i get is a flickering white line.I’m pretty new to this so can you please tell me what might be happening here?

Leave a Reply

Your email address will not be published.


*