Skip to content

Commit

Permalink
Update Ubuntu installation docs
Browse files Browse the repository at this point in the history
* Add MySQL Server to the prerequisite packages section
  • Loading branch information
marceloalencar authored and replaceafill committed Jan 22, 2024
1 parent 17f12ca commit 9ba99de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
24 changes: 13 additions & 11 deletions admin-manual/installation-setup/installation/install-ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,35 +61,37 @@ Ubuntu 18.04 (Bionic) installation instructions
:language: bash
:lines: 27

#. Create the Storage Service database and set up the expected credentials.

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 29-31

#. Install the Storage Service package.

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 29
:lines: 33

#. Configure the Storage Service.

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 31-32
:lines: 35-36

#. Install the Archivematica packages. The order of installation is important -
the archivematica-mcp-server package must be installed before the dashboard
package. While it is possible to install the archivematica-mcp-client package
on a separate machine, that configuration is not documented in these
instructions.

The archivematica-mcp-server package will install MySQL and configure the
database used by Archivematica. Depending on the version of MySQL that is
installed, the interfaces that you see may differ slightly.

When you are prompted to create a password for the archivematica-mcp-server,
you must use ``demo`` as the password during the install process. The
password can be changed after the installation is complete.

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 34-36
:lines: 38-40

#. Configure the Archivematica components (optional). There are a number of
environment variables that Archivematica recognizes which can be used to
Expand All @@ -112,7 +114,7 @@ Ubuntu 18.04 (Bionic) installation instructions

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 38
:lines: 42

#. Start Elasticsearch (optional).

Expand All @@ -121,13 +123,13 @@ Ubuntu 18.04 (Bionic) installation instructions

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 40-42
:lines: 44-46

#. Start the remaining services

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 44-54
:lines: 48-58

If you have trouble with the gearman or clamav command try restarting it:

Expand All @@ -151,7 +153,7 @@ Ubuntu 18.04 (Bionic) installation instructions

.. literalinclude:: scripts/am-bionic-deb.sh
:language: bash
:lines: 56-59
:lines: 60-63

#. Complete :ref:`Post Install Configuration <ubuntu-post-install-config>`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee
sudo apt-get update
sudo apt-get -y upgrade

sudo apt-get install -y htop ntp apt-transport-https unzip openjdk-8-jre-headless
sudo apt-get install -y htop ntp apt-transport-https unzip openjdk-8-jre-headless mysql-server libmysqlclient-dev
sudo apt-get install -y elasticsearch

sudo -H -u root mysql -hlocalhost -uroot -e "DROP DATABASE IF EXISTS SS; CREATE DATABASE SS CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
sudo -H -u root mysql -hlocalhost -uroot -e "CREATE USER 'archivematica'@'localhost' IDENTIFIED BY 'demo';"
sudo -H -u root mysql -hlocalhost -uroot -e "GRANT ALL ON SS.* TO 'archivematica'@'localhost';"

sudo apt-get install -y archivematica-storage-service

sudo rm -f /etc/nginx/sites-enabled/default
Expand Down

0 comments on commit 9ba99de

Please sign in to comment.