Skip to content

S2C Debian Sandbox : Build sdmsh in sandbox

komar edited this page Nov 30, 2024 · 5 revisions

How to build sdmsh on Debian Sandbox

1. Access to internet from sandbox. Get IP address from local network DHCP

root@evo-sandbox:~# ifup eth0:dhcp
Internet Systems Consortium DHCP Client 4.4.1
...
bound to 10.10.1.76 -- renewal in 1924 seconds.

2. Synchronize time in order to install packages from debian repository

root@evo-sandbox:~# ntpdate-debian

or

root@evo-sandbox:~# ntpdate 0.debian.pool.ntp.org

3. Change apt config files to `buster` debian release

root@evo-sandbox:~# sed -i 's/stable/buster/' /etc/apt/apt.conf.d/000main
root@evo-sandbox:~# echo http://archive.debian.org/debian/ buster main contrib non-free > /etc/apt/sources.list

4. Update repository database and install packages for building sdmsh

root@evo-sandbox:~# apt update
root@evo-sandbox:~# apt install -y build-essential git libreadline-dev ca-certificates

5. Clone sdmsh repository

root@evo-sandbox:~# git clone https://github.com/evologics/sdmsh.git

6. Compile sdmsh

root@evo-sandbox:~# cd sdmsh
root@evo-sandbox:~/sdmsh# make
Clone this wiki locally