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 shareCode:sudo apt-get update sudo apt-get install postgresql postgresql-contrib
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 enteringCode:sudo apt-get update
Next we backup existing samba config file and start editing a new one.Code:apt-get install -y samba samba-common python-glade2 system-config-samba
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:sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak sudo nano /etc/samba/smb.conf
Then we create new group for samba users, create new user in that group, and assign it a password.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
Finally restart sambaCode:addgroup smbgrpuseradd azuria -G smbgrp smbpasswd -a azuria
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.Code:service smbd restart
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.servicePress Ctrl + O and hit enter to write the file. Then Ctrl + X to exit editor.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
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.Code:sudo systemctl daemon-reload
Now if there are no errors we can start the service.Code:sudo systemctl status TicketServer.service
And you can check on service again.Code:sudo systemctl start TicketServer.service
Code:sudo systemctl status TicketServer.serviceRepeat the steps for GatewayServer, LoginServer, MissionServer, WorldServer, and ZoneServer.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}
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



Reply With Quote![[Tutorial]Can I run AuraKingdom server on Ubuntu?](http://ragezone.com/hyper728.png)


