Tools needed:
Lastest CentOS dvd iso, or CD's 1 and 3 isos (the one im using for this doc is 5.4 x86)
Latest VMWare Player. (optional, if you are running a windows host)
putty. (optional, putty will allow copy/paste into your console in addition to scrolling the screen buffer.)
WinSCP. (optional, nice windows gui to access your linux filesystem)
1. Installing CentOS
a. boot cd using graphical setup.
b. skip the media check.
c. acknowledge the notice regarding wiping the disk, next.
d. select "remove all partitions on selected drives and create default layout.", next
e. acknowledge the warning, yes.
f. confirm networking devices, next.
g. select timezone, utc is okay. next.
h. assign a password to root, next.
i. deselect everything in the top box, select customize now. next.
j. go through the program groups on the left and remove any/all checks boxes, were doing minimal install, next.
k. the install will continue, finish and then reboot, login as root and proceed to "Configuring Server Components".
2. Configuring Server Components
yum install subversion mysql-server ant nano -yb. update your linux box then reboot it:
yum update -y && reboot
c. download/install l1j: (this is more or less a script, you can choose to copy/paste into a putty window, or just type it out in the console. Each line represents a carriage return.
mkdir /lineage mkdir /lineage/l1j-en-server mkdir /lineage/l1j-en-server/log cd /lineage svn checkout http://l1j-en.googlecode.com/svn/trunk/ l1j-en-read-only cd l1j-en-read-only ant cd .. cp -a l1j-en-read-only/config l1j-en-read-only/data l1j-en-read-only/maps l1j-en-read-only/lib l1j-en-read-only/serverstart.sh l1j-en-read-only/l1jen.jar l1j-en-server chmod +x /lineage/l1j-en-server/serverstart.shd. fire up mysql:
/etc/init.d/mysqld start && chkconfig mysqld on
mysqladmin password 'l1jdb'
mysqladmin -pl1jdb create l1jdb
g. create mysql user and assign them full privileges to l1jdb:
mysql -pl1jdb
use mysql;
insert into user (host,user,password,select_priv) values ('localhost','l1jdb',password('l1jdb'),'y');
flush privileges;
grant all privileges on l1jdb.* to l1jdb;
flush privileges;
quit
h. import sql script into mysql database: (you may want to ls inside that directory to see if theres new updates to apply)
cd /lineage/l1j-en-read-only/db mysql -pl1jdb l1jdb < l1jdb_m6.sql mysql -pl1jdb l1jdb < update_050.sql mysql -pl1jdb l1jdb < update_051.sql mysql -pl1jdb l1jdb < update_052.sql mysql -pl1jdb l1jdb < update_053.sql mysql -pl1jdb l1jdb < update_054.sqli. Edit server.properties:
nano /lineage/l1j-en-server/config/server.propertiesand configure the correct mysql user and password, weve setup l1jdb for username and password above, so use that. save
Login=l1jdb Password=l1jdbj. Edit serverstart.sh:
nano /lineage/l1j-en-server/serverstart.shand modify the java memory useage
-Xms256m
k. Continue to "Starting the server"
3. Starting the Server
a. launch serverstart.sh:
cd /lineage/l1j-en-server ./serverstart
b. you can view the log file via: (it should say "Waiting for Connections!")
tail -f /lineage/l1j-en-server/log/stdout.log
4. Tweaks (optional)
a. various enhancements
for i in haldaemon lvm2-monitor messagebus netfs cups; do chkconfig $i off; done yum install readahead -y