[Tutorial]Can I run AuraKingdom server on Ubuntu?

Results 1 to 12 of 12
  1. #1
    Apprentice PancakeBimmer is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    [Tutorial]Can I run AuraKingdom server on Ubuntu?

    I will be updating this post over next few days with more details. To make it short, yes you can run AuraKingdom server on Ubuntu.

    1.Install OS

    1.1 Install Ubuntu Server using standard procedure. Do not install postgresql during OS installation, but rather do it after OS install and initial configuration. Then configure the rest of the server as per other tutorials.

    Code:
    sudo apt-get update
    sudo apt-get install postgresql postgresql-contrib
    1.2 Configure secured share
    This will make accessing server files a little bit easier, so let install Samba on our server.

    Make sure out repositories are updated by running

    Code:
    sudo apt-get update
    Then install Samba server by entering

    Code:
    apt-get install -y samba samba-common python-glade2 system-config-samba
    Next we backup existing samba config file and start editing a new one.

    Code:
    sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
    sudo nano /etc/samba/smb.conf
    Config file should look something like this. Do not type all of this manually as you are bound to make a typo that will cause all hell to break loose.

    Code:
    [global]workgroup = WORKGROUP
    server string = Samba Server %v
    netbios name = ubuntu
    security = user
    map to guest = bad user
    dns proxy = no
    
    
    [secured]
    path = /azuriaserver
    valid users = @smbgrp
    guest ok = no
    writable = yes
    browsable = yes
    Then we create new group for samba users, create new user in that group, and assign it a password.

    Code:
    addgroup smbgrpuseradd azuria -G smbgrp
    smbpasswd -a azuria
    Finally restart samba

    Code:
    service smbd restart
    That is it, you have created a share that can be accessed by going to server IP in Windows Explorer. You will be prompted for username and password when accessing the share.

    2.Patching server files for proper subnet and WAN

    2.1 Download WAN patcher from evestu's post and patch worldserver.
    WAN patcher can be found here: http://forum.ragezone.com/f938/cento...6/#post8518366

    2.2 Patch worldserver and zoneserver for proper subnet.
    Convert IP to HEX and other way around using this website: IP Address to HEX, Decimal, Binary Converter
    Eperty123's AK Tools: http://forum.ragezone.com/f937/relea...5/#post8581735
    NetTrodon's shell script for patching on server directly: http://forum.ragezone.com/f937/relea...3/#post8587134

    2.3 Portforward server ports
    On your router/firewall make sure to forward/allow ports listed below to the IP of AK Server.
    Login server: 6543
    World Server: 5567
    Zone Server: 10021
    World Server 2: 5568
    Zone Server 2: 10022

    2.4 Update database
    Login server uses data from database ffaccount and table worlds to send a list of servers to client. Update IPs in that table to your WAN IP.
    Make sure to keep LAN IP in database ffdb1 table serverstatus.

    2.5 Check if ports are open
    Start the server and check if ports are open by going to Open Port Check Tool and entering all the ports listed above, one by one.

    Add services

    Running server as service is more convenient so why not do it.

    Code:
    sudo nano /etc/systemd/system/TicketServer.service
    Code:
    [Unit]Description=Aura Kingdom TicketServer
    
    
    [Service]
    WorkingDirectory=/azuriaserver/TicketServer
    ExecStart=/azuriaserver/TicketServer/TicketServer
    ExecStop=/usr/bin/killall -9 TicketServer
    Restart=always
    
    
    [Install]
    WantedBy=multi-user.target
    Press Ctrl + O and hit enter to write the file. Then Ctrl + X to exit editor.

    Make sure our new config file is loaded

    Code:
    sudo systemctl daemon-reload
    Check the status to make sure there are no errors. If there are errors, you may post errors and configuration file here for review. Please use appropriate code and quote tags.

    Code:
    sudo systemctl status TicketServer.service
    Now if there are no errors we can start the service.

    Code:
    sudo systemctl start TicketServer.service
    And you can check on service again.

    Code:
    sudo systemctl status TicketServer.service
    Code:
    ● TicketServer.service - Aura Kingdom TicketServer   Loaded: loaded (/etc/systemd/system/TicketServer.service; enabled; vendor preset: enabled)
       Active: active (running) since Wed 2016-09-28 17:38:34 PDT; 44min ago
     Main PID: 4699 (TicketServer)
        Tasks: 1
       Memory: 1.6M
          CPU: 1.886s
       CGroup: /system.slice/TicketServer.service
               └─4699 /azuriaserver/TicketServer/TicketServer
    
    
    Sep 28 18:14:36 azuriaonline TicketServer[4699]:   4325,2016/09/28 18:14:36,EVAL(1.001111 secs): {Main Loop}
    Sep 28 18:14:37 azuriaonline TicketServer[4699]:   4326,2016/09/28 18:14:37,EVAL(1.001086 secs): {Network I/O}
    Sep 28 18:14:37 azuriaonline TicketServer[4699]:   4327,2016/09/28 18:14:37,EVAL(1.001126 secs): {Main Loop}
    Sep 28 18:14:38 azuriaonline TicketServer[4699]:   4328,2016/09/28 18:14:38,EVAL(1.001081 secs): {Network I/O}
    Sep 28 18:14:38 azuriaonline TicketServer[4699]:   4329,2016/09/28 18:14:38,EVAL(1.001130 secs): {Main Loop}
    Sep 28 18:14:39 azuriaonline TicketServer[4699]:   4330,2016/09/28 18:14:39,EVAL(1.001076 secs): {Network I/O}
    Sep 28 18:14:39 azuriaonline TicketServer[4699]:   4331,2016/09/28 18:14:39,EVAL(1.001124 secs): {Main Loop}
    Sep 28 18:14:40 azuriaonline TicketServer[4699]:   4332,2016/09/28 18:14:40,EVAL(1.001079 secs): {Network I/O}
    Sep 28 18:14:40 azuriaonline TicketServer[4699]:   4333,2016/09/28 18:14:40,EVAL(1.001127 secs): {Main Loop}
    Repeat the steps for GatewayServer, LoginServer, MissionServer, WorldServer, and ZoneServer.

    It is also possible to check status of all services at once

    Code:
    sudo systemctl status TicketServer.service GatewayServer.service LoginServer.service MissionServer.service WorldServer.service ZoneServer.service
    Last edited by PancakeBimmer; 29-09-16 at 05:29 PM.


  2. #2
    Proficient Member Pagefault404 is offline
    MemberRank
    Mar 2016 Join Date
    Realm 6.2Location
    158Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    This is good. I am glad to see someone finally answered this question directly.

    For those who are unaware, CentOS is based on Red Hat Linux, where as Ubuntu is Debian based. Though they both more or less operate in the same ways, in many ways they are nuanced and do not function the same.

    What are the detailed benefits of running the servers as services versus the way they are being run now, on demand?

  3. #3
    Apprentice PancakeBimmer is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    Quote Originally Posted by Pagefault404 View Post
    What are the detailed benefits of running the servers as services versus the way they are being run now, on demand?
    If servers are running as services then they can be easily managed through web control panel. Plus it is possible to configure service dependency, just a convenience. My next step is to setup file watcher for server files directory and have server automatically restart necessary services when server files are updated. Last step is configure some sort of share to access server files from my workstation.

    Just trying to streamline my upcoming aura kingdom server to focus more on editing data files and fiddle less with management.

    Edit:
    To setup service dependency just add Before, After, and Wants settings into [Unit] section.
    More details here https://fedoramagazine.org/systemd-u...ies-and-order/

    Edit:

    Code:
    ● TicketServer.service - Aura Kingdom TicketServer   Loaded: loaded (/etc/systemd/system/TicketServer.service; enabled; vendor preset: enabled)
       Active: active (running) since Wed 2016-09-28 17:38:34 PDT; 2h 11min ago
     Main PID: 4699 (TicketServer)
        Tasks: 1
       Memory: 1.6M
          CPU: 2.275s
       CGroup: /system.slice/TicketServer.service
               └─4699 /azuriaserver/TicketServer/TicketServer
    
    
    Sep 28 19:50:14 azuriaonline TicketServer[4699]:  14589,2016/09/28 19:50:14,EVAL(1.001097 secs): {Network I/O}
    Sep 28 19:50:14 azuriaonline TicketServer[4699]:  14590,2016/09/28 19:50:14,EVAL(1.001125 secs): {Main Loop}
    Sep 28 19:50:15 azuriaonline TicketServer[4699]:  14591,2016/09/28 19:50:15,EVAL(1.001106 secs): {Network I/O}
    Sep 28 19:50:15 azuriaonline TicketServer[4699]:  14592,2016/09/28 19:50:15,EVAL(1.001133 secs): {Main Loop}
    Sep 28 19:50:16 azuriaonline TicketServer[4699]:  14593,2016/09/28 19:50:16,EVAL(1.001098 secs): {Network I/O}
    Sep 28 19:50:16 azuriaonline TicketServer[4699]:  14594,2016/09/28 19:50:16,EVAL(1.001128 secs): {Main Loop}
    Sep 28 19:50:17 azuriaonline TicketServer[4699]:  14595,2016/09/28 19:50:17,EVAL(1.001101 secs): {Network I/O}
    Sep 28 19:50:17 azuriaonline TicketServer[4699]:  14596,2016/09/28 19:50:17,EVAL(1.001137 secs): {Main Loop}
    Sep 28 19:50:18 azuriaonline TicketServer[4699]:  14597,2016/09/28 19:50:18,EVAL(1.001106 secs): {Network I/O}
    Sep 28 19:50:18 azuriaonline TicketServer[4699]:  14598,2016/09/28 19:50:18,EVAL(1.001142 secs): {Main Loop}
    
    
    ● GatewayServer.service - Aura Kingdom GatewayServer
       Loaded: loaded (/etc/systemd/system/GatewayServer.service; disabled; vendor preset: enabled)
       Active: active (running) since Wed 2016-09-28 17:57:29 PDT; 1h 52min ago
     Main PID: 4924 (GatewayServer)
        Tasks: 1
       Memory: 2.7M
          CPU: 1.600s
       CGroup: /system.slice/GatewayServer.service
               └─4924 /azuriaserver/GatewayServer/GatewayServer
    
    
    Sep 28 17:57:29 azuriaonline systemd[1]: Started Aura Kingdom GatewayServer.
    
    
    ● LoginServer.service - Aura Kingdom LoginServer
       Loaded: loaded (/etc/systemd/system/LoginServer.service; disabled; vendor preset: enabled)
       Active: active (running) since Wed 2016-09-28 18:02:57 PDT; 1h 47min ago
     Main PID: 5044 (LoginServer)
        Tasks: 1
       Memory: 2.5M
          CPU: 454ms
       CGroup: /system.slice/LoginServer.service
               └─5044 /azuriaserver/LoginServer/LoginServer
    
    
    Sep 28 18:02:57 azuriaonline systemd[1]: Started Aura Kingdom LoginServer.
    
    
    ● MissionServer.service - Aura Kingdom MissionServer
       Loaded: loaded (/etc/systemd/system/MissionServer.service; disabled; vendor preset: enabled)
       Active: active (running) since Wed 2016-09-28 18:05:38 PDT; 1h 44min ago
     Main PID: 5110 (MissionServer)
        Tasks: 1
       Memory: 286.8M
          CPU: 8.482s
       CGroup: /system.slice/MissionServer.service
               └─5110 /azuriaserver/MissionServer/MissionServer
    
    
    Sep 28 18:05:38 azuriaonline systemd[1]: Started Aura Kingdom MissionServer.
    
    
    ● WorldServer.service - Aura Kingdom WorldServer
       Loaded: loaded (/etc/systemd/system/WorldServer.service; disabled; vendor preset: enabled)
       Active: active (running) since Wed 2016-09-28 18:08:45 PDT; 1h 41min ago
     Main PID: 5189 (WorldServer)
        Tasks: 4
       Memory: 123.1M
          CPU: 11min 57.029s
       CGroup: /system.slice/WorldServer.service
               └─5189 /azuriaserver/WorldServer/WorldServer
    
    
    Sep 28 18:08:45 azuriaonline systemd[1]: Started Aura Kingdom WorldServer.
    
    
    ● ZoneServer.service - Aura Kingdom ZoneServer
       Loaded: loaded (/etc/systemd/system/ZoneServer.service; disabled; vendor preset: enabled)
       Active: active (running) since Wed 2016-09-28 18:10:03 PDT; 1h 40min ago
     Main PID: 5265 (ZoneServer)
        Tasks: 1
       Memory: 1.1G
          CPU: 2min 18.291s
       CGroup: /system.slice/ZoneServer.service
               └─5265 /azuriaserver/ZoneServer/ZoneServer
    
    
    Sep 28 18:10:03 azuriaonline systemd[1]: Started Aura Kingdom ZoneServer.
    Last edited by PancakeBimmer; 29-09-16 at 04:55 AM.

  4. #4
    Proficient Member Pagefault404 is offline
    MemberRank
    Mar 2016 Join Date
    Realm 6.2Location
    158Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    A WebCP is something I am very interested in, however I do not have internet access for my entire network as I use a mobile tether. So I cannot use yum to install the repositories as it cannot resolve mirror.centos.org (I use a dedicated server on my home network to host my server files)

    Not a pressing issue right now, but definitely worth a look.

    Now, can this server as a service be used in CentOS as is?

  5. #5
    Apprentice PancakeBimmer is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    Quote Originally Posted by Pagefault404 View Post
    Now, can this server as a service be used in CentOS as is?
    Yup, Ryfon posted init.d scripts just for that.
    http://forum.ragezone.com/f937/relea...ripts-1096455/

  6. #6
    Proficient Member Pagefault404 is offline
    MemberRank
    Mar 2016 Join Date
    Realm 6.2Location
    158Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    I've downloaded them and I will look them over. If I get to a point where I can complete the requirements for CentOS to install the webpanel, I will definitely be converting my servers from applications on demand to a service.

    Does running the servers as a service provide any kind of performance increase, or is it pretty much the same, just streamlined for webCP?

    - - - Updated - - -

    Also, sorry to add another question back to back.

    Is there a preferred loading order for the servers, or can they be loaded in any order?

  7. #7
    Apprentice PancakeBimmer is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    Quote Originally Posted by Pagefault404 View Post
    Does running the servers as a service provide any kind of performance increase, or is it pretty much the same, just streamlined for webCP?

    Is there a preferred loading order for the servers, or can they be loaded in any order?
    Don't think there are any performance benefits, just a convenience.

    I am still trying to figure out how services depend on each other, but for now just use order provided in start script.

  8. #8
    Account Upgraded | Title Enabled! kbnnlan is offline
    MemberRank
    Feb 2016 Join Date
    368Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    sorry can u help me plz.i start server it work nomal but the server will close after a while (1hous or more) can u help plz

  9. #9
    Member Kaelthas is offline
    MemberRank
    Feb 2014 Join Date
    CubaLocation
    62Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    Quote Originally Posted by kbnnlan View Post
    sorry can u help me plz.i start server it work nomal but the server will close after a while (1hous or more) can u help plz
    Download this file,unzip it, place it inside the folder MissionServer and execute it:
    You go to the folder address, for example: cd / root / serverak / MissionServer /
    [Root @ localhost ~ / hxsy / MissionServer] # ./ak1hour.sh

    ak1hour.rar

  10. #10
    Account Upgraded | Title Enabled! kbnnlan is offline
    MemberRank
    Feb 2016 Join Date
    368Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    tks mate

  11. #11
    Enthusiast MajoraBaer is offline
    MemberRank
    Mar 2016 Join Date
    28Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    can anyone make a "better" detailed text/video tutorial to setting up a ak server for ubuntu?

    or have anyone interesst to join my team?
    i want to make a public server
    I have a root server but i think im too dumb to get ak to run on it


    --------------------------------------
    sry btw for my not perfect english

  12. #12
    Member trackeriblis is offline
    MemberRank
    Apr 2017 Join Date
    69Posts

    Re: [Tutorial]Can I run AuraKingdom server on Ubuntu?

    hello

    target 'etc / samba / smb.conf.bak' is not a directory

    thanks for help



Advertisement