📌 오늘의 국제 원자력 동향 2026년 3월 21일(토)
- X-energy가 미국 IPO 서류를 제출하며 AI 전력 수요와 정책 지원을 배경으로 한 차세대 원전 투자 기대가 자본시장 조달 국면으로 이동함
- X-energy와 Talen이 PJM 시장에서 XE-100 다기 배치를 검토하며 데이터센터와 제조업 수요를 겨냥한 미국 SMR 사업화 경로를 구체화함
- IAEA가 자포리자·하르키우·체르노빌의 외부전원 취약성을 재차 경고하며 우크라이나 핵시설의 전시 전력안정성이 핵심 안전 변수로 부상함
- SCK-CEN이 Framatome과 BR2 연구로용 저농축 우라늄 연료 공급 계약을 체결하며 HEU 대체 전환을 가속화함
- 후쿠시마 제1원전 3호기 압력용기 하부의 구멍과 연료잔해 추정 물질이 처음 확인되며 잔해 제거 전략 수립이 진전됨
VisualEditor (SoftInstall): 두 판 사이의 차이
편집 요약 없음 |
|||
| 1번째 줄: | 1번째 줄: | ||
<categorytree mode=all style="float:right; clear:right; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;">SoftInstall</categorytree> | |||
Visual Editor is Java based editor. | Visual Editor is Java based editor. | ||
It works with Parsoid server<ref>https://www.mediawiki.org/wiki/Parsoid</ref>, RESTbase, and SQLite DB. | It works with Parsoid server<ref>https://www.mediawiki.org/wiki/Parsoid</ref>, RESTbase, and SQLite DB. | ||
2018년 2월 26일 (월) 13:11 판
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)
User parsoid is created.
$ sudo useradd -r -s /sbin/nologin -d /dev/null -M -c 'Unprivileged system account for Parsoid' parsoid
Daemon
Parsoid is serving at 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
Node js
Node.js[3] is used to install RESTbase software. Node.js is Javascript runtime platform.
Installation
$ sudo apt-get update $ sudo apt-get install nodejs $ sudo apt-get install npm
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://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 settings
LocalSettings.php should be modified as following.
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;
Problems
"편집" and "원본편집" will appear at menu tab. When parsoid is down, clicking "편집" has no effect. In this case, check running status of parsoid daemon, and fix it.