SPPG CCTV Guide—How I Connect/Integrated SPPG MBG CCTV Camera to BGN—This Is How I Do It

On November 28, 2028, I was contacted by the management of an MBG (Nutritious Free Meals) kitchen in my area, who needed assistance with configuring their CCTV cameras to connect to the BGN server.

In my region, there is an MBG (Nutritious Free Meals) program in place.

Security cameras are installed in every kitchen—where food is prepared—to monitor staff performance and activities related to kitchen operations. Previously, these cameras could only be monitored locally. The latest program requirement mandates that the cameras at these food preparation sites (SPPG) be connected to a central BGN server, allowing all kitchen activities to be monitored from the BGN headquarters. In this article, I will explain how to connect the CCTV cameras in an MBG food preparation site (SPPG) to the BGN system.

My Preparations for Connecting an SPPG CCTV Camera to BGN

Setelah sampai di SPPG, saya melakukan pemeriksaan kelengkapan perangkat. Karena BGN memberikan sBefore connecting your CCTV system to the BGN server, make sure all the required equipment is available and properly set up.

Here’s what you’ll need:

  • Installed CCTV cameras: The cameras must already be installed at the SPPG facility.
  • NVR or DVR: All CCTV cameras must be connected to an NVR or DVR.
  • Mini PC: A mini PC is required to handle the connection to the BGN server.
  • Internet access: A stable internet connection is needed to connect the system to the central server.

If all these devices are available at your SPPG facility, you’re ready to start connecting the CCTV system to BGN.

How I Connected the SPPG CCTV System to BGN: A Step-by-Step Guide

1. Installing Ubuntu

This system will run on Ubuntu. I will install Ubuntu on a Mini PC or a computer provided at the SPPG office.

How do you install Ubuntu?

Ubuntu is a free and open-source operating system based on Linux. The process for installing Ubuntu is similar to that of the Windows operating system. You can download the installation file from the official Ubuntu website and then create a bootable flash drive.

Things to Check After Installing Ubuntu

After installing Ubuntu, there are two important things you should check:

  • Check the Ubuntu version
  • Update Ubuntu

1. Check the Ubuntu Version

To check which version of Ubuntu is installed, open the Terminal and enter the following command:

lsb_release -d

Press Enter. The installed Ubuntu version should appear on the screen.

2. Update Ubuntu

Next, update Ubuntu to make sure the system has the latest available package information and software updates.

Open the Terminal and run these commands:

sudo apt update
sudo apt upgrade

Press Enter after each command and follow any on-screen instructions to complete the update.

2. Verify That the NVR/DVR and Internet Connection Are Working Properly

Connect all your devices, including the NVR/DVR, to the mini PC using LAN cables. Make sure every device has internet access.

Your NVR and DVR should each have an IP address. Make sure their IP addresses are configured manually (static) rather than assigned automatically through DHCP. How to Test the Connection Between the Mini PC and NVR/DVR?

To check whether the mini PC can communicate with your NVR/DVR, follow these steps:

  1. Open the Terminal on your mini PC or Ubuntu computer.
  2. Enter the following command, replacing the example IP address with your NVR/DVR’s actual IP address:
ping -c 4 192.168.1.100
  1. Press Enter and check the results.

If the connection is working, you should see replies containing a TTL value. If you see Destination Host Unreachable or Request Timed Out, the mini PC is not receiving a response from the NVR/DVR. Check the LAN cable, IP address settings, and network configuration.

Note: A successful ping confirms that the mini PC can communicate with the NVR/DVR over the network. It does not necessarily confirm that the device has internet access. You should test internet connectivity separately.

Next, to check whether the mini PC has internet access, open the Terminal and run the following command:

ping -c 4 google.com

Press Enter and check the results. If you receive replies from Google, it means the mini PC can access the internet.

3. Installing a VPN on the Mini PC

Once your mini PC has a stable internet connection, the next step is to install the VPN. To install it, open the Terminal and enter the following command:

curl https://vpn-cctv.bgn.go.id/setup-linux | sudo bash

Press Enter to run the command.

If the Terminal displays an error such as No such file or directory, try using this alternative command:

wget -O- https://vpn-cctv.bgn.go.id/setup-linux | sudo bash

Press Enter to run it.

Next, a form will appear asking you to enter some information. Fill in the Site ID and email address using the account details of the SPPG head registered with the Data Center and Information Systems of Indonesia’s National Nutrition Agency (BGN).

Once the VPN installation process is complete, the next step is to test the connection to the BGN server.

1. Check the VPN Network Interface

Open the Terminal and enter:

ip a

Look for a network interface named tailscale0 or tun0 / wg0, depending on the VPN configuration). Its presence indicates that the VPN network interface has been created.

2. Check the VPN Connection Status

Next, enter the following command:

tailscale status

Check the output in the Terminal. Look for an entry named bgn-pusat-server with a status showing active; direct.

3. Ping the BGN Server

Finally, test whether the mini PC can reach the BGN server by running:

ping -c 4 argus-core-sipgn.bgn.go.id

Press Enter and check the results. If the server responds, you should see reply messages containing a TTL value. If all three checks are successful, it indicates that the VPN interface is available, the VPN connection is active, and the mini PC can communicate with the BGN server.

Technical note: The command tailscale status only applies if the VPN uses Tailscale. Also, a TTL value in the ping response confirms that the server is reachable; it does not by itself verify that the entire BGN CCTV integration is working correctly.

4. Installing the CCTV Agent on the Mini PC

The CCTV Agent should be installed after the VPN has successfully connected to the BGN server. There are two ways to install the CCTV Agent on the mini PC:

  • Copy and Run the Command (Recommended and Fastest)
  • Download the Installation Script Manually

In this guide, I’m using the first method: Copy and Run the Command. This is the simplest approach. I just need to copy the installation command provided by the system and paste it into the Terminal.

Example installation command:

wget -nv -O install-0ZDLVY8W.sh 'https://simv-sipgn.bgn.go.id/api/v1/install/NbM9SCVUm3Jmhe-8ONwTJNobcNDu2MX9LYufcZL9h5g' && sudo bash install-0ZDLVY8W.sh

After pasting the command into the Terminal, press Enter to start the installation.

Key indicators of a successful installation. Once the installation process is complete, check for these three indicators:

  1. Active: active (running) – The cctv-agent.service is active and running normally in the background.
  2. [SUCCESS] message – A confirmation message appears, indicating that the agent has been installed successfully.
  3. [OK] status – The credentials have been detected, and all required system dependencies have been installed without errors.

Security note: The installation command contains a unique download URL that may include an installation token. Treat it as a private credential and avoid publishing a live token in a public article. Use a redacted example or a placeholder URL instead.

Next, I’ll check the status of the BGN CCTV Agent by running a few commands in the Terminal.

1. Restart the ONVIF Agent

Enter the following command:

sudo systemctl restart onvif-agent

If the command runs without displaying any error messages, proceed to the next step.

2. Check the Agent Service Status

Run this command:

sudo systemctl status onvif-agent

Look for the following status in the output:

Active: active (running)

This indicates that the ONVIF Agent service is active and running.

3. Troubleshoot If the Service Is Not Running

If the service status shows inactive or failed, check the error logs to find out what went wrong.

Run the following command:

sudo journalctl -u onvif-agent -n 50 --no-pager

This displays the 50 most recent log entries for the ONVIF Agent service, which can help you identify the cause of the problem.

5. Adding a DVR/NVR and Camera to Your BGN CCTV Account

Now, I’ll add the DVR/NVR to the BGN CCTV account. First, sign in to your registered BGN CCTV account using the following link:

https://cctv-sipgn.bgn.go.id/sign-in

Click the Add DVR/NVR button.

A form will appear asking you to enter your DVR/NVR details, including:

  • DVR/NVR Name
  • IP Address
  • Username
  • Password

Fill in each field using the correct information for your DVR/NVR.

What if you’ve forgotten your DVR/NVR password? You’ll need to reset the password before adding the device. I offer password reset services for Hikvision and HiLook CCTV devices. Feel free to contact me via WhatsApp at +62 895-2911-5721.

Once you’ve entered all the required information, click Save.

After saving, check the device status on the Add DVR/NVR page. Make sure it displays Successfully Saved. Also, check the device list or table to confirm that the DVR/NVR name and IP address are displayed correctly.serta status berhasil tersimpan (beserta informasi Channel dan tombol aksi seperti Ubah / Hapus).

At this point, the connection between the SPPG CCTV system and BGN has been successfully configured.

The next step is to add your CCTV cameras. Follow the instructions provided on your BGN CCTV account page to complete the camera registration process.

Conclusion

So, was that easy enough?

BGN aims to connect CCTV cameras installed at SPPG facilities across Indonesia to its central monitoring system using the configuration process described in this guide. This allows BGN to access live CCTV feeds from participating SPPG kitchens and monitor their daily activities, including food preparation, cooking, and meal distribution. If you need help configuring your SPPG MBG CCTV system to connect to BGN, our team is ready to assist. We offer CCTV installation and configuration services to help get your system connected.

I hope you find this article helpful!

Leave a Comment