📌 오늘의 국제 원자력 동향 2026년 3월 21일(토)

  • X-energy가 미국 IPO 서류를 제출하며 AI 전력 수요와 정책 지원을 배경으로 한 차세대 원전 투자 기대가 자본시장 조달 국면으로 이동함
  • X-energy와 Talen이 PJM 시장에서 XE-100 다기 배치를 검토하며 데이터센터와 제조업 수요를 겨냥한 미국 SMR 사업화 경로를 구체화함
  • IAEA가 자포리자·하르키우·체르노빌의 외부전원 취약성을 재차 경고하며 우크라이나 핵시설의 전시 전력안정성이 핵심 안전 변수로 부상함
  • SCK-CEN이 Framatome과 BR2 연구로용 저농축 우라늄 연료 공급 계약을 체결하며 HEU 대체 전환을 가속화함
  • 후쿠시마 제1원전 3호기 압력용기 하부의 구멍과 연료잔해 추정 물질이 처음 확인되며 잔해 제거 전략 수립이 진전됨

VisualEditor (SoftInstall): 두 판 사이의 차이

New Atomic Wiki
둘러보기로 이동 검색으로 이동
Jhchang (토론 | 기여)
Jhchang (토론 | 기여)
70번째 줄: 70번째 줄:


== MediaWiki setup ==
== MediaWiki setup ==
LocalSettings.php should be corrected.
LocalSettings.php should be modified as
wfLoadExtension( 'VisualEditor');
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
// 'url' => 'http://localhost:8000',
'url' => 'http://localhost:8142',
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
'prefix' => 'atomic'
);
$wgSessionsInObjectCache = true;
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;


[[Category:SoftInstall]]
[[Category:SoftInstall]]

2018년 2월 25일 (일) 10:58 판

Visual Editor is Java based editor. It works with Parsoid server[1], RESTbase, and SQLite DB. Parsoid is called from client side. The port, 8142 should be open to world.

Parsoid

Installation

Parsoid[2] is not included in ubuntu package repository. Following commands are required to install Parsoid.

$ sudo apt-key advanced --keyserver keys.gnupg.net --recv-keys 90E9F83F22250DD7
$ sudo apt-add-repository "deb https://releases.wikimedia.org/debian jessie-mediawiki main"
$ sudo apt-get update
$ sudo apt-get install apt-transport-https
$ sudo apt-get update && sudo apt-get install parsoid

Parsoid is installed at /etc/mediawiki/parsoid/. Configuration file is /etc/mediawiki/parsoid/config.yaml. We need to specify location of api.php.

mwApis:
       - # This is the only required parameter,
         # the URL of you MediaWiki API endpoint.
         uri: 'http://localhost/api.php'
         # The "domain" is used for communication with Visual Editor
         # and RESTBase.  It defaults to the hostname portion of
         # the `uri` property below, but you can manually set it
         # to an arbitrary string.
         domain: 'localhost'  
  • Note that space should be used. (not tab key)

Daemon

Parsoid is serving TCP port 8142. Daemon is controlled by;

$ sudo service parsoid start
$ sudo service parsoid stop

Any error will be recorded at /var/log/parsoid/parsoid.log

You can check daemon status by

$ ps -ax|grep parsoid

RESTbase

RESTbase is installed at /var/lib/restbase. It uses SQLite database engine.

Install

$ cd /var/lib
$ sudo git clone https://github.com/wikimedia/restbase.git
$ sudo npm install
  • sqlite3 and restbase-mod-table-sqlite should be presented at node_modules directory.
  • npm requires lots of memory during execution. It is good to stop "apache2" and "mysql" before executing npm.

create config.yaml by copying config.example.yaml. Edit as follows

       paths:
         /{domain:atomic.snu.ac.kr}:
           x-modules:
             - path: projects/example.yaml
               options:
                 action:
                   # XXX Check API URL!
                   # apiUriTemplate: http://localhost/w/api.php
                   apiUriTemplate: http://atomic.snu.ac.kr/api.php
                   # XXX Check the base RESTBase URI
                   baseUriTemplate: "{{'http://{domain}:7231/{domain}/v1'}}"
                 parsoid:
                   # XXX Check Parsoid URL!
                   host: http://localhost:8142
                 table:
                   backend: sqlite
                   dbname: /var/lib/restbase/db.sqlite3

MediaWiki setup

LocalSettings.php should be modified as

wfLoadExtension( 'VisualEditor');
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
// 'url' => 'http://localhost:8000',
'url' => 'http://localhost:8142',
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
'prefix' => 'atomic'
);
$wgSessionsInObjectCache = true;
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;