Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2010, 11:03 PM
FatalIll
Fire Beetle
 
Join Date: Feb 2010
Posts: 6
Default 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.
Reply With Quote
  #2  
Old 03-09-2010, 12:29 AM
Kobaz
Hill Giant
 
Join Date: Nov 2008
Location: Gold Coast, Oz
Posts: 119
Default

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.
Reply With Quote
  #3  
Old 03-09-2010, 07:31 AM
FatalIll
Fire Beetle
 
Join Date: Feb 2010
Posts: 6
Default

Looks like a good idea but cleanipc and libEMuShareMem.so + some other things in your symlinks dont exist for me or?
Reply With Quote
  #4  
Old 03-09-2010, 09:23 AM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

Quote:
Originally Posted by FatalIll View Post
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
Reply With Quote
  #5  
Old 03-09-2010, 03:03 PM
FatalIll
Fire Beetle
 
Join Date: Feb 2010
Posts: 6
Default

Quote:
Originally Posted by pfyon View Post
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 :<
Reply With Quote
  #6  
Old 03-09-2010, 03:05 PM
Kobaz
Hill Giant
 
Join Date: Nov 2008
Location: Gold Coast, Oz
Posts: 119
Default

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
Reply With Quote
  #7  
Old 03-09-2010, 03:39 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

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
Reply With Quote
  #8  
Old 03-09-2010, 04:11 PM
FatalIll
Fire Beetle
 
Join Date: Feb 2010
Posts: 6
Default

Quote:
Originally Posted by pfyon View Post
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?
Reply With Quote
  #9  
Old 03-09-2010, 04:14 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

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.
Reply With Quote
  #10  
Old 03-09-2010, 04:27 PM
Kobaz
Hill Giant
 
Join Date: Nov 2008
Location: Gold Coast, Oz
Posts: 119
Default

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.
Reply With Quote
  #11  
Old 03-09-2010, 04:39 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:21 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3