Skip to content

Latest commit

 

History

History
82 lines (42 loc) · 1.5 KB

README.md

File metadata and controls

82 lines (42 loc) · 1.5 KB

terminal scans

This is the terminal endpoint application for BDDW.

installation

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

remove pw prompt for bddw user

sudo visudo

at bottom

bddw ALL=(ALL) NOPASSWD: ALL

clone repo

mkdir /home/bddw/django-projects/

cd django-projects

git clone https://github.com/dev-rlf/terminal_scans.git

config local settings

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=

copy bash script from terminal_scans dir

cp /home/bddw/django-projects/terminal_scans/wsl-init /etc/wsl-init

make it executable

sudo chmod +x /etc/wsl-init

schedule tasks to run wsl & start docker at localhost:8000 on startup

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

ALTERNATIVELY

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

ALL DONE