The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Running a nightly sphere build on CentOS
Author Message
mpgram
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #1
[Tutorial] Running a nightly sphere build on CentOS
I am going to assume that you already know how to install the OS and know a few basic linux commands, like how to copy. I suggest, for simplicity sake) running a 32bit version of the OS as it makes this much easier. I am using CentOS 6.5 32bit.

**Please note that this is not the secure way of running things as I believe that is beyond the scope of this thread.**

After the OS is installed, login and run the following commands.
1. yum update -y
2. service iptables stop
3. chkconfig iptables off
4. mkdir /sphere

You need to now download and copy the files over to your new CentOS server. I personally use WinSCP as it is free and easy. Copy the two files that you download into the /sphere directory. Now, run the following commands:

5. tar -zxvf sphereNightlyScripts.tar.gz
6. tar -zxvf sphereNightly.tar.gz
7. cd /sphere
8. mkdir save mul logs accounts

Copy your game files (mul, uop, idx, and the like) to the "mul" directory. Again, I used WinSCP. While we are at it, lets copy the

Create blank world files and account files. Quite simply done by typing the following:

9. echo "[eof]">/sphere/save/sphereworld.scp
10. echo "[eof]">/sphere/save/spherestatics.scp
11. echo "[eof]">/sphere/save/spheremultis.scp
12. echo "[eof]">/sphere/save/spheredata.scp
13. echo "[eof]">/sphere/save/spherechars.scp

And now accounts:
14. echo "[eof]">/sphere/accounts/sphereaccu.scp
15. echo "[eof]">/sphere/accounts/sphereacct.scp

Now, you need to go edit your sphere.ini. I cannot tell you what you need to change, but I am going to suggest looking at the directories and such carefully as you will definately need to uncomment //MulFiles=mul/. You will also need to add a line in their "AGREE=1".

Now that these are all done, you are almost there. I suggest running "screen". This program will allow you to logout of the server and still have your shard up and running, and allow you to get back to the console later. Let's also get the mysql library we need to run sphere.

16. yum install screen wget -y
17. cd /sphere
18. wget http://prerelease.sphere.torfo.org/files/libMySQL.dll

Now, we run sphere:

19. screen
20. ./sphereNightly

Thats it! You should be running. If you want to close this window, you will need to detach this screen session. To do so, hold CTRL and tap a then d. Make sure capslock is not on. This will kick you back and you should see a message that says [detached]. To get back to it, type screen -r. Once you are detached from the screen session, you can logout and/or exit like normal.
(This post was last modified: 04-28-2014 11:31 PM by mpgram.)
04-28-2014 11:30 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 3 users Like mpgram's post
MrX
Apprentice
*

Posts: 16
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Aug 2014
Reputation: 0



Post: #2
RE: [Tutorial] Running a nightly sphere build on CentOS
What to do with this errors:


linux-gate.so.1 => (0xb775f000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7738000)
libmysqlclient.so.16 => /usr/lib/mysql/libmysqlclient.so.16 (0xb75c0000)
librt.so.1 => /lib/librt.so.1 (0xb75b0000)
libdl.so.2 => /lib/libdl.so.2 (0xb75a8000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74b8000)
libm.so.6 => /lib/libm.so.6 (0xb7488000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7468000)
libc.so.6 => /lib/libc.so.6 (0xb72d0000)
/lib/ld-linux.so.2 (0xb7760000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb72a0000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb7280000)
libssl.so.10 => /usr/lib/libssl.so.10 (0xb7218000)
libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0xb7050000)
libz.so.1 => /lib/libz.so.1 (0xb7038000)
libfreebl3.so => /lib/libfreebl3.so (0xb6fd8000)
libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0xb6f98000)
libkrb5.so.3 => /lib/libkrb5.so.3 (0xb6eb8000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0xb6eb0000)
libk5crypto.so.3 => /lib/libk5crypto.so.3 (0xb6e80000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb6e60000)
libkrb5support.so.0 => /lib/libkrb5support.so.0 (0xb6e50000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb6e48000)
libselinux.so.1 => /lib/libselinux.so.1 (0xb6e28000)


I really don't know to fix it, never played with linux
08-21-2014 05:30 PM
Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #3
RE: [Tutorial] Running a nightly sphere build on CentOS
Which distro are you using?
10-09-2014 02:43 AM
Find all posts by this user Like Post Quote this message in a reply
diegobh
Apprentice
*

Posts: 21
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #4
RE: [Tutorial] Running a nightly sphere build on CentOS
I got error:

./sphereNightly: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

I'm using: CentOs 7 64 bits

How to fix it, please?
02-15-2015 10:49 PM
Find all posts by this user Like Post Quote this message in a reply
diegobh
Apprentice
*

Posts: 21
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #5
RE: [Tutorial] Running a nightly sphere build on CentOS
(02-15-2015 10:49 PM)diegobh Wrote:  I got error:

./sphereNightly: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

I'm using: CentOs 7 64 bits

How to fix it, please?

I fixed just installing the 32 bits libs Wink
02-16-2015 12:29 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes diegobh's post
Post Reply 


Forum Jump:


User(s) browsing this thread: 5 Guest(s)