We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

Installation on CentOS 7

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Locked
Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Installation on CentOS 7

Post by Mordecaine » Mon Jun 12, 2017 5:31 pm

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

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6912
Joined: Tue Aug 11, 2009 3:36 am

Re: Installation on CentOS 7

Post by Zoey76 » Mon Jun 12, 2017 10:29 pm

Let me test.
Using Eclipse 4.12 - OpenJDK11 - MariaDB 10.4 - L2J Server 2.6.1.0

Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine » Wed Jun 14, 2017 5:11 pm

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

Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine » Wed Jun 14, 2017 5:33 pm

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

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6912
Joined: Tue Aug 11, 2009 3:36 am

Re: Installation on CentOS 7

Post by Zoey76 » Thu Jun 15, 2017 6:14 pm

I have installed CentOS 7 on a virtual machine, I'll test it myself and add it to the wiki.
Using Eclipse 4.12 - OpenJDK11 - MariaDB 10.4 - L2J Server 2.6.1.0

Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine » Fri Jun 16, 2017 6:31 pm

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

Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine » Tue Jun 20, 2017 10:21 pm

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

User avatar
regenx
Posts: 306
Joined: Sat Jul 17, 2010 6:55 am

Re: Installation on CentOS 7

Post by regenx » Sun Oct 22, 2017 4:59 pm

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?

User avatar
Sacrifice
Advanced User
Advanced User
Posts: 1019
Joined: Thu Aug 14, 2014 6:31 am
Location: Spain

Re: Installation on CentOS 7

Post by Sacrifice » Sun Oct 22, 2017 8:03 pm

Every linux distro, correctly installed will be good... We could say that even works better in linux (any distro)...
Retail GameMaster and Developer using Eclipse for Java Developers (64 bits), OpenJDK11 (64 bits), MySQL 8.0+ (64 bits).

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6912
Joined: Tue Aug 11, 2009 3:36 am

Re: Installation on CentOS 7

Post by Zoey76 » Sat Aug 17, 2019 11:51 pm

For CentOS please follow the official guide http://www.l2jserver.com/centos.html
Using Eclipse 4.12 - OpenJDK11 - MariaDB 10.4 - L2J Server 2.6.1.0

Locked