iliveisl

 

Breen’s port 9100 mod for Sim-on-a-Stick

6 comments

Breen Whitman has masterfully hacked Sim-on-a-Stick to reduce conflicts with other programmes, such as Skype, his hack is supposed to be part of the SoaS builds (his link’s been dead and i just found a copy of his document). i’ll have to fire the person making the updated packages because they forgot a few steps! ={

if you have had some issues with the 0.7.3.1 versions, this could be it (although it has been running fine for me on four differently configured machines) =\

also, some people have asked me what to change to revert it back to Diva’s original settings so just undo the steps below

here’s Breen’s document on what changes are made and these are now been fully laid in to the zip files and the installer on Sim-on-a-Stick.com

we apologise for the fault. those responsible have been sacked =D

 

INTRODUCTION
————

This document outlines changes to Sim-on-a-Stick  required to help Sim-on-a-Stick work with other software that may use the same components that Opensim uses.

This means it should run from the stick and not conflict with any other installed software. SoaS should run side-by-side okay with the modifications below.

By Breen Whitman 8 Jan 2012 – 2:00pm (ver 1.1) – this file maybe used as seen fit.

PROCESS
——-

Open your folder where Sim-on-a-Stick (aka, SoaS) resides.

STEP 1
——

Change the apache port number -

Open apache2\conf\httpd.conf in Notepad

Change “Listen 80″ to “Listen 62535″
Change “ServerName localhost:80″ to “ServerName localhost:62535″

Explanation: Web services invariably uses the default port 80. However only one service can use port 80. A web service will fail to start if another service uses it. You can merely specify a custom port.

STEP 2
——

Update the MySQL port that MySQL uses -

Open mysql\my.ini in notepad

Change the two lines with “port=3306″ to “port=3307″

Explanation: MySQL defaults to port 3306. You can run another MySQL instance by giving it another port. We just, from here, need to configure OpenSim to know where to connect.

STEP 3
——

Update how Opensim connects to MySQL -

Open diva-rXXXX\bin\config-include\MyWorld.ini in Notepad (newer versions are diva-os\)

Find this line:
ConnectionString = “Data Source=localhost;Database=opensim;User ID=opensim;
Password=opensimpass;Old Guids=true;Allow Zero Datetime=true;”

Replace it with:
ConnectionString = “Data Source=localhost;Database=opensim;Port=3307;User ID=opensim;
Password=opensimpass;Old Guids=true;Allow ZeroDatetime=true;”

Explanation: Here, we tell Opensim to connect to our MySQL port 3307. Opensim is very flexible!

STEP 4
——

Change the opensim ports to non default -

Open diva-rXXXX\bin\config-include\MyWorld.ini in Notepad (newer versions are diva-os\)

Go to Menu > Edit > Replace

Put 9000 in “Find What” and 9100 in “Replace With” and click OK

Save the file

Explanation: Here, we tell OpenSim to to listen on non default ports. While not essential, this does allow SoaS to operate even if another version of OpenSim server is installed and running on the host machine.

STEP 5
——
Configure the regions -

Open diva-rXXXX\bin\Regions\RegionConfig.ini in Notepad

Change “InternalPort = 9000″ to  ”InternalPort = 9100″

If you have 4 regions, change

InternalPort = 9001 to  InternalPort = 9101
InternalPort = 9002 to  InternalPort = 9102
InternalPort = 9003 to  InternalPort = 9103

Save the file

STEP 6
——

Start SoaS -

Double click \diva-os\bin\OpenSim.exe for 32 bit machines

OR Double click \diva-os\bin\OpenSim.32BitLaunch.exe for 64 bit machines if above fails

Check that SoaS starts okay

STEP 7
——

Try connecting with a viewer -

The login URI is http://127.0.0.1:9100/

Twitter Tumblr Digg Reddit Stumbleupon Delicious Facebook Plusone Pinterest Linkedin Tumblr Posterous Snailmail

written by Ener Hax

August 22nd, 2012 at 7:14 am

posted in sim-on-a-stick,virtual worlds

tagged with ,

6 comments to 'Breen’s port 9100 mod for Sim-on-a-Stick'

subscribe to comments with RSS or trackBack to 'Breen’s port 9100 mod for Sim-on-a-Stick'.

  1. [...] Breen’s port 9100 mod for Sim-on-a-Stick - aug 22 reduces conflicts with almost everything – comes standard on SoaS [...]

  2. Odd, it’s been working straight out of the installer for me, on port 9100. Oh, and Ener – particularly the way I am constantly messing up my Opensim and have to re-create from the originals – that installer is pure genius!

    ELQ

    22 Aug 12 at 8:31 am

  3. thanks on the kind words ELQ! the installer makes it faster for sure and i use it myself all the time

    the 9100 port should work fine in the older versions, but some of the other nifty things Breen did, likemultiple OpenSims and port 80 were not laid in

    good luck with all of your projects! =)

    Ener Hax

    22 Aug 12 at 1:16 pm

  4. Sarge Misfit

    22 Aug 12 at 3:16 pm

  5. @Ener ” like multiple OpenSims and port 80 were not laid in”

    Doing configurations on releases is a somewhat onerous task.

    Myself, running an OSGrid region that has releases about once a month is an exercise in vigilance.

    There is a lot more to Diva so makes it time consuming. The infrequency of the diva release is a mixed bag. On the one hand, not too frequent, on the other, by the time it rolls around its as if its a new modification.

    Breen Whitman

    23 Aug 12 at 2:11 am

  6. great pic Sarge! i’d like to hide in a bag some days! =)

    hey there Breen, well i knew i had kept a copy of your document but had lost it until recently so only remembered the port 9100 part

    your other hacks are fantastic because they cover so many things (you must be an uber computer person irl)

    i find your document very easy to follow and it only takes a a few minutes to make the changes – and i only need to make them to one copy of the files because that copy is used for both the zipped set and the installer set

    thanks Breen for doing this, it is a very positive addition for sim-on-a-stick

    Ener Hax

    23 Aug 12 at 6:52 am

leave a reply - add your thoughts

you can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>