[LON-CAPA-cvs] cvs: doc /build ubuntu12LTS_install.frag

raeburn raeburn at source.lon-capa.org
Tue Mar 16 23:21:24 EDT 2021


raeburn		Wed Mar 17 03:21:24 2021 EDT

  Modified files:              
    /doc/build	ubuntu12LTS_install.frag 
  Log:
  - Recommend using mysql_secure_installation
  - Prepend individual commands with sudo instead of using sudo -i
  
  
Index: doc/build/ubuntu12LTS_install.frag
diff -u doc/build/ubuntu12LTS_install.frag:1.3 doc/build/ubuntu12LTS_install.frag:1.4
--- doc/build/ubuntu12LTS_install.frag:1.3	Sat Jan  9 03:26:20 2021
+++ doc/build/ubuntu12LTS_install.frag	Wed Mar 17 03:21:24 2021
@@ -94,6 +94,7 @@
 ssh, www, https
 </p>
 <pre>
+sudo apt-get install ufw
 sudo ufw default deny
 sudo ufw enable
 sudo ufw allow ssh
@@ -152,6 +153,15 @@
 </pre><p>
 This may take some minutes due to LON-CAPA's large number of dependencies.
 </p>
+<h3>Secure MySQL</h3>
+<p> Execute: </p>
+<pre>
+sudo mysql_secure_installation
+</pre><p>
+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.</p>
 <h3>Retrieve and execute LON-CAPA setup program</h3>
 <p>
 Retrieve the LON-CAPA setup script and dependencies with the following command:
@@ -242,12 +252,11 @@
 
 <h3>Configuring LON-CAPA</h3>
 <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>
 <pre>
-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
 </pre>
 <p>
 You will need to enter the LON-CAPA configuration information you determined 
@@ -263,18 +272,19 @@
 Replace USERNAME and DOMAIN with an appropriate username and your domain.
 </p>
 <pre>
-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
 </pre>
 
 <h2>7. <a name="sts">Start/Restart Services</a></h2>
 <p>
 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>
 <pre>
-/etc/init.d/loncontrol start
-/etc/init.d/apache2 restart
+sudo /etc/init.d/loncontrol start
+sudo service apache2 restart
 exit
 </pre>
 <p>




More information about the LON-CAPA-cvs mailing list