Working on REadme got through cmake and make commands an setting varibels

This commit is contained in:
Stephen Deaton 2026-01-22 20:05:10 -05:00
parent 5f331f89c8
commit bd698152aa

View File

@ -2,8 +2,14 @@
This is the documentation to create a World of Warcraft server.
**The VM has to have a minimum of 3 cores and 4 gig of memory not less**
**You will set the number of cores during the make steps**
# Setting up the Server
# Core Installation
* Log into server using putty.
* Create a user names acore with pw acore
```
@ -13,7 +19,6 @@ This is the documentation to create a World of Warcraft server.
```
sudo usermod -aG sudo newusername
```
* Install the needed packages
```
sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
@ -44,13 +49,51 @@ This is the documentation to create a World of Warcraft server.
```
cmake ../ -DCMAKE_INSTALL_PREFIX=$AC_CODE_DIR/env/dist/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static
```
* You need to set a variable for the number of cores need for the "make" step. This ensures you do not run out of memory.
First check to make sure you have the correct amount of cores on the machine
```
nproc --all
```
Then set the VARIABLE to the max numer.
[!NOTE]
See above important message regaring server requierments.
* This will set a varibale to the number of cores a min. of 3.
```
export BUILD_CORES=`nproc | awk '{print $1 - 1}'`
```
* Run the make install commands (note: this will take awhile)
```
make -j$BUILD_CORES
make install
```
# Server Setup
* Go to the directory /azerothcore/env/dist/bin
* You must do the above step to ensure the zip file goes into the correct place.
* Download the data.zip file with the game files in it.
```
wget https://github.com/wowgaming/client-data/releases/download/v19/Data.zip
```
* Unzip the zile in the same folder it is in
```
sudo unzip Data.zip
```
* Get the worldserver.conf and authserver.conf from the direstory
You need to change the name of them, in the directory they are called worldserver.conf.dist and authserver.conf.dist
You open them in nano and write out, save by taking off the .dist extenstion
```
nano worldserver.conf.dist
nano authserver.conf.dist
```
# Database Installation
*