Created
June 15, 2018 20:31
-
-
Save tonylambiris/4211c8c8a9b7e3339ca9671d5aca5698 to your computer and use it in GitHub Desktop.
RetroPie setup script (configure IO scheduler, install golang and grab ROM cover art)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -xe | |
| GOVERSION=1.10.3 | |
| export GOPATH="$HOME/go" | |
| export PATH="$PATH:$GOPATH/bin" | |
| test -d $GOPATH && rm -rf $GOPATH | |
| mkdir -p $HOME/bin | |
| sudo apt-get -u update | |
| sudo apt-get -u install -y tmux vim axel | |
| if [[ ! -f /etc/tmpfiles.d/10_scheduler.conf ]]; then | |
| echo "w /sys/block/mmcblk0/queue/scheduler - - - - noop" | \ | |
| sudo tee /etc/tmpfiles.d/10_scheduler.conf | |
| fi | |
| axel -a -o /tmp/go.tar.gz \ | |
| https://storage.googleapis.com/golang/go${GOVERSION}.linux-armv6l.tar.gz | |
| test -d /usr/local/go && sudo rm -rf /usr/local/go | |
| sudo tar -C /usr/local -xzvf /tmp/go.tar.gz && rm -f /tmp/go.tar.gz | |
| export PATH=/usr/local/go/bin:$PATH | |
| go get -v -d github.com/sselph/scraper | |
| GOARM=7 GOARCH=arm GOOS=linux go build -o ~/bin/scraper github.com/sselph/scraper | |
| test -x $HOME/bin/scraper && cd ~/RetroPie/roms && ~/bin/scraper -scrape_all -thumb_only -workers 4 -console_src="gdb,ovgdb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment