Intelligent Viewing 설치
사전 환경구성
- Transformation services : OpenJDK (version 17) 설치
- Chrome web browser와 LibreOffice office suite 설치(후행)
- Viewing services : Node.js와 npm 설치
- RabbitMQ
- database server
- OpenText Directory Services (OTDS)
intelligent-viewing 설치
sudo dnf install -y unzip sudo dnf install libicu -y sudo dnf install java-17-openjdk -y sudo dnf install nodejs -y
export JAVA_HOME=/usr/lib/jvm//usr/lib/jvm/java-17-openjdk-17.0.16.0.8-2.el9.x86_64
Rocky 9에서 Google Chrome 관련 의존성 및 Chrome 설치
sudo dnf install -y dnf-plugins-core && sudo dnf config-manager --set-enabled crb && sudo dnf install -y epel-release
sudo tee /etc/yum.repos.d/google-chrome.repo > /dev/null <<'EOF'
google-chrome] name=google-chrome - 64-bit baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
EOF
sudo dnf install -y google-chrome-stable
sudo ./IV.Installer --install ./rpm --prereqs --configure ./IntelligentViewing_otiv253.properties -l ./log.txt
# 설치후 chown -R otiv:otiv /home/otiv/.opentext 을 한후 서비스를 실행하라고 되어 있는데 이미 적용됨
시작 종료
systemctl start service-vertx-config
systemctl start asset-service
systemctl start service-vertx-publication
systemctl start ot-publisher
systemctl start markup-service
systemctl start search-service
systemctl start viewer-service
매뉴얼엔 이렇게 나오는데 실제는
sudo systemctl restart otiv-asset-service
sudo systemctl restart otiv-config-service
sudo systemctl restart otiv-markup-service
sudo systemctl restart otiv-publication-service
sudo systemctl restart otiv-publisher-service
sudo systemctl restart otiv-search-service
sudo systemctl restart otiv-viewer-service
sudo dnf install -y dnf-plugins-core sudo dnf config-manager --set-enabled crb sudo dnf install -y epel-release sudo dnf update -y
sudo dnf install -y xorg-x11-server-Xvfb mesa-libGL mesa-libGLU libX11 libXcomposite libXcursor libXdamage libXrandr libXinerama libXrender libXtst cups-libs libXScrnSaver alsa-lib atk at-spi2-core liberation-fonts
sudo dnf install -y google-noto-sans-cjk-ttc-fonts cp /path/to/your/font.ttf /usr/share/fonts/ fc-cache -fv
service → /etc/systemd/system/otiv-viewer-service.service. Starting service otiv-asset-service Starting service otiv-config-service Starting service otiv-markup-service Starting service otiv-publication-service Starting service otiv-publisher-service Starting service otiv-search-service Starting service otiv-viewer-service Installation completed.
SSL 적용 (실제로 적용 안함)
- 인증서 전용 디렉토리 생성 및 변환
- 여러 서비스가 공통으로 참조할 수 있도록 전용 경로를 만드는 것이 관리하기 편합니다.
# 1. 인증서 저장용 디렉토리 생성
sudo mkdir -p /opt/opentext/keystore
sudo chown ecmadmin:ecmadmin /opt/opentext/keystore
# 2. Nginx PEM 파일을 해당 디렉토리로 복사 (이미 있다면 해당 경로에서 실행)
# 3. PKCS12 변환 (앞서 안내해 드린 명령)
openssl pkcs12 -export \
-in STAR.pentasystem.kr_crt.pem \
-inkey STAR.pentasystem.kr_key.pem \
-out /opt/opentext/keystore/otiv_keystore.p12 \
-name otiv_alias
- 비밀번호를 입력할 때 설정한 값을 꼭 기억하세요. (예: password123)
Nginx https 적용
config 수정
-
opt/opentext/markup-service/.env 수정 MARKUP_AUTHORITY=https://otcs25.pentasystem.kr
-
/opt/opentext/publication-service/config/env.conf 수정 set.AUTHORITY=https://otcs25.pentasystem.kr set.MKONDO_BLOB_BASE_URL=https://otcs25.pentasystem.kr/artifacts
-
/opt/opentext/publisher/config/env.conf 수정 set.MKONDO_BLOB_BASE_URL=https://otcs25.pentasystem.kr/artifacts
-
/opt/opentext/search-service/.env 수정 SEARCH_AUTHORITY=https://otcs25.pentasystem.kr
-
/opt/opentext/viewer-service/.env 수정 VIEWER_AUTHORITY=https://otcs25.pentasystem.kr
버그 수정
- https 환경에서 http://otiv253.pentasystem.kr:3358/viewe 로 계속 나타나는 부분 수정
/opt/opentext/viewer-service/build/viewers/brava-view-1.x/static/bootstrap.js 수정
var rootUrl = 'http://otiv253.pentasystem.kr:3358/viewer/api/v1/viewers/brava-view-1.x'
window.ViewerAuthority = 'http://otiv253.pentasystem.kr:3358'
==>
var rootUrl = 'http://otcs25.pentasystem.kr/viewer/api/v1/viewers/brava-view-1.x'
window.ViewerAuthority = 'https://otcs25.pentasystem.kr'