Toggle navigation
Log-in
Wiki Index
Page Index
User Index
Application Index
Home
Xwiki8.3 install
Wiki source code of
Xwiki8.3 install
Last modified by
Akiyoshi Yamakawa
on 2016/11/10 19:57
Hide line numbers
1: = Xwiki 8.3 インストール = 2: 3: == 0. Windowsでルーティングを設定し、402教室のサーバにルーティングする。 == 4: 5: 1. 自分のIF番号を確認する。(Windowsの管理者権限コマンドラインで以下を行い、Qualcom Atherosの番号を探す。 6: 下記の例だと、「13」がIF番号 7: C:\Windows\system32>route print 8: ~===================================================================== 9: インターフェイス一覧 10: (% style="background-color:#ffa500;" %)13(%%)...2c d0 5a 42 e0 53 ......(% style="background-color:#ffd700;" %)Atheros AR938x(%%) Wireless Network Adapter 11: 17...0a 00 27 00 00 11 ......VirtualBox Host-Only Ethernet Adapter 12: 1...........................Software Loopback Interface 1 13: 12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface 14: 18...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3 15: 19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4 16: ~===================================================================== 17: 18: 1. ルーティングを設定できる。((( 19: 設定:下記のIPアドレスの86の部分は、自分の使っているサーバにより、87、88に変更して設定する。 20: C:\>route add 192.168.1.0 mask 255.255.255.0 172.16.94.(% style="background-color:#ffd700;" %)86(%%) IF 13 21: OK! 22: \\解除: 23: C:\>route delete 192.168.1.0 mask 255.255.255.0 172.16.94.86 IF 13 24: OK! 25: ))) 26: 27: == 1.Xwikiのダウンロード == 28: 29: 1. 自分の仮想マシンにログインする。 30: Teratermの場合: 31: 192.168.1.11 32: root 33: himitu 34: でログインする。 35: Linuxのsshの場合: 36: ssh root@192.168.1.11 37: パスワード:himitu 38: 1. ダウンロードサイト 39: [[https:~~/~~/www.xwiki.org/xwiki/bin/view/Download/>>url:https://www.xwiki.org/xwiki/bin/view/Download/||target="_blank"]] 40: 8.3 を選び、下記 zip 版を、自分の仮想マシン内にダウンロードする。 41: ZIP Package 42: ファイル名: 43: xwiki-enterprise-jetty-hsqldb-8.3.zip 44: 1. 皆でダウンロードすると時間がかかるので、 45: (% style="background-color:#ffd700;" %)今回は、下記に置いてあります。(%%) 46: 172.16.94.86:/tmp/Xwiki83.zip 47: 172.16.94.87:/ tmp/Xwiki83.zip 48: 172.16.94.88:/ tmp/Xwiki83.zip 49: 1. コピー方法:各自の仮想マシンから以下を実行する。 50: cd でホームディレクトリに移動後、下記のいずれかでコピーする。 51: パスワード:LinuxServer@pass 52: scp root@192.168.1.10:/tmp/xwiki83.zip . ←空白&ピリオドあります。 53: scp root@192.168.1.20:/tmp/xwiki83.zip . ←空白&ピリオドあります。 54: scp root@192.168.1.30:/tmp/xwiki83.zip . ←空白&ピリオドあります。 55: 56: 57: == 2.Xwikiの解凍と配置 == 58: 59: 1. 解凍する。 60: cd 61: unzip xwiki83.zip 62: ls 63: xwiki-enterprise-jetty-hsqldb-8.3 というディレクトリができる。 64: 65: 1. 配置する。(ディレクトリのまるごと移動) 66: mv xwiki-enter prise-jetty-hsqldb-8.3 /var/www/xwiki83 67: 68: == 3.ポートの変更 == 69: 70: 1. 配置したディレクトリに移動 71: cd /var/www/xwiki83 72: 73: 1. 下記ファイルのポートを変更 74: start_xwiki.sh 75: stop_xwiki.sh 76: 8080→8090 77: 8079→8091 78: 79: 1. 変更方法 80: vi エディタで、:(コロン)を打って、下記コマンドで一括変更 81: :%s/8080/8090/g 82: :%s/8079/8091/g 83: 84: 85: == 4.起動 == 86: 87: 1. 下記コマンドで起動する。 88: **./start_xwiki.sh &** 89: 90: 1. ((( 91: しばらく待つ。**[root@localhost xwiki83]# ./start_xwiki.sh & 92: Starting Jetty on port 8090, please wait...** 93: 94: (途中略) JavaのException (at ・・・・のようなメッセージ)がでていないか注意する。 95: \\6250d33c{HTTP/1.1}{0.0.0.0:8090} 96: 2016-11-01 10:37:08.133:INFO:oejs.Server:main: Started @71222ms 97: 2016-11-01 10:37:08.133:INFO:oxtjl.NotifyListener:main: ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- 98: 2016-11-01 10:37:08.146:INFO:oxtjl.NotifyListener:main: (% style="background-color:#ffd700;" %)Server started, you can now open http:~/~/localhost:8090/ in your browser to access your wiki.(%%) 99: 2016-11-01 10:37:08.146:INFO:oxtjl.NotifyListener:main: ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- 100: こんな感じのメッセージがでたら、エンターキーを押して、コマンドラインにしておいてよい。(放置してもよい。) 101: 102: [root@localhost xwiki83]# 103: 104: 105: ))) 106: 107: == 5.ブラウザでアクセス、ログイン == 108: 109: 1. Linux内のFirefoxからアクセスする場合: 110: **http:~/~/localhost:8090/** 111: \\しばらく、%表示が上がっていくので、待つと、初期画面が表示される。 112: 113: 1. Linux外からのブラウザでアクセスする場合: 114: 11. LinuxのIPアドレスを確認 115: 11. ポート 8090, 8091を開く。 116: コマンド: 117: 118: {{{firewall-cmd --add-port=8090/tcp --zone=public --permanent 119: }}} 120: 121: {{{firewall-cmd --add-port=8091/tcp --zone=public --permanent 122: }}} 123: 124: {{{firewall-cmd --reload}}} 125: 126: firewall-cmd ~-~-list-all 表示される内容に、8090, 8091があることを確認する。 127: 128: 1. \\ 129: 11. Linux外のブラウザから下記でアクセス。 130: **http:~/~/192.168.1.11:8090/** 131: 132: 1. **ログインする。 133: 画面右上の横三本線(三)をクリックし、ログインする。 134: ID: Admin 135: 初期パスワード: admin** 136: 137: == 6.一般ユーザに登録させない設定 == 138: 139: 1. 画面右上三本線(三)クリックし、 140: Administer Wiki 141: を選択。 142: 143: 1. Users&Groupsの、Rights(権限)をクリック 144: 145: 1. Usersのラジオボタンをクリック選択する。 146: 147: 1. Unregisterred User (未登録ユーザ)の、「Register」をクリックして 148: チェックを外し、×(侵入禁止マーク)にする。 149: 150: 1. 画面左上「Xwikiロゴ」をクリックして、ホームに戻る。 151: 152: == 7. ページの作成、編集 == 153: 154: 1. 画面真ん中右寄りの「+」マークで文書作成、適宜タイトルをつける。 155: 作成位置に注意。 /Home/Homeに作ると便利。です。 156: 157: 1. 画面真ん中右寄りの「鉛筆マーク」で文書編集できます。 158: リンク 159: 画像挿入 160: などやってみましょう。 161: 162: == 8. 編集機能の追加 == 163: 164: 1. URLに下記を入れる。 165: **192.168.1.11:8090/xwiki/bin/edit/CKEditor/EditSheet?editor=object 166: \\[[image:ckedit-tuning.PNG||height="400" width="370"]]** 167: 168: 1. **下記をクリック** 169: JavaScriptExtension 0: CKEditor Loader 170: \\下記のような編集テキストが表示される。((( 171: /* 172: #set ($ckeditorPath = $services.webjars.url('org.xwiki.contrib:application-ckeditor-webjar', 'ckeditor')) 173: #set ($bootstrap3typeaheadPath = $services.webjars.url('org.webjars.npm:bootstrap-3-typeahead', 'bootstrap3-typeahead.min')) 174: #if ("$!ckeditorPath" == '') 175: ~#~# Before 6.3RC1 176: #set ($ckeditorPath = $services.webjars.url('application-ckeditor-webjar/1.8.5/ckeditor.js')) 177: #set ($bootstrap3typeaheadPath = $services.webjars.url('bootstrap-3-typeahead/4.0.1/bootstrap3-typeahead.min.js')) 178: #elseif ($ckeditorPath.indexOf('?') >= 0) 179: ~#~# Before 7.1M1 the WebJar resource path was included in the query string which means we have to specify the '.js' 180: ~#~# extension (Require.js doesn't add it in this case). 181: #set ($ckeditorPath = "${ckeditorPath}.js") 182: #set ($bootstrap3typeaheadPath = "${bootstrap3typeaheadPath}.js") 183: #end 184: #set ($ckeditorBasePath = $stringtool.removeEnd($stringtool.removeEnd($ckeditorPath, '.js'), 'ckeditor')) 185: #set ($resourcePickerBundlePath = "${ckeditorBasePath}plugins/xwiki-resource/resourcePicker.bundle.min") 186: #set ($macroWizardBundlePath = "${ckeditorBasePath}plugins/xwiki-macro/macroWizard.bundle.min") 187: #set ($modalPath = "${ckeditorBasePath}plugins/xwiki-dialog/modal.min") 188: #if ($resourcePickerBundlePath.indexOf('?') >= 0) 189: ~#~# Before 7.1M1 the WebJar resource path was included in the query string which means we have to specify the '.js' 190: ~#~# extension (Require.js doesn't add it in this case). 191: #set ($resourcePickerBundlePath = "${resourcePickerBundlePath}.js") 192: #set ($macroWizardBundlePath = "${macroWizardBundlePath}.js") 193: #set ($modalPath = "${modalPath}.js") 194: #end 195: */ 196: require.config({ 197: paths: { 198: ckeditor: '$!ckeditorPath', 199: resource: '$!resourcePickerBundlePath', 200: resourcePicker: '$!resourcePickerBundlePath', 201: entityResourcePicker: '$!resourcePickerBundlePath', 202: entityResourceSuggester: '$!resourcePickerBundlePath', 203: entityResourceDisplayer: '$!resourcePickerBundlePath', 204: modal: '$!modalPath', 205: macroWizard: '$!macroWizardBundlePath', 206: 'bootstrap3-typeahead': '$!bootstrap3typeaheadPath', 207: 'autosave': "$xwiki.getSkinFile('js/xwiki/editors/autosave', true)" 208: }, 209: shim: { 210: ckeditor: { 211: exports: 'CKEDITOR', 212: ~/~/ This includes dependencies of the plugins bundled with the CKEditor code. 213: deps: ['jquery', 'resource', 'resourcePicker', 'macroWizard'] 214: } 215: } 216: }); 217: 218: (function() { 219: window.CKEDITOR_BASEPATH = "$!ckeditorBasePath"; 220: 221: var init = function($, ckeditor, xwikiMeta) { 222: $('.ckeditor-textarea').each(function() { 223: var editor = ckeditor.replace(this, { 224: allowedContent: true, 225: ~/~/ Modify the strike and underline core styles to match what the XWiki Rendering is generating and expecting. 226: ~/~/ See CKEDITOR-52: Unable to un-strike or un-underline saved content 227: coreStyles_strike: { 228: element: 'del', 229: overrides: ['s', 'strike'] 230: }, 231: coreStyles_underline: { 232: element: 'ins', 233: overrides: 'u' 234: }, 235: ~/~/ Don't convert Latin characters to the corresponding named HTML entities in the HTML output because the HTML 236: ~/~/ cleaner used on the server side doesn't recognize some of them (XCOMMONS-929). 237: ~/~/ See CKEDITOR-38: CKEditor converts Umlaute to HTML equivalents 238: entities_latin: false, 239: filebrowserUploadUrl: XWiki.currentDocument.getURL('get', $.param({ 240: sheet: 'CKEditor.FileUploader', 241: outputSyntax: 'plain', 242: form_token: xwikiMeta.form_token 243: })), 244: ~/~/ This is used in CKEditor.FileUploader so we must keep them in sync. 245: fileTools_defaultFileName: '~_~_fileCreatedFromDataURI~_~_', 246: fullPage: true, 247: height: 500, 248: linkShowAdvancedTab: (% style="background-color:#ffd700;" %)false(%%), ← (% style="color:#ff0000;" %)**trueに変更!**(%%) 249: linkShowTargetTab: (% style="background-color:#ffd700;" %)false(%%), ← (% style="color:#ff0000;" %)**trueに変更**(%%) 250: (% style="background-color:#ffd700;" %)~/~/ (%%)removeButtons: 'Find,Anchor', 251: (% style="background-color:#ffd700;" %)~/~/(%%)removePlugins: 'bidi,colorbutton,font,justify,(% style="background-color:#ffd700;" %)save(%%),specialchar', 252: (% style="background-color:#ffd700;" %)removePlugins: 'save'(%%), ← (% style="color:#ff0000;" %)**saveだけ残し、あとは消す。**(%%) 253: toolbarGroups: [ 254: {name: 'basicstyles', groups: ['basicstyles', 'cleanup']}, 255: {name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi']}, 256: {name: 'clipboard', groups: ['clipboard', 'undo']}, 257: {name: 'editing', groups: ['find', 'selection', 'spellchecker']}, 258: {name: 'forms'}, 259: '/', 260: {name: 'links'}, 261: {name: 'insert'}, 262: {name: 'styles'}, 263: {name: 'colors'}, 264: {name: 'document', groups: ['mode', 'document', 'doctools']}, 265: {name: 'tools'}, 266: {name: 'others'}, 267: {name: 'about'} 268: ], 269: 'xwiki-resource': { 270: dispatcher: XWiki.currentDocument.getURL('get', 'sheet=CKEditor.ResourceDispatcher&outputSyntax=plain') 271: }, 272: 'xwiki-save': { 273: leaveConfirmation: true 274: }, 275: 'xwiki-source': { 276: htmlConverter: XWiki.currentDocument.getURL('get', 'sheet=CKEditor.HTMLConverter&outputSyntax=plain') 277: } 278: }); 279: }); 280: }; 281: 282: var loadTreeCode = function(callback) { 283: if (!require.specified('tree')) { 284: ~/~/ Before 6.4 285: require.config({ 286: paths: { 287: jsTree: "$!services.webjars.url('jstree', 'jstree.min.js')", 288: JobRunner: "$!services.webjars.url('org.xwiki.platform:xwiki-platform-job-webjar', 'jobRunner.min.js')", 289: tree: "$!services.webjars.url('org.xwiki.platform:xwiki-platform-tree-webjar', 'tree.min.js')" 290: } 291: }); 292: } 293: require(['tree'], function() { 294: callback(); 295: }); 296: }; 297: 298: require([ 299: 'jquery', 300: 'ckeditor', 301: ~/~/ Used to access the form token. 302: 'xwiki-meta', 303: ~/~/ Used to catch form action events fired from Prototype.js code (actionButtons.js). 304: 'xwiki-events-bridge', 305: ~/~/ Activate the auto-save feature. 306: 'autosave', 307: ~/~/ Configures the path to the tree widget module and its dependencies. 308: "$!services.webjars.url('org.xwiki.platform:xwiki-platform-tree-webjar', 'require-config.min.js', {'evaluate': true})", 309: ~/~/ Used on the link, image and macro dialogs to select pages and attachments. 310: 'entityResourcePicker', 'entityResourceSuggester', 'entityResourceDisplayer' 311: ], function($, ckeditor, xwikiMeta) { 312: ~/~/ xwiki-meta module is available only since 6.3M2 313: xwikiMeta = xwikiMeta || { 314: form_token: $('meta[name="form_token"]').attr('content') 315: }; 316: ~/~/ Load the tree used by the page and attachment pickers. 317: loadTreeCode(function() { 318: init($, ckeditor, xwikiMeta); 319: }); 320: }); 321: })(); 322: ))) 323: 1. 下記を変更 324: linkShowAdvancedTab: false, ← false をtrueに変更 325: linkShowTargetTab: false, ← false をtrueに変更 326: 327: 1. 下記を変更(saveのみ残し、あとは消す。) 328: removePlugins: 'bidi,colorbutton,font,justify,save,specialchar', 329: ↓ 330: removePlugins: 'save', 331: 332: 1. 最後に、画面下の方の Save & View ボタンをクリックして、保存する。 333: 1. 画面左上の「Xwiki」ロゴをクリックする。 334: 1. 適当なページを選び、編集(鉛筆アイコン)をクリックして、編集ボタン群で下記を確認。 335: フォントカラー、背景カラー、URLリンクのターゲットが表示されることを確認。