Lajamerr_Mittesdine

Detailed Guide for installing fresh TrinityCore 3.3.5 on Fedora 34

Jun 7th, 2015 (edited)
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.47 KB | None | 0 0
  1. As root:
  2.  
  3. #1--------------Make sure Fedora is up to date--------------
  4.     dnf -y update
  5. #2--------------Install necessary prerequisites--------------
  6.     dnf -y install autoconf libtool gcc gcc-c++ make cmake git wget p7zip p7zip-plugins ncurses-devel openssl openssl-devel mariadb mariadb-server mariadb-devel readline-devel zlib-devel bzip2-devel boost-devel screen zeromq glib2-devel libcurl-devel tar gmp-devel
  7.  
  8. #3--------------Make MariaDB start at boot and start MariaDB now--------------
  9.     systemctl enable --now mariadb
  10.  
  11. #4--------------Create a user called trinitycorewow to run the TrinityCore Server--------------
  12.     useradd -m -G wheel trinitycorewow
  13.     passwd trinitycorewow
  14.    
  15. #5--------------Become the user trinitycorewow--------------
  16.     sudo -i -u trinitycorewow
  17.  
  18. #6--------------Change the directory to the home of trinitycorewow--------------
  19.     cd /home/trinitycorewow
  20.  
  21. #7--------------Set up the configuration for MariaDB--------------
  22.     sudo mysql_secure_installation
  23.  
  24. #8--------------Clone the repository of TrinityCore's 3.3.5 branch--------------
  25.     git clone -b 3.3.5 git://github.com/TrinityCore/TrinityCore.git
  26.  
  27. #9--------------Create the build directory for TrinityCore and change directories--------------
  28.     mkdir /home/trinitycorewow/TrinityCore/build && cd /home/trinitycorewow/TrinityCore/build
  29.  
  30. #10--------------Create a Build Directory and generate a makefile--------------
  31.     cmake ../ -DCMAKE_INSTALL_PREFIX=/home/trinitycorewow/server -DCONF_DIR=/home/trinitycorewow/server/etc -DTOOLS=1 -DWITH_WARNINGS=1
  32.    
  33. #11--------------Make and install TrinityCore--------------
  34.     make
  35.     make install
  36.    
  37. #11--------------Download the latest SQL Database for World and Hotfixes for TrinityCore and extract the archive--------------
  38.     cd /home/trinitycorewow/server
  39.     wget https://github.com/TrinityCore/TrinityCore/releases/download/TDB335.21061/TDB_full_world_335.21061_2021_06_15.7z
  40.     7z e TDB_full_world_335.21061_2021_06_15.7z
  41.  
  42. #11--------------Create database user called trinity and create the auth,characters,hotfixes,world databases--------------
  43.     mysql --default-character-set=utf8 -u root -p < sql/create/create_mysql.sql
  44.  
  45. #12--------------Import tables to the characters, auth, world, hotfixes database--------------
  46.     mysql --default-character-set=utf8 -u trinity -p characters < sql/base/characters_database.sql
  47.     mysql --default-character-set=utf8 -u trinity -p auth < sql/base/auth_database.sql
  48.     mysql --default-character-set=utf8 -u trinity -p world < TDB_full_world_335.21061_2021_06_15.7z
  49.  
  50.  
  51. #15--------------Realmlist configuration(In this section you give the IP address and name of the realm)--------------
  52.     mysql --default-character-set=utf8 -u trinity -p auth -e "UPDATE realmlist SET address='SETTHEIPOFTHEREALM' WHERE id='1';"
  53.     mysql --default-character-set=utf8 -u trinity -p auth -e "UPDATE realmlist SET name='SETTHENAMEOFTHEREALM' WHERE id='1';"
  54.  
  55. #18--------------OPTIONAL STEPS TO GET DBC, Maps, MMaps, and VMaps QUICKER(Below)--------------
  56.  
  57.     #18a--------------Go to trinitycorewow home folder--------------
  58.         cd ~
  59.  
  60.     #18b--------------Get a tool to download from mega.co.nz--------------
  61.         wget http://megatools.megous.com/builds/megatools-1.9.95.tar.gz
  62.         tar -zxvf megatools-1.9.95.tar.gz
  63.  
  64.     #18c--------------Make and install the megatools--------------
  65.         cd megatools-1.9.95
  66.         ./configure
  67.         make
  68.         make install
  69.  
  70.     #18d--------------Go to the Folder where DBC, Maps, MMaps, and VMaps need to be copied--------------
  71.         cd ~/server/data/
  72.  
  73.     #18e--------------Get archives of DBC, Maps, MMaps, VMaps and extract them and remove the leftovers--------------
  74.         megadl --path=. 'https://mega.co.nz/#!JZoglIYI!csV28gokYUh4RCsLMfqEW4IhtbaeKNdLH_iWOd_OaPM'
  75.         7z x dbc.7z
  76.         megadl --path=. 'https://mega.co.nz/#!dUYhCSxQ!yEFQC9q5RMNXyaT-QTHKMWhU5nROKDfjKWTs5Y_gngc'
  77.         7z x maps.7z
  78.         megadl --path=. 'https://mega.co.nz/#!EFYkhAIY!H9ZxLV25Dsc0ZBjZKEFcVVpxfIyEWcbtLVX56Vhxb_s'
  79.         7z x mmaps.7z
  80.         megadl --path=. 'https://mega.co.nz/#!lYo1SSIT!oJE3nJHsAVusE5AOVUDZ8U-dn0QV5Wo3spKoUpASZiE'
  81.         7z x vmaps.7z
  82.         rm *.7z
  83.  
  84. #18--------------OPTIONAL STEPS TO GET DONE QUICKER(Above)--------------
  85.  
  86. #19--------------If you do not have the DBC, Maps, MMaps, and VMaps already and you did not follow the quick route to obtaining them, you will need to extract them yourself--------------
  87.     #--------------SKIP THIS IF YOU ALREADY GOT YOUR DBC, MAPS, MMAPS, and VMAPS(Below)--------------
  88.         cd <your WoW client directory>
  89.         /home/trinitycorewow/server/bin/mapextractor
  90.         cp -r dbc maps /home/trinitycorewow/server/data
  91.         /home/trinitycorewow/server/bin/vmap4extractor
  92.         mkdir vmaps
  93.         mkdir mmaps
  94.         /home/trinitycorewow/server/bin/vmap4assembler Buildings vmaps
  95.         cp -r vmaps /home/trinitycorewow/server/data
  96.         /home/trinitycorewow/server/bin/mmaps_generator
  97.         cp -r mmaps /home/trinitycorewow/server/data
  98.     #--------------SKIP THIS IF YOU ALREADY GOT YOUR DBC, MAPS, MMAPS, and VMAPS(Above)--------------
  99.  
  100. #20--------------Copy worldserver and bnetserver .dist files to just .conf--------------
  101.     cd ~/server/etc
  102.     cp worldserver.conf.dist worldserver.conf
  103.     cp bnetserver.conf.dist bnetserver.conf
  104.     sed worldserver.conf -re 's/^(DataDir = )"\."$/\1"../data"/' -i
  105.  
  106. #21--------------Go the Server Binary Directory and launch bnetserver and worldserver--------------
  107.     cd ~/server/bin
  108.     screen -dmS bnetserver
  109.     screen -S bnetserver -X stuff 'cd ~/server/bin\n ./bnetserver\n'
  110.     screen -dmS worldserver
  111.     screen -S worldserver -X stuff 'cd ~/server/bin\n ./worldserver\n'
  112.     screen -r worldserver
Add Comment
Please, Sign In to add comment