Howto freepbx debian12: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= download cloud image =
download cloud image:
download cloud image:
  wget http://cdimage.debian.org/cdimage/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
  wget http://cdimage.debian.org/cdimage/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
Line 5: Line 6:
change root password to image:
change root password to image:
  virt-sysprep -a debian-12-generic-amd64.qcow2 -q --root-password password:livinglavidalinux
  virt-sysprep -a debian-12-generic-amd64.qcow2 -q --root-password password:livinglavidalinux
= configure network =
boot with image and configure network:
boot with image and configure network:
  nano /etc/systemd/network/20-wired.network
  nano /etc/systemd/network/20-wired.network
Line 25: Line 27:
restart sshd service:
restart sshd service:
  systemctl restart sshd
  systemctl restart sshd
= configure system =
update repo and upgrade system:
apt-get update && apt-get upgrade
install the following dev packages:
apt -y install build-essential git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev libjansson-dev libxml2-dev uuid-dev default-libmysqlclient-dev htop sngrep lame ffmpeg mpg123 git vim curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev expect

Revision as of 18:33, 9 September 2024

download cloud image

download cloud image:

wget http://cdimage.debian.org/cdimage/cloud/bookworm/latest/debian-12-generic-amd64.qcow2

resize cloud image:

qemu-img resize debian-12-generic-amd64.qcow2 +8GB

change root password to image:

virt-sysprep -a debian-12-generic-amd64.qcow2 -q --root-password password:livinglavidalinux

configure network

boot with image and configure network:

nano /etc/systemd/network/20-wired.network

add the following configuration:

[Match]
Name=enp1s0

[Network]
Address=192.168.75.25/24
Gateway=192.168.75.1
DNS=4.2.2.1
DNS=4.2.2.2

enable networkd service:

systemctl enable --now systemd-networkd

configure ssh service:

dpkg-reconfigure openssh-server

allow root user and password authentication:

sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config

restart sshd service:

systemctl restart sshd

configure system

update repo and upgrade system:

apt-get update && apt-get upgrade

install the following dev packages:

apt -y install build-essential git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev libjansson-dev libxml2-dev uuid-dev default-libmysqlclient-dev htop sngrep lame ffmpeg mpg123 git vim curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev expect