Archive for October, 2009

Digital Resources for Buddhist Studies

Posted in Uncategorized on October 26, 2009 by billmagee

Lately I have been blogging about writing the Buddhist canonical languages in Second Life and OpenSim over at the Digital Resources for Buddhist Studies blog.

My colleagues over there are mainly database guys, so I thought a little metaverse chit-chat might liven things up.

Enjoy your digital resources!

Installing OpenSim-0.6.7

Posted in Uncategorized with tags on October 17, 2009 by billmagee

In my previous post I installed the Diva distribution of OpenSim and began porting my Tibetan language objects into it from Second Life. This has gone well. I have my complete Tibetan classroom running here behind the firewall on Dharma Drum Mountain. Diva has run splendidly. The only problems I have encountered involve saving and loading OARs (opensim archive files). There is a bug such that the OAR loads fine in the root region (SW) but loading an oar file in the other regions causes aproximately 30% of its prims to become phantom. See the bug report here: http://opensimulator.org/mantis/view.php?id=4163

Since I need to exchange OARs with other users, I decided to pass beyond the Diva distro by downloading and compiling the latest OpenSim release: opensim-0.6.7.

This tutorial is very limited: it will describe how I installed a standalone instance of OpenSim onto my Acer laptop running Ubuntu 9.04, mono 2.0.1, and MySQL. If you already use Ubuntu with these packages installed, read on. If you lack these packages or if you want a grid architecture instead of a standalone, I suggest you consult the OpenSim wiki: http://opensimulator.org/wiki/Main_Page

Ubuntu users will also need to install these compiling tools:

sudo apt-get install mono-devel libmono-microsoft8.0-cil libmono-oracle2.0-cil nant

Use MySQL or phpmyadmin (or some other MySQL manager) to create a MySQL database named opensim or such. It does not need to be populated with tables at this point. I named my new database “opensimRelease” to differentiate it from my “opensim” diva database. Make sure you have privileges.

Download opensim source code from: http://dist.opensimulator.org/opensim-0.6.7-release.tar.gz

Unzip it into its own directory somewhere controlled by you.

Then compile:

$ ./runprebuild.sh
$ nant

If there are problems with the compilation, the problem may be your mono installation. Consult the internet. But if all went smoothly, you will need to configure for a standalone server. Begin by copying the OpenSim.ini.example file to an operational ini files:

cp OpenSim.ini.example OpenSim.ini

Now you will edit the ini file.

In OpenSim.ini all references to databases should look like this:

storage_plugin=”OpenSim.Data.MySQL.dll”
storage_connection_string=”Data Source=localhost;Database=yourdatabase;User ID=root;Password=yourpassword;”;

Use XEngine:

DefaultScriptEngine = “XEngine”

This is my network section:

[Network]
ConsoleUser = “Test”
ConsolePass = “secret”
http_listener_port = 9000
default_location_x = 1000
default_location_y = 1000
http_listener_ssl = false ; Also create a SSL server
http_listener_cn = “localhost” ; Use the cert with the common name
http_listener_sslport = 9001 ; Use this port for SSL connections
http_listener_ssl_cert = “” ; Currently unused, but will be used for OSHttpServer
grid_server_url = “http://172.30.102.148:9000″
grid_send_key = “1234″
grid_recv_key = “1234″
user_server_url = “http://172.30.102.148:9000″
user_send_key = “1234″
user_recv_key = “1234″
asset_server_url = “http://172.30.102.148:9000″
inventory_server_url = “http://172.30.102.148:9000″
messaging_server_url = “http://172.30.102.148:9000″

Kill the evil dotnetengine:

[ScriptEngine.DotNetEngine]
Enabled = false

Now the StandaloneCommon.ini must be edited:

cp StandaloneCommon.ini.example to StandAlone.ini

edit it:

StorageProvider = “OpenSim.Data.MySQL.dll”
ConnectionString = “Data Source=localhost;Database=yourdatabasename;User ID=root;Password=yourpassword;”

At this point you should be able to run ./OpenSim.exe from the bin. It will ask you questions about your region. Your answers create a /bin/network/network.ini file. It should be configured like this:

[MY Cool World]
RegionUUID =
Location = 1000,1000
InternalAddress = 0.0.0.0
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = your machine’s IP // Note: not 127.0.0.1
MasterAvatarFirstName = Master
MasterAvatarLastName = Avatar
MasterAvatarSandboxPassword = password

If all goes well you will be rewarded with a console prompt. Your region is now ready for use. Visit it with the SL client or Hippo (my favorite). Make sure your loginuri is set to http://127.0.0.1:9000 or whatever your setup demands.

More regions can be added in the /bin/regions/regions.ini file. Each region needs a unique UUID (get them here: http://www.famkruithof.net/uuid/uuidgen) and the coordinates and ports must be increased incrementally. For instance, in the next region the coordinates might be 1000,1001 and the port might be 90001.

Now that I have OpenSim running in standalone mode, my next steps will be to configure it for grid mode and connect my world to the OSGrid.

Added next day: Sucessfully configured the installation to run in grid mode. The process is straighforward. All errors involved wrong port numbers, so be careful about ports. See the Grid Mode section of the wiki:

http://opensimulator.org/wiki/Configuration

Moving to OpenSim

Posted in Uncategorized with tags on October 6, 2009 by billmagee

Wamlabs Mediatronics has been involved in virtual reality education since 2007. One of our projects, the Hopkins Tibetan Treasures Multimedia Archive (http://haa.ddbc.edu.tw), boasts an innovative eLearning platform for teaching Tibetan language in Second Life (http://www.secondlife.com: Catocala 176,107,600). Tibetan students worldwide visit and use this unique facility.

Now, WLM boasts its own OpenSim (http://opensimulator.org/) virtual platform, currently running in stand-alone mode behind the Dharma Drum Buddhist College (Taiwan) campus firewall. We have begun porting the Catocala installation into this sim (using the XML capabilities of the Open Source Meerkat Viewer), and students have successfully connected to our virtual world via their own personal computers.


opensim_terrain

Terraforming without limitations

OpenSim is a BSD Licensed Open Source virtual world capable of supporting standalone or grid-structured servers. OpenSim is written in C#, and can run under Mono or the Microsoft .NET runtimes. Our sim is running the Diva distribution (http://github.com/diva/diva-distribution/downloads) of OpenSim on a normal desktop machine running Ubuntu 9.04. Unlike other OpenSim distributions for linux, Diva is pre-compiled. Installation of the Diva software under Ubuntu is relatively straightforward assuming that the host machine already has a fully-functional Mono installation for LSL script comilation and MySQL database to manage persistence.


Wamlabs OpenSim home

Wamlabs OpenSim home

OpenSim has numerous advantages over the Second Life platform. Site administrators have complete control over all aspects of the sim. There are no corporate-imposed limitations on build size or number of prims allowed in-world. Entire regions can be backed up in XML format to the local hard drive for archival purposes or public distribution. Because it runs locally it is private and free of lag. Upgrades are handled seamlessly by the Diva distro. Since the software is cross-platform, an instance of OpenSim can be installed on almost any machine with two or more gigabites of RAM. Most importantly, it is Open Source and completely free.

Of course, there are disadvantages as well. The current release of OpenSim is alpha. Compared to Second Life, it has limited scripting and voice functionality and users must rely on forums and chat rooms to resolve bugs and other problems. However, these issues are being addressed by the core software developers. OpenSim is certainly usable now, and looks to become fully functional in future releases.

Our future plans include connecting our OpenSim to the OSGrid archipelago (http://www.osgrid.org/elgg/), expanding its size beyond its current four regions, and hosting classes, conferences, and “visiting” dignitaries on our private, Open Source, virtual campus.

Download the Diva distribution here:
http://github.com/diva/diva-distribution/downloads

Consult the OpenSim wiki here:
http://opensimulator.org/wiki/Main_Page

Read about the Open Metaverse here:
http://www.osgrid.org/elgg/