-
Notifications
You must be signed in to change notification settings - Fork 197
Linux Installation
This tutorial is written assuming you have one of the Linux distro's installed. If not you can easily find proper tutorials on how to do so.
W.i.P
Start your Ubuntu/Debian machine, open up a terminal and use sudo su
or su
to get root rights.
Update your machine and the necessary packages with:
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
Afterwards run the following command:
apt-get install -y build-essential libssl-dev openssh-server openssh-client python python-dev python-pip python3-dev python3-pip pkg-config autoconf automake libtool make g++ unzip
Once this is done, enter curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
Once this is finished, enter apt-get install -y nodejs git
Finally you have to install MySQL with apt-get install -y mysql-server mysql-client
and enter a root password (or leave it blank).
Install apache2 and phpmyadmin to get ui based access to the database. To do so, enter apt-get install apache2 phpmyadmin -y
.
After MySQL is installed, enter mysql -u root -p -e "create database pogosql";
to create the pogosql database for the server.
Now start cloning protobuf with the command git clone --recursive https://github.com/google/protobuf.git
After this is finished, use cd protobuf
and next enter ./autogen.sh && ./configure && make && make check && make install && ldconfig
This might take a while
Once it's finished execute cd ..
to head back into your home folder and then run git clone --recursive https://github.com/maierfelix/POGOserver.git
.
Enter cd POGOserver
to enter the folder.
Rename the cfg.js.example
to cfg.js
you can do this with cp cfg.js.example cfg.js
.
Modify the following settings to your requirements:
// MySQL credentials
MYSQL_PORT: 3306,
MYSQL_HOST_IP: "127.0.0.1",
MYSQL_DB_NAME: "pogosql",
MYSQL_USERNAME: "root",
MYSQL_PASSWORD: "",
// Used for asset download session
DOWNLOAD_PROVIDER: "GOOGLE",
DOWNLOAD_USERNAME: "USERNAME",
DOWNLOAD_PASSWORD: "PASSWORD",
Add a ptc or google account information (dont forget to change the provider), to dump all required assets on first server run. DO NOT USE YOUR MAIN ACCOUNT FOR THIS.
Once everything is filled in, save the file, install the packages with npm cache clean && npm install
and afterwards start the server with npm run boot
Your server is now up and running.
W.i.P