OpenSIM on Ubuntu
I have created a new virtual server in VMWare-server that I will test open sim on. I'll try to wite down all needed software installation for get open sim running. The comuter have Ubuntu server 7.04, 256 Mb of memory and 8 Gb disk. I have installed the base system only and make a user for me.
Fist i need subversion installed to get the source code.
sudo apt-get install subversion
Then download the source code from subversion, both opensin and libsecondlife is needed:
cd
svn co http://opensimulator.org/svn/opensim/trunk opensim
svn co svn://opensecondlife.org/libsl/trunk libsecondlife
Installed needed packed to compile libseondlife and opensim:
sudo apt-get install mono nant nunit mono-gmcs build-essential mono-mjs sudo apt-get install libmono-microsoft8.0-cil libmono-system-runtime2.0-cil cd libsecondlife/openjpeg-libsl/ make
Compile opensim
cd ~/opensim ./runprebuild.sh nant
Install opensim, I prefer to have a copy of the binaries to work and configure, this is done by making a new directory and copy the bin directory to that location.
mkdir ~/balpworld cp -r bin/ ~/balpworld/ cp ~/libsecondlife/openjpeg-libsl/*so .
Start opensim, the first time it have to be configured:
[09-17 05:51:27] DEFAULT REGION CONFIG: Simulator Name [OpenSim Test]: Balp World [09-17 05:52:27] DEFAULT REGION CONFIG: Grid Location (X Axis) [1000]: 1000 [09-17 05:52:48] DEFAULT REGION CONFIG: Grid Location (Y Axis) [1000]: 1000 [09-17 05:52:50] DEFAULT REGION CONFIG: Filename for local storage [OpenSim.db]: balpworld.db [09-17 05:53:12] DEFAULT REGION CONFIG: Internal IP Address for incoming UDP client connections [0.0.0.0]: 83.140.215.86 [09-17 05:54:00] DEFAULT REGION CONFIG: Internal IP Port for incoming UDP client connections [9000]: [09-17 05:54:03] DEFAULT REGION CONFIG: External Host Name [127.0.0.1]: 83.140.215.86 [09-17 05:54:17] DEFAULT REGION CONFIG: First Name of Master Avatar [Test]: [09-17 05:54:24] DEFAULT REGION CONFIG: Last Name of Master Avatar [User]: [09-17 05:54:25] DEFAULT REGION CONFIG: (Sandbox Mode Only)Password for Master Avatar account [test]:
conect secondlife client to the world:
./secondlife -loginuri http://83.140.215.36:9000/ -login Test User test
Popularity: 5% [?]
libsl problems
Tried to make a new libsecondlife for load terrain. But that failed misserabl
Unable to load default terrain, procedurally generating instead...
Stacktrace:
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.copy_to_unmanaged (System.Array,int,intptr,int) <0x0000e>
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.copy_to_unmanaged (System.Array,int,intptr,int) <0xffffffff>
at System.Runtime.InteropServices.Marshal.Copy (byte[],int,intptr,int) <0x0002e>
at OpenJPEGNet.OpenJPEG.Encode (byte[],int,int,int,bool) <0x000b2>
at OpenJPEGNet.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap,bool) <0x0065a>
at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (string) <0x00314>
at OpenSim.Region.Environment.Scenes.Scene.CreateTerrainTexture () <0x00032>
at OpenSim.Region.Environment.Scenes.Scene.LoadWorldMap () <0x00339>
at OpenSim.Region.ClientStack.RegionApplicationBase.SetupScene (OpenSim.Framework.Types.RegionInfo,OpenSim.Region.ClientStack.UDPServer&) <0x0014a>
at OpenSim.OpenSimMain.StartUp () <0x003e0>
at OpenSim.Application.Main (string[]) <0x0022c>
Native stacktrace:
mono [0x56146d]
mono [0x540fa0]
/lib/libpthread.so.0 [0x2ba038a63200]
/lib/libc.so.6(memcpy+0x43) [0x2ba038f6b043]
mono [0x49cfc5]
[0x429b99bf]
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted
Popularity: 4% [?]
More OpenSIM stuff
I have tested a little more with opensim now, updated top the lates svn stuff and got more sql stuff. Updated my config as well loot of stuff to be tested.
My config is now:
[Startup] gridmode = false physics = basicphysics storage_plugin = "OpenSim.DataStore.MonoSqlite.dll" standalone_authenticate = true standalone_welcome = "Balp Test Server"
On startup I get an error from jpeg handling.
Failed generating terrain map: System.DllNotFoundException: ./libopenjpeg-libsl-2.1.2.0-x86_64.so at (wrapper managed-to-native) OpenJPEGNet.OpenJPEG:LibslAllocDecoded (OpenJPEGNet.OpenJPEG/LibslImage&) at OpenJPEGNet.OpenJPEG.Encode (System.Byte[] decoded, Int32 width, Int32 height, Int32 components, Boolean lossless) [0x00000] at OpenJPEGNet.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap bitmap, Boolean lossless) [0x00000] at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (System.String gradientmap) [0x00000]
A chat log from the #opensim IRC
<MW__> p-phunk, at moment you need a db file for inventory and then another
one for each region, (later hopefully we will support a single file
for all the regions in a instance ) but its likely that inventory
will stay separate.
<MW__> a empty inventory database file is included in svn (inventoryStore.db)
if you recreate it or whatever, then it needs that name (the prim
databases can be named whatever you want as you set their names in
the region.xml file ...the Datastore value)
<p-phunk> I just imported the 2 sql files into a single db
<p-phunk> and it works
<p-phunk> unless you mean something else?
<p-phunk> the table names dont clash so its ok
<MW__> oh cool if it works
<p-phunk> I dont know why, but not everything is getting saved
<p-phunk> is the region saved at intervals or somehting?
<p-phunk> maybe Im building and then shutting down too fast
<MW__> but think if you add more than one region to a instance (ie more than
one region.xml file in the region folder) then you will need
separate database files for them as they all use the same table
types but need their own tables.
<p-phunk> yeah Im only testing 1 region
<MW__> yeah currently the regions only backup something like every 2 minutes
<p-phunk> oh ok
<p-phunk> does typing backup on the consol work now?
<MW__> I'm not sure
<p-phunk> ok
<p-phunk> Im noticing shift drag copying is really busted
<p-phunk> when yuou shift copy a copy of something the first copy bounces back
to the original position it was in
<dalien> p-phunk oh, you got the inventory/assets save working ?
<p-phunk> yeah
<p-phunk> oh I dunno about inv
<dalien> means - it survives the restart and all ?
<p-phunk> but prims I rezz are appearing after shitdown
<p-phunk> not all of them though
<p-phunk> yeah
<MW__> actually seems we have backup set for every minute , if you want to
change the timing , go to scene.cs line 233: if (storageCount >
600) and change the 600 (seconds multiplied by 10)
<p-phunk> mw had that working a few revs ago when I tested it
<p-phunk> no it doesnt matter MW I just wanted to see if it was saved on
timer, that would explain why some prims werent there after restart
<dalien> p-phunk: anything special to do to do it ?
<p-phunk> yes
<p-phunk> a few things
<p-phunk> grab a copy of sqlite3
<p-phunk> storage only works with sqlite right now
<dalien> ok
<p-phunk> is there any way i can save my current terrain instead of having to
flatten each time?
<p-phunk> right now I use terrain fill 23 just to flatten the region
<dalien> p-phunk: not sure if you can export. but the terrain load from PNG
definitely has a bug.
<dalien> i need to file a ticket on that ![]()
<p-phunk> mw, you think you can hook up some storage of the terrain
??
<p-phunk> so a restart remembers it
<dalien> well, should be possible... maybe not today, since I plan to play a
bit into this funny thing called "RL". they say the resolution is
pretty good.
<dalien> but the load from PNG works - i need to see if I can do the save to
PNG.
<dalien> actually, I think maybe next week i might have some time - since i
will be in a business trip
<p-phunk> but loading the terrain still has to be a mnual thing on the console
right
<p-phunk> ?
<p-phunk> Im just talking about saving my flat region here so I dont have to
flatten it on the console each time I restart
<p-phunk> its just easier to do build testing ona flat sim instead of that
generated one
<dalien> ah. but can't you just add the command somewhere ?
<p-phunk> no nothing automated
<dalien> wait
<p-phunk> I have to type: terrain fill 23 each time
<p-phunk> Ive just set autentication to true, but how do I create user
accounts?
<p-phunk> wanted to test inventory saves
<p-phunk> nvm
<p-phunk> its: create user
<p-phunk> I was just making a typo
<dalien> p-phunk: ok, to get the terrain saved...
<dalien> after flattening it
<dalien> do "terrain save F32 default.r32"
<dalien> then on the next startup it will load it from this file
<p-phunk> oh thanks man
<p-phunk> let me try it
<p-phunk> interesting
<p-phunk> I saved a flat region at 23M height
<p-phunk> now after it reloads, its height is 1381
<p-phunk> looks like there is a multiplier at work
<dalien> ahha.
<dalien> well, at least you got the flat land ? ![]()
<p-phunk> I see it is 60.0 in estate settings xml
<p-phunk> Ill change it and try a reload
<p-phunk> yeah cool thanks man
<dalien> oki ![]()
<dalien> yw ![]()
<p-phunk> 23 x 60 gets the hight Im seeing now
-:- SignOff DeltaCzuk: #opensim ()
<p-phunk> yep that was it. Its all good now ![]()
<dalien> cool!
<dalien> (topic for a blogpost)
<p-phunk> mw is the man...
<p-phunk> my notecards saved
<p-phunk> and I can view the text I typed in them after a restart
<dalien> whoa
<dalien> inventory now works ?????
<AdamZaius> It does? ![]()
<p-phunk> yeah some things are working ![]()
<dalien> 13:18:09) p-phunk: my notecards saved
<dalien> (13:18:19) p-phunk: and I can view the text I typed in them after a
restart
<dalien> p-phunk: ok, now please please share step by step what did you do to
get it working ![]()
<p-phunk> you need to set standalone autentication to true in opensim.ini
<p-phunk> then type: create user
<p-phunk> on the console
<p-phunk> then when you log in with that user any folder you create and
notecards are remmebered
<p-phunk> you need to use sqlite though
<adjohn> this doesn't work on grid mode?
<p-phunk> no I dont think so
<p-phunk> mw is working on standalone right now
<dalien> ah - p-phunk, and sqlite - that should be the change of the library
in the opensim.ini ?
<p-phunk> put this in opensim.ini
<p-phunk> storage_plugin = "OpenSim.DataStore.MonoSqlite1.dll"
<p-phunk> standalone_authenticate = true
<dalien> ahha
<p-phunk> in region/default.xml set your db
<p-phunk> mine is datastore="opensimdb"
<p-phunk> you have to create those tables in sqlite
<dalien> hmm interesting the MonoSqlite1 - is it something very new ?
<dalien> i did a checkout couple days ago and do not see it built...
<p-phunk> yeah newish
<dalien> ah wait
<dalien> i do not have "1" ![]()
<p-phunk> Im on windows so I dump the sql files into sqlite like this:
<p-phunk> type sqlite3-prims.sql | sqlite3.exe opensimdb
<p-phunk> and sqlite3-inventory.sql | sqlite3.exe opensimdb
<dalien> ok let me check
<dalien> hmmm interesting - looks like they were checkout later...
<dalien> i can see only prims, not inventory
<dalien> ok - and then that is basically it ?
<p-phunk> its in share/sql
<p-phunk> yep
<dalien> yeah i have only prims, not inventory - so the inventory code must've
been bleeding ![]()
<dalien> ok
<dalien> i *really* have to run - but thanks a ton p-phunk, I will give it a
run and will blog it if it works ![]()
<dalien> (as well as the terrain save thingie ![]()
<p-phunk> cool
<p-phunk> we should siki it
<p-phunk> wiki
<dalien> indeed.
<p-phunk> but things change too fast
<p-phunk> so I wasnt sure
<dalien> thats my concern
<p-phunk> this is too new
<dalien> blog is easier
<dalien> more volatile
<dalien> (and i already have it ![]()
<dalien> so i will just post it there so folks can hit if they search
<p-phunk> cool whats the url?
<dalien> once it settles down a bit - we can transfer on wiki
<dalien> daltonic.blogspot.com
<dalien> a mish mash of everything, but i do tag, so you can filter out the
noise ![]()
<p-phunk> sweet adding it to ggole reader
<p-phunk> google*
<dalien> oki... gonna run now. else i am going to be late and it is not good
![]()
<dalien> thx again and ttyl
Popularity: 9% [?]
OpenSIM testing
I have now my first opensim server running. First "bug" hunt run gives:
- Loot of spam on console: Resending ImagePacket packet, 4289ms have passed Making other stuff impossible to see.
- Shutdown of region don't log out users.
- nant taget clean make stuff to clean, svn don't work at all afterwards.
- Logout gives error messages on console: OpenSimClient.cs:ProcessInPacket() - Got a logout request
[CLIENT] Got a packet from an invalid client - 81.26.240.37:55781
This version have some basic scripting added but I have not been able to test that yet. I have still to look into the code, can't see and kind of nunit test in it. That would definitely be extremely usefull for the lsl implementation.
Popularity: 5% [?]
OpenSim?
With the current stability I got into looking at Opensim. An open source implementation of the servers that run second life. Or rather a reimplementation using a BSD like licence. Even if this project have vary much work left to do until it's beginning to be useful. But they need help and support so maybe we can get a grid that is stable with out censor, and with the laws in the country on the sim owner not california.
For a 3d-world to take over after the web, it needs a standard interface, between client and server. It needs that everyone can start there on server really cheep. It needs that you can set up a server for your own needs on your computer. None that tried to make the own browser strategy succeeded, the need to have all stetting up there own servers and running there own home pages are much hinger that the need to control the technology. The questions what roll can Linden Labs have in such a future?
At the moment they make the best server software. They make the best client. They have the biggest knowledge of running the stuff. I'm sure a company like that can find good ways to make money But it will not be in then same way as today. There are some big questions that will have to be solved before we can get a place like that working. How will the economy work? I think is the major problem. For one of the things taht actually work in SL is the micro economy.
Andra bloggar om: Second life, OpenSim,
Popularity: 4% [?]