2012年07月18日
GridCommon.ini
あなたが特に注意深い人でなくてもOpenSim.iniの最後の部分を編集したときにモードが6つあったのに気づかれたでしょう。
つまり「スタンドアロン /グリッド」の選択に「ハイパーリンク」ON / OFFの選択が加わって四つのモードがあり、さらにそれに「SimianGridモード」での「ハイパーリンク」のON / OFFが加わって6種類ありました。
OpenSim.iniのあの箇所は6つのモードからひとつをコメントアウトを外すことで選択するいわば切り替えスイッチというわけです。
で、ここで以後とりあつかうのは「グリッド」で「ハイパー」な選択に限りたいと思います。
「ハイパー」でない「スタンドアロン」はすでにわたしたちが慣れ親しんでいるものですからもう説明は必要ないですね?
また「ハイパー」な「スタンドアロン」は「ハイパー」な「グリッド」と「ハイパー」でない「スタンドアロン」の両者を理解すればいいわけですし、かつ「ハイパー」な「グリッド」より簡単(なはず)ですから--あえて解説するまでもないでしょう。
(興味のある方はぜひご自分で試してみてください。)
そして最後の「Simian」については今のところもとちゃは一切触れるつもりはありません。ハイパーグリッドの先にはさらにOpenSimの未知の側面が潜んでいる、と思っていてください。だいいちまだわたしにもよくわからないしねっ^^;
さて、前回はOpenSim.iniで
Include-Architecture = "config-include/GridHypergrid.ini"
を選択したところまででした。
この「GridHypergrid.ini」という書類はbin直下のconfig-includeというディレクトリの中に存在します。cdでこのディレクトリに移動してみてください。
lsとやると…
こんな書類たちがあるはずです。「GridHypergrid.ini」もたしかにあるのでvi(less,moreでもいいけれど)で開いてみると一番上に
と書かれているのがわかると思います。つまりこの書類は「いじっちゃだめ!」なんです。
じゃあ肝心の設定は? というとそのすぐ下、
と書かれているように、この書類がさらに参照しているもうひとつ別の書類「GridCommon.ini」のほうでおこないます。とはいえconfig-incluseのなかには「GridCommon.ini」はたぶんみつからないでしょう。前回言ったように「GridCommon.ini.example」から新しく作ってください。
いちおう以下にGridCommon.iniのデフォールトの内容をコピーしておきます。
ながっ!^^;
以上、けっこう長い設定書類ですけれど修正しなければならない部分は幸い多くはありません。
つまり「mygridserver.com」と記された箇所をあなたのレンタルサーバーのグローバル・アドレス(あるいはドメイン・ネーム)に置き換えればいいだけです。(16箇所あるはずです)
この書類をたとえばサクラ・エディターなどで開くとURLなどハイパーリンクされた箇所が色別になるのでわかりやすいと思います。(いっぽう「メモ帳」だとWin-Linux間での改行記号の違いのため行がえがうまくいかず、たぶん大変読みにくくなっているでしょう^^;)
単語ごとに「検索-置換」ができないと面倒ですが、その機能のあるエディターなら「全置換」で修正は簡単ですね。
つまり,たとえば
を以下のように書き換えるわけです。
間違いなく全部書き換えられたらwpで保存してこの作業は終了です。
つまり「スタンドアロン /グリッド」の選択に「ハイパーリンク」ON / OFFの選択が加わって四つのモードがあり、さらにそれに「SimianGridモード」での「ハイパーリンク」のON / OFFが加わって6種類ありました。
OpenSim.iniのあの箇所は6つのモードからひとつをコメントアウトを外すことで選択するいわば切り替えスイッチというわけです。
で、ここで以後とりあつかうのは「グリッド」で「ハイパー」な選択に限りたいと思います。
「ハイパー」でない「スタンドアロン」はすでにわたしたちが慣れ親しんでいるものですからもう説明は必要ないですね?
また「ハイパー」な「スタンドアロン」は「ハイパー」な「グリッド」と「ハイパー」でない「スタンドアロン」の両者を理解すればいいわけですし、かつ「ハイパー」な「グリッド」より簡単(なはず)ですから--あえて解説するまでもないでしょう。
(興味のある方はぜひご自分で試してみてください。)
そして最後の「Simian」については今のところもとちゃは一切触れるつもりはありません。ハイパーグリッドの先にはさらにOpenSimの未知の側面が潜んでいる、と思っていてください。だいいちまだわたしにもよくわからないしねっ^^;
さて、前回はOpenSim.iniで
Include-Architecture = "config-include/GridHypergrid.ini"
を選択したところまででした。
この「GridHypergrid.ini」という書類はbin直下のconfig-includeというディレクトリの中に存在します。cdでこのディレクトリに移動してみてください。
lsとやると…
CenomeCache.ini.example GridHypergrid.ini StandaloneCommon.ini.example
FlotsamCache.ini HyperSimianGrid.ini StandaloneHypergrid.ini
FlotsamCache.ini.example SimianGrid.ini storage
Grid.ini Standalone.ini
GridCommon.ini.example StandaloneCommon.ini
こんな書類たちがあるはずです。「GridHypergrid.ini」もたしかにあるのでvi(less,moreでもいいけれど)で開いてみると一番上に
;;
;; Please don't change this file.
;; All optional settings are in GridCommon.ini.example,
;; which you can copy and change.
;;
と書かれているのがわかると思います。つまりこの書類は「いじっちゃだめ!」なんです。
じゃあ肝心の設定は? というとそのすぐ下、
[Includes]
Include-Common = "config-include/GridCommon.ini"
と書かれているように、この書類がさらに参照しているもうひとつ別の書類「GridCommon.ini」のほうでおこないます。とはいえconfig-incluseのなかには「GridCommon.ini」はたぶんみつからないでしょう。前回言ったように「GridCommon.ini.example」から新しく作ってください。
いちおう以下にGridCommon.iniのデフォールトの内容をコピーしておきます。
; This is the main configuration file for an instance of OpenSim running in grid mode
[DatabaseService]
;
; ### Choose the DB
;
; SQLite
Include-Storage = "config-include/storage/SQLiteStandalone.ini";
; MySql
; Uncomment these lines if you want to use mysql storage
; Change the connection string to your db details
;StorageProvider = "OpenSim.Data.MySQL.dll"
;ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=***;Old Guids=true;"
; Uncomment this line if you are using MySQL and want to use a different database for estates
; The usual application for this is to allow estates to be spread out across multiple simulators by share the same database.
; Most people won't need to do this so only uncomment if you know what you're doing.
;EstateConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=***;Old Guids=true;"
; MSSQL
; Uncomment these lines if you want to use MSSQL storage
; Change the connection string to your db details
; The value for server property is shown in your SQL Server Management Studio login dialog.
; (This sample is the default of express edition)
;StorageProvider = "OpenSim.Data.MSSQL.dll"
;ConnectionString = "Server=localhost\SQLEXPRESS;Database=opensim;User Id=opensim; password=***;"
[Modules]
;; Choose one cache module and the corresponding config file, if it exists.
;; Copy the config .example file into your own .ini file and adapt that.
;; We recommend the use of the FlotsamAssetCache since this is most actively maintained.
AssetCaching = "FlotsamAssetCache"
Include-FlotsamCache = "config-include/FlotsamCache.ini"
;AssetCaching = "CenomeMemoryAssetCache"
;Include-CenomeCache = "config-include/CenomeCache.ini"
;AssetCaching = "GlynnTuckerAssetCache"
;; Optionally, the port for the LLProxyLoginModule module can be changed
;Setup_LLProxyLoginModule = "9090/"
;; Authorization is not on by default, as it depends on external php
;AuthorizationServices = "RemoteAuthorizationServicesConnector"
[AssetService]
DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
AssetLoaderArgs = "assets/AssetSets.xml"
;
; Change this to your grid-wide asset server. Do not add a slash to the end of any of these addresses.
;
AssetServerURI = "http://mygridserver.com:8003"
[InventoryService]
;
; Change this to your grid-wide inventory server
;
InventoryServerURI = "http://mygridserver.com:8003"
[GridInfo]
;
; Change this to your grid info service
;
GridInfoURI = "http://mygridserver.com:8002"
[GridService]
;
; Change this to your grid-wide grid server
;
GridServerURI = "http://mygridserver.com:8003"
;AllowHypergridMapSearch = true
;; Directory for map tile images of linked regions
; MapTileDirectory = "./maptiles"
; === HG ONLY ===
;; Change this to the address of your Gatekeeper service
;; (usually bundled with the rest of the services in one
;; Robust server in port 8002, but not always)
Gatekeeper="http://mygridserver.com:8002"
[Messaging]
; === HG ONLY ===
;; Change this to the address of your Gatekeeper service
;; (usually bundled with the rest of the services in one
;; Robust server in port 8002, but not always)
Gatekeeper = "http://mygridserver.com:8002"
[AvatarService]
;
; Change this to your grid-wide grid server
;
AvatarServerURI = "http://mygridserver.com:8003"
[PresenceService]
;
; Change this to your grid-wide presence server
;
PresenceServerURI = "http://mygridserver.com:8003"
[UserAccountService]
;
; Change this to your grid-wide user accounts server
;
UserAccountServerURI = "http://mygridserver.com:8003"
[GridUserService]
;
; Change this to your grid-wide user accounts server
;
GridUserServerURI = "http://mygridserver.com:8003"
[AuthenticationService]
;
; Change this to your grid-wide authentication server
;
AuthenticationServerURI = "http://mygridserver.com:8003"
[FriendsService]
;
; Change this to your grid-wide friends server
;
FriendsServerURI = "http://mygridserver.com:8003"
[HGInventoryAccessModule]
;
; === HG ONLY ===
; Change this to your server
; accessible from other grids
;
HomeURI = "http://mygridserver.com:8002"
Gatekeeper = "http://mygridserver.com:8002"
;; If you want to protect your assets from being copied by foreign visitors
;; uncomment the next line. You may want to do this on sims that have licensed content.
; OutboundPermission = False
[UserAgentService]
;
; === HG ONLY ===
; Change this to your user agent server (HG robust)
;
UserAgentServerURI = "http://mygridserver.com:8002"
[MapImageService]
MapImageServerURI = "http://mygridserver.com:8003"
[AuthorizationService]
; If you have regions with access restrictions
; specify them here using the convention
; Region_=
; Valid flags are:
; DisallowForeigners -- HG visitors not allowed
; DisallowResidents -- only Admins and Managers allowed
; Example:
; Region_Test_1 = "DisallowForeigners"
ながっ!^^;
以上、けっこう長い設定書類ですけれど修正しなければならない部分は幸い多くはありません。
つまり「mygridserver.com」と記された箇所をあなたのレンタルサーバーのグローバル・アドレス(あるいはドメイン・ネーム)に置き換えればいいだけです。(16箇所あるはずです)
この書類をたとえばサクラ・エディターなどで開くとURLなどハイパーリンクされた箇所が色別になるのでわかりやすいと思います。(いっぽう「メモ帳」だとWin-Linux間での改行記号の違いのため行がえがうまくいかず、たぶん大変読みにくくなっているでしょう^^;)
単語ごとに「検索-置換」ができないと面倒ですが、その機能のあるエディターなら「全置換」で修正は簡単ですね。
つまり,たとえば
[UserAccountService]
;
; Change this to your grid-wide user accounts server
;
UserAccountServerURI = "http://mygridserver.com:8003"
を以下のように書き換えるわけです。
[UserAccountService]
;
; Change this to your grid-wide user accounts server
;
UserAccountServerURI = "http://motochagrid.luna.ddns.vc:8003"
間違いなく全部書き換えられたらwpで保存してこの作業は終了です。
JOG - ジャパンオープングリッドへの入り方その2
JOG - ジャパンオープングリッドへの入り方
JOG -ジャパンオープングリッド- とは?
OpenSimとWebの連携 (その4)
OpenSimとWebの連携 (その3)
OpenSimとWebの連携 (その2)
JOG - ジャパンオープングリッドへの入り方
JOG -ジャパンオープングリッド- とは?
OpenSimとWebの連携 (その4)
OpenSimとWebの連携 (その3)
OpenSimとWebの連携 (その2)
Posted by もとちゃ at 12:15│Comments(0)
│OpenSim(オープンシム)