EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Debian Wiki Updates/Tweaks (https://www.eqemulator.org/forums/showthread.php?t=38561)

Shin Noir 08-01-2014 07:31 AM

Debian Wiki Updates/Tweaks
 
Howdy.
http://wiki.eqemulator.org/p?EQEmu_o..._6_VM&frm=Main
This topic above, here's my notes about it.

I used debian-7.6.0-amd64-netinst.iso

----compile EQEMU section---
cmake is now used instead of just make, so these steps are added:
apt-get install cmake
cmake .
make

---Grabbing the sources--
remove these (deprecated):
svn co http://projecteqdb.googlecode.com/svn/trunk/peqdatabase peq
svn co http://projecteqquests.googlecode.com/svn/trunk/quests quests

they're now https://drive.google.com/folderview?...p=sharing#list


copying and linking files:

on the change to server dir, copy and create links steps:
cp ../source/utils/patches/patch_* ./
cp ../source/utils/patches/opcodes.conf ./

This is a personal preference, so if you recompile it backs up old and copies new. cleanipc and a lot of commands aren't properly noted here, but can be. (You need to copy the files from ~/eq/source/Bin/* over to your ~/eq/server/ dir.
~/eq/server/$
nano sync.sh
Code:

#!/bin/bash
#sync latest compiled source files to server dir. Place in server dir.
mkdir -p backup/
cp zone backup/$(date +%Y-%m-%d)-zone
cp ../source/Bin/zone .
cp eqlaunch backup/$(date +%Y-%m-%d)-eqlaunch
cp ../source/Bin/eqlaunch .
cp world backup/$(date +%Y-%m-%d)-world
cp ../source/Bin/world .
cp /usr/lib/libEMuShareMem.so backup/$(date +%Y-%m-%d)-libEMuShareMem.so
cp ../source/Bin/libEMuShareMem.so /usr/lib/
echo Syncronized.

Database Setup no longer has a peqdb_rev.sql_gz, the source noted has a readme DO NOT USE THIS DB
instead, copied from the readme.txt
-----------
create database whatever_db_name_you_want;
use whatever_db_name_you_made;
source peqbeta_blahblah.sql;
source player_tables_blahblah.sql;

(OPTIONAL) source load_login.sql;
(OPTIONAL) source load_bots.sql;

copy eqtime.cfg over to the directory where your server binaries live.

If you plan on using the public EQEmu login server, then sourcing load_login.sql is not necessary.
If you wish to use a local login, you can login using Admin and the password "password". You can also look in load_login.sql to see how to add your own users manually.

-----------------

Then run:
mysql -u root -p peq < peqbeta*.sql
mysql -u root -p peq < player_tables_*.sql

cp ~/eq/peq/eqtime.cfg ~/eq/server/

EQEMU setup--
the mv eqemu_config.xml.bak command doesn't do anything. No source/destination. I think it wants:
mv eqemu_config.xml eqemu_config.xml.bak


Create your server start and stop files---

instead of the mess of shell scripts, I normally install gnu screen or tmux or whatever. I adjust tmux personally with this https://gist.github.com/andreyvit/2921703 so it feels like screen. and do a series of C+a c C+a , and call them eqlaunch, world, whatever you launch.

eqconfig needs login.eqemulator.net 5998 as well

I think that's about it.

Akkadius 08-01-2014 11:40 AM

Shin,

Would you like a Wiki user to update the page yourself?

Thanks,
-Akka

hayward6 08-01-2014 01:22 PM

Quote:

Originally Posted by Shin Noir (Post 232390)
words...

This will be extremely helpful! I have recently been trying to revive my old linux server, and so much is different. Thank you,

Shin Noir 08-01-2014 04:54 PM

I suppose I could do that Akkadius. I tried originally and noticed it was locked except for wiki members, figured I'd write self notes/tell you guys to do it than go through process of applying.

Thanks.

hayward6 08-01-2014 07:15 PM

Quote:

Originally Posted by Shin Noir (Post 232415)
I suppose I could do that Akkadius. I tried originally and noticed it was locked except for wiki members, figured I'd write self notes/tell you guys to do it than go through process of applying.

Thanks.

I look forward to seeing it all together, because I don't know what this means... I can navigate to that site in windows and download the files, but I don't know how to grab them directly from the command line in Linux. The link you posted doesn't seem to be enough.

"---Grabbing the sources--
remove these (deprecated):
svn co http://projecteqdb.googlecode.com/svn/trunk/peqdatabase peq
svn co http://projecteqquests.googlecode.com/svn/trunk/quests quests

they're now https://drive.google.com/folderview?...p=sharing#list"

Akkadius 08-01-2014 07:31 PM

Sent in a PM Shin.

Thank you so much for getting the Debian install up to date.

This was needed badly.

Also, bonus points for anyone who gets a Debian VM setup and then lets me download it from them so I can host it on our Wiki for an instant sandbox.

hayward6 08-01-2014 07:40 PM

Quote:

Originally Posted by Akkadius (Post 232421)
Sent in a PM Shin.

Thank you so much for getting the Debian install up to date.

This was needed badly.

Also, bonus points for anyone who gets a Debian VM setup and then lets me download it from them so I can host it on our Wiki for an instant sandbox.

That would be awesome! My only hesitation is that the knowledge that it takes to set up a server is also required to update it. If I could just come here and download the VMDK file, I would probably have no idea how to edit and update it.

Shin Noir 08-02-2014 12:09 AM

Replied to your PM with a virtualbox install package, akkadius. I'm working on a new page for the tutorial instead of editing the old one. (With videos).
http://wiki.eqemulator.org/p?EQEmu_o...n_7_Virtualbox

Shin Noir 08-02-2014 12:28 AM

Quote:

Originally Posted by hayward6 (Post 232420)
I look forward to seeing it all together, because I don't know what this means... I can navigate to that site in windows and download the files, but I don't know how to grab them directly from the command line in Linux. The link you posted doesn't seem to be enough.

"---Grabbing the sources--
remove these (deprecated):
svn co http://projecteqdb.googlecode.com/svn/trunk/peqdatabase peq
svn co http://projecteqquests.googlecode.com/svn/trunk/quests quests

they're now https://drive.google.com/folderview?...p=sharing#list"

My new tutorial shows how I do this, since wget isn't friendly in cli with google's downloading. (I just use filezilla for easy scp)

hayward6 08-02-2014 07:03 AM

Quote:

Originally Posted by Shin Noir (Post 232440)
My new tutorial shows how I do this, since wget isn't friendly in cli with google's downloading. (I just use filezilla for easy scp)

I setup webmin and moved the files that way simply because it's what I know.

hayward6 08-03-2014 09:03 AM

The videos are great! Thank you for the update. I will try to run through this setup tomorrow to see how it goes. My only differences will be that I am using Vmware Workstation 10, and I am more accustom to using vi for editing.

Shin Noir 08-03-2014 04:12 PM

I finished my wiki article, now I'll go and edit the original one as soon as I find time. :)

hayward6 08-03-2014 08:20 PM

Quote:

Originally Posted by Shin Noir (Post 232486)
I finished my wiki article, now I'll go and edit the original one as soon as I find time. :)

I am very impressed and thankful to you for doing this. I am about half way through and everything is working great. I gave the idea of hosting a complete image some more thought, and I just don't know... It would be difficult to keep that image updated and very hard for someone with no linux experience to just start owning it.

Shin Noir 08-03-2014 08:25 PM

Meh, I can give guidance to a linux noob on how to maintain stuff. I'm just too lazy to do all the upkeep myself. :P

hayward6 08-04-2014 10:20 AM

I've just about got it, but still have a couple things not going well. The LibEMuShare file is in the server directory...

Code:

[Debug] [WORLD__HTTP] Requesting that HTTP Service stop.
[Debug] [COMMON__THREADS] Ending EQStreamFactoryWriterLoop with thread ID 1268692736
[Debug] [COMMON__THREADS] Ending TCPServerLoop with thread ID 1296017152
eqemu@debian:~/server$ nano eqemu_config.xml
eqemu@debian:~/server$ ls -lt
total 87252
-rw-r--r-- 1 eqemu eqemu      30 Aug  4 10:14 eqtime.cfg
drwxr-xr-x 2 eqemu eqemu    4096 Aug  4 10:13 logs
-rw-r--r-- 1 eqemu eqemu 18028095 Aug  4 08:21 spells_us.txt
-rw-r--r-- 1 eqemu eqemu  2149759 Aug  4 08:20 spells_en.txt
-rw-r--r-- 1 eqemu eqemu    2508 Aug  4 08:14 eqemu_config.xml
lrwxrwxrwx 1 eqemu eqemu        9 Aug  4 07:35 quests -> ../quests
lrwxrwxrwx 1 eqemu eqemu      17 Aug  4 07:35 plugins -> ../quests/plugins
lrwxrwxrwx 1 eqemu eqemu        8 Aug  4 07:35 Maps -> ../maps/
-rw-r--r-- 1 eqemu eqemu    16719 Aug  4 07:35 opcodes.conf
-rw-r--r-- 1 eqemu eqemu    22607 Aug  4 07:35 patch_SoF.conf
-rw-r--r-- 1 eqemu eqemu    18844 Aug  4 07:35 patch_Titanium.conf
-rw-r--r-- 1 eqemu eqemu    19006 Aug  4 07:35 patch_Underfoot.conf
-rw-r--r-- 1 eqemu eqemu    17718 Aug  4 07:35 patch_6.2.conf
-rw-r--r-- 1 eqemu eqemu    16027 Aug  4 07:35 patch_RoF.conf
-rw-r--r-- 1 eqemu eqemu    18916 Aug  4 07:35 patch_SoD.conf
-rwxr-xr-x 1 eqemu eqemu 45408815 Aug  4 07:34 zone
-rwxr-xr-x 1 eqemu eqemu 13984142 Aug  4 07:34 world
-rwxr-xr-x 1 eqemu eqemu  4485617 Aug  4 07:34 ucs
-rwxr-xr-x 1 eqemu eqemu  2433598 Aug  4 07:34 queryserv
-rwxr-xr-x 1 eqemu eqemu  266920 Aug  4 07:34 libEMuShareMem.so
-rwxr-xr-x 1 eqemu eqemu  2371644 Aug  4 07:34 eqlaunch
-rwxr-xr-x 1 eqemu eqemu    32988 Aug  4 07:34 cleanipc
eqemu@debian:~/server$ nano eqemu_config.xml
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Starting HTTP world service...
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [COMMON__THREADS] Starting DBAsyncLoop with thread ID 1287624448
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__HTTP_ERR] Failed to load mime types from 'mime.types'
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Loading variables..
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Loading zones..
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Clearing groups..
-su: [Debug]: command not found
[Debug] [WORLD__INIT] Clearing raids..
[Debug] [WORLD__INIT] Loading items..
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Clearing raids..
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Loading items..
-su: [Debug]: command not found
eqemu@debian:~/server$ [Error] Load Shared Library 'libEMuShareMem.so' failed.  Error=libEMuShareMem.so: cannot open shared object file: No such file or directory
-su: [Error]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__INIT_ERR] Error: Could not load item data.  But ignoring
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Loading guilds..
-su: [Debug]: command not found
eqemu@debian:~/server$ [Debug] [WORLD__INIT] Loaded default rule set 'default'
-su: [Debug]: command not found
eqemu@debian:~/server$ ^C
You have new mail in /var/mail/eqemu
eqemu@debian:~/server$



All times are GMT -4. The time now is 10:46 AM.

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