xrdp_apphost: Add configuration for Estlcam
This commit is contained in:
parent
fabf719de5
commit
3c09971484
24
roles/xrdp_apphost/README.md
Normal file
24
roles/xrdp_apphost/README.md
Normal file
@ -0,0 +1,24 @@
|
||||
xrdp_apphost
|
||||
============
|
||||
|
||||
Manual installation steps
|
||||
-------------------------
|
||||
|
||||
After the role has applied several manual installation steps have to be applied
|
||||
by a admin user.
|
||||
|
||||
* Estlcam
|
||||
* Create a .xsession file for the admin user with the following content:
|
||||
xfwm4 &
|
||||
exec xterm
|
||||
* Login as admin user and execute the following commands
|
||||
$ xhost si:localuser:estlcam
|
||||
$ sudo -u estlcam --preserve-env=DISPLAY /bin/bash
|
||||
$ cd ~
|
||||
$ export WINEPREFIX=~/.wine32
|
||||
$ export WINEARCH=win32
|
||||
$ wineboot
|
||||
$ winetricks dotnet40 gdiplus d3dx9_36
|
||||
$ wget http://www.estlcam.de/downloads/Estlcam_32_11243.exe
|
||||
$ wine Estlcam_32_11243.exe
|
||||
$ echo "Hide tooltips=no" >> ~/.wine32/drive_c/ProgramData/Estlcam/V11/Settings\ Estlcam.txt
|
@ -30,3 +30,8 @@ lightburn_checksum: sha256:30d3cd573f5036edf74922ce56515304e668c345b5921fa078624
|
||||
lightburn_version: 1.0.04
|
||||
lightburn_url: https://github.com/LightBurnSoftware/deployment/releases/download/{{ lightburn_version }}/LightBurn-Linux64-v{{ lightburn_version }}.run
|
||||
lightburn_target: /home/{{ lightburn_user }}/LightBurn-Linux64-v{{ lightburn_version }}.run
|
||||
|
||||
estlcam_user: estlcam
|
||||
estlcam_group: estlcam
|
||||
estlcam_pass: fckgw01estlcam
|
||||
estlcam_salt: $1$SomeSalt$
|
||||
|
@ -56,3 +56,39 @@
|
||||
- name: Download LightBurn binary
|
||||
get_url: url={{ lightburn_url }} dest={{ lightburn_target }} checksum={{ lightburn_checksum }} mode=0755
|
||||
notify: Install LightBurn
|
||||
|
||||
|
||||
- name: Enable contrib repositories
|
||||
apt_repository:
|
||||
repo: deb http://deb.debian.org/debian {{ ansible_distribution_release }} contrib
|
||||
|
||||
- name: Add i386 Architecture
|
||||
command: dpkg --add-architecture i386
|
||||
args:
|
||||
creates: /var/lib/dpkg/arch
|
||||
when: ansible_architecture != 'i386'
|
||||
register: archrc
|
||||
|
||||
- name: Update APT Cache for i386
|
||||
apt:
|
||||
update_cache: true
|
||||
when: archrc is defined and archrc.changed
|
||||
|
||||
- name: Install Estlcam dependencies
|
||||
apt:
|
||||
name:
|
||||
- winetricks
|
||||
- wine32
|
||||
- xfwm4
|
||||
|
||||
- name: Create Estlcam group
|
||||
group: name={{ estlcam_group }}
|
||||
|
||||
- name: Create Estlcam user
|
||||
user: name={{ estlcam_user }} password={{ estlcam_pass | password_hash('sha512', estlcam_salt) }} home=/home/{{ estlcam_user }} group={{ estlcam_group }}
|
||||
|
||||
- name: Create Estlcam .xsession
|
||||
template: src=estlcam_xsession.j2 dest=/home/{{ estlcam_user }}/.xsession
|
||||
|
||||
- name: Create Estlcam data directory
|
||||
file: path=/home/{{ estlcam_user }}/data state=directory mode=0755 owner={{ estlcam_user }} group={{ estlcam_group }}
|
3
roles/xrdp_apphost/templates/estlcam_xsession.j2
Normal file
3
roles/xrdp_apphost/templates/estlcam_xsession.j2
Normal file
@ -0,0 +1,3 @@
|
||||
export WINEPREFIX=~/.wine32
|
||||
xfwm4 &
|
||||
exec wine "/home/{{ estlcam_user }}/.wine32/drive_c/Program Files/Estlcam11/Estlcam.exe"
|
@ -245,3 +245,15 @@
|
||||
directory mask = 0700
|
||||
force user = {{ lightburn_user }}
|
||||
hide dot files = yes
|
||||
|
||||
# Estlcam share
|
||||
[estlcam]
|
||||
comment = Estlcam data folder
|
||||
path = /home/{{ estlcam_user }}/data
|
||||
browseable = yes
|
||||
read only = no
|
||||
guest ok = yes
|
||||
create mask = 0600
|
||||
directory mask = 0700
|
||||
force user = {{ estlcam_user }}
|
||||
hide dot files = yes
|
||||
|
@ -189,6 +189,15 @@ ip=127.0.0.1
|
||||
port=-1
|
||||
code=20
|
||||
|
||||
[Estlcam]
|
||||
name=Estlcam
|
||||
lib=libxup.so
|
||||
username={{ estlcam_user }}
|
||||
password={{ estlcam_pass }}
|
||||
ip=127.0.0.1
|
||||
port=-1
|
||||
code=20
|
||||
|
||||
[Xorg]
|
||||
name=Xorg
|
||||
lib=libxup.so
|
||||
|
Loading…
Reference in New Issue
Block a user