Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

L2J [Guide]Making a C5 server on Linux by Nivel

Newbie Spellweaver
Joined
Feb 1, 2005
Messages
14
Reaction score
0
This is tutorial about running greenhope l2j server pack on linux machine.
After following this tutorial you will have dedicated Lineage 2 C3 server.
I want to say if someone find some bugs, or mistakes please notify me.
Im also apologize for my english, but its not my native.
Attention this tutorial is not finished. It will be in next few hours.
table of contents
1. collecting tools
2. installing software
3. seting up network
4. services
5. accounts
6. preparing for starting server
7. last things
8. security

I think that you have two machines: a server and your PC with a game connected by network.
1. First collect all necessary tools.
A linux distro, choose what you want:
RedHat Fedora Core -
OpenSuse Linux -
Mandriva -
and others...
if you want more look at:
I think u are able to install linux, if not there are a lot of guides how to do this.
Sugest visit above links for appropriate distribution.
phpmyadmin -
greenhope server pack - http://forum.ragezone.com/showthread.php?t=70987
heh a windows system for unpack server pack (exe)
i think it could be usefull : Total Commander (yes for windows)
2. Select software what we need to install (during linux installation)
Almost programs or tools are included in linux distribution.
TIP: these packages will be installed when you choose Server type setup.
- httpd - aka Apache - its a web server, (not necessary but very usefull)
- mysqld - MySQL server - you really need it
- webmin - very usefull tool - with it you can manage your server remotely throw web page
- iptables - if you have some hack problems - this is very good firewall
- sshd - you can control ypur machine remotely but only in shell
- mc - check this it should be installed - its like old norton commander :p
Please dont install X-Window system, nor K desktop env. or gnome
3. So we have working linux operating system
After booting your system u will see:
Code:
localhost login: (type here 'root')
password : (write pass what you enter during installation)
now we have prompt:
Code:
[root@localhost:~]#_
during installation you should configure your network cards so check the connection:
write this:
Code:
ping google.com [enter]
if you have message : network is not unreachable - you dont have properly configured it.
but check your connection with your PC :
Code:
ping (your ip here) [eneter]
you should see something like this
Code:
PING 10.1.9.9 (10.1.9.9) 56(84) bytes of data.
64 bytes from 10.1.9.9: icmp_seq=0 ttl=128 time=0.408 ms
64 bytes from 10.1.9.9: icmp_seq=1 ttl=128 time=0.584 ms
64 bytes from 10.1.9.9: icmp_seq=2 ttl=128 time=0.398 ms
64 bytes from 10.1.9.9: icmp_seq=3 ttl=128 time=0.764 ms
64 bytes from 10.1.9.9: icmp_seq=4 ttl=128 time=0.416 ms
now pres CTRL+C
Code:
--- 10.1.9.9 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.398/0.514/0.764/0.142 ms, pipe 2

4. setup your services

in fedora type setup and choose services (or somethig simmilar)
and check this servises: httpd, iptables, mysqld, network, sshd, vsftpd (or sth. else), and if you installed webmin
press OK and exit.
in suse its tool named yast, and in madrake its drakconf
use that tool what you have.
5. adding users.
default we have one account what we can use its root, but its not very security.
So we create a special account for our server,
in promt write:
Code:
adduser l2jserver
now set a password for this:
Code:
passwd l2jserver
now type it two times.
Why creating a user for server? If someone could hack our server, (i think in java it is not possible) take a control of our server (not only l2j but whole machine) but what can do if server only have rights to connecting players, operating and using database?
Now we have our user with will run server.
greenhope created some install scripts for win32 platform (studying greenhope's bat files can learn a lot), so some ppls dont know what to do step by step, so we need to create a special user in MySQL database.
let's go:
Code:
mysql --user=root mysql
if it will return access denied write this:
Code:
mysql --user=root mysql -p
and type your root password
now we are in mysql command shell
type this
Code:
GRANT ALL PRIVILEGES ON *.* TO 'l2jserver'@'localhost' [enter]
IDENTIFIED BY 'your_password_for_this user' WITH GRANT OPTION; [enter]
exit [enter]
6.
so we are prepared for running server, but we need java runtime enviroment.
You can download it from java.sun.com - need linux version of course.
please download files named jre-1_5_0_05-linux-i586.bin
now if you download this in your windows PC you can upload this file using Total Commander
choose FTP and type IP of server and as accoun name type l2jserver and your very secret password.
and send this file.
Now we install java.
as root (if we are root we see in prompt '#')
we can connect to server using putty terminal.
now after login run mc (just type mc in promt)
using UP and DOWN arrow and Enter navigate to place where you uploaded java installer.
press enter when you find this file, after that you will se two options, select one : INSTALL
after some time you can check if java is installed.
just type java, maybe you will need relogin.
So almost all things are done.
Very easy operation unpack greenhope's server pack, and pack it again with Total Commander using tar, and again (this tar) pack it with gzip.
u should have file simmlar server.xxx.tar.gz !
Uplad this file with TC or any other FTP client. An unpack it with mc.
After unpacking it (in directory eg. /opt ) u will have a identical directory structure like on windows.
We are interested in directory : l2j
 
Newbie Spellweaver
Joined
Nov 8, 2004
Messages
26
Reaction score
0
Very good Tutorial but Step 6 is not complett ^^. JAVA_HOME , PATH ....... from Java Installation is missing :)
 
Skilled Illusionist
Joined
May 12, 2005
Messages
327
Reaction score
0
is this tutorial good for Linux Ubuntu?????
 
Newbie Spellweaver
Joined
Feb 1, 2005
Messages
14
Reaction score
0
I know, im working on IT, I will write some about java configuring and proprerty setting.

And for Ubuntu is also usable, but beware ubuntu uses other programs for configuration.

And im preparing also universal method for configuring it.
Im very glad for your feedback.
 
Infinity/Divinity Dev
Banned
Joined
Jun 7, 2004
Messages
759
Reaction score
0
Would you Fedora. I'm currently downloading version4 and has 4 cd's. I don't know if it be the better one to use or not. I just want to learn more about linux hehe
 
Newbie Spellweaver
Joined
Jan 12, 2005
Messages
6
Reaction score
0
I would recommend Debian linux (however Ubuntu is a flavor of Debian). Anyway you might need a fix for the startstup script on linux. And also i would recommend a dualcore dual proc AMD 64 bits box. The ones that tested it know why.
 
Newbie Spellweaver
Joined
Feb 1, 2005
Messages
14
Reaction score
0
i know that 64-bits archtecture is no problem under linux, but how java handle it?

Did you try it?

And I agree with that debian is very good, but its out of date(and stable). Im fan of gentoo linux, and i spend about one week on installation this os.
But using fedora its not a disadvantage, Today linux distros are very carefully created, and security. But of course if server will be without administration someone can hack it.

So i recomend do a death box. so no one can hack it :p
I say almost all linux distro are more secure than Windoze OS. :D
 
Newbie Spellweaver
Joined
Jan 12, 2005
Messages
6
Reaction score
0
java works just nice on 64 bits arch. And Debian it's pretty much up2date from what i know and i know very well because i'm using it. And no i dont recommend Fedora since they became some sort of Microsoft of Linux. They started to change alot of stuff in common linux core and stuff. So either Debian or Slackware it's the poison i pick.
 
Infinity/Divinity Dev
Banned
Joined
Jun 7, 2004
Messages
759
Reaction score
0
so 64-bits works well with fedora? How much of a performence boost does 64bit give compaired to most and do I need to download a special build or does the normal 386 or w/e it's called works?
 
Skilled Illusionist
Joined
May 12, 2005
Messages
327
Reaction score
0
What is beter linux for AMD 64 to run L2 server???
 
Infinity/Divinity Dev
Banned
Joined
Jun 7, 2004
Messages
759
Reaction score
0
I was thinking also of a 64bit I got a 2800 box sitting around.
 
Infinity/Divinity Dev
Banned
Joined
Jun 7, 2004
Messages
759
Reaction score
0
in fedora I get error when I type mysql "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)" Any ideas?
 
Ex-Mod
Loyal Member
Joined
Nov 20, 2004
Messages
1,414
Reaction score
27
any other guides for L2J on linux?

If someone can just set the damn thing up for me, I will give them hosting with shell...
 
Infinity/Divinity Dev
Banned
Joined
Jun 7, 2004
Messages
759
Reaction score
0
I can do it I think I just need to know how to start the server but I know how to do the whole mysql part of it..

I just don't have and don't know how to do the .sh part.
 
Newbie Spellweaver
Joined
Oct 31, 2005
Messages
5
Reaction score
0
Whats Install in Linux ....

 
Newbie Spellweaver
Joined
Jul 29, 2005
Messages
32
Reaction score
0
My Linux Server Will not start :(

he is doing something with the log files

the errors is get are familiar with the serverloop.sh

mv: cannot stat `/home/l2jserver/l2j/log/java0.log': Onbekend bestand of map

he deletes always y java0.log file

what is going on with this server?
 
Skilled Illusionist
Joined
May 12, 2005
Messages
327
Reaction score
0
If you want to make your server work much better on linux than i sugest to use SOLARIS 10. Solaris have all tools: MySql, Java...... all you need to download is Navicat.
Solaris have new internet protocol, this make him to work much better with internet.
 
Back
Top