--- doc/build/ubuntu16LTS_install.frag 2021/01/09 03:26:20 1.5 +++ doc/build/ubuntu16LTS_install.frag 2024/08/08 21:22:21 1.8 @@ -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 @@ -137,13 +138,29 @@ sudo apt-get updateExecute:
sudo apt-get install python-software-properties -sudo apt-add-repository 'deb http://install.loncapa.org/ubuntu xenial main' +sudo add-apt-repository 'deb http://install.loncapa.org/ubuntu xenial main'You can display which repositories are currently enabled by using:
-sudo apt-cache policy +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 multiverseInstall prerequisites
Execute:
@@ -158,13 +175,15 @@ This may take some minutes due to LON-CA sudo mysql_secure_installation
Press ENTER to skip set up of the validate password plugin.
-Although you will be prompted to set a password for the MySQL root user, in Ubuntu systems running MySQL 5.7 (and later),
-the root user is authenticated by the auth_socket plugin by default, so
-
-Answer “Y” (yes) to the prompts to: (a) remove the anonymous user, (b) restrict root user access to the local machine,
+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.
--In Ubuntu systems running MySQL 5.7 (and later), the root user is authenticated by the auth_socket plugin by default.
Execute:
@@ -202,7 +221,7 @@ used to check the configuration of a sysThe 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:
-To configure and install LON-CAPA, become root and execute the following commands: +To configure and install LON-CAPA execute the following commands:
-sudo -i -cd /root/loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.2') -./UPDATE +cd ../loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.2') +sudo ./UPDATE
You will need to enter the LON-CAPA configuration information you determined @@ -285,18 +304,19 @@ invoked below requires that you enter th Replace USERNAME and DOMAIN with an appropriate username and your domain.
-cd /root/loncapa-X.Y.Z/loncom/build -perl make_domain_coordinator.pl USERNAME DOMAIN +cd loncom/build +sudo perl make_domain_coordinator.pl USERNAME DOMAIN +cd
The LON-CAPA network services take a moment to start. Most misconfigurations -will be apparent at this step. Lastly, exit from root status to resume use of your regular account. +will be apparent at this step.
-/etc/init.d/loncontrol start -/etc/init.d/apache2 restart +sudo /etc/init.d/loncontrol start +sudo service apache2 restart exit
@@ -316,7 +336,10 @@ coordinator. Congratulations!
If you've followed the steps above and the server doesn't start or you think -there's something wrong, please send a help request to the MSU LON-CAPA group. If there were errors in installation of the dependency .deb packages or errors during the +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 .deb packages 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.