dugout-> program_env.dugout
Create default environment variable to system/user programs. In New Entity OS™ all user-space programs utilize Python and shell only. All Ruby programs have been consolidated. There are still some interactive web-server components that utilize PHP. For user-space web-server programs that are of an interactive nature, all subsystems have been consolidated to use either the New Entity IO™ framework or in the event that this is not sufficient, Flask. The following is an overview of a system that runs complex web applications using Flask and New Entity IO™:
- You can either write Python byte-code to the environment or not. In events where you need an added boost in cache performance, this may be desired, but it also may be rejected when a cache is not desired, in applications for critical infrastructure.
- You can set a default adapter for the APP_SETTINGS variable
- You can set a default adapter for a databse of your choosing throught the DATABASE_URL variable
- You will need to set the three default flask variables, _DEBUG, _ENV, and _APP
- You will need to set the five default ENTITY_* specific variables. They are _MAIL_ADMIN, _MAIL_ADMIN_VALIDATOR, _ADMIN, _BIZARRO, and _GONEWILD. The last three are user accounts to perform automation and testing. The first two are to configure security alerts
- As is standard, you will need a configured secret key to utilize secure mail
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
###############################################################################
## COPYRIGHT (C) 2020-2026 NEW ENTITY OPERATIONS INC. ALL RIGHTS RESERVED
## INSTANCE: program_env.dugout
## MODIFIED: 2026/04/20
## OVERVIEW: Create default environment variables to system/user programs
###############################################################################
## Emulation environment
###############################################################################
export DEFAULT_BASH_ENV_SLUG="${CONFIGURATION_DEFAULT_BASH_ENV_SLUG}"
export DEFAULT_COLOR="${CONFIGURATION_DEFAULT_COLOR}"
export DEFAULT_COLOR_LINE="${CONFIGURATION_DEFAULT_COLOR_LINE}"
export GTK_THEME="${CONFIGURATION_GTK_THEME}"
export GTK_ICON_THEME="${CONFIGURATION_GTK_ICON_THEME}"
export INTERACTIVE_SLUG="${CONFIGURATION_INTERACTIVE_SLUG}"
export QT_QPA_PLATFORMTHEME="${CONFIGURATION_QT_QPA_PLATFORMTHEME}"
export QT_STYLE_OVERRIDE="${CONFIGURATION_QT_STYLE_OVERRIDE}"
export XCURSOR_THEME="${CONFIGURATION_XCURSOR_THEME}"
export XCURSOR_SIZE="${CONFIGURATION_XCURSOR_SIZE}"
###############################################################################
## SCRIPT_ACES_*
###############################################################################
export SCRIPT_ACS_RUNNER_GENERIC="${CONFIGURATION_SCRIPT_ACS_RUNNER_GENERIC}"
export SCRIPT_ACS_RUNNER_CLEAN="${CONFIGURATION_SCRIPT_ACS_RUNNER_CLEAN}"
export SCRIPT_ACS_RUNNER_CLEANSE="${CONFIGURATION_SCRIPT_ACS_RUNNER_CLEANSE}"
export SCRIPT_ACS_RUNNER_CONFIGURE="${CONFIGURATION_SCRIPT_ACS_RUNNER_CONFIGURE}"
export SCRIPT_ACS_RUNNER_CONTROLS="${CONFIGURATION_SCRIPT_ACS_RUNNER_CONTROLS}"
export SCRIPT_ACS_RUNNER_DISPLAY="${CONFIGURATION_SCRIPT_ACS_RUNNER_DISPLAY}"
export SCRIPT_ACS_RUNNER_DUGOUT="${CONFIGURATION_SCRIPT_ACS_RUNNER_DUGOUT}"
export SCRIPT_ACS_RUNNER_MINTER="${CONFIGURATION_SCRIPT_ACS_RUNNER_MINTER}"
export SCRIPT_ACS_RUNNER_OPERATIONS="${CONFIGURATION_SCRIPT_ACS_RUNNER_OPERATIONS}"
export SCRIPT_ACS_RUNNER_OPTIONAL="${CONFIGURATION_SCRIPT_ACS_RUNNER_OPTIONAL}"
export SCRIPT_ACS_RUNNER_PERFORM="${CONFIGURATION_SCRIPT_ACS_RUNNER_PERFORM}"
export SCRIPT_ACS_RUNNER_STATE_MODIFIER="${CONFIGURATION_SCRIPT_ACS_RUNNER_STATE_MODIFIER}"
export SCRIPT_ACS_SUMMARIZE="${CONFIGURATION_SCRIPT_ACS_SUMMARIZE}"
export SCRIPT_ACS_RUNNER_="${CONFIGURATION_SCRIPT_ACS_SUMMARY}"
###############################################################################
## APPLICATION SETTINGS: Generic
###############################################################################
## python
## Prevent python from writing .pyc files
export PYTHONDONTWRITEBYTECODE="${CONFIGURATION_PYTHONDONTWRITEBYTECODE}"
## i3
export i3_message_mode="${CONFIGURATION_i3_message_mode}"
###############################################################################
## APPLICATION SETTINGS: corehost
## Use: Define legacy imports for the NewEntity.IO community branch
export APP_SETTINGS="${CONFIGURATION_APP_SETTINGS}"
export DATABASE_URL="${CONFIGURATION_DATABASE_URL}"
## Use: Define imports for corehost V.1.0.0
export FLASK_DEBUG="${CONFIGURATION_FLASK_DEBUG}"
export FLASK_ENV="${CONFIGURATION_FLASK_ENV}"
export FLASK_APP="${CONFIGURATION_FLASK_APP}"
## Use: Establish mail server validators and credentials for corehost V.1.0.0
export ENTITY_MAIL_ADMIN="${CONFIGURATION_ENTITY_MAIL_ADMIN}"
export ENTITY_MAIL_ADMIN_VALIDATOR="${CONFIGURATION_ENTITY_MAIL_ADMIN_VALIDATOR}"
## Use: Export a secret key to secure corehost V.1.0.0
export SECRET_KEY="${CONFIGURATION_SECRET_KEY}"
## Use: Establish application users for corehost V.1.0.0
export ENTITY_ADMIN="${CONFIGURATION_ENTITY_ADMIN}"
export ENTITY_BIZARRO="${CONFIGURATION_ENTITY_BIZARRO}"
export ENTITY_GONEWILD="${CONFIGURATION_ENTITY_GONEWILD}"
export OPGENERIC="${CONFIGURATION_OPGENERIC}"
export HUMAN="${CONFIGURATION_HUMAN}"
export PRYHME="${CONFIGURATION_PRYHME}"