Page 2 of 3

Re: Install L2JServer in Ubuntu Server Version

Posted: Fri May 06, 2011 3:08 am
by malkavcrow
Turn the server through webmin to any version of Linux is much easier.

Re: Install L2JServer in Ubuntu Server Version

Posted: Thu Jun 02, 2011 7:44 pm
by mhoska
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.

Re: Install L2JServer in Ubuntu Server Version

Posted: Sun Aug 14, 2011 5:11 pm
by Andre1222
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

Re: Install L2JServer in Ubuntu Server Version

Posted: Mon Aug 15, 2011 7:01 am
by Sirpaypi
Xampp is just 1 of many solutions... Use screen way better and easy.

Re: Install L2JServer in Ubuntu Server Version

Posted: Wed Oct 19, 2011 7:03 pm
by Ismaw34
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

Re: Install L2JServer in Ubuntu Server Version

Posted: Wed Oct 19, 2011 8:06 pm
by halski103

Re: Install L2JServer in Ubuntu Server Version

Posted: Wed Oct 19, 2011 9:16 pm
by Ismaw34
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

Re: Install L2JServer in Ubuntu Server Version

Posted: Sun Oct 23, 2011 4:34 pm
by mhoska
can someone give me a repository for jdk7? :D cant find a working one on internet. D:

Re: Install L2JServer in Ubuntu Server Version

Posted: Wed Nov 16, 2011 9:20 pm
by IMBAL
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!

Re: Install L2JServer in Ubuntu Server Version

Posted: Mon Nov 28, 2011 4:53 am
by spremusik
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

Re: Install L2JServer in Ubuntu Server Version

Posted: Tue Nov 29, 2011 10:55 am
by epicentre
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 

Re: Install L2JServer in Ubuntu Server Version

Posted: Mon Jan 09, 2012 8:43 pm
by l2faith
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.

Re: Install L2JServer in Ubuntu Server Version

Posted: Wed Apr 06, 2016 5:12 pm
by changlee
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!

Re: Install L2JServer in Ubuntu Server Version

Posted: Thu Sep 29, 2016 12:20 am
by Dasipodide
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

Re: Install L2JServer in Ubuntu Server Version

Posted: Thu Sep 29, 2016 8:43 am
by Sacrifice

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