Skip to content

Instantly share code, notes, and snippets.

@jesperhj
Last active September 11, 2016 18:35
Show Gist options
  • Save jesperhj/fd29729fe4fb9f289d657d2aa288cc71 to your computer and use it in GitHub Desktop.
Save jesperhj/fd29729fe4fb9f289d657d2aa288cc71 to your computer and use it in GitHub Desktop.
Pokemon Go Map installation on Raspberry Pi 3
# usb drive
sudo fdisk -l
sudo mkfs.ext4 /dev/sda1
sudo mkdir /var/lib/mysql
sudo mount /dev/sda1 /var/lib/mysql
chmod 700 /var/lib/mysql
chown mysql:mysql /var/lib/mysql
# https://www.reddit.com/r/pokemongodev/comments/4wtiso/any_pokemon_go_map_programs_able_to_run_on/d6h75a4
sudo apt-get update
sudo apt-get upgrade
mkdir pokemon
cd pokemon
wget https://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-armv6l.tar.xz
tar -xvf node-v6.3.1-linux-armv6l.tar.xz
cd node-v6.3.1-linux-armv6l
sudo cp -R * /usr/local/
cd ..
sudo rm -r node-v6.3.1-linux-armv6l
sudo rm -r node-v6.3.1-linux-armv6l.tar.xz
node -v
sudo apt-get install python2.7 python-pip python-dev
git clone -b develop https://github.com/PokemonGoMap/PokemonGo-Map.git
cd PokemonGo-Map
sudo git pull
sudo -H pip2 install -r requirements.txt
sudo npm install -g node-gyp@3.4.0
sudo npm install -g minimatch@3.0.2
sudo npm install -g graceful-fs@4.1.5
sudo npm install
sudo npm run build
sudo Reboot
cd
cd PokemonGo-Map
python2 ./runserver.py --help
python2 ./runserver.py -a google -u 'username' -p 'password' -l 'lat,lon' -st 3 -k 'MapsAPI' -np -H 0.0.0.0
# nginx & mysql
sudo apt-get install nginx mysql-server
sudo mysql_secure_installation
# mysql
CREATE DATABASE pokemongomapdb;
CREATE USER 'pokemon'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON pokemongomapdb . * TO 'pokemon'@'localhost';
# If you get this error
#
# Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-C2YnL1/protobuf-to-dict
# Storing debug log for failure in /root/.pip/pip.log
#
# Then use the solution from https://github.com/PokemonGoF/PokemonGo-Bot/issues/2820
# sudo pip install --upgrade six
# Extra stuff
# https://mattwilcox.net/web-development/setting-up-a-secure-home-web-server-with-raspberry-pi
# http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment