- Desktop running Windows XP SP3, assigned a static IP by the DNS server, no monitor, I just log in remotely. (Ask your system administrator to assign the IP if you, like me, can't.)
- Download the zip file for the latest Diva Distribution here. Unzip it to a folder in your Program Files folder called OpenSim or whatever you like. Diva is one of the core developers of OpenSim and has come out with this great binary distribution with good documentation and an update utility, which is an otherwise difficult task. Additionally, Diva has included several major improvements in the program, including 'megaregions,' or a seamlessly connected grid of regions. The default here is 2 X 2, or a total sim of 512 m X 512 m.
- Now look in your downloaded folder for the documentation. Read 'install.txt' first just to get an overview. Then read 'MySQL.txt.'
- Then install MySQL 5.1. There are good instructions here, though a little old. Stop following it when he gets to configuring the opensim.ini file because it's for an older version of OpenSim. The Toad--MySQL GUI--part is for an earlier version of Toad, but the idea is to create a root account and create a new database called 'opensim'. Then create another account named 'opensim' and any password you like that has full privileges to the opensim database. If you prefer you can use the mysqladmin commands (tutorials are here and here). That's also the method explained in MySQL.txt but you might need a little more to go on than just what commands to type. No need to create any tables. OpenSim will do that on first run.
- Download and install the .NET framework 3.5.
- Now follow the steps in 'install.txt.' After running OpenSim.exe in the steps you'll see lots of colorful commands fly by and hopefully no errors.
- Next you'll need a viewer. I tried Hippo and it's great except that if students are connecting on Windows machines with network accounts Hippo has no way I could figure out of saving the sim IP as the default for all users on the machine. Instead, I downloaded the Second Life viewer, installed it on the student laptops, right clicked on the desktop icon (which will need to be moved to the All Users desktop and given full permissions to 'everyone') and added the following flag in the 'target' field: -loginuri http://fixed.ip.ad.dress:9000/ That reroutes the viewer to your sim rather than actual Second Life on the web. If you don't want the occasionally racy SL screenshots showing up either you can add -loginpagehttp://fixed.ip.ad.dress:9000/?method=login.
- Now with your sim running, open the SL viewer from the icon and login with the master avatar account you created during the config. I hope it works! Enjoy it for a bit before tackling the next steps.
- For voice chat you need a voice conference service called FreeSWITCH. At the time of this writing there is a new option for voice called Vivox that sounds better and is fully spatial while FreeSWITCH isn't. But Vivox requires a "customer admin account" from Vivox and I don't know how to get that. (I've since found out it's a commercial application that costs thousands of dollars.) You can download a precompiled binary of FreeSWITCH here, and, yes, you have to install the Microsoft Visual C++ 2008 Redistributable Package like it says before you run the Freeswitch program.
- To configure Freeswitch to work with OpenSim, you have to change some config settings in a few xml files, explained here. This video also demos the steps. One confusing part of this video is that he's using v1.22 but he says anything after 1.22 is compatible with FreeSWITCH voice. It turns out the option to enable voice only exists in v1.22, but you switch to 1.23 to use it. More on that later.
- Now you're ready to configure settings for OpenSim in the OpenSim.ini file. Find the section labeled Freeswitch and configure those settings as shown at the bottom of the Freeswitch config instructions.
- Now you can start up Freeswitch. Double click freeswitch.exe. Ignore the red error messages (really!). Start up OpenSim exe.
- Open your viewer (v1.22) and log in to your sim.
- You have to enable voice chat for the estate. Click Edit > Preferences and under Voice Chat make sure it's enabled. Then click World > Region/Estate, click the estate tab and make sure "Allow Voice Chat" is checked. Finally, right click on the terrain, click About Land, click the Media tab, and click "use estate spatial channel."
- Then log out and log back in with v1.23. To use voice, make sure your headset is plugged in before you start the viewer and to talk click the talk button or the lock next to it.
- Once these things are set, you need someone else to log on or you could talk to yourself over two computers. To talk, look for the talk button on the lower right. Click the lock next to it to toggle talking on or just click and hold the talk button while you're talking.
Friday, October 16, 2009
OpenSim in the Classroom: Diva Distribution Makes It So Much Easier
I have a sim running on XPSP3 on a desktop with a static IP. I set up a network switch so I can run network cables to a class of students' laptops with the Second Life Viewer with a command in the shortcut that makes it connect to the IP of our sim rather than Second Life online. A little more on the details of my setup is here. And here is the step-by-step for getting it up and running:
Tuesday, October 13, 2009
Diva OpenSim Distribution looks promising
I've been thinking I will need to upgrade my OpenSim installation from 0.6.5 to 0.6.6 for hopefully some increased stability and reliability. This may be the ticket. I'll have to wait until we go through one round of the drama project, though. Don't want to break the sim at a crucial time.
Friday, October 02, 2009
OpenSim in the Classroom: Just Avoid Wireless
An app like this just needs more solid throughput than a wireless connection with at least a dozen clients over a single AP can provide. It just works so much better with wired computers. Today voice was crisp and clear--loud, even--without wireless and 13 clients. And I didn't let them edit appearance during the voice testing so voice stayed strong. I did confirm that FreeSWITCH is not spatial, unfortunately. Everyone is audible to everyone else at the same level no matter their relative grid position. We (the drama teacher and I) though we might be able to get small groups rehearsing simultaneously in different parts of the region, but that won't work.
The only problems were two accounts getting repeated failed logins, alternating between a "session crashed" message and a message that were already logged in when trying to log in. Turns out this resulted from their data not saving properly during an earlier session using wireless. This drove me nuts until I figured out a fix. Log in to the MySQL opensim database (using Toad or whatever MySQL GUI you were able to get, or MySQL admin if you can), go to the users table and find the user in question's UUID. Then go to the agents table and you'll find that that UUID has a few field values that the rest don't. AgentOnline will be 1 (true) instead of 0 (false), so change it to 0. LogoutTime will say 0 so you can just insert another user's value there. Then the currentPos will have some null value codes so just insert another user's values there, too. The user should be able to log in again, no problem. Since it's clear the crappy session data resulted from a poor connection, this type of thing is one more headache that can be avoided if you stick with wires.
The only problems were two accounts getting repeated failed logins, alternating between a "session crashed" message and a message that were already logged in when trying to log in. Turns out this resulted from their data not saving properly during an earlier session using wireless. This drove me nuts until I figured out a fix. Log in to the MySQL opensim database (using Toad or whatever MySQL GUI you were able to get, or MySQL admin if you can), go to the users table and find the user in question's UUID. Then go to the agents table and you'll find that that UUID has a few field values that the rest don't. AgentOnline will be 1 (true) instead of 0 (false), so change it to 0. LogoutTime will say 0 so you can just insert another user's value there. Then the currentPos will have some null value codes so just insert another user's values there, too. The user should be able to log in again, no problem. Since it's clear the crappy session data resulted from a poor connection, this type of thing is one more headache that can be avoided if you stick with wires.
Thursday, October 01, 2009
OpenSim in the Classroom: LAN Party
Today I tried plugging 14 clients into the school network so they could log in to our sim and we could take the FreeSWITCH voice chat for a test drive. The network cables are bundled so they won't get horribly tangled so I couldn't quite reach cables to all of the computers, leaving 3 of them wireless, which may have had an effect. Anyway, with students really wanting to continue editing their appearance (It IS a girls' school after all.) I tried having students toggle the talk button one at a time while they were still editing. A couple (loud and clear!) utterances into it and the voice service dropped out. No one could toggle their talk switch anymore. Watching the console I could see avatar inventory flying into the server so I'm guessing my only option left to get this thing working is to avoid combining any significant editing with voice data. I'll try that tomorrow, in a room where I think everyone can be wired. One preparation I plan to make before starting the drama production with 12 eighth graders in a couple weeks is to configure and edit all of the avatars for the students so they don't have to spend our precious training and rehearsal time doing it. Maybe they can configure their avatars during study hall. That will go over well...
Saturday, September 19, 2009
OpenSim in the Classroom: Wireless Issues
Anyone who knows how virtual worlds work could have told me that I would have trouble logging 14 students in to a sim over a wireless connection to our school's LAN. Now I know from experience that each user's client has to download too much data during the login process for it to go smoothly. I had several failed logins on the first attempt. Next class I had the students do rolling logins--only one at a time--and it went much better, only taking 8 minutes to get everyone in, configuring their avatars. Lesson learned.
UPDATE: After some experimentation I've found that any more than about 8 users logging in over the wireless causes too much latency for it to be more than a frustrating experience for the students. So they double up. For more than 8 students I'll have to hook up a switch and provide network cables--only for very special projects, like the drama project coming up.
UPDATE: After some experimentation I've found that any more than about 8 users logging in over the wireless causes too much latency for it to be more than a frustrating experience for the students. So they double up. For more than 8 students I'll have to hook up a switch and provide network cables--only for very special projects, like the drama project coming up.
Saturday, August 29, 2009
Connecting to OpenSim with SL Viewer on Mac
I am just running a sim in standalone mode but I want to share it out to other computers on my home network. Whether you are or not it's the same. The only diff is where it says 'ipofyoursim' you'll put whatever fixed IP your sim has.
- Download Second Life to your Mac, version 1.23, not viewer 2.
- Make TextEdit.app edit as plain text rather than rtf. This is because when you run the commands in the plain text file the shell will encounter formatting codes if it's rtf format.
- Paste this in a new file:
/Applications/Second\ Life.app/Contents/MacOS/Second\ Life -loginuri http://ipofyoursim:9000/ -loginpage http://ipofyoursim:9000/?method=login. Save file as 'RunSLViewer.sh' on desktop.
- Open terminal, navigate to desktop (
cd desktop). - Change permissions to executable (
chmod 777 RunSLViewer.sh). - Run executable (
./RunSLViewer.sh). Preceding ./ is required because for a file to be run as an executable the shell needs the file's system path. If the terminal session is in the same folder as the file, ./ is shorthand for the system path to terminal's location. - Login to your sim!
- For a more user-friendly method, create an applescript with the script do shell script "/Users/username
/desktop/RunSLViewer.sh" and put that on the desktop. No need to bother with Terminal after the chmod.
Thursday, August 27, 2009
FreeSWITCH log, successful connection
Logfile contents of a successful OpenSim chat connection using FreeSWITCH, including text coloring.
2009-08-27 14:13:40.525224 [DEBUG] switch_core_state_machine.c:397 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) Running State Change CS_NEW
2009-08-27 14:13:40.525224 [DEBUG] switch_core_state_machine.c:403 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State NEW
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [SIREN14-3D:111:32000:0]/[G7221:115:32000:20]
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [SIREN14-3D:111:32000:0]/[G722:9:8000:20]
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [SIREN14-3D:111:32000:0]/[PCMU:0:8000:20]
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [SIREN14-3D:111:32000:0]/[PCMA:8:8000:20]
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [SIREN14-3D:111:32000:0]/[GSM:3:8000:20]
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [PCMU:0:8000:0]/[G7221:115:32000:20]
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [PCMU:0:8000:0]/[G722:9:8000:20]
2009-08-27 14:13:40.525224 [DEBUG] sofia_glue.c:3079 Audio Codec Compare [PCMU:0:8000:0]/[PCMU:0:8000:20]
2009-08-27 14:13:40.540848 [DEBUG] sofia_glue.c:2037 Set Codec sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 PCMU/8000 20 ms 160 samples
2009-08-27 14:13:40.540848 [DEBUG] sofia_glue.c:3039 Set 2833 dtmf payload to 101
2009-08-27 14:13:40.540848 [DEBUG] sofia.c:3376 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State Change CS_NEW -> CS_INIT
2009-08-27 14:13:40.540848 [DEBUG] switch_core_session.c:933 Send signal sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 [BREAK]
2009-08-27 14:13:40.540848 [DEBUG] switch_core_state_machine.c:397 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) Running State Change CS_INIT
2009-08-27 14:13:40.540848 [DEBUG] switch_core_state_machine.c:480 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State INIT
2009-08-27 14:13:40.540848 [DEBUG] mod_sofia.c:83 sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 SOFIA INIT
2009-08-27 14:13:40.540848 [DEBUG] mod_sofia.c:111 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State Change CS_INIT -> CS_ROUTING
2009-08-27 14:13:40.540848 [DEBUG] switch_core_session.c:933 Send signal sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 [BREAK]
2009-08-27 14:13:40.540848 [DEBUG] switch_core_state_machine.c:480 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State INIT going to sleep
2009-08-27 14:13:40.540848 [DEBUG] switch_core_state_machine.c:397 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) Running State Change CS_ROUTING
2009-08-27 14:13:40.540848 [DEBUG] switch_core_state_machine.c:483 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State ROUTING
2009-08-27 14:13:40.540848 [DEBUG] mod_sofia.c:130 sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 SOFIA ROUTING
2009-08-27 14:13:40.540848 [DEBUG] switch_core_state_machine.c:78 sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 Standard ROUTING
2009-08-27 14:13:40.540848 [INFO] mod_dialplan_xml.c:252 Processing Sophie Nauman->confctl-xNDFhZTQ4MjEtMDFmMi00NDNkLTkzMWEtOWRhMjA3YmQ1ZTFk in context default
Dialplan: sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 parsing [default->sip_uri] continue=false
Dialplan: sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 Regex (FAIL) [sip_uri] destination_number(confctl-xNDFhZTQ4MjEtMDFmMi00NDNkLTkzMWEtOWRhMjA3YmQ1ZTFk) =~ /^sip:(.*)$/ break=on-false
Dialplan: sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 parsing [default->opensim_conferences] continue=false
Dialplan: sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 Regex (PASS) [opensim_conferences] destination_number(confctl-xNDFhZTQ4MjEtMDFmMi00NDNkLTkzMWEtOWRhMjA3YmQ1ZTFk) =~ /^confctl-(.*)$/ break=on-false
Dialplan: sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 Action answer()
Dialplan: sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 Action conference(xNDFhZTQ4MjEtMDFmMi00NDNkLTkzMWEtOWRhMjA3YmQ1ZTFk-${domain_name}@default)
2009-08-27 14:13:41.556460 [DEBUG] switch_core_state_machine.c:114 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State Change CS_ROUTING -> CS_EXECUTE
2009-08-27 14:13:41.556460 [DEBUG] switch_core_session.c:933 Send signal sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 [BREAK]
2009-08-27 14:13:41.556460 [DEBUG] switch_core_state_machine.c:483 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State ROUTING going to sleep
2009-08-27 14:13:41.556460 [DEBUG] switch_core_state_machine.c:397 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) Running State Change CS_EXECUTE
2009-08-27 14:13:41.556460 [DEBUG] switch_core_state_machine.c:490 (sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26) State EXECUTE
2009-08-27 14:13:41.556460 [DEBUG] mod_sofia.c:173 sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 SOFIA EXECUTE
2009-08-27 14:13:41.556460 [DEBUG] switch_core_state_machine.c:151 sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 Standard EXECUTE
EXECUTE sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 answer()
2009-08-27 14:13:41.556460 [DEBUG] mod_dptools.c:649 sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26 receive message [ANSWER]
2009-08-27 14:13:41.556460 [DEBUG] sofia_glue.c:2271 AUDIO RTP [sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26] 210.195.1.26 port 17858 -> 210.195.0.163 port 22860 codec: 0 ms: 20
2009-08-27 14:13:41.556460 [DEBUG] switch_rtp.c:1138 Starting timer [soft] 160 bytes per 20ms
2009-08-27 14:13:41.556460 [DEBUG] mod_sofia.c:549 Local SDP sofia/internal/xWOiLAj9AQHGGCji61A8MMw==@210.195.1.26:
v=0
o=FreeSWITCH 1251378963 1251378964 IN IP4 210.195.1.26
s=FreeSWITCH
c=IN IP4 210.195.1.26
t=0 0
m=audio 17858 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
Wednesday, August 12, 2009
Thursday, August 06, 2009
Voice chat in OpenSim
Good news--it works. Bad news--it's hard to do.
(UPDATE 10/16: Not hard any more. The binary install of OpenSim is easy with the Diva Distribution. The FreeSWITCH part is kind of hard, still.)
This post explains my specific environment (standalone on a LAN).
This is my setup: XPSP2, compiled version 0.6.5 of OpenSim, Freeswitch, and SL Viewer version 1.23. Here are the steps to making it happen:
(UPDATE 10/16: Not hard any more. The binary install of OpenSim is easy with the Diva Distribution. The FreeSWITCH part is kind of hard, still.)
This post explains my specific environment (standalone on a LAN).
This is my setup: XPSP2, compiled version 0.6.5 of OpenSim, Freeswitch, and SL Viewer version 1.23. Here are the steps to making it happen:
- First install MySQL like in this tutorial.
- The binary version of OpenSim doesn't include the Freeswitch voice module, so you'll have to compile an experimental version from source. (update: well, now I've upgraded to the 0.6.6 binary on a separate installation and it does include the FreeSwitch module, but I can't get it to run with MySQL storage, only SQLite. Something to work on...)
- A couple weeks ago I used an SVN client, or subversion client, called TortoiseSVN to download the subversion 0.6.5 from http://dist.opensimulator.org/. They've since moved to a system called 'Git' for downloading subversions and the versions are no longer there. I haven't tried Git but the directions for installing it are here and downloading the right version here (scroll down). Just try to get 0.6.5 as I found when upgrading to 0.6.6 it wouldn't run with MySQL. Some configurations were changed I couldn't figure out. Download it to C:\Program Files\OpenSim (you have to create this first).
- Once you have the files and folders, you have to compile the program. Go here and scroll down to the green Visual C# 2008 compiler and download and install it. It will also contain the .NET 2.0 framework, which is required for OpenSim to run.
- Now it's time to compile. Navigate to your OpenSim directory and run "runprebuild.bat" by double clicking on it.
- Open Visual C# through the start menu. Click File > Open Project. Browse to your OpenSim directory and choose a file called "OpenSim.sln". On the right side in a moment you should see a file tree under Solution Explorer. At the top menu, click Build > Build Solution. At the bottom of the Visual C# window you'll see the status change as it builds each project. It will tell you when it's done.
- Before you configure OpenSim, you need to download and configure Freeswitch. You can download a precompiled binary here, and, yes, you have to install the Microsoft Visual C++ 2008 Redistributable Package like it says before you run the Freeswitch program.
- To configure Freeswitch to work with OpenSim, you have to change some config settings in a few xml files, explained here. This video also demos the steps, though the end, configuring the region, has conflicting info. He's using SLViewer v1.22 but it shouldn't work until 1.23.
- Now you're ready to configure settings for OpenSim in the OpenSim.ini file. Follow these instructions from numbers 5-11 to set OpenSim to store data in your MySQL database and other stuff. This version will have the Freeswitch module section that was absent in the binary version. Configure those settings as shown at the bottom of the Freeswitch config instructions.
- Now you can start up Freeswitch. Double click freeswitch.exe. Ignore the red error messages (really!). Start up OpenSim exe. Now go to exactly 3:00 here where they are starting OpenSim.exe and follow their steps, which continue on in part 2, EXCEPT where you put in the region IP (at 5:00) you'll want to put in the computer's fixed IP (Your sysadmin will have to assign the computer a fixed IP if you can't). You can stop when they get to downloading Hippo Viewer.
- Now you need the SLViewer version 1.23. This is key, because earlier versions don't work with Freeswitch. Install it and configure it as in step 14 here.
- Once you're logged in to your sim, you have to enable voice chat for the estate. Click Edit > Preferences and under Voice Chat make sure it's enabled. Then click World > Region/Estate, click the estate tab and make sure "Allow Voice Chat" is checked. The above video I mentioned is confusing because he is using SLViewer v1.22, which allows him to make the final config adjustment of right clicking on the terrain, clicking About Land, clicking the media tab, and choosing either "use the estate spatial channel" or "private channel". This option isn't available in v1.23, but I couldn't get voice to work in 1.22. Even now I'm wondering if I was able to get it to work in 1.23 because I had first selected the "use estate spatial channel" in a 1.22 viewer, then switched to 1.23. I don't know...It's also possible I didn't know to click the lock on the talk button and that's why it didn't work in 1.22, though I could swear the talk button was greyed out, unclickable.
- Anyway, once these things are set, you need someone else to log on or you could talk to yourself over two computers. If you are using headsets, make sure they are plugged in before starting the viewer. To talk, look for the talk button on the lower right. Click the lock next to it to toggle talking on or just click and hold the talk button while you're talking.
Monday, August 03, 2009
Installing OpenSim to use over a LAN
OpenSim is an open source version of Second Life. You install, run, and configure it, set up a viewer, and it's your very own virtual world. SL has tons of object (prims) that are given away or sold and OpenSim is a blank slate. But it's yours and you have full control over who can access it and what they can do there. That makes it an excellent resource for teaching.
There are lots of tutorials on getting your own OpenSim up and running out there but 90% are just for standalone sandbox on your own machine and the rest are for grid mode in which you link your region with others out there on other people's machines. I'm writing this tutorial because I want to run my own sim but have my students connect to it through a client viewer on laptops connecting over our school's wireless network. The basic plan is installing the opensim service on a computer, installing MySQL so objects have permanence and don't have to be reactivated when the sim restarts or users log off, and giving that computer a static IP so client apps always know where to find it. With this setup you can run the sim on one computer and connect to it from any other computer on your school network, but it's not publicly available outside your school unless you open that IP up through the firewall (which I may consider later on). Here's how I did it (UPDATE 10/16: I've just upgraded to the newest version of OpenSim using Diva's Distribution, which makes all of the following pretty much obsolete. I'm just keeping the old steps below so I can look back some day and appreciate how far it's all come. It's now SO much easier. Here is the tutorial for the Diva approach.)
- Desktop running Windows XP SP3, assigned a static IP by the DNS server, no monitor, I just log in remotely. (Ask your system administrator to assign the IP if you, like me, can't.)
- MySQL 5.1 installed (good instructions here, a little old. The Toad (MySQL GUI) part is for an earlier version of Toad, but the idea is to create a root account and create a new database called 'opensim'. If you prefer you can use the mysql command line (tutorials here and here instead for mysql command line tools. No need to create any tables. OpenSim will do that on first run. Stop the first tutorial and continue to the next step when he gets to configuring the opensim.ini file because it's for an older version of OpenSim.
- Okay, now go download an opensim binary (look for the Windows binary on the right, soon to be version 0.6.6). The version I've installed is 'standalone' 0.6.3. The two flavors of OpenSim are standalone and grid mode and I spent two days thinking that since I wanted to share out my region with other computers on our LAN I needed grid mode (which is much more complicated to install). After much frustration (couldn't connect) it dawned on me that grid mode is for connecting regions over the internet. Standalone is what you want if you're just looking for an insulated virtual world not connected to the other regions out there.
- Run the installer but don't start OpenSim yet. First you need to edit some settings in the OpenSim.ini file you'll find among the many files in the Program Files\OpenSim folder. OpenSim.exe looks to this file for all of its configuration info so you set these here by adding and removing semi-colons so it will ignore and follow what you want it to.
- So open OpenSim.ini in a text editor.
- Under STORAGE add a semi-colon in front of storage_plugin = "OpenSim.Data.SQLite.dll"
(and the next line "storage_connection_string" if it doesn't have one). - You want it to use your MySQL database to store primitives and user attributes so they stay from one session to another. I believe the default, SQLite, isn't good with that. So remove the semi-colon from storage_plugin="OpenSim.Data.MySQL.dll" and the next line.
- One the connection string line you'll need to add your database details, storage_connection_string="Data Source=localhost;Database=opensim;User ID=root;Password=yourpassword;";
- Under the PHYSICS section you might want to uncomment the physics = OpenDynamicsEngine line. This physics algorithm prevents objects from going through each other whereas the default doesn't.
- The PERMISSIONS section allows you to set permissions (obviously) but I haven't played with that yet. I will definitely revisit those settings soon. Once OpenSim is running, you can shut it down, change settings, and restart it if you want to adjust things.
- In the STANDALONE section there are more SQLite settings and you need to change them to the same MySQL settings as in the STORAGE section.
- There are more interesting settings further down that I haven't investigated yet, like SUN for daytime and nighttime automation and VOICE for voice chat. I'll update when I get these figured out. You'll see below I'm not using the Hippo Opensim viewer but if you do you'll want to fill in the GRIDINFO section which gives the appropriate details to Hippo when you set it to your sim.
- Now go to exactly 3:00 here where they are starting OpenSim.exe and follow their steps, which continue on in part 2, EXCEPT where you put in the region IP (at 5:00) you'll want to put in the computer's fixed IP. You can stop when they get to downloading Hippo Viewer.
- I tried Hippo and it's great except that if students are connecting on Windows machines with network accounts Hippo has no way I could figure out of saving the sim IP as the default for all users on the machine. Instead, I downloaded the Second Life viewer, installed it on the student laptops, right clicked on the desktop icon (which will need to be moved to the All Users desktop and given full permissions to 'everyone') and added the following flag in the 'target' field: -loginuri http://fixed.ip.ad.dress:9000/ That reroutes the viewer to your sim rather than actual Second Life on the web. If you don't want the occasionally racy SL screenshots showing up either you can add -loginpagehttp://fixed.ip.ad.dress:9000/?method=login.
- Now with your sim running, open the SL viewer from the icon and login with the master avatar account you created. I hope it works!
- Finally, you might be wondering about voice chat. There's supposedly a module, explained here, that enables that through the SL viewer. We'll see. I've spent some time on this but I'll address it in a separate post because it turns out to be quite involved.
Subscribe to:
Posts
(
Atom
)