From 2b2df5de778a583e2c407ba9bf01d4db143fdbaf Mon Sep 17 00:00:00 2001 From: Felix Maier Date: Sun, 4 Sep 2016 14:12:29 +0200 Subject: [PATCH] Updated Linux Installation (markdown) --- Linux-Installation.md | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/Linux-Installation.md b/Linux-Installation.md index 9144dee..3cbce88 100644 --- a/Linux-Installation.md +++ b/Linux-Installation.md @@ -3,8 +3,8 @@ # 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: +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` @@ -12,27 +12,27 @@ 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 execute `curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -` -Once this is finished execute `apt-get install -y nodejs git` +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` -And as last install MySQL with `apt-get install -y 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. +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 for easy access to the database and the api branch. For this execute `apt-get install apache2 phpmyadmin -y`. +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 execute `mysql -u root -p -e "create database pogosql";` to create the pogosql database needed for POGOserver enter the MySQL password once it asks for it. +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 then execute `./autogen.sh && ./configure && make && make check && make install && ldconfig` +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`. -Then execute `cd POGOserver` to enter the folder. Now execute `chmod +x run-linux.sh` to allow the script to be executed. +Enter `cd POGOserver` to enter the folder. Now execute `chmod +x run-linux.sh` to allow the script to be executed. Rename the `cfg.js.example` to `cfg.js` you can do this with `cp cfg.js.example cfg.js`. -Modify the following settings with nano or another text editor. +Modify the following settings to your requirements: ````js // MySQL credentials @@ -50,17 +50,9 @@ Modify the following settings with nano or another text editor. 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. +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. -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. - -Add google account information so you can download the models and other information. DO NOT USE YOUR MAIN ACCOUNT FOR THIS. - -Once everything is filled in save the file and start the server with `./run-linux.sh` +Once everything is filled in, save the file and start the server with `./run-linux.sh` Your server is now up and running.