version 1.2, 2017/06/12 20:56:13
|
version 1.6, 2021/03/17 04:47:44
|
Line 56 DHCP is <em>not</em> supported.
|
Line 56 DHCP is <em>not</em> supported.
|
|
|
<h2>3. <a name="lin">Ubuntu 16.04 LTS installation</a></h2> |
<h2>3. <a name="lin">Ubuntu 16.04 LTS installation</a></h2> |
<p> |
<p> |
Installing Ubuntu Linux is easy. |
Installing Ubuntu Linux is straightforward. |
Documentation is available from |
Documentation is available from |
<a href="https://help.ubuntu.com/community/Installation">https://help.ubuntu.com/community/Installation/</a> |
<a href="https://help.ubuntu.com/community/Installation">https://help.ubuntu.com/community/Installation/</a> |
Most of the installation screens are self explanatory. |
Most of the installation screens are self explanatory. |
Line 94 Use ufw to allow incoming traffic for th
|
Line 94 Use ufw to allow incoming traffic for th
|
ssh, www, https |
ssh, www, https |
</p> |
</p> |
<pre> |
<pre> |
|
sudo apt-get install ufw |
sudo ufw default deny |
sudo ufw default deny |
sudo ufw enable |
sudo ufw enable |
sudo ufw allow ssh |
sudo ufw allow ssh |
Line 126 sudo apt-get upgrade
|
Line 127 sudo apt-get upgrade
|
<p> |
<p> |
If kernel packages were updated, reboot your system before continuing with the installation. |
If kernel packages were updated, reboot your system before continuing with the installation. |
</p> |
</p> |
<p> |
|
Add LON-CAPA ubuntu repository to your /etc/apt/sources.list file. |
|
</p> |
|
<pre> |
|
sudo apt-get install python-software-properties |
|
sudo apt-add-repository 'deb http://install.loncapa.org/ubuntu xenial main' |
|
</pre> |
|
<h2>5. <a name="ilc">Installing LON-CAPA</a></h2> |
<h2>5. <a name="ilc">Installing LON-CAPA</a></h2> |
<h3>Import the LON-CAPA encryption key</h3> |
<h3>Import the LON-CAPA encryption key</h3> |
<pre> |
<pre> |
Line 140 wget http://install.loncapa.org/versions
|
Line 134 wget http://install.loncapa.org/versions
|
sudo apt-key add APT-GPG-KEY-loncapa.asc |
sudo apt-key add APT-GPG-KEY-loncapa.asc |
sudo apt-get update |
sudo apt-get update |
</pre> |
</pre> |
|
<h3>Add LON-CAPA ubuntu repository to /etc/apt/sources.list</h3> |
|
<p> Execute: </p> |
|
<pre> |
|
sudo apt-get install python-software-properties |
|
sudo apt-add-repository 'deb http://install.loncapa.org/ubuntu xenial main' |
|
</pre> |
|
<p> |
|
You can display which repositories are currently enabled by using: |
|
</p> |
|
<pre> |
|
sudo apt-cache policy |
|
</pre> |
<h3>Install prerequisites</h3> |
<h3>Install prerequisites</h3> |
<p> Execute: </p> |
<p> Execute: </p> |
<pre> |
<pre> |
Line 147 sudo apt-get install loncapa-prerequisit
|
Line 153 sudo apt-get install loncapa-prerequisit
|
</pre><p> |
</pre><p> |
This may take some minutes due to LON-CAPA's large number of dependencies. |
This may take some minutes due to LON-CAPA's large number of dependencies. |
</p> |
</p> |
<h3>Set MPM mode for Apache web server and enable use of cgi scripts</h3> |
<h3>Secure MySQL</h3> |
|
<p> Execute: </p> |
|
<pre> |
|
sudo mysql_secure_installation |
|
</pre><p> |
|
Press ENTER to skip set up of the validate password plugin.<br /> |
|
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. |
|
</p><p> |
|
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.</p> |
|
<h3>Set MPM mode for Apache web server and enable use of cgi scripts and webDAV</h3> |
<p>Execute: </p> |
<p>Execute: </p> |
<pre> |
<pre> |
sudo a2dismod mpm_event |
sudo a2dismod mpm_event |
sudo a2enmod mpm_prefork |
sudo a2enmod mpm_prefork |
sudo a2enmod cgi |
sudo a2enmod cgi |
|
sudo a2enmod dav |
|
sudo a2enmod dav_fs |
</pre> |
</pre> |
<h3>Retrieve and execute LON-CAPA setup program</h3> |
<h3>Retrieve and execute LON-CAPA setup program</h3> |
<p> |
<p> |
Line 244 for it to function at all. Below is a l
|
Line 267 for it to function at all. Below is a l
|
|
|
<h3>Configuring LON-CAPA</h3> |
<h3>Configuring LON-CAPA</h3> |
<p> |
<p> |
To configure and install LON-CAPA, become root and execute the following commands: |
To configure and install LON-CAPA execute the following commands: |
</p> |
</p> |
<pre> |
<pre> |
sudo -i |
cd ../loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.2') |
cd /root/loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.12.0') |
sudo ./UPDATE |
./UPDATE |
|
</pre> |
</pre> |
<p> |
<p> |
You will need to enter the LON-CAPA configuration information you determined |
You will need to enter the LON-CAPA configuration information you determined |
Line 265 invoked below requires that you enter th
|
Line 287 invoked below requires that you enter th
|
Replace USERNAME and DOMAIN with an appropriate username and your domain. |
Replace USERNAME and DOMAIN with an appropriate username and your domain. |
</p> |
</p> |
<pre> |
<pre> |
cd /root/loncapa-X.Y.Z/loncom/build |
cd loncom/build |
perl make_domain_coordinator.pl USERNAME DOMAIN |
sudo perl make_domain_coordinator.pl USERNAME DOMAIN |
|
cd |
</pre> |
</pre> |
|
|
<h2>7. <a name="sts">Start/Restart Services</a></h2> |
<h2>7. <a name="sts">Start/Restart Services</a></h2> |
<p> |
<p> |
The LON-CAPA network services take a moment to start. Most misconfigurations |
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. |
</p> |
</p> |
<pre> |
<pre> |
/etc/init.d/loncontrol start |
sudo /etc/init.d/loncontrol start |
/etc/init.d/apache2 restart |
sudo service apache2 restart |
exit |
exit |
</pre> |
</pre> |
<p> |
<p> |