It’s been a few years since I rebuilt my home lab. I am hoping to put together a few blog around what it looks like and how it’s setup in hopes that it helps others. Let’s start with my NUC. I generally like to run things that are mostly static on my NUC, things like AD, DNS, etc. However, for this iteration I am going to install Ubuntu on the bare metal and run Asterisk.
To start I created a boot USB using Rufus for the lates Ubuntu Server 24 release. Plugged in a keyboard, monitor, and network and restarted. I used F2 to tell the machine to boot from USB and doing the minimal install and I am up and running with no issues.
dmacias@intelnuc7:~$ hostnamectl ... Operating System: Ubuntu 24.04.3 LTS Kernel: Linux 6.8.0-85-generic Hardware Model: NUC7i7DNHE
Now let’s get Asterisk up and running. The majority of the commands came from this great guide.
dmacias@intelnuc7:~$ sudo apt-get install build-essential
dmacias@intelnuc7:~$ sudo apt-get install git subversion wget \
libjansson-dev sqlite3 libsqlite3-dev autoconf \
automake libxml2-dev libncurses-dev libtool
dmacias@intelnuc7:~$ cd /usr/src/
dmacias@intelnuc7:~$sudo wget \
http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22-current.tar.gz
dmacias@intelnuc7:~$ sudo tar zxf asterisk-22-current.tar.gz
dmacias@intelnuc7:~$ cd asterisk-22.5.2/ dmacias@intelnuc7:~$ sudo contrib/scripts/get_mp3_source.sh dmacias@intelnuc7:~$ sudo contrib/scripts/install_prereq install dmacias@intelnuc7:~$ sudo ./configure
dmacias@intelnuc7:~$ sudo make menuselect
#select format_mp3, Save & Exit
dmacias@intelnuc7:~$ sudo make -j2
dmacias@intelnuc7:~$ sudo make install dmacias@intelnuc7:~$ sudo make samples dmacias@intelnuc7:~$ sudo make basic-pbx dmacias@intelnuc7:~$ sudo make config dmacias@intelnuc7:~$ sudo ldconfig dmacias@intelnuc7:~$ sudo addgroup --system asterisk dmacias@intelnuc7:~$ sudo adduser --system --ingroup asterisk \ --no-create-home --disabled-password asterisk dmacias@intelnuc7:~$ sudo vi /etc/default/asterisk Uncomment: AST_USER="asterisk" AST_USER="asterisk"dmacias@intelnuc7:~$ sudo usermod -aG dialout,audio asterisk
dmacias@intelnuc7:~$ sudo chown -R asterisk: \
/var/{lib,log,run,spool}/asterisk /usr/lib/asterisk /etc/asterisk
dmacias@intelnuc7:~$ sudo chmod -R 750 \
/var/{lib,log,run,spool}/asterisk /usr/lib/asterisk \
/etc/asterisk
systemctl enable asterisk
systemctl start asterisk
sudo asterisk -vvvr
Asterisk 22.6.0, Copyright (C) 1999 - 2025, Sangoma Technologies Corporation and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 22.6.0 currently running on ubuntu01 (pid = 43539)
ubuntu01*CLI>
~david