Checkpoint

This commit is contained in:
Jonathan Cremin 2021-04-11 16:00:07 +01:00
parent e17f84ad8a
commit 1e03c32201
32 changed files with 556 additions and 298 deletions

View file

@ -0,0 +1,4 @@
It=1612256810
EasyFindId=NnL1bKU8y9cMhUFhNzxNQA
EasyFindPin=2vTMJN
License=100426f0-7de4-ae8e-e7e1-244bfec823db,0,MCACDi8rVnEa6oduIXJBZNAEAg5o/Fp6R7Njxf5D4uN0Bw==

View file

@ -0,0 +1,8 @@
[Unit]
Description=VirtualHere Server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/bin/vhusbd -b -c /usr/local/etc/virtualhere/config.ini
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,8 @@
---
- name: enable virtualhere
service:
name: virtualhere
state: started
enabled: yes
become: yes

View file

@ -0,0 +1,41 @@
---
- name: Fetch Virtualhere binary
get_url:
url: https://virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
dest: /usr/local/bin/vhusbd
mode: 0755
become: yes
- name: Create /usr/local/etc/virtualhere/
file:
dest: /usr/local/etc/virtualhere/
mode: '0755'
owner: root
group: root
state: directory
become: yes
- name: Create Virtualhere config
copy:
src: config.ini
mode: "0644"
dest: /usr/local/etc/virtualhere/config.ini
become: yes
- name: Create Virtualhere systemd service
copy:
src: virtualhere.service
mode: "0644"
dest: /etc/systemd/system/virtualhere.service
notify: enable virtualhere
become: yes
# For 4K Webcam throughput
- name: Increase memory available to USB
lineinfile:
path: /etc/default/grub
regexp: '^(.*)rhgb quiet"$'
line: '\1rhgb quiet usbcore.usbfs_memory_mb=1000"'
backrefs: yes
become: yes