Some virtual machines allow you to increase the disk size
Be sure to back up your data before you work!
To execute the following commands, you will need to connect to the PBX using an SSH client.
The data storage disk is usually mounted in the "/storage/usbdisk1" directory. From the example above, it can be seen that 4.5G of 4.9G is currently available.
Before starting work, you should unmount the disk. To do this, run the script:
Make sure that the data storage disk is no longer mounted:
First, delete the existing partition. This operation does NOT delete data on the disk, just edits the partition table.
Launching the Section Editor:
The system will prompt you to enter a command, enter "d" and press Enter:
Система запросит выбрать раздел к удалению, он один, вводим номер раздела «1» и жмем Enter:
Сохраняем таблицу разделов, вводим команду «w» и жмем Enter:
Launching the Section Editor:
The system will prompt you to enter a command, enter "n" and press Enter:
Next, specify the command "p", the section will be primary, press Enter:
Enter the number of the created section "1", press Enter:
Next, the system will ask you to enter the numbers of the first and last sector "First sector" / "Last sector", wait for Enter, do not enter anything and agree with the "default" values.
The size of the partition must match the size of the disk.
Run the verification command:
Example of the result of the team's work:
Run the command:
Example of command output:
When booting, the system will automatically mount a disk for data storage:
Steps to reset the WEB interface credentials from the MikoPBX console
You may encounter a situation where you have forgotten the username or password for the MikoPBX web interface. This guide explains how to reset them.
Go to the MikoPBX console.
The location of the console depends on the installation method:
If installed on a physical server - on the monitor connected to the server.
If installed in a virtual machine - in the virtual machine management console.
If installed in the cloud - in the cloud serial console (also in the virtual machine management console).
The reset method when installing in a Docker container is described in more detail in the current documentation.
In addition, the console can be accessed using SSH authorization. You can read more about SSH connection here.
To learn more about MikoPBX, please refer to the following documentation.
Select the option "[7] Reset password for the web interface".
Type y to confirm resetting the login and password.
Log in to the web interface using the default credentials:
Default web interface credentials:
Username: admin
Password: admin
After the first login, you will be prompted to change the credentials.
Access the container shell:
Replace mikopbxContainerNameOrID with the name or ID of your container.
Launch the menu using this command:
Navigate to "[7] Reset password for the web interface".
Enter "y" to confirm resetting the username and password.
Log in to the web interface using the default credentials:
Default web interface credentials:
Username: admin
Password: admin
Change the login credentials after the first authorization:
When a new is added to the PBX, a SIP account with a numeric internal number is created on the PBX. In some cases, for security reasons, it is necessary to change the name for authorization of this employee.
When configuring SIP Clients, you can often see two key parameters:
Username - usually equal to the account ID, in the case of MikoPBX equal to the internal number
Auth name - username for authorization. In the case of MikoPBX is equal to the internal number
To change the authorization name:
Open the employee's account for editing
Go to "Advanced Settings" → "Advanced SIP Settings"
Add the following lines:
Instead of MIKO204, specify a name for authorization, it is advisable to use both letters and numbers
In some cases, it is necessary to save call recordings on a network drive. This example shows how to connect a shared Windows folder to MikoPBX.
Note: If the network folder becomes unavailable, it may cause disruptions in PBX operation.
Create a directory for the script:
Create the script file:
Insert the script content:
Press "CTRL+D" twice to finish creating the file.
Grant execution permissions:
In the script variables "HOST, USER, PASS", specify the connection parameters to the shared folder.
Add the script to cron for automatic connection of the shared folder.
Go to the System → Customizing System Files section.
Add the following rule to the end of the /var/spool/cron/crontabs/root file:
Test the PBX operation to ensure that call recordings are being saved to the network drive.