Skip to content
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

Update installation.md #3618

Merged
merged 2 commits into from
Aug 11, 2016
Merged
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
75 changes: 63 additions & 12 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,71 @@ To update your project do (in the project folder): `git pull`

To update python requirement packages do (in the project folder): `pip install --upgrade -r requirements.txt`

### Installation Linux
(change master to dev for the latest version)

```
$ git clone --recursive -b master https://github.com/PokemonGoF/PokemonGo-Bot
$ cd PokemonGo-Bot
$ virtualenv .
$ source bin/activate
$ pip install -r requirements.txt
```
#### Example Installation for Ubuntu
### Linux Installation
####on the Example of Ubuntu
(change dev to master for the lastest master version)

http://pastebin.com/pzPjXT65
if you are on a different Linux OS you maybe have to adapt things like:

- package mananger (for example yum instead of apt-get)
- package names

```bash
##install
#change to root
sudo -i
#go to your home directory with the console
apt-get install build-essential autoconf libtool pkg-config make python-dev python-protobuf python2.7 wget git
#install pip
wget https://bootstrap.pypa.io/get-pip.py
python2.7 get-pip.py
rm -f get-pip.py
#get git repo
git clone --recursive -b dev https://github.com/PokemonGoF/PokemonGo-Bot
cd PokemonGo-Bot
#install and enable virtualenv
#You need to make shure your python version and virtualenv verison work together
#install virtualenv and activate it
pip install virtualenv
virtualenv .
source bin/activate
#then install the requierements
pip install -r requirements.txt

##get the encryption.so and move to right folder
wget http://pgoapi.com/pgoencrypt.tar.gz
tar -xzvf pgoencrypt.tar.gz
cd pgoencrypt/src/
make
cd ../../
#make the encrypt able to load
mv pgoencrypt/src/libencrypt.so encrypt.so

##edit the configuration file
cp configs/config.json.example configs/config.json
vi configs/config.json
# gedit is possible too with 'gedit configs/config.json'
#edit "google" to "ptc" if you have a pokemon trainer account
#edit all settings


##update to newest
#if you need to do more i'll update this file
#make shure virtualenv is enabled and you are in the correct folder
git pull
pip install -r requirements.txt

##start the bot
./run.sh configs/config.json

##after reboot or closing the terminal
#at every new start go into the folder of the PokemonGo-Bot by
#going into the folder where you startet installing it an then
cd PokemonGo-Bot
#activate virtualenv and start
source bin/activate
./run.sh configs/config.json
```


### Installation Mac
Expand Down