|
1 | | -# bitcurator-cli |
| 1 | + |
| 2 | + |
| 3 | +# bitcurator-cli |
| 4 | + |
| 5 | +[](https://github.com/bitcurator/bitcurator-salt/issues) |
| 6 | +[](https://github.com/bitcurator/bitcurator-salt/network) |
| 7 | +[](https://twitter.com/bitcurator) |
| 8 | + |
| 9 | +BitCurator CLI Installer |
| 10 | + |
| 11 | +This repo contains the source for the BitCurator CLI installer, a command line tool to install and upgrade the BitCurator environment. |
| 12 | + |
| 13 | +You can find pre-built virtual machines (Ubuntu 22.04-based) at https://github.com/BitCurator/bitcurator-distro/wiki/Releases for specific releases. If you wish to create the environment from scratch, you can follow the steps below to install the BitCurator environment on your own physical host or VM. |
| 14 | + |
| 15 | +**Note: BitCurator must be deployed on an x86/amd64 version of Ubuntu. Currently, it is not possible to deploy it on systems with ARM processors (including Apple M1).** |
| 16 | + |
| 17 | +**1. Install Ubuntu 22.04** |
| 18 | + |
| 19 | +Download the 64-bit Ubuntu 22.04 desktop image from https://releases.ubuntu.com/22.04/ubuntu-22.04-desktop-amd64.iso and install on your local machine or in a VM. If you're using a VM, we recommend allocating at least 4GB of RAM and 64GB of disk space to the instance. |
| 20 | + |
| 21 | +To remain consistent with the default configuration of BitCurator, when prompted use **BitCurator** for the Full Name, **bcadmin** for the username, and **bcadmin** for the password. |
| 22 | + |
| 23 | +When installation is completed, reboot, log in, and open a terminal. |
| 24 | + |
| 25 | +**2. Download the BitCurator CLI Installer** |
| 26 | + |
| 27 | +Download the BitCurator installer from iBiblio with the following command: |
| 28 | + |
| 29 | +```shell |
| 30 | +wget https://distro.ibiblio.org/bitcurator/bitcurator-cli-linux |
| 31 | +``` |
| 32 | + |
| 33 | +Verify that the SHA-256 has of the downloaded file matches the value below: |
| 34 | + |
| 35 | +```shell |
| 36 | +377065fd9880e511c3c5db7306c5b40dd507ba491a89452cf05f2b570946c5c0 |
| 37 | +``` |
| 38 | + |
| 39 | +You can generate the hash of your downloaded file with: |
| 40 | + |
| 41 | +```shell |
| 42 | +sha256sum bitcurator-cli-linux |
| 43 | +``` |
| 44 | + |
| 45 | +Finally, perform a few setup steps to make the installer executable and place it in the correct location: |
| 46 | + |
| 47 | +```shell |
| 48 | +mv bitcurator-cli-linux bitcurator |
| 49 | +chmod +x bitcurator |
| 50 | +sudo mv bitcurator /usr/local/bin |
| 51 | +``` |
| 52 | + |
| 53 | +**3. Install GnuPG** |
| 54 | +GnuPG is required for BitCurator to automatically validate the configuration files required during installation. Install it using: |
| 55 | + |
| 56 | +``` |
| 57 | +sudo apt install -y gnupg |
| 58 | +``` |
| 59 | + |
| 60 | +**4. Run the BitCurator Installer** |
| 61 | + |
| 62 | +``` |
| 63 | +sudo bitcurator install |
| 64 | +``` |
| 65 | + |
| 66 | +The installation may take up to an hour, depending on the speed of your system. |
| 67 | + |
| 68 | +If you encounter an error, you may be able to identify the issue by reviewing saltstack.log file under /var/cache/bitcurator/cli in the subdirectory that matches the BitCcurator state-files version you're 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: |
| 69 | + |
| 70 | +```shell |
| 71 | +grep -i -C 5 'result: false' or grep -i -B 8 'result: false' |
| 72 | +``` |
| 73 | + |
| 74 | +**5. Reboot** |
| 75 | + |
| 76 | +When the installation is complete, reboot your system from the terminal: |
| 77 | + |
| 78 | +```shell |
| 79 | +sudo reboot |
| 80 | +``` |
| 81 | + |
| 82 | +After the reboot, you will be automatically logged in to BitCurator. |
| 83 | + |
| 84 | +## BitCurator documentation, help, and other information |
| 85 | + |
| 86 | +User documentation and additional resources are available on |
| 87 | +[the BitCurator Environment wiki](https://confluence.educopia.org/display/BC). |
| 88 | + |
| 89 | +Questions and comments can also be directed to the bitcurator-users list. |
| 90 | + |
| 91 | +[https://groups.google.com/d/forum/bitcurator-users](https://groups.google.com/d/forum/bitcurator-users) |
| 92 | + |
| 93 | +## Acknowledgements |
| 94 | + |
| 95 | +This tool originally authored by Erik Kristensen, and revised for BitCurator by Corey Forman. |
| 96 | + |
| 97 | +## License(s) |
| 98 | + |
| 99 | +See LICENSE file for details. |
| 100 | + |
| 101 | +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). |
| 102 | + |
| 103 | +## Development Team and Support |
| 104 | + |
| 105 | +The BitCurator environment is a product of the BitCurator team housed at the School of Information and Library Science at the University of North Carolina at Chapel Hill. Funding between 2011 and 2014 was provided by the Andrew W. Mellon Foundation. |
| 106 | + |
| 107 | +Ongoing support for the BitCurator environment is managed by the BitCurator Consortium. Find out more at: |
| 108 | + |
| 109 | +http://www.bitcuratorconsortium.net/ |
| 110 | + |
0 commit comments