version 1.3, 2021/03/09 13:05:59
|
version 1.5, 2022/03/26 19:00:51
|
Line 93 Use ufw to allow incoming traffic for th
|
Line 93 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 136 sudo apt-key add APT-GPG-KEY-loncapa.asc
|
Line 137 sudo apt-key add APT-GPG-KEY-loncapa.asc
|
<p> Execute: </p> |
<p> Execute: </p> |
<pre> |
<pre> |
sudo apt-get install software-properties-common |
sudo apt-get install software-properties-common |
sudo apt-add-repository 'deb http://install.loncapa.org/ubuntu focal main' |
sudo add-apt-repository 'deb http://install.loncapa.org/ubuntu focal main' |
</pre> |
</pre> |
<p> |
<p> |
You can display which repositories are currently enabled by using: |
You can display which repositories are currently enabled by using: |
</p> |
</p> |
<pre> |
<pre> |
sudo apt-cache policy |
grep '^deb ' /etc/apt/sources.list |grep ' focal ' |
|
</pre> |
|
<p>The output should contain:</p> |
|
<pre> |
|
deb http://us.archive.ubuntu.com/ubuntu focal main |
|
deb http://us.archive.ubuntu.com/ubuntu focal universe |
|
deb http://install.loncapa.org/ubuntu focal main |
|
</pre> |
|
<p>If the Ubuntu universe repository is absent it can be added using:</p> |
|
<pre> |
|
sudo add-apt-repository universe |
|
</pre> |
|
<p>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:</p> |
|
<pre> |
|
sudo add-apt-repository --remove restricted |
|
sudo add-apt-repository --remove multiverse |
</pre> |
</pre> |
<h3>Install prerequisites</h3> |
<h3>Install prerequisites</h3> |
<p> Execute: </p> |
<p> Execute: </p> |
Line 180 execute the setup script with the follow
|
Line 197 execute the setup script with the follow
|
<pre> |
<pre> |
cd installation |
cd installation |
sudo ./install.pl |
sudo ./install.pl |
|
|
</pre> |
</pre> |
<p> |
<p> |
The script is used to prepare a Linux system to run LON-CAPA, and can also be |
The script is used to prepare a Linux system to run LON-CAPA, and can also be |
Line 253 for it to function at all. Below is a l
|
Line 269 for it to function at all. Below is a l
|
To configure and install LON-CAPA, execute the following commands: |
To configure and install LON-CAPA, execute the following commands: |
</p> |
</p> |
<pre> |
<pre> |
cd loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.3') |
cd ../loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.3') |
sudo ./UPDATE |
sudo ./UPDATE |
</pre> |
</pre> |
<p> |
<p> |
Line 278 cd
|
Line 294 cd
|
<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> |
sudo /home/httpd/perl/loncontrol start |
sudo /home/httpd/perl/loncontrol start |
sudo systemctl start apache2 |
sudo systemctl restart apache2 |
exit |
exit |
</pre> |
</pre> |
<p> |
<p> |