Install L2JServer in Ubuntu Server Version

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
malkavcrow
Posts: 5
Joined: Wed Mar 02, 2011 1:22 am

Re: Install L2JServer in Ubuntu Server Version

Post by malkavcrow » Fri May 06, 2011 3:08 am

Turn the server through webmin to any version of Linux is much easier.

mhoska
Posts: 9
Joined: Sun Nov 14, 2010 10:13 pm

Re: Install L2JServer in Ubuntu Server Version

Post by mhoska » Thu Jun 02, 2011 7:44 pm

after i do all this i still getting this error

can not be moved "log / stdout.log"to "log/2011-06-02_03-06-30_stdout.log ': Permission denied

can someone help me? i do it with and root account with a admin account i don't know what else to do.

Andre1222
Posts: 1
Joined: Sun Aug 14, 2011 4:46 pm

Re: Install L2JServer in Ubuntu Server Version

Post by Andre1222 » Sun Aug 14, 2011 5:11 pm

Hello and thnx for this Tutorial! This is my first time i try to setup a L2J Server over Linux. I allmost have complete the 2nd Step. I check Xampp status (at http://myserverip/) and all services are DEACTIVATED. I suspect that something I have done is not right... i also cant see any proccess of xampp or mysql, etc, at proccess manager...

any idea of what am i doing wrong? and also can i continue to next step at this situation?
Thank you in advance

User avatar
Sirpaypi
Posts: 108
Joined: Mon May 18, 2009 11:51 pm
Location: Moяocco.

Re: Install L2JServer in Ubuntu Server Version

Post by Sirpaypi » Mon Aug 15, 2011 7:01 am

Xampp is just 1 of many solutions... Use screen way better and easy.
Saying that Java is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders.

Ismaw34
Posts: 7
Joined: Sun Aug 31, 2008 12:42 pm

Re: Install L2JServer in Ubuntu Server Version

Post by Ismaw34 » Wed Oct 19, 2011 7:03 pm

Hello,
You need to update this tutorial, there is no more sun-java6-* packets.
Im having trouble to install the server on ubuntu.

java -verson:

Code: Select all

java version "1.6.0_23"OpenJDK Runtime Enviroment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5)OpenJDK Client VM (build 20.0-b11, mixed mode, sharing)
If i try to ./RegisterGameServer.sh (chmoded +x)

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/l2jserver/gsregistering/GameServerRegister : Unsupported major.minor version 51.0    at java.lang.ClassLoader.defineClass1(Native Method)    at java.lang.ClassLoader.defineClass(ClassLoader.java:634)    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)    at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)    at java.security.AccessController.doPrivileged(Native Method)    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)Could not find the main class: com.l2jserver.gsregistering.GameServerRegister. Program will exit.
Im a completly noob in linux, but i think its time to update :S
Or im doing something wrong :(

Ismaw34

halski103
Posts: 2
Joined: Thu May 26, 2011 4:43 am

Re: Install L2JServer in Ubuntu Server Version

Post by halski103 » Wed Oct 19, 2011 8:06 pm


Ismaw34
Posts: 7
Joined: Sun Aug 31, 2008 12:42 pm

Re: Install L2JServer in Ubuntu Server Version

Post by Ismaw34 » Wed Oct 19, 2011 9:16 pm

For fixing on ubuntu, i found this:
http://www.pcrednet.com/blog/item/8-ins ... itorio-ppa
Sorry, its in spanish, but the commands are the same for all the langs.
Ismaw34

mhoska
Posts: 9
Joined: Sun Nov 14, 2010 10:13 pm

Re: Install L2JServer in Ubuntu Server Version

Post by mhoska » Sun Oct 23, 2011 4:34 pm

can someone give me a repository for jdk7? :D cant find a working one on internet. D:

User avatar
IMBAL
Posts: 53
Joined: Fri Aug 26, 2011 3:54 pm
Location: Elmore

Re: Install L2JServer in Ubuntu Server Version

Post by IMBAL » Wed Nov 16, 2011 9:20 pm

Here is the best for me and fast too tutorial to install the jdk7 to your ubuntu.

http://www.webupd8.org/2011/09/how-to-i ... dk-in.html

I did it and everything is OK!

User avatar
spremusik
Posts: 110
Joined: Fri Oct 21, 2011 8:34 pm

Re: Install L2JServer in Ubuntu Server Version

Post by spremusik » Mon Nov 28, 2011 4:53 am

adrianio wrote:Start-up script. Save it in init.d and make it +x. I named it "liiges". After that do

Code: Select all

update-rc.d liiges defaults 97 03
.

Code: Select all

 #!/bin/sh # Change here your home directory for Lineage server. Absolute pathbase=/home/adrian/Lineage stop_l2j() {#Stop Game Server script and java         if [ -n "$(pgrep -f GameServer_loop.sh)" ]; then            pkill -f GameServer_loop.sh            echo Game Server Script stopped        else            echo ==================================            echo Game Server Script is not running!            echo ==================================        fi         if [ -n "$(pgrep -f gameserver)" ]; then            pkill -f gameserver            echo Waiting for Game Java Server to exit....            i=1                while [ -n "$(pgrep -f gameserver)" ]                    do                        sleep 1                        i=$((i+1))                    done            echo Game java server stopped in $i sec        else            echo ================================            echo Game java server is not running!            echo ================================        fi #Stop login server script and java        if [ -n "$(pgrep -f LoginServer_loop.sh)" ]; then            pkill -f LoginServer_loop.sh            echo Login Server Script stopped        else            echo ===================================            echo Login Server Script is not running!            echo ===================================        fi         if [ -n "$(pgrep -f loginserver)" ]; then            pkill -f loginserver            echo Waiting for Login Java Server to exit....            i=1                while [ -n "$(pgrep -f loginserver)" ]                    do                        sleep 1                        i=$((i+1))                    done            echo Login java server stopped in $i sec         else            echo ================================            echo Login Java Server is not running!            echo ================================        fi} start_l2j() { if [ -n "$(pgrep -f GameServer_loop.sh)" -o "$(pgrep -f l2jserver.gameserver)" -o "$(pgrep -f LoginServer_loop.sh)" -o "$(pgrep -f l2jserver.loginserver)" ]; then         echo ============================================================        echo Try first to stop all L2J server scripts and java processes.        echo Use stop/restart command.        echo ============================================================else        cd ${base}/login        ./startLoginServer.sh        cd ${base}/gameserver        ./startGameServer.sh         echo =======================================================        echo Game Server processes started.        echo You haveto wait about 100 sec or more to be operable.                echo Give next command to see progress:        echo watch -n 1 tail ${base}/gameserver/log/stdout.log                echo Stop watch command with CTRL-C        echo =======================================================fi} case "$1" in    stop)        stop_l2j    ;;    restart)        stop_l2j        start_l2j    ;;    start)        start_l2j    ;;    *)       echo "Usage: $0 start|stop|restart" >&2       exit 3        ;;esac 
I am preparing a VMWare appliance on Ubuntu Server 8.04.3. Someone interested? It is almost ready.

PS Edited afterwards:
I finished VMware server appliance and put it in here: viewtopic.php?f=94&t=16860
hello to everybody.
anyone can do a function "status" for this script?
something like when I write command "service XXX status"
it shows if login/game servers are allready runing or not.
thank you

User avatar
epicentre
Posts: 4
Joined: Sun Jul 11, 2010 10:22 am

Re: Install L2JServer in Ubuntu Server Version

Post by epicentre » Tue Nov 29, 2011 10:55 am

And what about using java console by ssh client to start up the server? If you want to see it log's online.

Code: Select all

 java -jar l2jserver.jar 

l2faith
Posts: 20
Joined: Fri Jul 29, 2011 4:25 pm

Re: Install L2JServer in Ubuntu Server Version

Post by l2faith » Mon Jan 09, 2012 8:43 pm

I have an Lineage 2 server running on ubuntu for a while now , so i decided to open 2nd server on same machine but it doesn't lat me do it....
and Yeah , i have everything installed from last time so all i did is granted chmod on new server files and than
cd /home/serv2/game/
./startGameServer.sh

nothing happens...
here is the log from logs folder:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/mmocore/network/IAcceptFilter : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: com.l2jserver.gameserver.GameServer. Program will exit.

User avatar
changlee
Posts: 13
Joined: Wed Mar 30, 2016 6:02 pm

Re: Install L2JServer in Ubuntu Server Version

Post by changlee » Wed Apr 06, 2016 5:12 pm

Hello L2Jers!
I am trying to test a server at a small Debian cloud. Can you please update the installation steps, or these are the same?

THANKS!

Dasipodide
Posts: 2
Joined: Mon Aug 29, 2016 10:37 am

Re: Install L2JServer in Ubuntu Server Version

Post by Dasipodide » Thu Sep 29, 2016 12:20 am

Hi guys,
I made the script for "service" l2j and it works fine on my ubuntu server, the only think is that when I run commands I don't get any output on screen, like the shell is ignoring all the 'echo' commands in the script. I try with

Code: Select all

echo Something to show
and

Code: Select all

echo "Something to show"
but nothing changes. I run the commands with

Code: Select all

service l2jserver start|stop|restart
. As I said, all works well but the output.

Any ideas on how I can get shell output?

Thanks a lot

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

Re: Install L2JServer in Ubuntu Server Version

Post by Sacrifice » Thu Sep 29, 2016 8:43 am

Code: Select all

tail -f game/log/stdout.log
and if you want the output of the login...

Code: Select all

tail -f login/log/stdout.log
Retail GameMaster and Developer using Eclipse for Java Developers (64 bits), OpenJDK14 (64 bits), MySQL 8.0+ (64 bits).

Post Reply