EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Need some assistance (https://www.eqemulator.org/forums/showthread.php?t=30765)

FatalIll 03-08-2010 11:03 PM

Need some assistance
 
Im not a linux expert or anything, following some of the guides on EQEmu for setting up a server I have been getting stuck...

Code:

EQEmu-0.7.0-1043-source.tgz
listed in Debian Guide doesnt exist anymore, so I got the SVN from PEQ(?).

Then this hit
Code:

cd /home/eqemu/server
ln -s ../source/EQEmu-0.7.0-1118/utils/defaults/* .
ln -s ../source/EQEmu-0.7.0-1118/utils/patch_* .
ln -s ../source/EQEmu-0.7.0-1118/utils/cleanipc
ln -s ../source/EQEmu-0.7.0-1118/world/world
ln -s ../source/EQEmu-0.7.0-1118/zone/zone
ln -s ../source/EQEmu-0.7.0-1118/EMuShareMem/libEMuShareMem.so
ln -s ../source/EQEmu-0.7.0-1118/eqlaunch/eqlaunch

libEMuShareMem.so and some of the folders listed dont exist, or the command doesnt work the same with the svn version.

I dont know exactly what to do from this part forward.

EDIT: I am able to use Ubuntu or Debian, doesnt make a difference.

Kobaz 03-09-2010 12:29 AM

Here's how I handle it. I have a directory called eqemu. In this I have the following 4 scripts:

Code:

john@paranoia:~/eqemu$ cat getEmuSource.sh
#!/bin/bash
svn checkout  http://projecteqemu.googlecode.com/svn/trunk/  projecteqemu-read-only
john@paranoia:~/eqemu$ cat getEQmaps.sh
#!/bin/bash
svn checkout http://eqemumaps.googlecode.com/svn/trunk/ eqemumaps-read-only
john@paranoia:~/eqemu$ cat getPEQdb.sh
#!/bin/bash
svn checkout http://projecteqdb.googlecode.com/svn/trunk/ projecteqdb-current-only
john@paranoia:~/eqemu$ cat getQuest.sh
#!/bin/bash
svn checkout http://projecteqquests.googlecode.com/svn/trunk/ projecteqquests-read-only
john@paranoia:~/eqemu$

I also create a folder called server, and I have a folder LS for privateLogin server.

In eqemu/server I have a symlink to the source files:

Code:

lrwxrwxrwx 1 john john      38 2009-06-20 07:31 source -> ../projecteqemu-read-only/EQEmuServer/
and all my other symlinks:

Code:

lrwxrwxrwx 1 john john      28 2009-06-20 13:21 chatserver -> source/chatserver/chatserver
lrwxrwxrwx 1 john john      21 2009-06-20 13:22 cleanipc -> source/utils/cleanipc
lrwxrwxrwx 1 john john      33 2009-06-20 13:22 commands.pl -> source/utils/defaults/commands.pl
lrwxrwxrwx 1 john john      43 2009-06-20 13:22 eqemu_config.xml.full -> source/utils/defaults/eqemu_config.xml.full
lrwxrwxrwx 1 john john      24 2009-06-20 13:23 eqlaunch -> source/eqlaunch/eqlaunch
lrwxrwxrwx 1 john john      36 2009-06-20 13:20 libEMuShareMem.so -> source/EMuShareMem/libEMuShareMem.so
lrwxrwxrwx 1 john john      29 2009-06-20 13:23 log.ini -> source/utils/defaults/log.ini
lrwxrwxrwx 1 john john      27 2009-06-20 13:36 Maps -> ../eqemumaps-read-only/Maps
lrwxrwxrwx 1 john john      30 2009-06-20 13:24 mail_opcodes.conf -> source/utils/mail_opcodes.conf
lrwxrwxrwx 1 john john      28 2009-06-20 13:24 mailserver -> source/mailserver/mailserver
lrwxrwxrwx 1 john john      32 2009-06-20 13:24 mime.types -> source/utils/defaults/mime.types
lrwxrwxrwx 1 john john      25 2009-06-20 13:25 opcodes.conf -> source/utils/opcodes.conf
lrwxrwxrwx 1 john john      27 2009-06-20 13:27 patch_6.2.conf -> source/utils/patch_6.2.conf
lrwxrwxrwx 1 john john      35 2009-06-20 13:27 patch_Anniversary.conf -> source/utils/patch_Anniversary.conf
lrwxrwxrwx 1 john john      28 2009-06-20 13:27 patch_Live.conf -> source/utils/patch_Live.conf
lrwxrwxrwx 1 john john      27 2009-06-20 13:27 patch_SoF.conf -> source/utils/patch_SoF.conf
lrwxrwxrwx 1 john john      32 2009-06-20 13:27 patch_Titanium.conf -> source/utils/patch_Titanium.conf
lrwxrwxrwx 1 john john      31 2009-06-20 13:30 plugin.pl -> source/utils/defaults/plugin.pl
lrwxrwxrwx 1 john john      43 2009-06-20 13:35 plugins -> ../projecteqquests-read-only/quests/plugins
lrwxrwxrwx 1 john john      35 2009-06-20 13:35 quests -> ../projecteqquests-read-only/quests
lrwxrwxrwx 1 john john      31 2009-06-20 13:30 templates -> source/utils/defaults/templates
lrwxrwxrwx 1 john john      18 2009-06-20 13:31 world -> source/world/world
lrwxrwxrwx 1 john john      29 2009-06-20 13:30 worldui -> source/utils/defaults/worldui
lrwxrwxrwx 1 john john      32 2009-06-20 13:30 worldui.pl -> source/utils/defaults/worldui.pl
lrwxrwxrwx 1 john john      16 2009-06-20 13:31 zone -> source/zone/zone

To make the server, I just

Code:

cd eqemu/server/source
Add my patches to the server (random loot code), source any db updates and then type

Code:

make depends ; make -j 2
and wait. Change the number after the 'j' to however many cores you want working on compilation.

I follow the instructions as posted elsewhere to manage updating the database.

This is on a debian system, but should work on anything. I hope it helps.

FatalIll 03-09-2010 07:31 AM

Looks like a good idea but cleanipc and libEMuShareMem.so + some other things in your symlinks dont exist for me or?

pfyon 03-09-2010 09:23 AM

Quote:

Originally Posted by FatalIll (Post 185121)
Looks like a good idea but cleanipc and libEMuShareMem.so + some other things in your symlinks dont exist for me or?

Did you not checkout the code from the svn? cleanipc should be in source/utils/cleanipc and libEMuShareMem.so should be in source/EMuShareMem/libEMuShareMem.so

FatalIll 03-09-2010 03:03 PM

Quote:

Originally Posted by pfyon (Post 185123)
Did you not checkout the code from the svn? cleanipc should be in source/utils/cleanipc and libEMuShareMem.so should be in source/EMuShareMem/libEMuShareMem.so

http://projecteqemu.googlecode.com/svn/trunk/

cleanipc.cpp is the only thing related to cleanipc in name... and libEMuShareMem.so doesnt exist :<

Kobaz 03-09-2010 03:05 PM

Are you using the -s flag when you create the link?

Code:

ln -s TARGET LINK
will create a symlink, or soft link. The file TARGET need not exist, and will then create a "dangling symlink". Attempts to access LINK will fail until you actually create the file TARGET. In your case the file cleanipc will be created after you compile the software.

Play with the ln command in your /tmp directory. I recall that it took me a while to be comfortable with how it works when I first met UNIX. Also check out

Code:

ln --help
and

Code:

man ln

pfyon 03-09-2010 03:39 PM

You have to compile it first if you're getting it directly from the svn. As a linux user, this is pretty easy. Install the packages listed in the debian guide and:

Code:

cd source
make


FatalIll 03-09-2010 04:11 PM

Quote:

Originally Posted by pfyon (Post 185133)
You have to compile it first if you're getting it directly from the svn. As a linux user, this is pretty easy. Install the packages listed in the debian guide and:

Code:

cd source
make


Just get the SVN, cd to the folder and make it? or am I still going into the makefiles and changing shit around?

pfyon 03-09-2010 04:14 PM

I think the default makefiles will work, though you might have to add some lines to include bots. I've made some small changes to mine to make use of the multicore processor and optimize the code for efficiency, but I think the defaults work.

Kobaz 03-09-2010 04:27 PM

I wouldn't worry about bots or other changes to the makefiles and code until you've got it to work without. As Pfyon says, it's pretty easy, once you know how.

I did have to change the references to gmake to make in the utils directory as I recall, as I don't like having multiple makes lying around.

pfyon 03-09-2010 04:39 PM

Oh, yeah, I just renamed gmake to make. That was in one of the linux guides on the wiki, maybe even the debian one linked above.


All times are GMT -4. The time now is 07:19 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.