Newbie Spellweaver
- Joined
- Jul 17, 2016
- Messages
- 24
- Reaction score
- 9
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.
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
Then install Samba server by entering
Next we backup existing samba config file and start editing a new one.
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.
Then we create new group for samba users, create new user in that group, and assign it a password.
Finally restart samba
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/centos-setting-aura-kingdom-server-1076106-post8518366/#post8518366
2.2 Patch worldserver and zoneserver for proper subnet.
Convert IP to HEX and other way around using this website:
Eperty123's AK Tools: http://forum.ragezone.com/f937/release-aktools-1093518-post8581735/#post8581735
NetTrodon's shell script for patching on server directly: http://forum.ragezone.com/f937/release-shell-script-patching-server-1094533/#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
Add services
Running server as service is more convenient so why not do it.
Press Ctrl + O and hit enter to write the file. Then Ctrl + X to exit editor.
Make sure our new config file is loaded
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.
Now if there are no errors we can start the service.
And you can check on service again.
Repeat the steps for GatewayServer, LoginServer, MissionServer, WorldServer, and ZoneServer.
It is also possible to check status of all services at once
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 = [USER=810551]smb[/USER]grp
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/centos-setting-aura-kingdom-server-1076106-post8518366/#post8518366
2.2 Patch worldserver and zoneserver for proper subnet.
Convert IP to HEX and other way around using this website:
You must be registered to see links
Eperty123's AK Tools: http://forum.ragezone.com/f937/release-aktools-1093518-post8581735/#post8581735
NetTrodon's shell script for patching on server directly: http://forum.ragezone.com/f937/release-shell-script-patching-server-1094533/#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
You must be registered to see links
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: