diff options
author | David Walter Seikel | 2016-11-08 15:50:18 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-11-08 15:50:18 +1000 |
commit | 54ed17dae68060ef083ff98448b47eaec2cf2c4b (patch) | |
tree | bb98ee10603cf7b36278ace5369f77723cc00c1b /README.md | |
parent | Lots of hacking up the scripts to work with the new setup, and more. (diff) | |
download | opensim-SC-54ed17dae68060ef083ff98448b47eaec2cf2c4b.zip opensim-SC-54ed17dae68060ef083ff98448b47eaec2cf2c4b.tar.gz opensim-SC-54ed17dae68060ef083ff98448b47eaec2cf2c4b.tar.bz2 opensim-SC-54ed17dae68060ef083ff98448b47eaec2cf2c4b.tar.xz |
New README and TODO I forgot to commit before.
Diffstat (limited to '')
-rw-r--r-- | README.md | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..c648e6a --- /dev/null +++ b/README.md | |||
@@ -0,0 +1,104 @@ | |||
1 | Use this to create a sim that links into Infinite Grid from Linux. | ||
2 | |||
3 | It's only been tested on Ubuntu 10.04, 11.04, and 12.04, YMMV. This is | ||
4 | also a WIP, use it at your own risk. It's been used to set up two | ||
5 | freshly installed Ubuntu servers though. | ||
6 | |||
7 | Follow these steps. | ||
8 | ------------------- | ||
9 | |||
10 | Go to - | ||
11 | |||
12 | http://wiki.infinitegrid.org/index.php/Howto_Link_your_Opensim_region_to_Infinite_Grid | ||
13 | |||
14 | and follow the directions to create an admin user account. You can skip | ||
15 | that bit if you already have a suitable user with sudo access. | ||
16 | |||
17 | Note that these scripts pretty much follow that above wiki description, | ||
18 | with some exceptions. The configuration information per sim has been | ||
19 | rearranged so that there is only ONE copy of the OpenSim installation. | ||
20 | |||
21 | Next you need to figure out what password you want to use for OpenSims | ||
22 | access to the database. We will call this "DatabasePassword". Run the | ||
23 | following script - | ||
24 | |||
25 | ./install_opensim.sh DatabasePassword | ||
26 | |||
27 | This will do most of the work for you, except for creating sims. There | ||
28 | is a final step that needs to be done manually for now. Edit | ||
29 | /etc/rc.local, make sure it has the following line in it somewhere, | ||
30 | probably at the end - | ||
31 | |||
32 | /opt/opensim/setup/fix_var_run.sh | ||
33 | |||
34 | |||
35 | Creating sims. | ||
36 | -------------- | ||
37 | |||
38 | A separate script is here for sim creation, you can use it to create many | ||
39 | sims. You will need - | ||
40 | |||
41 | Your host name, or it could be your IP, we will use "sims.example.net". | ||
42 | |||
43 | A name for your sim, we will use "My new sim". It should be unique on | ||
44 | the grid. | ||
45 | |||
46 | A location for your sim, we will use "1234,5678". You can use the | ||
47 | Infinite Grid web based map to poke around and find a good location. | ||
48 | Choose an empty spot. | ||
49 | |||
50 | Once you have all that information sorted out, run this script - | ||
51 | |||
52 | ./create_sim.sh "My new sim" "1234,5678" "sims.example.net" | ||
53 | |||
54 | Or this if you want to override the detected IP address - | ||
55 | |||
56 | ./create_sim.sh "My new sim" "1234,5678" "sims.example.net" "1.2.3.4" | ||
57 | |||
58 | |||
59 | Running sims. | ||
60 | ------------- | ||
61 | |||
62 | Now you can go to /opt/opensim/config/sim01 and run the following script | ||
63 | to start it up - | ||
64 | |||
65 | ./start-sim | ||
66 | |||
67 | You will see the screen console. You can run the screen console again by | ||
68 | running that command once more, or running the sim-console command. | ||
69 | |||
70 | You can stop the sim with - | ||
71 | |||
72 | ./stop-sim | ||
73 | |||
74 | You can backup the sim with - | ||
75 | |||
76 | ./backup-sim | ||
77 | |||
78 | Though they all get backed up every six hours anyway. | ||
79 | |||
80 | |||
81 | Finishing up. | ||
82 | ------------- | ||
83 | |||
84 | Once it's all tested, you can use this to finish things off (back in | ||
85 | this setup directory) - | ||
86 | |||
87 | ./go_live.sh | ||
88 | |||
89 | Which sets up the monit control file/s, though you should double check | ||
90 | it all, and you still have to do the basic configuration and enabling of | ||
91 | monit yourself. This is in case you already have monit set the way you | ||
92 | like. | ||
93 | |||
94 | |||
95 | NOTES - | ||
96 | |||
97 | This attempts to use only one copy of the OS install for all sims. We | ||
98 | are running one instance of OS for each sim though, as this prevents one | ||
99 | sim crashing from bringing down the others. OS however really wants to | ||
100 | write data to directories within it's own bin directory. I'm not at all | ||
101 | certian if that data can be shared. For the same reason, so far I've | ||
102 | not been able to get to the point where we can make the OS directory | ||
103 | read only. This complicates things during upgrades. | ||
104 | |||