Welcome to AC Web.
Results 1 to 12 of 12
  1. #1
    PLATINUM SHOP

    Join Date
    Sep 2011
    Location
    Germany
    Posts
    2,497

    Post Linux Tutorial for beginners - Setup your Linux and TrinityCore from scratch


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    WELCOME TO THIS TUTORIAL
    brought to you by Psykko

    ______________________________________________
    Greetings, i decided to publish this small tutorial for all the people without alot Linux knowledge. This Tutorial contains reading and dragons, but it also includes anything you need for a save and successful start on your Linux System. People with Knowledge can surely skip a few steps, this is written for total beginners. Following i list a register of things within this Tutorial. Should we start?
    Gruß an mein Clanmate Gerkono

    Tutorial overview:
    1. Getting a Linux Machine with a free month (optional)
    1.1 Gathering Software for Linux Communication
    1.2 Setup Sessions
    ___
    2. Linux System Setup
    2.1 Installation of needed Packages
    2.2 SSH Port
    2.3 MySQL Port
    2.4 Setup Git
    2.5 Setup User
    ___
    3. Setup TrinityCore
    3.1 Clone the newest TrinityCore
    3.2 Merge with ElunaLuaEngine (optional)
    3.3 Cmake
    3.4 Compiling and Installing
    3.5 Configuration
    3.6 Setup of iptables
    ___
    4. Database Setup
    4.1 User and Database Setup
    4.2 Base Database Installation
    4.3 WorldDb and Updates
    4.4 Realmlist
    ___
    5. Server Startup Prepare
    5.1 Adding an Restarter
    5.2 Starting Auth and World with Screen
    ___
    6. End

    ______________________________________________

    1. Getting a Linux Machine with a free month (optional)

    Im showing you here how you can get a neat vps for small money inculsive a free month of payment.
    This VPS is a great choise for starting a Server.

    2 CPU Cores
    6 GB RAM
    500 GB SSD space
    UNLIMITED traffic
    100 Mbit/s port
    Cent OS 7.1
    Cent OS 6.6
    Debian 8
    Debian 7
    Ubuntu 15.10
    Ubuntu 14.04
    Fedora 23
    openSUSE Leap 42.1
    openSUSE 13.1
    ____________
    6.99 € p.M + Free Month

    Click at the Image above to spectate the VPS.
    ______________________________________________

    1.1 Gathering Software for Linux Communication

    Its up to you what kind of Program you are going to use to communicate with your VPS/Dedicated Server. In this Tutorial I will be using PuTTy and WinSCP, but i will list some other Programs too.

    We are in need of an Program which allows us to open an SSH tunnel between your Computer and your VPS, therefore im using PuTTy.

    And we will also need an File Transfer Protocol Program for Filetransfer between your Computer and your VPS, therefore im using WinSCP since it has many functions and a nice interface.

    PuTTy - Click to Download the Installer
    WinSCP - Click to Download the Installer

    FileZilla - Click to Download the Installer
    CyberDuck - Click to Download the Installer
    BitKinex - Click to Download the Installer

    I would really suggest you to use PuTTy and WinSCP since they have a good integration with each other.

    So we going to install PuTTy by starting the downloaded Installer and following the Steps.



    Now we are going to install WinSCP by starting the Installer and follow the Steps.





    Congratulation, you have successfully installed everything you need to work with your VPS!

    ______________________________________________

    1.2 Setup Sessions

    First of all, we are going to open PuTTy, you should find something like this


    Fill the Informations like in the Layout above.
    (following is an example of mine)



    So far PuTTy is finished.

    Lets open up WinSCP and you should find something like this.

    Fill the Informations like in the Layout above.
    (following is an example of mine)


    Choose again a Name for the Session, i entered My VPS instead of root@85.25.46.60 and mark the Save Password Button. Ok
    (above is an example of mine)

    You are now able to access PuTTy and WinSCP by doubleclicking the Session Name.

    ______________________________________________

    2. Linux System Setup

    We are now going to open our PuTTy Session.
    (note: any first connection to a VPS causes an PuTTy Security Alert, dont get in panic, hit the Yes Button.)
    After that, login with the root user to your Linux System. Take the Password from the Email/Userpanel of your Provider.
    (note: the passwords never getting shown in PuTTy. You can paste into PuTTy per rightclick into the black field)

    We are now logged into our Linux System. Im using Debian 7 minimal 64bit for this Tutorial. Since im running 64bit, i will need to download 32bit Libaries too, so im in need of adding the 32bit architecture to the System for better integration. So we are going to enter dpkg --add-architecture i386 into PuTTy and run it.
    After that happened, we are going to run apt-get update && apt-get upgrade into PuTTy and run it, to catch the updates for the previous set architecture

    Now simply run apt-get install ia32-libs
    Linux Debian 8 Users need:
    apt-get install lib32stdc++6 lib32gcc1
    Ubuntu Users need this:

    sudo -i
    cd /etc/apt/sources.list.d
    echo "deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" >ia32-libs-precise.list
    apt-get update
    apt-get install ia32-libs
    rm /etc/apt/sources.list.d/ia32-libs-precise.list
    apt-get update
    ______________________________________________

    2.1 Installation of needed Packages

    So far our Linux System does not contain any Software exept you are using LAMP (recommented if you are going to host a website too). We are going to install all needed Packages we need to generate, compile and install our TrinityCore containing MySQL (not git, git is getting installed seperate sooner.)
    (note: skip this if you have them installed already.)
    Here is a list of the needed Packages:
    sudo screen libtool gcc g++ mysql-server mysql-client libmysqlclient-dev libmysql++-dev make cmake p7zip-full libncurses5-dev zlib1g-dev libbz2-dev gdb nano openssl libssl-dev libreadline6-dev libboost-dev libboost-thread-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-iostreams-dev build-essential autoconf
    So we are going to run apt-get install -y sudo screen libtool gcc g++ mysql-server mysql-client libmysqlclient-dev libmysql++-dev make cmake p7zip-full libncurses5-dev zlib1g-dev libbz2-dev gdb nano openssl libssl-dev libreadline6-dev libboost-dev libboost-thread-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-iostreams-dev build-essential autoconf into PuTTy and run it.

    It will start reading and downloading the packages and installing them... So far you dont have an mysql-server installed,you are going to get in contact with this screen.

    simply enter an password for the user "root" for MySQL
    you need to re-enter it.

    ______________________________________________

    2.2 SSH Port

    Before it comes to Compiling and all that stuff, we need to do some changes for your own security. We are going to change the SSH port which is currently 22 which is default for Linux.

    We are going to enter nano /etc/ssh/sshd_config into PuTTy
    (note: you can only move per cross-buttons on your keyboard in PuTTy. To enter Numbers, dont use the Numblock.)
    Something like this should appear, we are going to change the part
    Port 22 to something else, you can use any number within this range 49152-65535.
    I am used to 53155.

    Press CTRL+X to exit nano. Now you are getting asked to save changes.


    Enter Y to continue and again press <Enter> after that.


    ______________________________________________

    2.3 MySQL Port

    After we have changed the SSH Port, we are now going to change the MySQL Port too. Default: 3306
    We are going to enter nano /etc/mysql/my.cnf into PuTTy. You should find something like this:



    Change the Port from 3306 at both locations to any number within this range 49152-65535 and put a single # infront of bind-address = 127.0.01 like in the Layout above.

    I am used to 53165. Press CTRL+X to exit nano. Now you are getting asked to save changes.
    Enter Y to continue and again press <Enter> after that.
    Now we need to change the SSH Port in PuTTy and WinSCP from 22 to our new Port.


    Part 2
    Part 3
    Last edited by Psykko; 01-31-2019 at 01:04 PM.

  2. #2


    Join Date
    Jan 2014
    Location
    https://www.cruel-wow.net
    Posts
    1,478
    Extremely detailed and userfriendly! +rep

  3. #3
    PLATINUM SHOP

    Join Date
    Sep 2011
    Location
    Germany
    Posts
    2,497
    Quote Originally Posted by Nuxxiz View Post
    Extremely detailed and userfriendly! +rep
    Thanks for the Comment.

  4. #4
    PLATINUM SHOP

    Join Date
    Sep 2011
    Location
    Germany
    Posts
    2,497
    Updated.

  5. #5

  6. #6
    Legacy of Discord

    Join Date
    Jun 2013
    Location
    PrivateWoW-TopServers.com
    Posts
    1,680
    I think this is the best Totorial for Setup Server on Linux OS

  7. #7
    PLATINUM SHOP

    Join Date
    Sep 2011
    Location
    Germany
    Posts
    2,497
    Thanks Together.

  8. #8
    i think you also need to comment "skip-external-locking" because it will still check for local address in case your server and website point to the same database i think it will lock one of the processes not 100% sure is just a tought

  9. #9
    When trying to install ia32-libs on Ubuntu 16.04, it gives me the following:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    ia32-libs : Depends: ia32-libs-multiarch
    E: Unable to correct problems, you have held broken packages.

  10. #10
    PLATINUM SHOP

    Join Date
    Sep 2011
    Location
    Germany
    Posts
    2,497
    Quote Originally Posted by alpy View Post
    When trying to install ia32-libs on Ubuntu 16.04, it gives me the following:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    ia32-libs : Depends: ia32-libs-multiarch
    E: Unable to correct problems, you have held broken packages.
    Seems your System isnt the correct version. Im sure your Ubuntu is able to skip that when it doesnt want it to install, go ahead and try it without, come back if the problem persist.

  11. #11
    Hello Guys
    I have a question what for 3.3.5but can it be done for 8.2.0?

    - - - Updated - - -

    Hely Gys any1 can tell me if ai can update to 4.3.4 this server guys pls
    Last edited by nook1y2006; 10-31-2019 at 12:56 PM.

  12. #12
    PLATINUM SHOP

    Join Date
    Sep 2011
    Location
    Germany
    Posts
    2,497

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by nook1y2006 View Post
    Hello Guys
    I have a question what for 3.3.5but can it be done for 8.2.0?

    - - - Updated - - -

    Hely Gys any1 can tell me if ai can update to 4.3.4 this server guys pls
    In generel, all cores nowdays are simular in compilation, you can use this tutorial with any sourcecode and database you want!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •