From raeburn at source.lon-capa.org Mon Oct 7 11:33:28 2019
From: raeburn at source.lon-capa.org (raeburn)
Date: Mon, 07 Oct 2019 15:33:28 -0000
Subject: [LON-CAPA-cvs] cvs: doc /build RHEL8_install.frag
Message-ID:
This document guides you through the process of setting up a new LON-CAPA
server or virtual machine running Red Hat Enterprise Linux 8 with a minimum of packages installed.
The server or virtual machine will be configured solely as a LON-CAPA server and will be
expected to have no other services running. Your server or virtual machine is expected to have
a fast connection to the internet.
More information is available at
http://install.lon-capa.org/.
Installing Linux is straightforward.
You will be required to log in to the machine and execute
some routine Unix commands. Familiarity with the Apache web server, mod_perl,
perl, and MySQL are not required to install and run LON-CAPA.
The installation process takes the following steps:
RHEL8 downloads are available from Red Hat:
http://redhat.com/.
Either download the Boot ISO or the RHEL 8 binary DVD ISO
You will need to know the following network settings for your installation.
Note:You must have a static IP address to use LON-CAPA.
DHCP is not supported.
Installing Red Hat Enterprise Linux is straightforward.
Documentation is available from
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/
Most of the installation screens are self explanatory.
There are a few steps that require comment and are dealt with below.
Finish installing your server, reboot it, and log in as root.
LON-CAPA can use Firewalld, available by default for CentOS 8. Enable access to standard
web server ports (i.e., http and https):
You will need a Red Hat subscription in order to have access to Red Hat updates.
Your institution may have a Red Hat site license, and may maintain a Red Hat Satellite
service which can be used to access updates. If not, you can obtain a free 30-day
evaluation license from Red Hat. Once that has expired you will need to purchase a
subscription. You can use the following comand to register your server/VM with the
Red Hat account you created:
Once you have registered your server/VM you can than associate entitlements available
from your subscription with your server/VM. The following command will show which
repositories are enabled:
You will need the "rhel-8-for-x86_64-appstream-rpms" and "rhel-8-for-x86_64-baseos-rpms"
repos enabled. If neither are enabled, enable them using:
Update your system to the latest versions of the system software using dnf.
If the kernel was updated, reboot your system before continuing with the installation.
Enable access to the EPEL repository
Enable the "codeready-builder-for-rhel-8-x86_64-rpms" repository.
Install the loncapa.repo file from the LON-CAPA install site:
Verify the required repositories are enabled
The list of enabled repos should be as follows:
The default RHEL8 installation includes SELinux enabled. Until such time as an SELinux security policy has been created for LON-CAPA, SELinux should be disabled.
Retrieve the loncapa_selinux_config file from the LON-CAPA install site:
Install the selinux config file
Execute:
This may take some minutes due to LON-CAPA's large number of dependencies.
Retrieve the LON-CAPA setup with the following command:
Extract the archive with the following command:
This creates a directory named installation. Change to it and
execute the setup script with the following commands:
The script is used to prepare a Linux system to run LON-CAPA, and can also be
used to check the configuration of a system on which LON-CAPA has already been installed. Typically, though, you will run this script only once, when you first install LON-CAPA.
The script will analyze your system to determine which actions are recommended. The script will then prompt you to choose the actions you would like taken.
Once a choice has been entered for all nine possible actions, required changes will be made.
The possible actions are:
LON-CAPA requires a number of identifying parameters to be set in order
for it to function at all. Below is a list with descriptions.
To configure and install LON-CAPA, execute the following commands:
You will need to enter the LON-CAPA configuration information you determined
in the previous section.
You will need at least one user at your site who has the role of
'domain coordinator'. This user creates accounts for other users and
grants them additional privileges. The make_domain_coordinator.pl script
invoked below requires that you enter the user's password.
Feel free to use the "passwd username" command to change it later.
Replace USERNAME and DOMAIN with an appropriate user name and your domain.
If installing a library server and an access server on separate machines or VMs
you need only run make_domain_coordinator.pl on the library server.
The LON-CAPA network services take a moment to start. Most misconfigurations
will be apparent at this step.
If you receive warnings about missing perl modules, when starting the httpd service
please make sure that the LONCAPA-prerequisites rpm is installed using this command:
If it is not installed, ensure that the required Linux repositories are enabled (see
the "Set up access to package repositories" section above), then install it:
If you still have errors, please contact the LON-CAPA Helpdesk: helpdesk at loncapa.org
Ensure that LON-CAPA network services and the httpd service are set to start on boot:
Point a web browser at your new machine and log in as the domain
coordinator. Congratulations!
If you've followed the steps above and the server doesn't start or you think
there's something wrong, please contact the LON-CAPA helpdesk.
Installation/update support is available from: helpdesk at loncapa.org
(replace " at " with @).
If there were errors in installation of the dependency RPMs or errors during the
automatic setup, please send us as much information as possible.
If some part of this document is unclear please let us know.
-Check the required repositories are enabled
+Install the loncapa.repo file from the LON-CAPA install site:
+
+Verify the required repositories are enabled:
This document guides you through the process of setting up a new LON-CAPA
server or virtual machine running Oracle Linux 8 with a minimum of packages installed.
The server or virtual machine will be configured solely as a LON-CAPA server and will be
expected to have no other services running. Your server or virtual machine is expected to have
a fast connection to the internet.
More information is available at
http://install.lon-capa.org/.
Installing Linux is straightforward.
You will be required to log in to the machine and execute
some routine Unix commands. Familiarity with the Apache web server, mod_perl,
perl, and MySQL are not required to install and run LON-CAPA.
The installation process takes the following steps:
Oracle Linux 8 isos can be obtained from links included on the
Oracle Linux download page.
You only need download either the Boot ISO or the Oracle Linux Release 8 x86 (64 bit) ISO.
You will need to know the following network settings for your installation.
Note: You must have a static IP address to use LON-CAPA.
DHCP is not supported.
Documentation is available from
https://docs.oracle.com/en/operating-systems/oracle-linux/8/
Most of the installation screens are self explanatory.
There are a few steps that require comment and are dealt with below.
Finish installing your server, reboot it, and log in as root.
LON-CAPA can use Firewalld, available by default for Oracle Linux 8. Enable access to standard
web server ports (i.e., http and https):
Update your system to the latest versions of the system software using dnf.
If the kernel was updated, reboot your system before continuing with the installation.
Enable access to the EPEL repository
Enable the Oracle Linux 8 CodeReady Builder repository
Install the loncapa.repo file from the LON-CAPA install site:
Verify the required repositories are enabled:
The list of enabled repos should be as follows:
The default Oracle Linux 8 installation includes SELinux enabled. Until such time as an SELinux security policy has been created for LON-CAPA, SELinux should be disabled.
Retrieve the loncapa_selinux_config file from the LON-CAPA install site:
Install the selinux config file
Execute:
This may take some minutes due to LON-CAPA's large number of dependencies.
Retrieve the LON-CAPA setup with the following command:
Extract the archive with the following command:
This creates a directory named installation.
Change to it and execute the setup script with the following commands:
The script is used to prepare a Linux system to run LON-CAPA, and can also be
used to check the configuration of a system on which LON-CAPA has already been installed. Typically, though, you will run this script only once, when you first install LON-CAPA.
The script will analyze your system to determine which actions are recommended. The script will then prompt you to choose the actions you would like taken.
Once a choice has been entered for all nine possible actions, required changes will be made.
The possible actions are:
LON-CAPA requires a number of identifying parameters to be set in order
for it to function at all. Below is a list with descriptions.
To configure and install LON-CAPA, execute the following commands:
You will need to enter the LON-CAPA configuration information you determined
in the previous section.
You will need at least one user at your site who has the role of
'domain coordinator'. This user creates accounts for other users and
grants them additional privileges. The make_domain_coordinator.pl script
invoked below requires that you enter the user's password.
Feel free to use the "passwd username" command to change it later.
Replace USERNAME and DOMAIN with an appropriate user name and your domain.
If installing a library server and an access server on separate machines or VMs
you need only run make_domain_coordinator.pl on the library server.
The LON-CAPA network services take a moment to start. Most misconfigurations
will be apparent at this step.
If you receive warnings about missing perl modules, when starting the httpd service
please make sure that the LONCAPA-prerequisites rpm is installed using this command:
If it is not installed, ensure that the required Linux repositories are enabled (see
the "Set up access to package repositories" section above), then install it:
If you still have errors, please contact the LON-CAPA Helpdesk: helpdesk at loncapa.org
Ensure that LON-CAPA network services and the httpd service are set to start on boot:
Point a web browser at your new machine and log in as the domain
coordinator. Congratulations!
If you've followed the steps above and the server doesn't start or you think
there's something wrong, please contact the LON-CAPA helpdesk.
Installation/update support is available from: helpdesk at loncapa.org
(replace " at " with @).
If there were errors in installation of the dependency RPMs or errors during the
automatic setup, please send us as much information as possible.
If some part of this document is unclear please let us know.
Installing LON-CAPA on a minimal Red Hat Enterprise Linux 8 System
Before you begin
Installation Overview
1. Obtain Red Hat Enterprise Linux 8
2. Determine Network Settings
3. Minimal Red Hat Enterprise Linux 8 Install
Firewall Configuration
systemctl enable firewalld
systemctl start firewalld
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --zone=public --permanent --add-service=https
sudo firewall-cmd --reload
4. Update your system
subscription-manager register
dnf repolist enabled
subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms
subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms
dnf update
Set up access to package repositories
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
wget -O /etc/yum.repos.d/loncapa.repo http://install.loncapa.org/versions/redhat/8/loncapa.repo
dnf repolist enabled
repo id repo name rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) *epel Extra Packages for Enterprise Linux 8 - x86_6 loncapa-updates-basearch CentOS 8 LON-CAPA x86_64 Updates loncapa-updates-noarch CentOS 8 LON-CAPA noarch Updates Install and enable a Mail Transfer Agent (MTA), e.g., postfix
dnf install postfix
systemctl enable postfix
systemctl start postfix
Configure SELinux
wget http://install.loncapa.org/versions/redhat/8/loncapa_selinux_config
mv /etc/selinux/config /etc/selinux/config.backup
mv loncapa_selinux_config /etc/selinux/config
reboot
5. Installing LON-CAPA
Install prerequisites
yum install LONCAPA-prerequisites
Retrieve and execute LON-CAPA setup program
wget http://install.loncapa.org/linux/install.tar
tar xf install.tar
cd installation
/install.pl
Determine LON-CAPA Settings
Domain names which include a departmental
abbreviation are not recommended as although LON-CAPA may start in
a single department, other departments frequently join subsequently.
For a domain name: 'msu' is a superior choice to 'msuphys' for example.
Configuring LON-CAPA
cd /root/loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.3')
/UPDATE
6. Creating a Domain Coordinator
cd /root/loncapa-X.Y.Z/loncom/build
perl make_domain_coordinator.pl USERNAME DOMAIN
7. Start/Restart Services
/etc/init.d/loncontrol start
systemctl start httpd
rpm -q LONCAPA-prerequisites rpm
dnf install LONCAPA-prerequisites
systemctl enable loncontrol
systemctl enable httpd
If things aren't working right
+wget -O /etc/yum.repos.d/loncapa.repo http://install.loncapa.org/versions/centos/8/loncapa.repo
+
+
dnf repolist enabled
@@ -148,7 +154,7 @@
AppStream CentOS-8 - AppStream BaseOS CentOS-8 - Base
-PowerTools CentOS-8 - PowerTools
+*epel Extra Packages for Enterprise Linux 8 - x86_6 *epel Extra Packages for Enterprise Linux 8 - x86_64 extras CentOS-8 - Extras loncapa-updates-basearch CentOS 8 LON-CAPA x86_64 Updates
From raeburn at source.lon-capa.org Mon Oct 7 14:10:32 2019
From: raeburn at source.lon-capa.org (raeburn)
Date: Mon, 07 Oct 2019 18:10:32 -0000
Subject: [LON-CAPA-cvs] cvs: doc /build oracle8_install.frag
Message-ID: loncapa-updates-noarch CentOS 8 LON-CAPA noarch Updates Installing LON-CAPA on a minimal Oracle Linux 8 System
Before you begin
Installation Overview
1. Obtain Oracle Linux 8
2. Determine Network Settings
3. Minimal Oracle Linux 8 Install
Firewall Configuration
systemctl enable firewalld
systemctl start firewalld
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --zone=public --permanent --add-service=https
sudo firewall-cmd --reload
4. Update your system
dnf update
Set up access to package repositories
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
cp -p /etc/yum.repos.d/oracle-linux-ol8.repo /etc/oracle-linux-ol8.repo.backup
wget -O /etc/yum.repos.d/oracle-linux-ol8.repo http://install.loncapa.org/versions/oracle/8/oracle8_yum.conf
wget -O /etc/yum.repos.d/loncapa.repo http://install.loncapa.org/versions/centos/8/loncapa.repo
dnf repolist enabled
repo id repo name *epel Extra Packages for Enterprise Linux 8 - x86_64 loncapa-updates-basearch Oracle Linux 8 LON-CAPA x86_64 Updates loncapa-updates-noarch Oracle Linux 8 LON-CAPA noarch Updates ol8_appstream Oracle Linux 8 Application Stream (x86_64) ol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64) ol8_codeready_builder Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported Install and enable a Mail Transfer Agent (MTA), e.g., postfix
dnf install postfix
systemctl enable postfix
systemctl start postfix
Configure SELinux
wget http://install.loncapa.org/versions/centos/8/loncapa_selinux_config
mv /etc/selinux/config /etc/selinux/config.backup
mv loncapa_selinux_config /etc/selinux/config
reboot
5. Installing LON-CAPA
Install prerequisites
dnf install LONCAPA-prerequisites
Retrieve and execute LON-CAPA setup program
wget http://install.loncapa.org/linux/install.tar
tar xf install.tar
cd installation
/install.pl
Determine LON-CAPA Settings
Domain names which include a departmental
abbreviation are not recommended as although LON-CAPA may start in
a single department, other departments frequently join subsequently.
For a domain name: 'msu' is a superior choice to 'msuphys' for example.
Configuring LON-CAPA
cd /root/loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.3')
/UPDATE
6. Creating a Domain Coordinator
cd /root/loncapa-X.Y.Z/loncom/build
perl make_domain_coordinator.pl USERNAME DOMAIN
7. Start/Restart Services
/etc/init.d/loncontrol start
systemctl start httpd
rpm -q LONCAPA-prerequisites rpm
dnf install LONCAPA-prerequisites
systemctl enable loncontrol
systemctl enable httpd
8. Log in to your LON-CAPA Machine
If things aren't working right
-LON-CAPA can use Firewalld, available by default for CentOS 8. Enable access to standard +LON-CAPA can use Firewalld, available by default for RHEL 8. Enable access to standard web server ports (i.e., http and https):
@@ -172,8 +172,8 @@rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) - *epel Extra Packages for Enterprise Linux 8 - x86_6 - loncapa-updates-basearch CentOS 8 LON-CAPA x86_64 Updates + loncapa-updates-noarch CentOS 8 LON-CAPA noarch Updates + loncapa-updates-basearch RHEL 8 LON-CAPA x86_64 Updates loncapa-updates-noarch RHEL 8 LON-CAPA noarch Updates Install and enable a Mail Transfer Agent (MTA), e.g., postfix
From raeburn at source.lon-capa.org Mon Oct 7 18:28:02 2019 From: raeburn at source.lon-capa.org (raeburn) Date: Mon, 07 Oct 2019 22:28:02 -0000 Subject: [LON-CAPA-cvs] cvs: doc /install/linux install.pl Message-ID:raeburn Mon Oct 7 22:28:02 2019 EDT Modified files: /doc/install/linux install.pl Log: - Support Oracle Linux 7. Index: doc/install/linux/install.pl diff -u doc/install/linux/install.pl:1.57 doc/install/linux/install.pl:1.58 --- doc/install/linux/install.pl:1.57 Sun Jul 7 23:36:03 2019 +++ doc/install/linux/install.pl Mon Oct 7 22:28:02 2019 @@ -77,7 +77,7 @@ &mt('Stopping execution.')."\n"; exit; } else { - print LOG '$Id: install.pl,v 1.57 2019/07/07 23:36:03 raeburn Exp $'."\n"; + print LOG '$Id: install.pl,v 1.58 2019/10/07 22:28:02 raeburn Exp $'."\n"; } # @@ -484,7 +484,7 @@ } elsif (-e '/usr/bin/system-config-language') { $command = 'system-config-language'; } elsif (-e '/usr/bin/localectl') { - $command = 'localectl set-locale en_US.UTF-8'; + $command = '/usr/bin/localectl set-locale LANG=en_US.UTF-8'; } else { $command = 'No standard command found'; }