Scripts:Installer ePSXe 1.52-alpha

From Wah!ki
Jump to navigation Jump to search

Bash Script

#!/bin/bash

# ePSXe install script written by Franky06
# This script will download all plugins, epsxe, 
# and put everything in the right place.

# It will not configure all the plugins or download
# the bioses, you have to do that yourself.


# To make sure it installs to your home/user directory (recomended), we Compact-Disk to it
cd ~

# Downloading the archive containing the emulator
wget http://www.epsxe.com/files/epsxe152lin.zip 

# In ~, make an epsxe folder
mkdir epsxe 

# Move the .zip to the newly created epsxe folder
mv ~/epsxe152lin.zip ~/epsxe 

# Compact-Disk (lol) to the epsxe folder
cd ~/epsxe 

# Unzip the zipped epsxe archive
unzip *.zip

# Compact-disk to the plugins folder
cd ~/epsxe/plugins 

# Download a video plugin for newer gpu's
wget http://www.pbernert.com/gpupetexgl208.tar.gz 

# Untar it
tar -xf ~/epsxe/plugins/gpupetexgl208.tar.gz 

# Remove it
rm ~/epsxe/plugins/gpupetexgl208.tar.gz 

# Move the plugins config's to the right folder
mv ~/epsxe/plugins/cfg* ~/epsxe/plugins/../cfg 

# Move the other configs to the same place too
mv ~/epsxe/plugins/*.cfg ~/epsxe/plugins/../cfg 


# Download and setup a video plugins for older cards
wget http://www.pbernert.com/gpupetemesagl176.tar.gz
tar -xf ~/epsxe/plugins/gpupetemesagl176.tar.gz
rm ~/epsxe/plugins/gpupetemesagl176.tar.gz
mv ~/epsxe/plugins/cfg* ~/epsxe/plugins/../cfg
mv ~/epsxe/plugins/*.cfg ~/epsxe/plugins/../cfg

# Download and set a video plugin for those without 3D hardware acceleration
wget http://www.pbernert.com/gpupeopssoftx117.tar.gz
tar -xf ~/epsxe/plugins/gpupeopssoftx117.tar.gz
rm ~/epsxe/plugins/*.tar.gz
mv ~/epsxe/plugins/cfg* ~/epsxe/plugins/../cfg
mv ~/epsxe/plugins/*.cfg ~/epsxe/plugins/../cfg

# Downloading a sound plugin
wget http://www.pbernert.com/spupeopsoss109.tar.gz 
tar -xf ~/epsxe/plugins/spupeopsoss109.tar.gz 
rm ~/epsxe/plugins/spupeopsoss109.tar.gz 
mv ~/epsxe/plugins/cfg* ~/epsxe/plugins/../cfg 
mv ~/epsxe/plugins/*.cfg ~/epsxe/plugins/../cfg 

# Download a joypad plugin for those wanting to use a joypad
wget http://members.chello.at/erich.kitzmueller/ammoq/down/padJoy082.tgz
tar -xf padJoy082.tgz
rm padJoy082.tgz
mv ~/epsxe/plugins/padJoy/bin/cfg* ~/epsxe/cfg
mv ~/epsxe/plugins/padJoy/bin/*.so ~/epsxe/plugins

# CD to memcard folder and create two memcards
cd ~/epsxe/plugins/../memcards
touch ~/epsxe/memcards/epsxe001.mcr ~/epsxe/memcards/epsxe000.mcr

# Create an alias to easily run epsxe
cd ~
echo alias epsxe="'~/epsxe/epsxe'" >> ~/.bashrc

echo Installation complete. When wanting to run epsxe, just type 'epsxe' or ~/epsxe/epsxe