Diff for /doc/build/debian12_install.frag between versions 1.1 and 1.3

version 1.1, 2024/06/15 17:43:13 version 1.3, 2024/06/30 20:30:48
Line 68  There are a few steps that require comme Line 68  There are a few steps that require comme
        If you decide to customize partitioning, the following may be useful to know.         If you decide to customize partitioning, the following may be useful to know.
        LON-CAPA resource files are stored in the /home directory, so the         LON-CAPA resource files are stored in the /home directory, so the
        majority of the disk space should be allocated here.  If you have 20 GB          majority of the disk space should be allocated here.  If you have 20 GB 
        of space for Debian, /home should receive at least 10 to 12 GB.           of space for Debian, /home should receive at least 10 to 12 GB. 
        Since MySQL uses the /var filesystem to store its databases you should         Since MySQL uses the /var filesystem to store its databases you should
        have at least 4 gigs of space available on /var.  Be sure to          have at least 4 gigs of space available on /var.  Be sure to 
        include adequate swap space.  A minimum is 512 Megs, but you should         include adequate swap space.  A minimum is 512 Megs, but you should
Line 82  There are a few steps that require comme Line 82  There are a few steps that require comme
    <dd>The base system will be installed. Once that is complete you will have the option to select additional software collections. By default, "standard system utilities" will be checked -- leave that checked, and (optionally) also check SSH Server, if you plan to ssh into your Debian 12 Server/VM from another machine.</dd>     <dd>The base system will be installed. Once that is complete you will have the option to select additional software collections. By default, "standard system utilities" will be checked -- leave that checked, and (optionally) also check SSH Server, if you plan to ssh into your Debian 12 Server/VM from another machine.</dd>
 </dl>  </dl>
 <p>  <p>
 Finish installing your server, reboot it, and log in with the username you created during installation.    Finish installing your server, reboot it, and log in with the username you created during installation.
 </p>  </p>
 <h3>Enabling sudo>/h3>   <h3>Enabling sudo>/h3>
 <p>If you wish to allow the username created during installation to have administration privileges using sudo, use su to become root and execute the following, replacing <i>&lt;username&gt;<i> with that specific username:  <p>If you wish to allow the username created during installation to have administration privileges using sudo, use su to become root and execute the following, replacing <i>&lt;username&gt;<i> with that specific username:
 </p>  </p>
 <pre>  <pre>
Line 100  Use ufw to allow incoming traffic for th Line 100  Use ufw to allow incoming traffic for th
 ssh, www, https  ssh, www, https
 </p>  </p>
 <p>Check if ufw is installed</p>  <p>Check if ufw is installed</p>
 <pre>sudo dpkg-query -s gpg |grep Status</pre>  <pre>sudo dpkg-query -s ufw |grep Status</pre>
 <p>If the result is not: <i>Status: install ok installed</i>, then install it:  <p>If the result is not: <i>Status: install ok installed</i>, then install it:
 <pre>sudo apt-get install ufw</pre>  <pre>sudo apt-get install ufw</pre>
 <p>Configure ufw by executing the following:</p>  <p>Configure ufw by executing the following:</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 systemctl stop systemd-timesyncd Line 135  sudo systemctl stop systemd-timesyncd
 sudo systemctl disable systemd-timesyncd  sudo systemctl disable systemd-timesyncd
 sudo apt-get remove systemd-timesyncd  sudo apt-get remove systemd-timesyncd
 sudo apt-get install chrony  sudo apt-get install chrony
   sudo systemctl start chrony
   sudo systemctl enable chrony
 </pre>  </pre>
 <h2>4. <a name="upd">Update your system</a></h2>  <h2>4. <a name="upd">Update your system</a></h2>
 <p>  <p>
Line 152  If kernel packages were updated, reboot Line 153  If kernel packages were updated, reboot
 <h3>Import the LON-CAPA encryption key</h3>  <h3>Import the LON-CAPA encryption key</h3>
 <p>Check if gpg is installed</p>  <p>Check if gpg is installed</p>
 <pre>sudo dpkg-query -s gpg |grep Status</pre>  <pre>sudo dpkg-query -s gpg |grep Status</pre>
 <p>If the result is not: <i>Status: install ok installed</i>, then install it:  <p>If the result is not: <i>Status: install ok installed</i>, then install it:</p>
 <pre>sudo apt-get install gpg</pre>  <pre>sudo apt-get install gpg</pre>
 <p>Check if wget is installed</p>  <p>Check if wget is installed</p>
 <pre>sudo dpkg-query -s wget |grep Status</pre>  <pre>sudo dpkg-query -s wget |grep Status</pre>
 <p>If the result is not: <i>Status: install ok installed</i>, then install it:  <p>If the result is not: <i>Status: install ok installed</i>, then install it:</p>
 <pre>sudo apt-get install wget</pre>  <pre>sudo apt-get install wget</pre>
   <p>Check if /etc/apt/keyrings directory exists by executing:</p>
   <pre>
   ls -al /etc/apt/keyrings
   </pre>
   <p>If it is missing, create it by executing:</p>
   <pre>
   sudo mkdir /etc/apt/keyrings
   </pre>
 <p> Execute: </p>  <p> Execute: </p>
 <pre>  <pre>
 wget -q -O - https://install.loncapa.org/versions/debian/APT-GPG-KEY-loncapa.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/loncapa.gpg > /dev/null  wget -q -O - https://install.loncapa.org/versions/debian/APT-GPG-KEY-loncapa.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/loncapa.gpg > /dev/null
Line 182  deb http://deb.debian.org bookworm-updat Line 191  deb http://deb.debian.org bookworm-updat
 <h3>Install prerequisites</h3>  <h3>Install prerequisites</h3>
 <p> Execute: </p>  <p> Execute: </p>
 <pre>  <pre>
   sudo apt-get update
 sudo apt-get install loncapa-prerequisites  sudo apt-get install loncapa-prerequisites
 </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.
Line 274  for it to function at all.  Below is a l Line 284  for it to function at all.  Below is a l
       serious trouble. On a laptop, make this <tt>root@localhost</tt>.        serious trouble. On a laptop, make this <tt>root@localhost</tt>.
   </dd>    </dd>
   <dt>Support email address</dt>    <dt>Support email address</dt>
   <dd>If you enter an e-mail address here, then users of the system      <dd>If you enter an e-mail address here, then users of the system 
       will be able to click an "Ask Helpdesk" link in the system to         will be able to click an "Ask Helpdesk" link in the system to 
       display a web form which they will complete to request support from        display a web form which they will complete to request support from
       your institution's helpdesk. On form submission the contents         your institution's helpdesk. On form submission the contents 
       will be sent to the e-mail address you specify.         will be sent to the e-mail address you specify.
   </dd>    </dd>
 </dl>  </dl>
   

Removed from v.1.1  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>