Skip to content

citrix

icaclient.svg

inherite from

abcdesktopio/oc.template.ubuntu.gtk.18.04

Distribution

ubuntu ubuntu

NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Ubuntu packages

libsecret-1-0 libpcsclite1 x11-utils libjpeg-turbo8

Licence

** This application is NO FREE. ** You need to build it manually.

Arguments

"-icaroot /opt/Citrix/ICAClient"

Displayname

citrix-client

Path

/opt/Citrix/ICAClient/wfica

Mimetype

application/x-ica;

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

Wfica.Wfica

The WM_CLASS property (of type STRING without control characters) contains two consecutive null-terminated strings. These specify the Instance and Class names to be used by both the client and the window manager for looking up resources for the application or as identifying information. to get the WM_CLASS property of an application, use the command line wmctrl -lx

Desktopfile

/usr/share/applications/wfica.desktop

A .desktop file is a simple text file that holds information about a program. It is usually placed in “/usr/share/applications/”.

POST run command

POST run command are run after the package install comman

COPY icaclientWeb_13.10.0.20_amd64.deb /tmp/icaclient_amd64.deb
RUN apt-get update && apt-get install  --no-install-recommends --yes /tmp/icaclient_amd64.deb && apt-get clean && rm /tmp/icaclient_amd64.deb && rm -rf /var/lib/apt/lists/*

JSON dump

json source file citrix.d.3.0.json

{
    "comment": "download icaclientWeb from https://www.citrix.com/fr-fr/downloads/citrix-receiver/linux/receiver-for-linux-latest.html",
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "office",
    "postruncommands": [
        "COPY icaclientWeb_13.10.0.20_amd64.deb /tmp/icaclient_amd64.deb",
        "RUN apt-get update && apt-get install  --no-install-recommends --yes /tmp/icaclient_amd64.deb && apt-get clean && rm /tmp/icaclient_amd64.deb && rm -rf /var/lib/apt/lists/*"
    ],
    "debpackage": "libsecret-1-0 libpcsclite1 x11-utils libjpeg-turbo8",
    "icon": "icaclient.svg",
    "keyword": "ica,icaclient,",
    "launch": "Wfica.Wfica",
    "name": "citrix",
    "displayname": "citrix-client",
    "secrets_requirement": "citrix",
    "args": "-icaroot /opt/Citrix/ICAClient",
    "path": "/opt/Citrix/ICAClient/wfica",
    "template": "abcdesktopio/oc.template.ubuntu.gtk.18.04",
    "mimetype": "application/x-ica;",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "desktopfile": "/usr/share/applications/wfica.desktop",
    "host_config": {
        "mem_limit": "512M",
        "shm_size": "512M",
        "pid_mode": true,
        "ipc_mode": "shareable"
    },
    "usedefaultapplication": true,
    "licence": "non-free"
}

Install the builded image

Replace the ABCHOST var set to localhost by default to your own server ip address

ABCHOST=localhost
curl --output citrix.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/citrix.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @citrix.d.3.0.json

Generated DockerFile source code

# Dynamic DockerFile application file for abcdesktopio generated by abcdesktopio/oc.apps/make.js
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
ARG TAG=dev
FROM abcdesktopio/oc.template.ubuntu.gtk.18.04:$TAG
USER root
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y  --no-install-recommends libsecret-1-0 libpcsclite1 x11-utils libjpeg-turbo8 && apt-get clean
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
LABEL oc.icon="icaclient.svg"
LABEL oc.icondata="PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmVyc2lvbj0iMSI+CiA8cmVjdCBzdHlsZT0ib3BhY2l0eTouM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C04YTIgMiAwIDAgMCAyIC0yIDIgMiAwIDAgMCAtMiAtMnptMCA4YTQgNCAwIDAgMCAtNCA0IDQgNCAwIDAgMCA0IDQgNCA0IDAgMCAwIDQgLTQgNCA0IDAgMCAwIC00IC00eiIvPgogPHBhdGggc3R5bGU9Im9wYWNpdHk6LjE7ZmlsbDojZmZmZmZmIiBkPSJtMzIgMmMtMTUuNTEyIDAtMjggMTIuNDg4LTI4IDI4IDAgMC4xMTM0NSAwLjAxMTI4MDUgMC4yMjQxMTMgMC4wMTc1NzgxIDAuMzM1OTM4IDAuMzUxNTQzMi0xNS4yMDE3NTcgMTIuNjkzMTQ5OS0yNy4zMzU5MzggMjcuOTgyNDIxOS0yNy4zMzU5MzhzMjcuNjMwODc5IDEyLjEzNDE4MSAyNy45ODI0MjIgMjcuMzM1OTM4YzAuMDA2Mjk4LTAuMTExODI1IDAuMDE3NTc4LTAuMjIyNDg4IDAuMDE3NTc4LTAuMzM1OTM4IDAtMTUuNTEyLTEyLjQ4OC0yOC0yOC0yOHoiLz4KPC9zdmc+Cg=="
LABEL oc.keyword="citrix,ica,icaclient,"
LABEL oc.cat="office"
LABEL oc.desktopfile="wfica.desktop"
LABEL oc.launch="Wfica.Wfica"
LABEL oc.template="abcdesktopio/oc.template.ubuntu.gtk.18.04"
ENV ARGS="-icaroot /opt/Citrix/ICAClient"
LABEL oc.name="citrix"
LABEL oc.displayname="citrix-client"
LABEL oc.path="/opt/Citrix/ICAClient/wfica"
LABEL oc.type=app
LABEL oc.licence="non-free"
LABEL oc.mimetype="application/x-ica;"
LABEL oc.rules="{\"homedir\":{\"default\":true}}"
LABEL oc.acl="{\"permit\":[\"all\"]}"
LABEL oc.host_config="{\"mem_limit\":\"512M\",\"shm_size\":\"512M\",\"pid_mode\":true,\"ipc_mode\":\"shareable\"}"
LABEL oc.secrets_requirement="\"citrix\""
RUN for d in /usr/share/icons /usr/share/pixmaps ; do echo "testing link in $d"; if [ -d $d ] && [ -x /composer/safelinks.sh ] ; then echo "fixing link in $d"; cd $d ; /composer/safelinks.sh ; fi; done
ENV APPNAME "citrix"
ENV APPBIN "/opt/Citrix/ICAClient/wfica"
LABEL oc.args="-icaroot /opt/Citrix/ICAClient"
ENV APP "/opt/Citrix/ICAClient/wfica"
LABEL oc.usedefaultapplication=true
COPY icaclientWeb_13.10.0.20_amd64.deb /tmp/icaclient_amd64.deb
RUN apt-get update && apt-get install  --no-install-recommends --yes /tmp/icaclient_amd64.deb && apt-get clean && rm /tmp/icaclient_amd64.deb && rm -rf /var/lib/apt/lists/*
USER root
RUN mkdir -p /var/secrets/abcdesktop/localaccount
RUN for f in passwd shadow group gshadow ; do if [ -f /etc/$f ] ; then  cp /etc/$f /var/secrets/abcdesktop/localaccount; rm -f /etc/$f; ln -s /var/secrets/abcdesktop/localaccount/$f /etc/$f; fi; done
USER balloon
CMD [ "/composer/appli-docker-entrypoint.sh" ]

Rebuild the image manually

Download the Dockerfile manually

Dockerfile for application citrix

wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/citrix.d

build the Dockerfile to create a container image

docker build --build-arg TAG=3.0 -f citrix.d -t citrix .

Install the new image

If you are using containerd as container runtime, use the ctr command line

If you are not running this bash command on your abcdesktop node Replace the ABCHOST variable set to localhost by default to your own server ip address

ABCHOST=localhost
docker inspect citrix > citrix.json
docker image save citrix -o citrix.tar
ctr -n k8s.io images import citrix.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @citrix.json