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

 

  1. Download the latest netinstall version of Debian 12 up at Debian -- Downloading Debian .

  2. Download Rufus from Rufus - Create bootable USB drives the easy way 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


    Rufus-20240709-050552.png



Installation Debian 12 from USB


1. Boot from Debian USB drive. Once the installer boots select the Graphic Install option.

 

1-20240709-050552.png
  1. Next, select your Language from the list.

  2. Next, select your country from the list.

  3. Next, select your keyboard layout from the list

  4. Enter a hostname for your system. In this example we will use FreePBX17.

  5. Enter a root password for the system.

     

  6. Enter the full name for the user account. This is required on Debian 12

  7. Enter the username for the user account you would like to setup. This is required for Debian 12.

  8. Enter the password for the user account.

  9. Select the server's timezone. This is based on the country selection done previously.

  10. 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.

    1. To configure software RAID, follow the steps at Debian OS Installation with Software RAID

  11. Select the disk to install Debian 12 onto.

  12. Select the “All files in one partition” option unless of course you would like a more advanced setup.

  13. Select the “Finish partitioning and write changes to disk” option and continue.

  14. Select “yes” to confirm you want to write changes to the disk.

  15. Select “no” to scanning more media.

  16. 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.

  17. Select the mirror you prefer in the country you’ve selected.

  18. Enter a HTTP proxy if one is required in your network. Leave this blank in most cases.

  19. Select YES or NO depending on if you want to report system stats back to Debian developers.

  20. 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.

  21. Select YES to install the GRUB boot loader.

  22. Select your hard drive. This is where GRUB will be installed.

  23. Installation complete. Remove the USB key and press continue to reboot.

  24. Once the system boots up, login as root.

  25. 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.

 

  1. Once you get the systems IP from “ip addr” SSH into the Debian system as root.

  2. 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
  3. At this point proceed to FreePBX 17 Installation to start the FreePBX17 Installation.

 

Return to Documentation Home I Return to Sangoma Support