Files
bbs/docs/wiki/Building.md
T
Claude 831e06bd0e Time: follow NTP, NTS and PTP servers, and serve all three
- internal/timesync: a clock that follows time servers (the median of
  their offsets) and can set the system clock; an NTP server with NTS;
  an NTS-KE server; a PTP grandmaster (multicast, and unicast
  negotiation) and a PTP client; kernel or network-card timestamps.
- [time], [ntp], [nts] and [ptp] sections, the UDP ports bound as root
  and handed down, and bbs time to ask servers once.
- Go 1.26 (facebook/time, the protocols' packets, needs it).
- Tested against chrony 4.5 (NTP and NTS, both ways) and linuxptp 4.0
  (multicast and unicast, both ways).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUxvTP6EhwNZTADjqy
2026-11-08 15:09:57 +00:00

28 lines
1.0 KiB
Markdown

This page shows how to build bbs from source. You need Go 1.26 or later.
```
make # or: go build ./cmd/bbs
make test
make install # installs /usr/local/bin/bbs, and /etc/bbs/bbs.conf if there is none
```
bbs does not use cgo, so there is no C compiler to set up. Every database
driver is built in: SQLite is [modernc.org/sqlite](https://modernc.org/sqlite),
PostgreSQL is [pgx](https://github.com/jackc/pgx), and MySQL and MariaDB are
[go-sql-driver](https://github.com/go-sql-driver/mysql).
## go3270
bbs uses the D-Modem suite's fork of go3270,
[D-Modem/go3270](https://github.com/D-Modem/go3270) (Go module
`github.com/D-Modem/go3270`), which adds 3270 query replies and graphics.
While that repository is private, Go has to fetch it from GitHub with your
own credentials:
```
export GOPRIVATE=github.com/D-Modem/* # the Makefile sets this for you
git config --global url."git@github.com:".insteadOf "https://github.com/" # or use a token
```
**See also:** [Running](Running), [Development](Development)