WinCC OA on Debian

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
8 posts • Page 1 of 1
nedzad
Posts:32
Joined: Fri Feb 17, 2017 3:44 pm

WinCC OA on Debian

Post by nedzad »

Hello,

Is it possible to install WinCC OA on Debian OS and if it is, which installation package shoud I use?

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: WinCC OA on Debian

Post by kilianvp »

No Debian is not supported and there are no install packages for Debian

sadly :(

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: WinCC OA on Debian

Post by vogler »

right, but you may use docker and run winccoa in a centos container (docker pull centos) ;-)

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: WinCC OA on Debian

Post by kilianvp »

Docker is great but the license is a issue.. I need a new shield.txt?

using Xvfb to run headless?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: WinCC OA on Debian

Post by leoknipp »

Is it a question if you need a new shield.txt?
If a new licenses is needed depends on the license you already got.

Best Regards
Leopold Knipp
Senior Support Specialist

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: WinCC OA on Debian

Post by Gertjan van Schijndel »

You could try Alien to convert one of the rpm installation package to deb.

dgi
Posts:11
Joined: Wed May 09, 2018 4:28 pm

Re: WinCC OA on Debian

Post by dgi »

You can install and use WinccOA on Debian, but you have to resolve some of the dependencies on your own.

Install WinCCOA on Debian Stretch:


Setup

Install dependencies and tools from the debian repository:

Code: Select all

$ sudo apt install rpm2cpio libhyphen0 libgstreamer-plugins-base1.0-0 libjpeg62 libdouble-conversion1

Unzip WinCCOA archive into install directory:

Code: Select all

$ unzip WinCC_OA_3.16_linux_rhel_x86_64_P*.zip

Unpack needed/wanted install packages into local install directory:

Code: Select all

$ rpm2cpio WinCC_OA_3.16-api-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-applications-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-base-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-help-en-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-rdb-oracle-libs12-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-s7plus-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-specialfunctions-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-sqldrivers-rhel-0-7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio WinCC_OA_3.16-video-rhel-0-7.x86_64.rpm | cpio -i --make-directories
Resolve Dependencies
These dependencies can not be installed via Debian repositories, because Debian does not offer the right library versions. In case of security updates by CentOS you will have to update these libraries on your own.
Download dependencies needed from CentOS to temporary directory:

Code: Select all

$ mkdir ./tmp
$ cd ./tmp
$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libpng-1.5.13-7.el7_2.x86_64.rpm
$ wget http://mirror.centos.org/centos/7/updates/x86_64/Packages/openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm 
$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libicu-50.1.2-17.el7.x86_64.rpm
$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libwebp-0.3.0-7.el7.x86_64.rpm
Extract them to local tmp directory:

Code: Select all

$ rpm2cpio libpng-1.5.13-7.el7_2.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio libicu-50.1.2-17.el7.x86_64.rpm | cpio -i --make-directories
$ rpm2cpio libwebp-0.3.0-7.el7.x86_64.rpm | cpio -i --make-directories
Move CentOS dependencies to WinCCOA bin directory:

Code: Select all

cd ..
cp -rf ./tmp/usr/lib64/* ./opt/WinCC_OA/3.16/bin/

Cleanup (optional):

Code: Select all

$ rm -rf *.rpm
$ rm -rf *.zip
$ rm -rf ./tmp
Setup and Start Documentation (Optional)

First register help documents (this only needs to be done once):

Code: Select all

$ ./opt/WinCC_OA/3.16/bin/assistant -register ./opt/WinCC_OA/3.16/help/en_US.utf8/WinCC_OA.qch -collectionFile ./opt/WinCC_OA/3.16/help/en_US.utf8/WinCC_OA.qhc
$ ./opt/WinCC_OA/3.16/bin/assistant -register ./opt/WinCC_OA/3.16/help/en_US.utf8/UserDependentAlerts.qch -collectionFile ./opt/WinCC_OA/3.16/help/en_US.utf8/WinCC_OA.qhc
$ ./opt/WinCC_OA/3.16/bin/assistant -register ./opt/WinCC_OA/3.16/TestFramework_3.16/help/en_US.utf8/TestFramework.qch -collectionFile ./opt/WinCC_OA/3.16/help/en_US.utf8/WinCC_OA.qhc
Start help browser:

Code: Select all

$ ./opt/WinCC_OA/3.16/bin/assistant -collectionFile ./opt/WinCC_OA/3.16/help/en_US.utf8/WinCC_OA.qhc
Bootstrapping


Create bootstrapping script named startOA in install directory and add following content (do not forget to make it executable afterwards):

Code: Select all

#!/bin/bash
# Author: Daniel Giritzer, 24.03.2018
WCCOA_VER=3.16
export PATH=$(pwd)/opt/WinCC_OA/$WCCOA_VER/bin:$PATH
export LD_LIBRARY_PATH=$(pwd)/opt/WinCC_OA/$WCCOA_VER/bin
export PVSS_II_ROOT=$(pwd)/etc
export PVSS_II=$(pwd)/opt/WinCC_OA/$WCCOA_VER/config/config
startPA
Create WinCCOA config file named pvssInst.conf in ./etc and add following content: (replace '/path/to/' with install path)

Code: Select all

[Software\ETM\PVSS II\3.16]
InstallationDir = "/path/to/opt/WinCC_OA/3.16/"
Add install path to WinCCOA global config:
./opt/WinCC_OA/3.16/config/config
Edit pvss_path and proj_path (should then look similar to this, replace '/path/to/' with install path):

Code: Select all

[general]
pvss_path = "/path/to/opt/WinCC_OA/3.16/"
proj_path = "/path/to/opt/WinCC_OA/3.16/"
proj_version = "3.16"
langs = "en_US.utf8"
langs = "de_AT.utf8"
langs = "ru_RU.utf8"
lang = "auto"
Start WinCCOA with the help of the bootstrapping script in the root of the install directory (startOA )

Code: Select all

$ ./startOA
I do not recommend doing something like this in an production environment.

Screenshot:
Screenshot
Screenshot

dgi
Posts:11
Joined: Wed May 09, 2018 4:28 pm

Re: WinCC OA on Debian

Post by dgi »

PS: Same procedure also works for Ubuntu. (and probably also for all other .deb based distros)

8 posts • Page 1 of 1