--- doc/build/debian12_install.frag 2024/06/15 17:43:13 1.1 +++ doc/build/debian12_install.frag 2024/08/08 21:22:21 1.8 @@ -68,7 +68,7 @@ There are a few steps that require comme 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 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 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 @@ -82,17 +82,17 @@ There are a few steps that require comme
-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.
-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 <username> with that specific username:
+Enabling sudo
+
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 <username> with that specific username:
apt-get install sudo -/sbin/adduser-sudo +/sbin/adduser <username> sudo exit
Now logout and log in again with that username. If you prefer not to use sudo, then you should omit all instances of Now logout and log in again with that username. If you prefer not to use sudo, then you should omit all instances of sudo when executing all commands listed on the remainder of this page, after using su to become root.
@@ -100,12 +100,11 @@ Use ufw to allow incoming traffic for th
ssh, www, https
Check if ufw is installed If the result is not: Status: install ok installed, then install it:
Configure ufw by executing the following:
@@ -152,12 +153,20 @@ If kernel packages were updated, reboot
Check if gpg is installed If the result is not: Status: install ok installed, then install it:
+ If the result is not: Status: install ok installed, then install it: Check if wget is installed If the result is not: Status: install ok installed, then install it:
+ If the result is not: Status: install ok installed, then install it: Check if /etc/apt/keyrings directory exists by executing: If it is missing, create it by executing: Execute: Execute:
This may take some minutes due to LON-CAPA's large number of dependencies.
@@ -222,7 +232,7 @@ used to check the configuration of a sys
The script will analyze your system to determine which actions are recommended. The script will then prompt you to choose the actions you would like taken.
-Once a choice has been entered for all nine possible actions, required changes will be made.
+Once a choice has been entered for all ten possible actions, required changes will be made.
The possible actions are:
If you've followed the steps above and the server doesn't start or you think
-there's something wrong, please send a help request to the MSU LON-CAPA group. If there were errors in installation of the dependency .deb packages or errors during the
+there's something wrong, please contact the LON-CAPA helpdesk.
+Installation/update support is available from: helpdesk at loncapa.org
+(replace " at " with @).
+If there were errors in installation of the dependency .deb packages or errors during the
automatic setup, please send us as much information as possible.
If some part of this document is unclear please let us know.
Firewall Configuration
sudo dpkg-query -s gpg |grep Status
+sudo dpkg-query -s ufw |grep Status
sudo apt-get install ufw
-sudo apt-get install ufw
sudo ufw default deny
sudo ufw enable
sudo ufw allow ssh
@@ -136,6 +135,8 @@ sudo systemctl stop systemd-timesyncd
sudo systemctl disable systemd-timesyncd
sudo apt-get remove systemd-timesyncd
sudo apt-get install chrony
+sudo systemctl start chrony
+sudo systemctl enable chrony
4. Update your system
Import the LON-CAPA encryption key
sudo dpkg-query -s gpg |grep Status
-sudo apt-get install gpg
sudo dpkg-query -s wget |grep Status
-sudo apt-get install wget
+
+ls -al /etc/apt/keyrings
+
+
+sudo mkdir /etc/apt/keyrings
+
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
@@ -182,6 +191,7 @@ deb http://deb.debian.org bookworm-updat
Install prerequisites
+sudo apt-get update
sudo apt-get install loncapa-prerequisites
@@ -231,6 +241,7 @@ Once a choice has been entered for all n
@@ -274,11 +285,11 @@ for it to function at all. Below is a l
serious trouble. On a laptop, make this root@localhost.
If things aren't working right