Install L2JServer in Ubuntu Server Version
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- malkavcrow
- Posts: 5
- Joined: Wed Mar 02, 2011 1:22 am
Re: Install L2JServer in Ubuntu Server Version
Turn the server through webmin to any version of Linux is much easier.
-
- Posts: 9
- Joined: Sun Nov 14, 2010 10:13 pm
Re: Install L2JServer in Ubuntu Server Version
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.
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.
-
- Posts: 1
- Joined: Sun Aug 14, 2011 4:46 pm
Re: Install L2JServer in Ubuntu Server Version
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
any idea of what am i doing wrong? and also can i continue to next step at this situation?
Thank you in advance
- Sirpaypi
- Posts: 108
- Joined: Mon May 18, 2009 11:51 pm
- Location: Moяocco.
Re: Install L2JServer in Ubuntu Server Version
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.
-
- Posts: 7
- Joined: Sun Aug 31, 2008 12:42 pm
Re: Install L2JServer in Ubuntu Server Version
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:
If i try to ./RegisterGameServer.sh (chmoded +x)
Im a completly noob in linux, but i think its time to update :S
Or im doing something wrong
Ismaw34
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)
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.
Or im doing something wrong

Ismaw34
-
- Posts: 2
- Joined: Thu May 26, 2011 4:43 am
-
- Posts: 7
- Joined: Sun Aug 31, 2008 12:42 pm
Re: Install L2JServer in Ubuntu Server Version
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
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
-
- Posts: 9
- Joined: Sun Nov 14, 2010 10:13 pm
Re: Install L2JServer in Ubuntu Server Version
can someone give me a repository for jdk7?
cant find a working one on internet. D:

- IMBAL
- Posts: 53
- Joined: Fri Aug 26, 2011 3:54 pm
- Location: Elmore
Re: Install L2JServer in Ubuntu Server Version
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!
http://www.webupd8.org/2011/09/how-to-i ... dk-in.html
I did it and everything is OK!
- spremusik
- Posts: 110
- Joined: Fri Oct 21, 2011 8:34 pm
Re: Install L2JServer in Ubuntu Server Version
hello to everybody.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
I am preparing a VMWare appliance on Ubuntu Server 8.04.3. Someone interested? It is almost ready.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
PS Edited afterwards:
I finished VMware server appliance and put it in here: viewtopic.php?f=94&t=16860
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
- epicentre
- Posts: 4
- Joined: Sun Jul 11, 2010 10:22 am
Re: Install L2JServer in Ubuntu Server Version
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
-
- Posts: 20
- Joined: Fri Jul 29, 2011 4:25 pm
Re: Install L2JServer in Ubuntu Server Version
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:
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.
- changlee
- Posts: 13
- Joined: Wed Mar 30, 2016 6:02 pm
Re: Install L2JServer in Ubuntu Server Version
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!
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!
-
- Posts: 2
- Joined: Mon Aug 29, 2016 10:37 am
Re: Install L2JServer in Ubuntu Server Version
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 and but nothing changes. I run the commands with . As I said, all works well but the output.
Any ideas on how I can get shell output?
Thanks a lot
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
Code: Select all
echo "Something to show"
Code: Select all
service l2jserver start|stop|restart
Any ideas on how I can get shell output?
Thanks a lot
-
- Advanced User
- Posts: 1027
- Joined: Thu Aug 14, 2014 6:31 am
Re: Install L2JServer in Ubuntu Server Version
Code: Select all
tail -f game/log/stdout.log
Code: Select all
tail -f login/log/stdout.log