blog.masa23.jp

Transcribing Asterisk Voicemail using Sakura's AI Engine

I used Asterisk’s ARI to record voicemail messages and transcribed them using Sakura’s AI Engine Whisper API. The transcribed content is then notified to Slack. Introduction I utilized an existing Asterisk environment for this implementation. Enabling ARI Edit the Asterisk configuration file ari.conf to enable ARI. ari.conf [general] enabled = yes [asterisk] type = user read_only = no password = asterisk password_format = plain Enable Asterisk’s HTTP server as well.
2025-09-26

Using PR-Agent with Sakura AI Engine

This article explains how to build a PR-Agent using the “Sakura AI Engine” provided by Sakura Internet. As someone inside Sakura Internet, there’s no option not to use this for development. What is Sakura AI Engine? The “Sakura AI Engine,” a generative AI platform from Sakura Internet, is a service that allows you to utilize generative AI models offered by Sakura Internet. Official Sakura AI Engine Website Sakura AI Engine Manual The "Sakura AI Engine" is a pay-as-you-go platform service that allows you to use various generative AI models.
2025-09-24

Remote Operation of Home Server with NanoKVM (NanoKVM PCIe Version)

Previously, I purchased a NanoKVM to perform remote operations on my home server, but I decided to try the PCIe version. Remote Operation of Home Server with NanoKVM In fact, the PCIe version can be installed in a PCI slot, and it is not necessary to connect it to a PCIe slot. Therefore, even if there are no available PCIe slots, it can still be installed as long as there is a blank slot.
2025-04-08

Quick Try at an Introduction to XDP Part 3 (ICMP Echo Reply Section 2)

In the last article, I wrote a program to return ICMP Echo Replies using XDP. I implemented a program that returns ICMP Echo Replies, but it turned out that the ICMP checksum was not calculated correctly. Quick Try at an Introduction to XDP Part 3 (ICMP Echo Reply Section 1) This time, I would like to describe how to correctly calculate and return the ICMP checksum. Please praise me for writing for two consecutive days without being lazy.
2025-03-06

Quick Start Guide to XDP: Part 3 (ICMP Echo Reply Edition 1)

In the previous article, we used eBPF Map in XDP to exchange data with user space. Quick Start Guide to XDP: Part 2 (eBPF Map Edition) In the article before that, we wrote a program using XDP that drops all packets. Quick Start Guide to XDP: Part 1 This time, we will write a program that responds with ICMP Echo Reply to ICMP Echo Request. How to Respond with ICMP Echo Reply To respond with ICMP Echo Reply to an ICMP Echo Request, the following steps are necessary:
2025-03-05

Commands I Occasionally Use but Tend to Forget

I will note down commands that I occasionally use but tend to forget. System Related Upgrading Ubuntu # apt update # apt upgrade # apt dist-upgrade # do-release-upgrade Installing do-release-upgrade # apt install update-manager-core update-alternatives Setting the default path for Python # update-alternatives --install /usr/bin/python python /usr/bin/python3 1 Setting the default editor # update-alternatives --config editor Time Zone Setting When using systemd # timedatectl set-timezone Asia/Tokyo Setting manually # ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime File System Related Mounting SD Cards or HDD Images Assigning the device to loop # losetup -f --show -P sdcard.
2024-12-31

Using FreeBSD with GitHub Actions

This article is the 22nd entry in the Sakura Internet Advent Calendar 2024. Introduction There are times when you want to use FreeBSD with GitHub Actions. In fact, since I use FreeBSD with Sakura Internet, there are occasions where I absolutely need to have it. Currently, I am building in an SSH environment with Jenkins and FreeBSD, which is quite a laborious process, but if it can be done with GitHub Actions, I would prefer to do it that way.
2024-12-22

Migration from LXD to Incus and Updating Ubuntu

Introduction This article contains notes on migrating from Ubuntu 22.04 to 24.04 and from LXD to Incus. Updating from Ubuntu 22.04 to 24.04 First, execute the update: # sudo apt update && sudo apt upgrade -y Upgrade to 24.04: # sudo do-release-upgrade If do-release-upgrade cannot be found, install it with the following command: # sudo apt install ubuntu-release-upgrader-core Migration to Incus Install Incus: # sudo apt install incus incus-tools Verify that incus and lxd can be executed:
2024-10-06

Remotely Operate Your Home Server with NanoKVM

Introduction In my home, we don’t have a server equipped with BMC or IPMI like typical households. However, there are times when I want to perform power operations or configure the BIOS/UEFI remotely. (A long time ago, I used ATEN’s CN6000, but it was incredibly expensive.) I had heard of PiKVM using Raspberry Pi, but setting up Raspberry Pi and other hardware incurs quite a cost, leading me to pass on it.
2024-10-04

Home Network 10G Implementation Part 2 (ONT-S508CL-8S)

Dissatisfied with the previous switch, I ended up purchasing another Chinese 10G switch. Home Network 10G Implementation (SKS8300-8X) Installing a 2.5Gbps-Compatible Multi-Gigabit Switch at Home (SKS3200M-8GPY1XF) Items Purchased Model Number Description Price Quantity Notes ONT-S508CL-8S 10Gbps Managed Switch ¥11,639 1 AliExpress FB-LINK SFP-2.5G-T 2.5Gbps RJ45 SFP Module ¥1,542 4 AliExpress XICOM XC-SFP+-SR 10G-SR SFP+ Module 10pcs ¥6,281 1 AliExpress Woeow-OM3 1M MMF LC-LC Duplex 1M ¥572 5 AliExpress The 10G-SR SFP+ modules were very cheap at about ¥628 each when buying 10 pieces.
2024-09-19