diff --git a/omero/sysadmins/unix/walkthrough/README.md b/omero/sysadmins/unix/walkthrough/README.md index dcd21e15cf..6883c1e23f 100644 --- a/omero/sysadmins/unix/walkthrough/README.md +++ b/omero/sysadmins/unix/walkthrough/README.md @@ -2,13 +2,12 @@ Example OMERO Linux install scripts =================================== This directory contains examples of installing OMERO on clean -Ubuntu 22.04, Ubuntu 20.04, Debian 10, Rocky Linux 9 64-bit systems, see +Ubuntu 22.04, Ubuntu 20.04, Rocky Linux 9 64-bit systems, see https://docs.openmicroscopy.org/latest/omero/sysadmins/unix/server-installation.html Copy the files from this directory, then run one of the install scripts, - bash install_ubuntu2204.sh - bash install_debian10.sh + bash install_ubuntu2204.sh bash install_ubuntu2004.sh bash install_rocky9.sh diff --git a/omero/sysadmins/unix/walkthrough/setup_centos_selinux.sh b/omero/sysadmins/unix/walkthrough/setup_centos_selinux.sh deleted file mode 100644 index e5e449dfdc..0000000000 --- a/omero/sysadmins/unix/walkthrough/setup_centos_selinux.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -if [ $(getenforce) != Disabled ]; then - yum -y install policycoreutils-python - setsebool -P httpd_read_user_content 1 - setsebool -P httpd_enable_homedirs 1 - semanage port -a -t http_port_t -p tcp 4080 -fi diff --git a/omero/sysadmins/unix/walkthrough/walkthrough_debian10.sh b/omero/sysadmins/unix/walkthrough/walkthrough_debian10.sh deleted file mode 100644 index 34e54c22a2..0000000000 --- a/omero/sysadmins/unix/walkthrough/walkthrough_debian10.sh +++ /dev/null @@ -1,122 +0,0 @@ -#!/bin/bash -set -e -u -x - -#start-step01: As root, install dependencies -apt-get update - -apt-get -y install unzip wget bc - -# to be installed if daily cron tasks are configured -apt-get -y install cron - -# install Java -apt-get -y install default-jre - -# install dependencies - -apt-get -y install\ - python3 \ - python3-venv -#end-step01 -# install Ice -#start-recommended-ice -apt-get update && \ -apt-get install -y -q \ -build-essential \ -db5.3-util \ -libbz2-dev \ -libdb++-dev \ -libdb-dev \ -libexpat-dev \ -libmcpp-dev \ -libssl-dev \ -mcpp \ -zlib1g-dev - -cd /tmp -wget -q https://github.com/ome/zeroc-ice-debian10/releases/download/0.1.0/ice-3.6.5-0.1.0-debian10-amd64.tar.gz -tar xf ice-3.6.5-0.1.0-debian10-amd64.tar.gz -mv ice-3.6.5-0.1.0 ice-3.6.5 -mv ice-3.6.5 /opt -echo /opt/ice-3.6.5/lib/x86_64-linux-gnu > /etc/ld.so.conf.d/ice-x86_64.conf -ldconfig -#end-recommended-ice - - -# install Postgres -apt-get install -y postgresql-11 -service postgresql start -#end-step01 - -#start-step02: As root, create a local omero-server system user and directory for the OMERO repository -useradd -mr omero-server -# Give a password to the omero user -# e.g. passwd omero-server -chmod a+X ~omero-server - -mkdir -p "$OMERO_DATA_DIR" -chown omero-server "$OMERO_DATA_DIR" -#end-step02 -#start-step03: As root, create a database user and a database -echo "CREATE USER $OMERO_DB_USER PASSWORD '$OMERO_DB_PASS'" | su - postgres -c psql -su - postgres -c "createdb -E UTF8 -O '$OMERO_DB_USER' '$OMERO_DB_NAME'" - -psql -P pager=off -h localhost -U "$OMERO_DB_USER" -l -#end-step03 - -#start-step03bis: As root, create a virtual env and install dependencies -# Create a virtual env -python3 -mvenv $VENV_SERVER - -# Upgrade pip -$VENV_SERVER/bin/pip install --upgrade pip - -# Install the Ice Python binding -$VENV_SERVER/bin/pip install https://github.com/ome/zeroc-ice-debian10/releases/download/0.1.0/zeroc_ice-3.6.5-cp37-cp37m-linux_x86_64.whl - -# Install server dependencies -$VENV_SERVER/bin/pip install omero-server -#end-step03bis - -#start-step04-pre: As root, download the OMERO.server -#start-release-ice36 -cd /opt/omero/server -SERVER=https://downloads.openmicroscopy.org/omero/5.6/server-ice36.zip -wget -q $SERVER -O OMERO.server-ice36.zip -unzip -q OMERO.server* -#end-release-ice36 -# change ownership of the folder -chown -R omero-server OMERO.server-* -ln -s OMERO.server-*/ OMERO.server -#end-step04-pre - -#start-step04: As the omero-server system user, configure it -#start-copy-omeroscript -cp settings.env step04_all_omero.sh setup_omero_db.sh ~omero -#end-copy-omeroscript -omero config set omero.data.dir "$OMERO_DATA_DIR" -omero config set omero.db.name "$OMERO_DB_NAME" -omero config set omero.db.user "$OMERO_DB_USER" -omero config set omero.db.pass "$OMERO_DB_PASS" -omero db script -f $OMERODIR/db.sql --password "$OMERO_ROOT_PASS" -psql -h localhost -U "$OMERO_DB_USER" "$OMERO_DB_NAME" < $OMERODIR/db.sql -#end-step04 -#start-seclevel -omero certificates -#end-seclevel - - -#start-step06: As root, run the scripts to start OMERO automatically -cp omero-server-init.d /etc/init.d/omero-server -chmod a+x /etc/init.d/omero-server - -update-rc.d -f omero-server remove -update-rc.d -f omero-server defaults 98 02 -#end-step06 - -#start-step07: As root, secure OMERO -chmod go-rwx $OMERODIR/etc $OMERODIR/var - -# Optionally restrict access to the OMERO data directory -# chmod go-rwx "$OMERO_DATA_DIR" -#end-step07