RY0M43CH1Z3N / ArchLinux-PS4v2

ArchLinux distro for PlayStation 4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • 👋 Hi, I’m @whitehax0r a.k.a (razr2312) on Twitter
  • 💞️ I’m looking to collaborate on PS4 Linux community and other interested stuff.
  • 📫 How to reach me at the end of this file.

ArchLinux-PS4v2

This is a compiled and updated Arch Linux with some personal changes more related to GUI to look better and some emulators.

desktop2

Features

Everything has been updated until August 23/2022

  • Parallel Downloads enabled.
  • Updated PS4 drivers with latest stable Mesa, libdrm and xf86-video-amdgpu.
  • LightDM with autologin enabled window manager.
  • Neofetch - Show general information about this system.
  • XFCE - Desktop Environment.
  • Steam - The ultimate destination for playing, discussing, and creating games.
  • Lutris - Play all your games on Linux. Lutris is an Open Source gaming platform for Linux.
  • ExFat file system support.
  • Bluez - For bluetooth pairing PS4 controller.
  • Blueberry - GUI compatible with XFCE/GTK.
  • Duckstation - Best PSX emulator.
  • Flatpak - Next generation technology for building and distributing desktop application on Linux.
  • Dolphin emulator - Nintengo Wii and Gamecube emulator.
  • Nano - Text editor.
  • Chromium - Web browser.
  • Powerlevel10k - ZSH terminal.
  • PCSX2 - Playstation 2 emulator with vulkan support.
  • Yabaouze - Sega Dreamcast emulator.
  • Hacknerdfonts - For icons inside ZSH and customized fonts for terminal.
  • RetroArch - Multiplatform emulator.
  • Minecraft Java - Because is fun. ⛏️
  • LSD - Powered LS bassically.
  • BAT - Powered CAT bassically.
  • VLC - Video player.
  • Spotify - Music player.
  • Yay - Yet another yogurt. Pacman wrapper and AUR helper written in go.
  • Zip - Compress files to zip files.
  • Unzip - Uncompress zip files.
  • P7zip - Commandline 7zip support for Linux.
  • Htop - See process and other stuff.
  • FeralGameMode - Is a daemon/lib combo for Linux that allows games to request a set of optimisations be temporarily applied to the host OS and/or a game process.
  • WineStaging - Wine is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD.
  • Wine GE on Lutris - WINE based on/forked from the most recent bleeding-edge proton experimental wine repo. This is meant to be used with non-steam games outside of Steam.
  • ProtonVPN - High-speed Swiss VPN that safeguards your privacy.

Mandatory requirements

  • A brain xD and a lot of patience.
  • USB|HDD|SDD 3.0
  • USB hub for connect more usb devices. (optional)
  • USB or Bluetooth Mouse and keyboard.

My PS4 Hardware

  • PS4 Slim
  • Firmware 9.00
  • Model CUH-2115B.
  • SouthBridge Baikal with Liverpool.

Kernel Features

Those Kernels are based from LTS(LongTerm Support) version 5.4.210 realease date 2022-08-11. Means that maintainers will provide bugfixes for this kernel revision for a much longer period of time.

  • Support OverlayFS.
  • Support SquashFS.
  • TUN/TAP support. (Works with the VPN client of your preference)

If you have same PS4 hardware you can use these files:

If you have a PS4 Fat or PS4 Pro version you can try these Kernels:

Preparing your PS4 system.

  • Make sure you are on firmware 9.00.
  • Go to Settings>Sound and Screen>Video output Settings>
  • Resolution set to >1080p
  • RGB range se to >Full
  • HDR set to >Off
  • Deep color output set to >Off
  • Then go to Setting>System>
  • Uncheck the box "Enable HDMI Device Link"
  • Uncheck the box "Enable HDCP"

Traditional Method

Preparing your USB|HDD|SDD 3.0 Device for ArchLinux-PS4v2

⚠️ Highly recommeded to use a USE A >=16GB USB 3.0 Device ⚠️

  • Format the USB|HDD|SDD 3.0 Device to Fat32 filesystem. You can use this software.
  • Copy and paste the bzImage, the initramfs.cpio.gz, bootargs.txt and psxitarch.tar.xz files to the root of the USB|HDD|SDD 3.0 Device.
  • ⚠️ If you use the same initramfs.cpio.gz from this Github project, the name of this OS should be psxitarch.tar.xz ⚠️
  • The total of 4 files should be on the root of your USB 3.0 Device bzImage, the initramfs.cpio.gz, bootargs.txt and arch.tar.xz or psxitarch.tar.xz.
  • Then connect your USB 3.0 Device with all the needed files to your PS4, make sure to connect the USB|HDD|SDD 3.0 Device and the USB slot that is near from the PS4 Blue-ray Disc Drive.
  • Open the PS4 web browser and launch the JB+LINUX (VRAM 1GB) payload, use this one.
  • Follow the instructions in order to jailbreak your PS4.

First Run Linux installation

  • When you are on the rescueshell type the following commands:

exec install-psxitarch.sh

  • When the installation is done ArchLinux-PS4v2 is going to boot automatically, if not type the following command:

exec start-psxitarch.sh

If you got an error like this one: "mount -o ro /newroot failed" just type the following commands:

mount -o ro /newroot

  • then again

mount -o ro /newroot

  • Now type this:

exec start-psxitarch.sh

  • and should boot now to ArchLinux-PS4v2 :)

Post installation steps (for the ones who follows the Traditional Method)

  • Connect your USB|HDD|SDD 3.0 to a computer and copy again the bootargs.txt file in the root of the FAT32 partition.
  • Jailbreak again your PS4 with Sleirsgoevy host and then click on >> select JB+LINUX (VRAM 1GB) payload.
  • You will be again in the rescueshell, just type:

exec start-psxitarch.sh

If you got an error like this one: "mount -o ro /newroot failed" just type the following commands:

mount -o ro /newroot

  • then again

mount -o ro /newroot

  • Now type this:

exec start-psxitarch.sh

  • and should boot now to ArchLinux-PS4v2 :)

Recommended method

You need a computer with Linux in order to follow this steps. This method is faster and better than the traditional one.

  • Connect your USB|HDD|SDD 3.0 to your computer with the linux of your preference.
  • If you are using Ubuntu type the following command sudo apt-get install gparted.
  • If you are using Arch type the following command sudo pacman -Sy gparted.
  • If you are using Fedora type the following command sudo dnf install gparted.
  • Run Gparted.
  • Make sure you are selecting your USB|HDD|SDD 3.0 on gparted.
  • Create the first partition with 300 MB with FAT32 format. (No label name needed)
  • Create a second partition with the label name psxitarch and then format the partiton to EXT4 format.
  • Close gparted and mount the new partitions you have created in your USB|HDD|SDD 3.0, now you are ready to install ArchLinux-PS4v2.
  • Copy and paste the bzImage, the initramfs.cpio.gz, bootargs.txt files to the root of the FAT32 partition. (Asuming the psxitarch.tar.xz is in the Downloads folder)
  • Open the Terminal and type the following commands:

sudo tar -xvJpf /home/$USER/Downloads/psxitarch.tar.xz -C /media/$USER/psxitarch

  • Once this finish, eject safely your USB|HDD|SDD 3.0 from your comptuter.
  • Then connect your USB 3.0 Device with all the needed files to your PS4, make sure to connect the USB|HDD|SDD 3.0 Device and the USB slot that is near from the PS4 Blue-ray Disc Drive.
  • Open the PS4 web browser and launch the JB+LINUX (VRAM 1GB) or (VRAM 3GB)payload, use this host.

Post installation steps (for the ones who follows the Recommended Method)

  • Connect your USB 3.0 Device with all the needed files to your PS4, make sure to connect the USB|HDD|SDD 3.0 Device and the USB slot that is near from the PS4 Blue-ray Disc Drive.
  • Open the PS4 web browser and launch the JB+LINUX (VRAM 1GB) or (VRAM 3GB)payload, use this host.

Changing the System Time and Date

The first time you boot to ArchLinux-PS4v2 you need to fix the time and date. ⚠️Connect your PS4 to the internet by WiFi or Ethernet port first. ⚠️

Check first the list of time zones available typing the following command on the terminal:

timedatectl list-timezones

For example mine is: America/Tegucigalpa

To set your time zone:

sudo timedatectl set-timezone Zone/SubZone

For example in my case is: sudo timedatectl set-timezone America/Tegucigalpa

Then we will create a symbolic link to do this permanently:

sudo ln -sf /usr/share/zoneinfo/Zone/SubZone /etc/localtime

For example in my case is: sudo ln -sf /usr/share/zoneinfo/America/Tegucigalpa /etc/localtime

Now we will enable NTP just type this on the Terminal:

sudo timedatectl set-ntp true

Now just wait about 5~10 seconds and you will see your date and time will change automatically to your zone.

Recommended emulators and tips:

  • RPCS3 - PS3 emulator. (You can try their AppImage.)
  • PCSX2 - PS2 emulator. (You can try their AppImage.)
  • Nintendo Switch emulator. (You can try their AppImage.)

If you run games on Wine, Swap should be enable, just run the following commands:

sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 status=progress

sudo chmod 0600 /swapfile

sudo mkswap -U clear /swapfile

sudo swapon /swapfile

Finally, edit the fstab configuration to add an entry for the swap file:

sudo nano /etc/fstab

Copy and paste this at the end of the file: /swapfile none swap defaults 0 0

On your keyboard press CTRL + O and then "yes" to save the changes. Then CTRL + X to exit from Nano.

Now you can close the terminal.

Know Issues

Not sure why but every time you boot in to linux, you have to unpair and pair again your PS4 controller.

Some FAQs

What is the password for the users "sony" and "root"?

You can find that on the Desktop, you will see a text fille called Important.txt

Got black screen

Make sure your display is compatible with the 1080p resolution, if you still have a black screen try a others monitor or TV. Also make sure you follow the section of "Preparing your PS4 system."

I want to uninstall this OS from my USB 3.0 Device

Just format your device.

How to update ArchLinux-PS4v2?

Just type the following command:

sudo pacman -Syu

  • and type "Yes" if there are packages with updates.

If more than 5 months has been passed when I released this Distro, type the following commands:

sudo pacman -Sy

  • then:

sudo pacman -S archlinux-keyring

  • then

sudo pacman -Syu

Can I use my DS4 controller as mouse?

Yes!, you can.

I have difficulties to connect my DS4 controller, what can I do?

I will upload a video later.

I'm not sure about my PS4 Hardware?

You can search here or here.

I want to install MangoHUD and GOverlay.

MangoHUD:

  • Download the package MangoHUDxxx.tar.gz from here
  • Extract the package using the terminal with the following command: tar -xvf MangoHUDxxx.tar.gz
  • Then type on the terminal: cd MangoHud
  • Then type: ./mangohud-setup.sh
  • MangoHUD is installed now.

GOverlay:

  • Open the terminal and type the following command: yay -S goverlay-git
  • GOverlay is installed now.

Social Medias

esta es una imagen

About

ArchLinux distro for PlayStation 4.