Skip to content

Instantly share code, notes, and snippets.

@irvifa
Created September 7, 2015 03:29
Show Gist options
  • Save irvifa/c41e47f0e00985e9936c to your computer and use it in GitHub Desktop.
Save irvifa/c41e47f0e00985e9936c to your computer and use it in GitHub Desktop.
rpi install
#!/bin/bash
sudo apt-get update
wget "https://rvaserver2.appspot.com/player/download?os=lnx" -O rvpiplayer.sh
sudo chmod +x rvpiplayer.sh
./rvpiplayer.sh
#clean
rm rvpiplayer.sh
#installing additional components
sudo apt-get install openjdk-7-jre chromium-browser unclutter xscreensaver
#Modification of chrome component path, the rest of the chrome rise plugins are ok, except flash, we just need to use the ARM chromium binary
rm ~/rvplayer/chrome-linux/chrome
sudo cp /usr/bin/chromium ~/rvplayer/chrome-linux/chrome
sudo chown pi:pi ~/rvplayer/chrome-linux/chrome
#New launcher script construction
sudo echo "java -jar ~/rvplayer/RisePlayer.jar
unclutter" > ~/rvplayer/newstartupscript.sh
sudo chmod +x ~/rvplayer/newstartupscript.sh
sudo chown pi:pi ~/rvplayer/newstartupscript.sh
#Desktop autostart section fixes
sudo rm ~/.config/autostart/rvplayer.desktop
sudo echo "[Desktop Entry]
Type=Application
Exec=/home/pi/rvplayer/newstartupscript.sh
Name=Pi mod" > ~/.config/autostart/pirvplayer.desktop
sudo chown pi:pi ~/.config/autostart/pirvplayer.desktop
sudo chmod +x ~/.config/autostart/pirvplayer.desktop
echo ..................
echo done!
echo Modifications for RVplayer for use on the Raspberry Pi should now be complete.
echo
echo Upon boot to desktop your Rise display should start as a blank display and ask for your display ID
echo
echo Please Reboot Now...
echo Enter your display ID when prompted after startup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment