Page 1 of 1

[SOLVED] Installation on CentOS 7

Posted: Mon Jun 12, 2017 5:31 pm
by Mordecaine
Hello,

I tried to install the l2j on CentOS 7. I used the wiki page.
I did the follings commands:
mkdir /opt/l2j
useradd -s /bin/false -d /opt/lineage2 -c "Linage 2 Daemon User" lineage2
cd /opt/l2j
git clone https://bitbucket.org/l2jserver/l2j_server.git
git clone https://bitbucket.org/l2jserver/l2j_datapack.git
cd l2j_datapack
yum install java-1.8.0-openjdk -y
./gradlew build

But the gradlew build failed:
Could not resolve all dependencies for configuration ':compileClasspath'.

So I looked at the support chatroom and read there (in the history) that there is a zip file with all server datas.
I downloaded the zip file (https://bitbucket.org/l2jserver/l2j_ser ... .6.0.0.zip)

I created the two databases and started the login server. This worked fine.
The error logs says, that he wasnt able to find the right tables.

Where I can find the database dumps for the tables? Or its enough to create empty tables?

Cheers, Mordecaine

Re: Installation on CentOS 7

Posted: Mon Jun 12, 2017 10:29 pm
by Zoey76
Let me test.

Re: Installation on CentOS 7

Posted: Wed Jun 14, 2017 5:11 pm
by Mordecaine
Ok, I did the following steps.

I found out, that there are two helper jars (in Zip file):
dbinst_gs.jar
dbinst_ls.jar

I started the jars with the follwing command:
java -jar dbinst_gs.jar

After that, the programm asks me:

Code: Select all

java -jar dbinst_ls.jar
Welcome to L2J DataBase installer
Jun 14, 2017 4:26:11 PM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /root/.java/.userPrefs/prefs.xml
Host (localhost):
Port (3306):
Username (root): l2j_login_server
Password (): MyPassword
Database (l2jls):
(C)lean install, (U)pdate or (E)xit? C
Writing dump l2jls_dump_20170614-162632.sql
Dump Complete!
Installing Database Content...
Database Installation Complete!
Database Installation Complete!
After that, the tables are still empty.

Now I found (in the git clone) a lot of .sql files:
/opt/l2j/l2j_datapack/dist/sql/game
/opt/l2j/l2j_datapack/dist/sql/login

Now I did the following commands:
for i in $(ls -1 *.sql);do mysql -u l2j_game_server -pMyPassword l2jgs < $i;done

and the same for the login server. Now I have all tables.

Is there a better way to do this?

Cheers, Morde

Re: Installation on CentOS 7

Posted: Wed Jun 14, 2017 5:33 pm
by Mordecaine
I get still errors.

I think I should go back to the first step and get out, why the "gradlew build" command failed.

@Zoey76 Did you test the gradlew build with centos 7?
If you have no centos 7, we can do a teamviewer session, and you cant test on my machine.

Cheers, Morde

Re: Installation on CentOS 7

Posted: Thu Jun 15, 2017 6:14 pm
by Zoey76
I have installed CentOS 7 on a virtual machine, I'll test it myself and add it to the wiki.

Re: Installation on CentOS 7

Posted: Fri Jun 16, 2017 6:31 pm
by Mordecaine
When it works on my server, I can build a RPM package for you. Then its a bit easier for RedHat, CentOS, Fedora and Oracle Linux users.

After that I can write a documentation and you can upload it if you want to.
Further more I can write a service file for login and game server. After that the SystemD is able to start the processes and its a bit easier to handle the daemons.

Thanks for your help,
Morde

Re: Installation on CentOS 7

Posted: Tue Jun 20, 2017 10:21 pm
by Mordecaine
Did you update the wiki?
Maybe I have the wrong wiki. I searched in this wiki page: https://bitbucket.org/l2jserver/l2j_server/wiki/Home

Cheers,
Morde

Re: Installation on CentOS 7

Posted: Sun Oct 22, 2017 4:59 pm
by regenx
How is L2J server on CentOS? Better than Ubuntu 16.04 LTS?
It is stable? CentOS distro is recommended for web servers, it is good for gaming and java app?

Re: Installation on CentOS 7

Posted: Sun Oct 22, 2017 8:03 pm
by Sacrifice
Every linux distro, correctly installed will be good... We could say that even works better in linux (any distro)...

Re: Installation on CentOS 7

Posted: Sat Aug 17, 2019 11:51 pm
by Zoey76
For CentOS please follow the official guide http://www.l2jserver.com/centos.html