This is the terminal endpoint application for BDDW.
install/enable wsl on windows endpoint
in powershell w/ admin priv:
wsl.exe --install
open remove programs and remove whatever distro windows installed
install ubuntu 20.04 from microsoft app store
open ubuntu 20.04
set unix username to bddw
sudo apt-get updates
sudo apt-get upgrade
Install docker & docker-compose
sudo visudo
at bottom
bddw ALL=(ALL) NOPASSWD: ALL
mkdir /home/bddw/django-projects/
cd django-projects
git clone https://github.com/dev-rlf/terminal_scans.git
touch /home/bddw/django-projects/terminal_scans/.envs/.local/.scans
sudo vim /home/bddw/django-projects/terminal_scans/.envs/.local/.scans
Add this to .envs/.local/.scans:
APP_KEY=
LOCATION_CODE=<LOCATION_CODE>
LOCATION_NAME=
cp /home/bddw/django-projects/terminal_scans/wsl-init /etc/wsl-init
sudo chmod +x /etc/wsl-init
Add tasks from one drive task folder
RUN WSL -- start wsl.exe any user on startup
START TERMINAL SCANS -- start bash script any user on startup
You can also setup the bash script as a cron job to run on reboot and then create a task that just starts the cronjob service in the VM.
crontab -e @reboot /bin/bash/ /etc/wsl-init