--- doc/build/ubuntu12LTS_install.frag 2013/12/16 13:44:33 1.2 +++ doc/build/ubuntu12LTS_install.frag 2021/03/17 03:21:24 1.4 @@ -56,7 +56,7 @@ DHCP is not supported.

3. Ubuntu 12.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 precise main'
-

5. Installing LON-CAPA

Import the LON-CAPA encryption key

@@ -140,6 +134,18 @@ 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 apt-add-repository 'deb http://install.loncapa.org/ubuntu precise main'
+
+

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

+
+sudo apt-cache policy
+

Install prerequisites

Execute:

@@ -147,6 +153,15 @@ sudo apt-get install loncapa-prerequisit
 

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

+

Secure MySQL

+

Execute:

+
+sudo mysql_secure_installation
+

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

Retrieve and execute LON-CAPA setup program

Retrieve the LON-CAPA setup script and dependencies with the following command: @@ -237,12 +252,11 @@ for it to function at all. Below is a l

Configuring LON-CAPA

-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.0')
-./UPDATE
+cd ../loncapa-X.Y.Z  (X.Y.Z should correspond to a version number like '2.11.0')
+sudo ./UPDATE
 

You will need to enter the LON-CAPA configuration information you determined @@ -258,18 +272,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
 

7. Start/Restart Services

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