Step By Step Debian 12 Installation
Introduction
Below is the step by step guide to make the Debian 12 USB drive and install Debian 12 on the server. Once Debian 12 is installed then FreePBX 17 can be installed using the steps up at FreePBX 17 Installation
Making the Debian 12 Bootable USB
Download the latest netinstall version of Debian 12 up at https://www.debian.org/download .
Download Rufus from https://rufus.ie/en/ to make the bootable USB drive from the Debian 12 ISO. Use the options as shown below. This will delete everything on the USB drive
Installation Debian 12 from USB
1. Boot from Debian USB drive. Once the installer boots select the Graphic Install option.
Next, select your Language from the list.
Next, select your country from the list.
Next, select your keyboard layout from the list
Enter a hostname for your system. In this example we will use FreePBX17.
Enter a root password for the system.
Enter the full name for the user account. This is required on Debian 12
Enter the username for the user account you would like to setup. This is required for Debian 12.
Enter the password for the user account.
Select the server's timezone. This is based on the country selection done previously.
Select the “Guided- use entire disk” option in most cases. An LVM can be used as well if you would like a more advanced setup.
To configure software RAID, follow the steps at Debian OS Installation with Software RAID
Select the disk to install Debian 12 onto.
Select the “All files in one partition” option unless of course you would like a more advanced setup.
Select the “Finish partitioning and write changes to disk” option and continue.
Select “yes” to confirm you want to write changes to the disk.
Select “no” to scanning more media.
Select a Country close to where the server is installed. If you are using the netinstall version of Debian 12 packages will be downloaded during the installation.
Select the mirror you prefer in the country you’ve selected.
Enter a HTTP proxy if one is required in your network. Leave this blank in most cases.
Select YES or NO depending on if you want to report system stats back to Debian developers.
Only leave “SSH Server” and “Standard System Utilities” selected. If you would like a Desktop you can install these options, but in most cases the PBX will be managed via the webUI and SSH. There is no need to have a Desktop installed on the PBX.
Select YES to install the GRUB boot loader.
Select your hard drive. This is where GRUB will be installed.
Installation complete. Remove the USB key and press continue to reboot.
Once the system boots up, login as root.
Once logged in, run the commands below. This has to be done to enable ROOT ssh access.
Commands:echo "PermitRootLogin yes" >> /etc/ssh/sshd_config service ssh restart ip addr
Its recommended to configure the "su -" command or the "sudo" package for your newly created user then enabling root user ssh directly.
This step is mainly for advanced user.
Once you get the systems IP from “ip addr” SSH into the Debian system as root.
Once you are logged in via SSH you can run the command below to install packages that typically were preinstalled on FreePBX 16 and lower. These are OPTIONAL packages.
apt-get -y install net-tools htop screen tshark vim sngrep
At this point proceed to FreePBX 17 Installation to start the FreePBX17 Installation.