--- doc/build/ubuntu16LTS_install.frag 2017/06/12 20:56:13 1.2 +++ doc/build/ubuntu16LTS_install.frag 2024/08/08 21:22:21 1.8 @@ -56,7 +56,7 @@ DHCP is not supported.

3. Ubuntu 16.04 LTS installation

-Installing Ubuntu Linux is easy. +Installing Ubuntu Linux is straightforward. Documentation is available from https://help.ubuntu.com/community/Installation/ Most of the installation screens are self explanatory. @@ -94,6 +94,7 @@ Use ufw to allow incoming traffic for th ssh, www, https

+sudo apt-get install ufw
 sudo ufw default deny
 sudo ufw enable
 sudo ufw allow ssh
@@ -126,13 +127,6 @@ sudo apt-get upgrade
 

If kernel packages were updated, reboot your system before continuing with the installation.

-

-Add LON-CAPA ubuntu repository to your /etc/apt/sources.list file. -

-
-sudo apt-get install python-software-properties
-sudo apt-add-repository 'deb http://install.loncapa.org/ubuntu xenial main'
-

5. Installing LON-CAPA

Import the LON-CAPA encryption key

@@ -140,6 +134,34 @@ wget http://install.loncapa.org/versions
 sudo apt-key add APT-GPG-KEY-loncapa.asc
 sudo apt-get update
 
+

Add LON-CAPA ubuntu repository to /etc/apt/sources.list

+

Execute:

+
+sudo apt-get install python-software-properties
+sudo add-apt-repository 'deb http://install.loncapa.org/ubuntu xenial main'
+
+

+You can display which repositories are currently enabled by using: +

+
+grep '^deb ' /etc/apt/sources.list |grep ' xenial '
+
+

The output should contain:

+
+deb http://us.archive.ubuntu.com/ubuntu xenial main
+deb http://us.archive.ubuntu.com/ubuntu xenial universe
+deb http://install.loncapa.org/ubuntu xenial main
+
+

If the Ubuntu universe repository is absent it can be added using:

+
+sudo add-apt-repository universe
+
+

If other Ubuntu repositories, e.g., restricted and multiverse are enabled, +you can disable them, as they are not needed for LON-CAPA, by using:

+
+sudo add-apt-repository --remove restricted
+sudo add-apt-repository --remove multiverse
+

Install prerequisites

Execute:

@@ -147,12 +169,29 @@ sudo apt-get install loncapa-prerequisit
 

This may take some minutes due to LON-CAPA's large number of dependencies.

-

Set MPM mode for Apache web server and enable use of cgi scripts

+

Secure MySQL

+

Execute:

+
+sudo mysql_secure_installation
+

+Press ENTER to skip set up of the validate password plugin.
+In Ubuntu systems running MySQL 5.7 (and later), by default the MySQL root +user is authenticated by the auth_socket plugin which restricts root access +to the local machine (and to sudo). If you prefer to set a password for the +MySQL root user, you can do so, and user that instead of the default. +

+Answer “Y” (yes) to the prompts to: +(a) remove the anonymous user, +(b) restrict root user access to the local machine, +and (c) remove the test database.

+

Set MPM mode for Apache web server and enable use of cgi scripts and webDAV

Execute:

 sudo a2dismod mpm_event
 sudo a2enmod mpm_prefork
 sudo a2enmod cgi
+sudo a2enmod dav
+sudo a2enmod dav_fs
 

Retrieve and execute LON-CAPA setup program

@@ -182,7 +221,7 @@ used to check the configuration of a sys

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. +Once a choice has been entered for all ten possible actions, required changes will be made.

The possible actions are: