📌 오늘의 국제 원자력 동향 2026년 5월 2(토)

  • 벨기에 정부가 Engie·Electrabel의 원전 자산 전면 인수를 위한 협상에 착수하며 기존 원전 연장운전과 신규 원전 확대를 국가 주도 체제로 재편하려는 흐름이 부각됨.
  • 캐나다 정부가 연내 원자력 전략 발표와 원격·북부 방위시설용 국산 마이크로리액터 타당성 평가 투자를 예고하며 신규 건설·연료·수출을 묶는 국가 전략 수립에 나섬.
  • 캐나다 Darlington SMR 사업이 원자로 건물 기초용 Basemat 모듈 설치를 완료하며 G7 최초 상용 SMR 건설 프로젝트의 모듈식 시공·공급망 확장 단계가 본격화됨.
  • 인도 AERB가 Rajasthan의 NFC-Kota 연료공장 운영허가를 발급하며 700MWe PHWR 확대를 뒷받침할 국내 핵연료 공급 기반 강화가 진전됨.
  • 러시아 점령하 자포리자 원전이 체르노빌 사고 40주년에 외부전원을 한때 모두 상실하며 우크라이나 전시 핵안전 리스크가 다시 부각됨.

VisualEditor (SoftInstall)

New Atomic Wiki
둘러보기로 이동 검색으로 이동

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 Fix

"편집" 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.

After apt upgrade (May, 2018), VE died

Fix it to use config.yaml file (obsolete setting.js) and set strictAcceptCheck to false (because of SSL related problem)

At /etc/mediawiki/parsoid/config.yaml

strictAcceptCheck: false
# Configure Parsoid to point to your MediaWiki instances.
mwApis:
- # This is the only required parameter,
  uri: 'http://localhost/api.php'
  domain: 'localhost'  # optional

At Localsetting.php

$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'http://localhost:8142',
'domain' => 'localhost'
);

References