Updated Linux Installation (markdown)

DracoMilesX
2016-08-31 14:49:02 +02:00
parent d8103e13c8
commit 233cf2547a

@@ -2,6 +2,7 @@
# Ubuntu/Debian
**W.i.P**
Start your Ubuntu/Debian machine and open up a terminal and use `sudo su` or `su` to get root rights.
First 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:
@@ -10,7 +11,9 @@ Afterwards run the following command:
Once this is done execute `curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -`
Once this is finished execute `apt-get install -y nodejs git`
Now exit `sudo su` by typing `exit`.
And as last install MySQL with `apt-get install mysql-server mysql-client` fill in a root password once it asks for it and say yes or no to the dbconfig-common it has no impact for the future.
After MySQL is installed execute `mysql -u root -p -e "create database pogosql";` to create the pogosql database needed for POGOserver
Now start cloning protobuf with the command `git clone --recursive https://github.com/google/protobuf.git`
After this is finished use `cd protobuf` and then execute `./autogen.sh && ./configure && make && make check && make install && ldconfig`
@@ -25,6 +28,30 @@ Rename the `cfg.js.example` to `cfg.js` you can do this with `cp cfg.js.example
Modify the following settings with nano or another text editor.
````js
// MySQL credentials
MYSQL_PORT: 3306,
MYSQL_HOST_IP: "127.0.0.1",
MYSQL_DB_NAME: "pogosql",
MYSQL_USERNAME: "root",
MYSQL_PASSWORD: "",
````
````js
// Used for asset download session
DOWNLOAD_PROVIDER: "GOOGLE",
DOWNLOAD_USERNAME: "USERNAME",
DOWNLOAD_PASSWORD: "PASSWORD",
````
Only change `MYSQL_PORT` if you knew what you are doing and changed it yourself after you installed MySQL. Change `MYSQL_HOST_IP` when the MySQL server is running on another machine then the machine your trying to install POGOserver on.
Change `MYSQL_DB_NAME` if you wan't another name for your database to make it more clear what it is used for (ex. pogoserver) Just make certain it's the same name you used at the `CREATE DATABASE` statement earlier.
Change `MYSQL_USERNAME` if you created a separate user for the database default user is root that has access to all databases your running.
Change `MYSQL_PASSWORD` to the password you used for your root account or an alternate account.
# CentOS/RedHat
**W.i.P**