mirror of
https://github.com/CosmicScale/PSBBN-Definitive-English-Patch.git
synced 2025-01-25 03:11:14 +01:00
Add support for Arch-based distros (#22)
* Added support for Arch-based Distros
This commit is contained in:
parent
939ac433f7
commit
83d94e54c1
38
01-Setup.sh
38
01-Setup.sh
@ -34,16 +34,20 @@ SOURCES_LIST="/etc/apt/sources.list"
|
||||
# Check if the file exists
|
||||
if [[ -f "$SOURCES_LIST" ]]; then
|
||||
# Remove the "deb cdrom" line and store the result
|
||||
if grep -q 'deb cdrom' "$SOURCES_LIST"; then
|
||||
if grep -q 'deb cdrom' "$SOURCES_LIST"; then
|
||||
sudo sed -i '/deb cdrom/d' "$SOURCES_LIST"
|
||||
echo "'deb cdrom' line has been removed from $SOURCES_LIST."
|
||||
else
|
||||
echo "'deb cdrom' line has been removed from $SOURCES_LIST."
|
||||
else
|
||||
echo "No 'deb cdrom' line found in $SOURCES_LIST."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Update package list and install necessary packages
|
||||
sudo apt update && sudo apt install -y axel imagemagick xxd python3-venv python3-pip nodejs npm
|
||||
fi
|
||||
# Check if user is on Debian-based system
|
||||
if [ -x "$(command -v apt)" ]; then
|
||||
sudo apt update && sudo apt install -y axel imagemagick xxd python3-venv python3-pip nodejs npm
|
||||
# Or if user is on Arch-based system, do this instead
|
||||
elif [ -x "$(command -v pacman)" ]; then
|
||||
sudo pacman -Sy --needed archlinux-keyring && sudo pacman -S --needed axel imagemagick xxd python pyenv python-pip nodejs npm bc rsync
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
echo
|
||||
echo "Error: Package installation failed."
|
||||
@ -54,14 +58,18 @@ fi
|
||||
# Check if mkfs.exfat exists, and install exfat-fuse if not
|
||||
if ! command -v mkfs.exfat &> /dev/null; then
|
||||
echo
|
||||
echo "mkfs.exfat not found. Installing exfat-fuse..."
|
||||
echo "mkfs.exfat not found. Installing exfat driver..."
|
||||
if [ -x "$(command -v apt)" ]; then
|
||||
sudo apt install -y exfat-fuse
|
||||
if [ $? -ne 0 ]; then
|
||||
echo
|
||||
echo "Error: Failed to install exfat-fuse."
|
||||
read -p "Press any key to exit..."
|
||||
exit 1
|
||||
fi
|
||||
elif [ -x "$(command -v pacman)" ]; then
|
||||
sudo pacman -S exfatprogs
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
echo
|
||||
echo "Error: Failed to install exfat driver."
|
||||
read -p "Press any key to exit..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Setup Python virtual environment and install Python dependencies
|
||||
@ -86,4 +94,4 @@ deactivate
|
||||
|
||||
echo
|
||||
echo "Setup completed successfully!"
|
||||
read -p "Press any key to exit..."
|
||||
read -p "Press any key to exit..."
|
||||
|
@ -43,7 +43,7 @@ I would highly recommend that you install the [Retro GEM Game ID Resetter](https
|
||||
|
||||
## New installation scripts
|
||||
|
||||
These scripts are essential for unlocking all the new features exclusive to version 2.0. They require a Linux environment to run. If Linux is not installed on your PC, you can use a live Linux environment on a bootable USB drive or a virtual machine. Only Debian-based distributions are supported, with Linux Mint being the recommended choice. You will require a HDD/SSD for your PS2 that is larger than 200 GB, ideally 500 GB or larger. I highly recommend a SSD for better performance. The HDD/SSD can be connected to your PC internally or via USB.
|
||||
These scripts are essential for unlocking all the new features exclusive to version 2.0. They require a Linux environment to run. If Linux is not installed on your PC, you can use a live Linux environment on a bootable USB drive or a virtual machine. Debian-based distributions using `apt` and Arch-based distributions using `pacman` are supported. You will require a HDD/SSD for your PS2 that is larger than 200 GB, ideally 500 GB or larger. I highly recommend a SSD for better performance. The HDD/SSD can be connected to your PC internally or via USB.
|
||||
|
||||
## Video Tutorial:
|
||||
|
||||
@ -270,4 +270,4 @@ Before installing the English patch, you **must** power off your console to stan
|
||||
|
||||
|
||||
\* Instances in feega where some Japanese text could not be translated because it is hard coded in an encrypted file. Atok software has not been translated. You might need to manually change the title of your "Favorite" folders if they were created before you **Patched an existing PSBBN install**.
|
||||
\** Should also be compatible with the PS2 Slim SCPH-70xxx models with an IDE Resurrector mod. PSBBN Definitive English Patch 2.0 and older versions of the **PS2 HDD RAW Image Install** are not compatible with early model Japanese PS2 consoles that have an external HDD due to space limitations. **Patch an existing PSBBN install** - Kloader might have compatibility issues with early model Japanese PS2 consoles.
|
||||
\** Should also be compatible with the PS2 Slim SCPH-70xxx models with an IDE Resurrector mod. PSBBN Definitive English Patch 2.0 and older versions of the **PS2 HDD RAW Image Install** are not compatible with early model Japanese PS2 consoles that have an external HDD due to space limitations. **Patch an existing PSBBN install** - Kloader might have compatibility issues with early model Japanese PS2 consoles.
|
||||
|
Loading…
x
Reference in New Issue
Block a user