Skip to content

BitCurator/bitcurator-salt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

bitcurator-salt

GitHub issues GitHub forks

Configuration and support files to build the BitCurator environment in a Ubuntu LTS release. BitCurator provides a dedicated installer and uses Salt automation to create a custom desktop environment that includes archival processing, metadata management, forensic analysis, and security tools.

Instructions in the next section provide guidance on installing Ubuntu and using command-line tools to deploy BitCurator. If you are unfamiliar with commnad-line tools or need additional help installing Ubuntu on dedicated hardware or as a virtual machine, visit https://github.com/BitCurator/bitcurator-distro/wiki/Releases and click on the link to the Quick Start Guide.

Note: BitCurator must be deployed on an x86/amd64 version of Ubuntu. Currently, Ubuntu cannot be installed as the host OS or in a VM on systems with ARM processors, including Apple silicon (M1-M4 series).

If you wish to build the environment from scratch on your own physical host or VM, follow the instructions below. An internet connection is required during installation.

Install Ubuntu (24.04LTS or 22.04LTS)

Download the most recent 64-bit Ubuntu 24.04 Desktop image from https://releases.ubuntu.com/noble/ and install on your local machine or in a VM. If you're using a VM, we recommend allocating a minimum of 8GB of RAM and 64GB of disk space to the instance. You may download and use the earlier Ubuntu 22.04LTS if needed.

You may use any hostname, username, and password. If you wish to replicate the default configuration in the BitCurator documentation, when prompted use BitCurator for the Full Name and bcadmin for the username. Create a password of your choice, and memorize or record it in a secure location. Logging into the system, command-line instructions beginning with sudo, and some system tools will require you to re-enter this password.

When installation is completed, reboot, log in, and open a terminal.

Using the Installer

1. Prepare your environment

Update the local apt repository and install some required tools:

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install gnupg curl git -y

gnupg is required for the BitCurator installer to validate the signature of the BitCurrator configuration files during install. curl can be used when developing or testing state files. git is used to clone local GitHub repos, and can be used when testing state files from the BitCurator SaltStack Repo.

2. Download the BitCurator CLI installer

BitCurator uses a command-line tool for installation and upgrade. Download the latest release of the tool with the following command:

wget https://github.com/BitCurator/bitcurator-cli/releases/download/v3.0.0/bitcurator-cli-linux

Generate a SHA-256 hash of the downloaded file:

sha256sum bitcurator-cli-linux

and use the output to confirm that the hash of this version (current release: v3.0.0) matches the value below:

ec1c484227bb5aa61ec0881201daf63d38cf6a412a240d90015b33d8e9bf71c0

Move and rename the BitCurator installer, and make it executable:

sudo mv bitcurator-cli-linux /usr/local/bin/bitcurator
sudo chmod +x /usr/local/bin/bitcurator

3. Run the BitCurator CLI Installer

Now run the BitCurator installer. This may take up to an hour to complete, depending on your internet speed and system:

sudo bitcurator install

If no errors have occurred, move on to step 5 below. If you see a message that includes "Incomplete due to failures", one or more packages may have failed to install. This message is usually the result of an install failure for a single tool (or small subset of tools), and the BitCurator environment will still be usable after reboot. To identify the problem and report it, follow the steps in "What to do if you encounter an error" below.

5. Reboot

When the installation is complete, reboot your system from the terminal:

sudo reboot now

After reboot, log in using the credentials your provided earlier. (If you selected Automatic Login during the Ubuntu install, you will reboot directly to the desktop).

What to do if you encounter an error

The bitcurator installer includes a results option that can assist in isolating packages that have failed to install. If you see an installation failure message, run the following command:

sudo bitcurator results --version=X.X.X

where X.X.X is the number of the BitCurator release you have just installed (for example, 5.1.0). Creating a new issue in this GitHub repository (bitcurator-salt) and posting the output of this command is often the quickest way to get help and let us know something may need fixing.

For the more adventurous, it may be possible to identify the issue by reviewing saltstack.log file under /var/cache/bitcurator/cli/X.X.X, where X.X.X is the release version you are installing. Search for the log file for result: false messages and look at the surrounding 5 lines or the 8 lines above each message to see the state file that caused the issue. You can do this with:

grep -i -C 5 'result: false' /var/cache/bitcurator/cli/<version>/saltstack.log or grep -i -B 8 'result: false' /var/cache/bitcurator/cli/<version>/saltstack.log

Updating and Upgrading

Once BitCurator is installed, you may install additional software and update the Ubuntu OS as normal, either from the Software Center or with sudo apt-get update && sudo apt-get upgrade on the command line.

We recommend that you decline LTS-to-LTS upgrades (for example, a pop-up notice in Ubuntu 22.04LTS announcing that 24.04LTS is available) and perform a clean install when moving to a new LTS.

The BitCurator CLI tool may also be used to selectively upgrade those packages specifically associated with the BitCurator environment, and to upgrade the BitCurator verion. To see all options for the BitCurator CLI, type the following in a terminal:

bitcurator --help

This will print a list showing the following options:

$ bitcurator --help
Usage:
Usage:
  bitcurator [options] list-upgrades [--pre-release]
  bitcurator [options] install [--pre-release] [--version=<version>] [--mode=<mode>] [--user=<user>]
  bitcurator [options] upgrade [--pre-release] [--mode=<mode>] [--user=<user>]
  bitcurator [options] results [--version=<version>]
  bitcurator [options] version
  bitcurator [options] debug
  bitcurator -h | --help | -v

Options:
  --dev                 Developer Mode (do not use, dangerous, bypasses checks)
  --version=<version>   Specific version install [default: latest]
  --mode=<mode>         bitcurator installation mode (dedicated or addon, default: dedicated)
  --user=<user>         User used for bitcurator configuration [default: kamwoods]
  --no-cache            Ignore the cache, always download the release files
  --verbose             Display verbose logging

To upgrade the BitCurator environment to a new release, use the upgrade option. For example, if you were using release 5.0.0 and wished to upgrade to 5.1.0, the following command would be used:

sudo bitcurator upgrade 5.1.0

To see a list of available upgrades, type:

bitcurator list-upgrades

What's in this repository

This repository has been organized to make the process of maintaining and contributing to BitCurator development as transparent as possible. An explanation of the layout follows.

The .ci/ directory contains a selection of shell scripts used to build and test BitCurator releases.

The bitcurator/ directory contains all support files and salt states in a number of different directories:

  • config/: Salt states and support files for environment and user configuration
  • env/: Environment support files and salt states for the user desktop and various tools
  • files/: Source packages and deb packages for tools where a legacy version is required, or no readily available, stable packaging exists
  • mounter/: Mount policy tools
  • packages/: all deb packages (to be installed with apt-get)
  • python-packages/: all Python 3 packages (to be installed with pip3)
  • repos/: additional repositories that must be enabled
  • theme/: BitCurator theme resources
  • tools/: tools that must be installed from source

BitCurator documentation, help, and discussions

Visit the BitCurator wiki on GitHub to find the latest version of our Quickstart Guide.

Have a question or need help? Visit the bitcurator-users Google Group.

Some community maintained documentation and resources are available at the BitCurator documentation hosted on GitHub Pages. Note that the information on this site may lag behind the latest release(s).

A BitCurator Discussions board is also available for ideas or comments.

License(s)

The BitCurator logo, BitCurator project documentation, and other non-software products of the BitCurator team are subject to the the Creative Commons Attribution 4.0 Generic license (CC By 4.0).

Unless otherwise indicated, software items in this repository are distributed under the terms of the GNU General Public License v3.0. See the LICENSE file for additional details.

In addition to software produced by the BitCurator team, BitCurator packages and modifies open source software produced by other developers. Licenses and attributions are retained here where applicable.

Development Team and Support

The BitCurator environment is volunteer-maintained. BitCurator was originally developed in the School of Library and Information Science at the University of North Carolina at Chapel Hill with funding provided by the Andrew W. Mellon Foundation (2011-2014).

Community support is managed by the BitCurator Consortium. Find out more at:

https://bitcuratorconsortium.org/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •