Jump to content

Search the Community

Showing results for tags 'ubuntu'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Mangos Zero
    • Enhancement Requests (Zero)
    • Tasks (Zero)
  • Mangos One
    • Enhancement Requests (One)
    • Tasks (One)
  • Mangos Two
    • Enhancement Requests (Two)
    • Tasks (Two)
  • Mangos Three
    • Enhancement Requests (Three}
    • Tasks (Three)
  • Mangos Four
    • Enhancement Requests (Four)
    • Tasks (Four)
  • Mangos Five
    • Enhancement Requests (Five)
    • Tasks (Five)
  • Cross-Core
    • Bugs
    • Enhancement Requests
    • Tasks
    • Sub-Modules
    • Eluna
    • Linux
    • Windows
    • Archived Cross-Core/Other Reports
  • Others
    • Mangos VB
    • Mangos Sharp
    • Third Party Software
    • Website
  • Bug Tracker Archives (Resolved issues)
    • Archived Reports (Zero)(Resolved issues)
    • Archived Tasks (Zero)(Resolved issues)
    • Archived Reports (One)(Resolved issues)
    • Archived Tasks (One)(Resolved issues)
    • Archived Reports (Two)(Resolved issues)
    • Archived Tasks (Two)(Resolved issues)
    • Archived Reports (Three)(Resolved issues)
    • Archived Reports (Five)(Resolved issues)


  • Development Roadmap
  • Documentation
    • Installation Guides
    • Playerbot AI
    • Standards And Practices
  • Tutorials
    • Advanced
    • Contributing to Mangos
    • Debugging
  • Reference Information
    • ClientFiles
    • Database Info
    • DBC Files
    • Other
    • Packet Info
    • Server Files
    • Server Components


  • MaNGOS Information
    • Announcements & Releases
    • Covenant-WoW.com Website - Official Mangos Test Servers
  • Community Discussion Areas
    • Introduce Yourself
    • Community Cafe
    • Community Input
    • Community Projects
    • MaNGOS University
  • Community Help and Support
    • Peer to Peer Technical Support
    • Frequently Asked Questions
    • Resources
  • Development & Patch Submissions
    • Development
    • Patch Submissions
  • Eluna LUA Engine
    • Eluna Central
  • International Help & Support
    • International Boards
  • Archived
    • Main Archives
    • Archive of Pre-2012 Forum


  • Mangos Zero
  • Mangos One
  • Mangos Two
  • Mangos Three
  • Addons
    • Classic Addons
  • World Of Warcraft Patches
    • WoW Patches
    • The Burning Crusade Patches
    • Wrath of the Lich King
    • Client Tools Patchers


  • getMaNGOS
  • DBC handling for mangos
  • The Road to Zero Release 21
  • Necrovoice's development blog.
  • What the Heck happened to Antz and MaNGOS in 2018 !!
  • Other Wow Emu Projects


  • Community Calendar

Marker Groups

  • Members

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Website URL





About Me




Found 6 results

  1. With LXD you can easy take snapshots and move your server to another physical machine. Guide is fully tested on MaNGOS Zero with bots module enabled. Check the video with installation process: https://asciinema.org/a/299001 If you do not want to use LXD, simple pass LXD instruction and go further. Let's start LXD installation & configuration: sudo apt install lxd && reboot Reboot is needed for reloading groups that will be assigned to your account. sudo lxd init with above command anserw defaults to all questions. Create container for our server: lxc launch ubuntu:bionic mangos-zero check if your container is running: lxc list +-------------+---------+-----------------------+-----------------------------------------------+------------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +-------------+---------+-----------------------+-----------------------------------------------+------------+-----------+ | mangos-zero | RUNNING | *.*.*.* (eth1) | | PERSISTENT | 3 | +-------------+---------+-----------------------+-----------------------------------------------+------------+-----------+ now we will connect to our container: lxc exec mangos-zero bash Please verify that you are on your contierner, you should have promt like this [email protected]:~# if not you must try again with previous command providing your container name. MaNGOS server installation Install necessary packages: apt install git make cmake libssl-dev libbz2-dev build-essential default-libmysqlclient-dev libace-6.4.5 libace-dev mysql-server We need also install additional mysql package. I've attached file in this post so you don't need to search it. Download this file and send to your container. Open another terminal window and type: lxc file push /DOWNLOADED_DIRECTORY/mysql-apt-config_0.8.14-1_all.deb mangos-zero/root/ Go back to first terminal where you are logged to your container and type: dpkg -i /root/mysql-apt-config_0.8.14-1_all.deb on installation window check mysql 5.7 is selected and hit Enter, when window will close type: apt update && apt full-upgrade -y When all packages are installed, secure your mysql installation. Please type and anserw to few questions to secure your mysql server. mysql_secure_installation Create new username and password to access our mysql server: mysql GRANT ALL ON *.* to 'mangos'@'localhost' IDENTIFIED BY 'set_database_password'; Getting MaNGOS source code, compile and configuration. We will create new folder for sources: mkdir /opt/mangos && cd /opt/mangos Now we will download server and database sources to created folder. MaNGOS zero source (if you want different mangos version please change mangoszero to different repo name): git clone https://github.com/mangoszero/server.git --recursive --depth 1 Database files: git clone https://github.com/mangoszero/database.git --recursive --depth 1 Compiling MaNGOS (if your CPU have less than 4cores change -j4 to -j2 for two core CPU): cd server && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/bin/mangos && make -j4 && make install above command will create build folder, compile and install compiled server. Database installation: cd /opt/mangos/database && chmod -R +x *.sh && ./InstallDatabases.sh above command will fix script permissions and install your database. GameData files extraction: This can me done inside or outside the container, choice is yours how you do it. Remember that extraction take some time, so go take a cup of tea/coffe and cookie and wait. (ETA 1-2h) We need proper files for exctraction, go to your mangos installation and copy those files to yor game client: cd /usr/local/bin/mangos/bin/ && chmod -R +x *.sh && cp -av tools/* ExtractResources.sh MoveMapGen.sh mmap_excluded.txt offmesh.txt /GAME_CLIENT_DESTINATION now go to your game client and run: ./ExtractResources.sh Server configuration: First we have to fix path to MaNGOS configruation. We can do this in config files or simply creating a symlink. In this tutorial we will create symlink to keep defaults. cd /usr/local/bin/mangos/ && ln -s ../etc Now we have to copy config files: cd etc/ && cp -av mangosd.conf.dist mangosd.conf && cp -av realmd.conf.dist realmd.conf In realmd.conf find "LoginDatabaseInfo" and change database username and password to credentials we created before. In mangosd.conf find "LoginDatabaseInfo", "WorldDatabaseInfo", "CharacterDatabaseInfo" and change database username and password to credentials we created before. Systemd configuration: Create systemd configuration to autostart your realmd and mangosd. In LXD I recommend to run mangosd in screen, we prepare such a configuration in this tutorial. Realmd service: cat > /etc/systemd/system/realmd.service <<EOF [Unit] Description=MangosZ server After=network.target mysql.service [Service] Type=simple User=root ExecStart=/usr/local/bin/mangos/bin/realmd -c /usr/local/bin/mangos/etc/realmd.conf WorkingDirectory=/usr/local/bin/mangos/bin/ Restart=on-abort [Install] WantedBy=multi-user.target EOF Mangosd service: cat > /etc/systemd/system/mangosd.service <<EOF [Unit] Description=MangosZ server After=network.target mysql.service [Service] Type=simple User=root #ExecStart=/usr/local/bin/mangos/bin/mangosd -c /usr/local/bin/mangos/etc/mangosd.conf ExecStart=/usr/bin/screen -mdS mangosd /usr/local/bin/mangos/bin/mangosd -c /usr/local/bin/mangos/etc/mangosd.conf WorkingDirectory=/usr/local/bin/mangos/bin/ PIDFile=/usr/local/bin/mangos/etc/mzero.pid RemainAfterExit=true Restart=on-abort [Install] WantedBy=multi-user.target EOF Reload systemd with: systemctl daemon-reload Enable services for autostart: systemctl enable realmd systemctl enable mangosd Start services: systemctl start realmd systemctl start mangosd Checking status of running services: systemctl status realmd systemctl status mangosd If you want to attach to mangosd console, simply type: screen -r mangosd to detach mangosd screen press keyboard combination: CTRL+A+D Update IP address in database, so you can connect to your server: mysql realmd -h localhost -u mangos -p check your values in realmlist table select address,localAddress from realmlist; +---------------+---------------+ | address | localAddress | +---------------+---------------+ | | | +---------------+---------------+ then update address and localAddress values with two query (replace IP_ADDRESS with yours) update realmlist set address='IP_ADDRESS'; update realmlist set localAddress='IP_ADDRESS'; Last thing is to restart both services and try to connect. At the end I wan't to share with you LXD container image, I made this tutorial based on it. Container do not include GameData so you have to extract it by yourself. MaNGOS-Zero LXD container based on Ubuntu 18.04 How to use it? Download the file and type in terminal (you must have LXD) lxc image import mangoszero-serv.tar.gz --alias mangosz-img lxc launch mangosz-img mangos-zero mysql-apt-config_0.8.16-1_all.deb
  2. I am following the guide here ... https://www.getmangos.eu/wiki/documentation/installation-guides/guideslinux/installing-mangos-on-ubuntu-1604-lts-r20078/ I am running Ubuntu 16.04 and chose to install MaNGOS 3. I have tried this many, many times and it is always failing constantly with errors at different places, which I have managed to fix until now. First of all, I thought that now everything was being done by a script, everything was going to be easy..... no... it is still accompanied by errors, and guides missing out vital stages. All of my client files have been copied to my MaNGOS home directory. Along the way, I noticed several typos and throughout the script which were either causing me errors or I had spotted during browsing the script. These were a clear indication that this script was never tested properly before being released and it would not have worked with these errors. Here's the diff on a couple of these:- < INSTPATH="$ROOTPATH/fice" --- > INSTPATH="$ROOTPATH/five" < rm -f "$GAMEPATH/map-extractor" --- > rm -rf "$GAMEPATH/map-extractor" As you can see, a typo where 'fice' should have been 'five' and also when removing a directory (recursively) it is missing the -r switch. Anyway, these were easy fixes but now the real problems begin... Everything appears to work fine until this point:- The realm database has been created!The realm database has been created! The characters database has been created! The world database has been created! The file "/home/mangos/three/src/database/World/Setup/FullDB/achievement_criteria_requirement.sql" was processed properly The file "/home/mangos/three/src/database/World/Setup/FullDB/achievement_reward.sql" was processed properly The file "/home/mangos/three/src/database/World/Setup/FullDB/areatrigger_involvedrelation.sql" was processed properly The file "/home/mangos/three/src/database/World/Setup/FullDB/areatrigger_tavern.sql" was processed properly The file "/home/mangos/three/src/database/World/Setup/FullDB/areatrigger_teleport.sql" was processed properly ... Database update "/home/mangos/three/src/database/World/Updates/Rel21/Rel21_07_006_Populate_missing_GO_desc.sql" was successfully applied! Realm Name: MaNGOS Three Server #1 Realm ID: 1 dirname: missing operand Try 'dirname --help' for more information. The sql files all appear to be created successfully but immediately afterwards there appears to be a problem with the dirname and this is because there is an issue with the find command. Running this directly on the command line gives me a permission denied :- INSTGAMEPATH=$(dirname $(find /home -name "WoW.exe"| head -1 2>>/dev/null)) By this time I had re-run the whole getmangos script more than half a dozen times over a period of many hours and I couldn't be bothered to fix this so I just corrected it as follows:- INSTGAMEPATH=$(dirname $(find /home/mangos -name "Wow.exe"| head -1 2>>/dev/null)) Oh and by the way note how I have changed the WoW.exe to Wow.exe as it appears in my client, and without this change the find command will return nothing. Strangely, it will now ask your game path (again?), which I had to manually enter. I think this bit of the script needs some rework. lqqqqqqqqqqqqqqqqqqqqqWoW Game Pathqqqqqqqqqqqqqqqqqqqqqqqqk x Please, provide the path to your game directory. x x Default: x x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x/home/mangos x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu x < OK > <Cancel> x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj And then, this is when the script falls on its arse completely... lqqqqqqqqqqqqqqqqqqqqqqqqqqqSelect Tasksqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Please select the extractions to perform x x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x [*] 1 DBC and Maps x x x x [*] 2 Vmaps x x x x [*] 3 Mmaps x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x x x tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu x < OK > <Cancel> x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj As soon as you continue here, this is what appears on the screen... Map & DBC Extractor =================== No locales detected cp: cannot stat '/home/mangos/dbc': No such file or directory cp: cannot stat '/home/mangos/maps': No such file or directory Logging usage: Log <message> <echo flag> Beginning work .... Loading common MPQ files Error open archive: ./Data/enGB/locale-enGB.MPQ Error open archive: ./Data/enUS/locale-enUS.MPQ Error open archive: ./Data/deDE/locale-deDE.MPQ Error open archive: ./Data/esES/locale-esES.MPQ Error open archive: ./Data/frFR/locale-frFR.MPQ Error open archive: ./Data/koKR/locale-koKR.MPQ Error open archive: ./Data/zhCN/locale-zhCN.MPQ Error open archive: ./Data/zhTW/locale-zhTW.MPQ Error open archive: ./Data/enCN/locale-enCN.MPQ Error open archive: ./Data/enTW/locale-enTW.MPQ Error open archive: ./Data/esMX/locale-esMX.MPQ Error open archive: ./Data/ruRU/locale-ruRU.MPQ Reading liquid types from LiquidType.dbc...Fatal error: Could not read LiquidType.dbc! There was an issue while extracting VMaps! I am almost at the point of giving up as it is one problem after another. No locales detected Cannot locate the dbc or maps directory (these have not been created yet) A scripting problem being highlight by the logging usage message MPQ files!!!?? These have not been used in game clients for at least a couple of years! - I don't see this script ever working with current game clients. Error reading .dbc files... (maybe because the dbc directory does not exist?) An error extracting vmaps I have been trying to install MaNGOS over a number of years now and I never successfully completed it as there are always errors, more errors, incorrect or missing instructions. Sometimes even to the point of disinformation. I then give up. Again it seems that there are a plethora of errors etc in this script but I am determined to get to the bottom of it this around. I have gone quite a long way to investigate and report these errors and I would appreciate some help, please. If there is any further information you require, please ask. I have just tried this again and thought that this may me working, but no...... Then out of desperation, I tried the ExtractResources.sh script. This script appears to be deceptive and when you think it is working away like a busy beaver, it is actually doing nothing. One the screen it shows... Tue 25 Jul 09:07:28 BST 2017: Start extracting data for MaNGOS DBC and map files will be extracted Vmaps will be extracted Mmaps will be extracted with 1 processes Tue 25 Jul 09:07:28 BST 2017: Start extracting data for MaNGOS, DBCs/maps 1, vmaps 1, mmaps 1 on 1 processes Tue 25 Jul 09:07:28 BST 2017: Start extraction of DBCs and map files... Map & DBC Extractor =================== No locales detected Tue 25 Jul 09:07:28 BST 2017: Extracting of DBCs and map files finished Tue 25 Jul 09:07:28 BST 2017: Start extraction of vmaps... However, after waiting for a few hours, I decided to check its progress. I could find no maps, mmaps, dbc's or vmaps anywhere, so I checked the log file getmangos.log and this is what it says... 2017-07-25:09:23:32 Extracting DBC and Maps 2017-07-25:09:23:32 DBC and Maps are extracted 2017-07-25:09:23:32 Copying DBC and Maps files to installation directory 2017-07-25:09:23:37 Deleting VMaps previously generated. 2017-07-25:09:23:37 Copying VMaps extractor 2017-07-25:09:23:37 Extracting VMaps 2017-07-25:09:23:37 There was an issue while extracting VMaps! So all along it was doing nothing. Once again, please help...
  3. Hi forum, Today I will teach you how to install MaNGOS on Ubuntu virtual box. As some of you may know I an supporting a MaNGOS WoW server installation bash script on Ubuntu/Debian. I always do prefer running my WoW server on a virtual machine, so everything can become easy as pie when you mes it up The thing we will need: 1. Ubuntu OS: ( https://www.ubuntu.com/download/desktop ) (Ubuntu 16.04 x32 or x64) This is so called "GUEST OS" 2. Oracle virtual box: ( https://www.virtualbox.org/wiki/Downloads ) ( Depending on your host. I am gonna install it for Windows my "HOST OS" ) 3. Oracle VB additions: "VirtualBox #VERSION# Oracle VM VirtualBox Extension Pack" ( Click on the link that says this in [2] ) First download all the stuff above and save it to folder of choice ( I am gonna call it "INSTALL" ). Go to your INSTALL folder and open the virtual box to install it. This is pretty straight forward, though if you do not like where your virtual machine HDDs are stored, you can always change it by ( File -> Preferences -> [Left list] General -> Default Machine folder ). I prefer mine in "E:\VirtualMachines". Now we need to install the extensions. Go to ( File -> Preferences -> [Left list] Extensions -> Extension packages -> The little arrow-down button ). It will prompt you to browse for your extension. Give it the file downloaded file in point [3]. We are now done, so go ahead and create a virtual machine. Name it whatever you like but keep it consistent ( I used "Ubuntu 16.04 WoW x64" ). The type must be "Linux" and the version "Ubuntu" ( x32 or x64 depending on pint [1] ). Click "Next" This screen is used to set the memory [Memory] Press ( Ctrl + Shift + Esc ) to open the task manager and view how much RAM do you have free. You can use the half of it. I had 16GB free, so I went for 8GB. [Hard disk] Please use at least 10GB as there are dependencies and additional software needed for installing MaNGOS. [Hard disk file type] Make sure you always *.VDI, if you want to extend the virtual HDD in the future. [Storage of physical hard disk] If you use "Dynamically allocated" the virtual HDD grows in size as you install sutff in the GUEST ( In our case the Ubuntu ). The "Fixed size" will allocate the whole HDD on creation. [File location and size] This tells Oracle VB where to store your virtual HDD. It must be a valid file name. I personally use the name, which I create my VMs with ( "Ubuntu 16.04 WoW x64" ) and the limit which the virtual HDD should never exceed. Now go ahead and click on "Settings" We are now going to configure the system, so click on (System). Tab (Motherboard) Boot order: 1) Optical, 2) HDD Chipset: PIIX3 Pointing device: USB tablet Extended features: Check only (I/O APIC), (Hardware Clock in UTC Time) Tab (Processor) Processor: Give it all CPUs available Execution cap: Never go all the way up to 100. I keep it at 70% Enable PAE/NX checked Tab (Acceleration): Check all the check-boxes and set interface to default. Configuring the (Display) Tab (Screen) Video memory: 128 or 64 MB is quite good Monitor count: How many monitors is it displayed in. I use one of my two. Do not mess with the other tabs Configuring the (Storage). Here you will have a storage tree with IDE and SATA. Go ahead and delete the IDE controller (Right-click->Delete or Del), then add a CD drive to the SATA controller by clicking the CD icon with the green plus sign. A prompt will appear for media selection. Click "Chose Disk" and insert the ISO downloaded in [1]. Configure adapter one of the network tab to bridged if you have a second network card and you want your server to run on it or NAT if you don't. I am gonna use "Intel Pro 1000 MT Desktop (82540EM)" as Ubuntu takes it without any drivers. Now Click "OK" on the settings window to apply your changes to the Ubuntu VM. Start it and follow the Ubuntu installation. until you install the Ubuntu OS from the CD in [1]. When you see the desktop showing for the first time, open the software sources ( https://help.ubuntu.com/community/Repositories/Ubuntu ) and on "Download from" drop down menu chose "Main server" then "Reload". Open the terminal and type "apt-get update". After this you must install VB dependencies. I also have a script for that purpose: https://github.com/dvdvideo1234/UbuntuBatches/tree/master/VirtualBox Download the script to your home folder and start it. It will install all the VB dependencies (Do you want to install dependencies [y/n]? y). Beware there will be restart needed if you chose to run the update manager (Do you want to run force-update [y/n]? y). Now install the VB addition CD provided by Oracle by clicking (Devices->Insert Guest Addition CD Image..) and hit the run button. Authorize it to proceed and follow the console prompt. After the installation you will have bi-directional copy-paste and all needed VB hardware support. We are finally here to install MaNGOS from source. I have a script dedicated to this here ( View the readme.md for further questions ): https://github.com/dvdvideo1234/UbuntuBatches/tree/master/MaNGOS Download the script to your folder of choice ( I will call it "SEVER" ), mark it as executable (sudo chmod +x config.sh) and run it. The title ("TITLE") that you chose will be installed in the "SERVER"/"TITLE". directory. Now follow the console prompt and anwer the questions seen. If you are not using a proxy, answer "Are you using a proxy [n or <proxy:port>] ?" with "n" The script supports vanilla WoW too. I just forgot to update the readme.md After the installation is done. It will compile and install the MaNGOS WoW server. and you must extract and install the maps and vmaps yourself, so please follow the continued MaNGOS project maps installation procedure here: You are practically done ;). Have fun playing in your private server.
  4. On Ubuntu systems, and possibily on others as well, the re-creation of an user with a group that did already exist (e.g. mangos:mangos) makes the installation to fail because the group already exist. The useradd command must then be amended with the -g option.
  5. Hi all, I'm trying to build the new master branch and getting the following error: Scanning dependencies of target generate_precompiled.cpp [ 28%] Generating precompiled.h.gch [ 29%] Built target generate_precompiled.cpp Scanning dependencies of target mangosscript [ 29%] Building CXX object src/modules/SD3/CMakeFiles/mangosscript.dir/precompiled.cpp.o c++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. make[2]: *** [src/modules/SD3/CMakeFiles/mangosscript.dir/precompiled.cpp.o] Error 4 make[1]: *** [src/modules/SD3/CMakeFiles/mangosscript.dir/all] Error 2 make: *** [all] Error 2 There was an error building MaNGOS! This was working a few days ago but now isn't. Any idea what I'm missing or what would have caused it? Thanks!
  6. Hi all, After a fair bit of trouble, I decided to share this guide on how I got things working. It'll be a living document so please bear with me (formatting will improve after I'm done compiling everything here). This specifically assumes you're running Ubuntu 14.04 x86_64. Anything else is specifically outside the scope of this document. This assumes a functional knowledge of Linux and the basic tools available. '$' denotes commands to run. Things you'll want: -SSH access to your machine along with sudo permissions. -You will want at least one server. Two is better for separating mySQL to it's own machine but not required (a lot of my testing takes place on one machine). -You specifically want to use mysql5.6 for the mysql_conf_editor. Most of the commands will fail without. Let's get started: Start by setting up your hostname, sudoers file and any disk volumes you want to use. You may also want to add your ssh key to the box to make accessing it easier. Run the following commands as root or add sudo before each. $ apt-get update && apt-get upgrade $ apt-get install build-essential gcc g++ automake git-core autoconf make patch libmysql++-dev libtool libssl-dev grep binutils zlibc libc6 libbz2-dev cmake subversion libboost-all-dev mysql-client-5.6 screen libace-dev The above commands you're setting up two servers (one for the realm/mangos, another for your mysql database. If you're using one server, also add mysql-server-5.6 to the above command). Now get the 'getmangos' script by running the following: $ git clone https://github.com/mangoszero/server.git server --recursive -b develop21 In the above command, ensure you use 'server' after the repo. Also, change 'develop21' to 'release20' if you want the stable branch. However, develop21 seems to be widely used Once things are downloaded, move to ~/server/linux. Bear in mind I'm doing this from /root. Inside you'll find 'getmangos.sh'. I usually copy this to my base home folder so I can edit it and not lose it. e.g.: $ cp getmangos.sh ~ At this point you might want to diverge and setup mysql-server and upload your Windows WoW directory in full to a known directory. This will come in handy later when extracting the resources. Once you've setup mysql and upload your WoW directory, continue on (I'll flesh this out if people have trouble). It's time to run 'getmangos.sh' and follow the prompts. $ bash ~/server/linux/getmangos.sh or, if you moved the script as recommended: $ bash ~/getmangos.sh Take note here: Select options 1, 2, 3, 4, 5. Only select #6 if your database is already setup. You can specifically come back to this menu and resume steps later (bearing in mind not to delete your source directory or installation in the event you're prompted). Press yes throughout until you get to 'Choose WoW Release'. I choose 0 here and you should too. Next prompt is important and where you'll get stuck if you didn't follow the instructions properly. Specifically enter '/root' for this prompt and nothing else (if you're root). Your git clone above should have created /root/server if you did this right. You'll be informed the path already exists, select 'No' unless you know what you're doing or are starting over. 'Installation Path' is next and is important also. I install to '/Wow' and I recommend it if you added a large data volume. Follow the prompts until you get to 'Clone or update MaNGOS'. Select '0'. If you have problems, rerun the script. I used to have a lot of problems so I edited the script at line #651-653 and added the following instead "git clone https://github.com/mangoszero/server.git server --recursive -b develop21". If you run into problems on this commend, I recommend editing /root/server/linux/getmangos.sh to look like this around line #650: # use existing repository if [[ $CLONE = *2* ]]; then git clone https://github.com/mangoszero/server.git server --recursive -b develop21 Log "Using existing local repository" 1 fi } If you do that, select option '2', which will simply clone the repo. You should now be prompted with a new screen called 'Build Options'. I usually pick #2, 3, 5, 6, 7. Omit #5 if this isn't your first time building it and already have the client tools installed/maps extracted. You'll want the client tools later. After that it'll ask if you want to build/install Mangos across two prompts. Just say yes. If everything goes well and you followed the steps above carefully, you should see it install for quite awhile. Next you need to extract your map data from your Wow client folder. You only need to do this once per version (e.g., you can run many servers from the same extracted data but not new releases). E.g., I have 2 release20 servers and I just copy dbc, *maps, etc into the new bin directory. Develop21 requires me to build new extraction tools and run the extraction again. Sometimes the extraction process fails. In which case what I do is the following: Go into your installation directory. $ cd /Wow/bin/tools Copy all the tools to your Wow client folder. My folder structure is as follows: /Wow /Wow/Wow-client So you would do this: $ cp /Wow/bin/tools/* /Wow/Wow-client $ cd /Wow/Wow-client $ bash ExtractResources.sh You'll be prompted to select what you want extracted. I pick everything for a new release but you can pick and choose. Make sure that if you're running a multi-core machine that you enter '4' when prompted about threading. This will take awhile but once it's done, you'll be left with the following folders: /Wow/Wow-client/dbc /Wow/Wow-client/vmaps /Wow/Wow-client/maps /Wow/Wow-client/mmaps Copy all of these to your /Wow/bin folder: $ cp -r /Wow/Wow-client/dbc /Wow/bin Repeat the above for the other folders mentioned. Once you're done that, you have two things left to do. Ensure your database is setup properly and edit your server configs. Let's edit the server configs first then ensure the DB is working. $ cd /Wow/etc Copy mangosd.conf.dist to mangos.conf and realmd.conf.dist to realmd.conf Edit both of them. The important section in mangos.conf has the following values: LoginDatabaseInfo = "dns/IP;3306;mangos;*****;realmd" WorldDatabaseInfo = "dns/IP;3306;mangos;*****;mangos" CharacterDatabaseInfo = "dns/IP;3306;mangos;*****;characters" ScriptDev2DatabaseInfo = "dns/IP;3306;mangos;*****;mangos" Make sure you change 'dns/IP' to reflect your mysql instances address. In addition, make sure you change the 3rd field to your DB username and then set the password. Your databases may be slightly differently. Sometimes they're called 'character0' or 'zero_*'. Do the same for realmd.conf: LoginDatabaseInfo = "dns/IP;3306;mangos;*****;realmd" What's interesting about this section is that in the future if you want to scale, you can actually run realmd on a separate server along with the database. For now everything is going to be in one DB. Now that's done you just need to setup the database if things didn't happen automatically earlier. Confirm you're set by checking the database/tables. $ mysql -u *username* -p*password* $mysql> show databases; $mysql> use mangos; $mysql> select * from db_version; If you used release20, your database should look kind of like this: +-------------------------------------------------------+------------------------------------------------------+--------------------------------------+ | version | creature_ai_version | required_20007_01_Rel20_Release_Prep | +-------------------------------------------------------+------------------------------------------------------+--------------------------------------+ | ZeroDatabase 2.0.18 for MaNGOSZero / ScriptDev 20004+ | MaNGOSZero Artificial Creature Intelligence Database | NULL | | MaNGOSZero Database 2.0.11 Rev 20007_18 | EventAI and Scripts available | NULL | +-------------------------------------------------------+------------------------------------------------------+--------------------------------------+ Develop21 will look kind of like this: mysql> select * from mangos.db_version; +---------+-----------+---------+----------------+-------------------------------------------+ | version | structure | content | description | comment | +---------+-----------+---------+----------------+-------------------------------------------+ | 21 | 11 | 73 | Script_Binding | Base DB Install from 21000_01 to 21.11.73 | +---------+-----------+---------+----------------+-------------------------------------------+ If it doesn't, you'll likely want to download the appropriate database again and fix things up. That's a separate post - add a note if you'd like more info. If you're set, you just need to make your server accessible by doing the following: $mysql> update realmd.realmlist SET localAddress='dns/IP' WHERE id='1'; You may also want to edit the address and name fields. You can infer how to do that from the command above. In theory you should be all set now. All that's left to do is start mangos and realmd and login. For now we'll use 'screen' but I'm working on a runit. $ cd /Wow/bin $ screen ./mangosd Watch this command and make sure not too many red messages appear. To escape screen but keep it running, just hit CTRL + A then CTRL + D in quick succession. Now start realmd $ screen ./realmd That's it! Now if you update the realmlist.wtf file on your personal computer's Wow client to look like this: 'set realmlist dns/IP'. You might also have to edit WTF/Config.wtf to include your dns/IP and possibly remove 'SET realmName "****"' near the bottom. Now you can start your Wow client and try out the administrator account. The login is Username: ADMINISTRATOR, Password: Administrator I hope this helps someone. It was compiled through ~25 hours of trial and error.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use