Skip to content

Made readme.md more clear and fixed bug in installer.sh #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@ git clone https://github.com/ssilverm/piplay-installer
cd piplay-installer
```

## To Install On A Fresh SD Card
## INSTALLING ON A NEW SD CARD

Start by provisioning an SD-Card with the latest version of Raspbian. Once Raspbian is installed, insert it into the RPi and boot it up.

From the RPi console, run the following:

```sh
sudo apt-get install git python-pygame
mkdir ~/src
cd ~/src
git clone https://github.com/ssilverm/piplay-installer
cd pipplay-installer
bash installer.sh
```

## To update an earlier version of PiPLAY
## UPDATING TO A NEWER VERSION OF PIPLAY

```sh
bash updater.sh
Expand Down
14 changes: 4 additions & 10 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#fi

echo "Starting Install..."

sudo apt-get clean
sudo apt-get update
sudo apt-get -y install vsftpd xboxdrv stella python-pip python-requests python-levenshtein libsdl1.2-dev bc gunicorn sqlite3
Expand Down Expand Up @@ -37,20 +36,15 @@ wget http://sheasilverman.com/rpi/raspbian/installer/vice_2.3.21-1_armhf.deb
sudo dpkg -i vice_2.3.21-1_armhf.deb
rm -rf vice_2.3.21-1_armhf.deb




echo 'if [ "$DISPLAY" == "" ] && [ "$SSH_CLIENT" == "" ] && [ "$SSH_TTY" == "" ]; then' >> /home/pi/.profile

if grep --quiet /home/pi/pimame/pimame-menu /home/pi/.profile; then
echo "menu already exists, ignoring."
else
echo 'cd /home/pi/pimame/pimame-menu/' >> /home/pi/.profile
echo 'python launchmenu.py' >> /home/pi/.profile
echo 'if [ "$DISPLAY" == "" ] && [ "$SSH_CLIENT" == "" ] && [ "$SSH_TTY" == "" ]; then' >> /home/pi/.profile
echo ' cd /home/pi/pimame/pimame-menu/' >> /home/pi/.profile
echo ' python launchmenu.py' >> /home/pi/.profile
echo 'fi' >> /home/pi/.profile
fi

echo 'fi' >> /home/pi/.profile

sudo apt-get -y install supervisor
sudo cp /home/pi/pimame/supervisor_scripts/file_watcher.conf /etc/supervisor/conf.d/file_watcher.conf
sudo cp /home/pi/pimame/supervisor_scripts/gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
Expand Down