Building STIG on Linux (Debian based)
These steps were tested on Ubuntu 18.04 and 20.04.
Install Depedencies
Run some updates and install dependencies:
sudo apt update && sudo apt upgrade
sudo apt-get install build-essential libssl-dev apt-transport-https git curl wget
NVM and Node.js
Check the NVM Github releases https://github.com/creationix/nvm/releases and replace v0.38.0 with the latest version.
Install NVM using the install script:
curl https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash
Close and reopen your terminal. Check the NVM version to verify the install
nvm --version
Check for and install the latest LTS (as of this writing it was 14.16.0):
nvm ls-remote
nvm install 14.16.0
Install Node:
nvm install node
Yarn
Install the latest stable release of yarn, see https://yarnpkg.com/lang/en/docs/install/#debian-stable for more information.
In a terminal, type:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install --no-install-recommends yarn
RPM Build
(Option 1) If you are building an rpm file from ubuntu, install rpm:
sudo apt-get install rpm
(Option 2) If you only need a deb, change the following lines in package.json:
_Before…_
"linux": [
"deb",
"rpm"
]
_Updated.._
"linux": [
"deb"
]
Proceed to Connecting to the Database