Server installation
This page covers installing the rChat server on every supported platform.
Available binaries
Section titled “Available binaries”| Platform | Binary | Notes |
|---|---|---|
| Linux x86_64 (glibc) | rchat-server-x86_64-linux-gnu | Most common |
| Linux x86_64 (static) | rchat-server-x86_64-linux-static | Alpine, older distros |
| Linux ARM64 | rchat-server-aarch64-linux-gnu | ARM64 servers |
| Linux ARM64 (static) | rchat-server-aarch64-linux-static | ARM64 Alpine |
| FreeBSD x86_64 | rchat-server-x86_64-freebsd | FreeBSD servers |
| macOS Apple Silicon | rchat-server-macos-arm64 | M1/M2/M3 Macs |
| macOS Intel | rchat-server-macos-x86_64 | Intel Macs |
| macOS Universal | rchat-server-macos-universal | Works on both |
If you are unsure which to use on Linux, start with x86_64-linux-gnu. Use the -static variant if you encounter glibc version errors.
Linux (x86_64)
Section titled “Linux (x86_64)”curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-x86_64-linux-gnuchmod +x rchat-server-x86_64-linux-gnusudo mv rchat-server-x86_64-linux-gnu /usr/local/bin/rchat-serverLinux (x86_64, static)
Section titled “Linux (x86_64, static)”For Alpine Linux, older distributions, or any system with an incompatible glibc:
curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-x86_64-linux-staticchmod +x rchat-server-x86_64-linux-staticsudo mv rchat-server-x86_64-linux-static /usr/local/bin/rchat-serverLinux (ARM64 / aarch64)
Section titled “Linux (ARM64 / aarch64)”curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-aarch64-linux-gnuchmod +x rchat-server-aarch64-linux-gnusudo mv rchat-server-aarch64-linux-gnu /usr/local/bin/rchat-serverLinux (ARM64 static)
Section titled “Linux (ARM64 static)”curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-aarch64-linux-staticchmod +x rchat-server-aarch64-linux-staticsudo mv rchat-server-aarch64-linux-static /usr/local/bin/rchat-serverFreeBSD (x86_64)
Section titled “FreeBSD (x86_64)”fetch https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-x86_64-freebsdchmod +x rchat-server-x86_64-freebsdsudo mv rchat-server-x86_64-freebsd /usr/local/bin/rchat-servermacOS (Apple Silicon — M1/M2/M3)
Section titled “macOS (Apple Silicon — M1/M2/M3)”curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-macos-arm64chmod +x rchat-server-macos-arm64sudo mv rchat-server-macos-arm64 /usr/local/bin/rchat-servermacOS (Intel)
Section titled “macOS (Intel)”curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-macos-x86_64chmod +x rchat-server-macos-x86_64sudo mv rchat-server-macos-x86_64 /usr/local/bin/rchat-servermacOS (Universal)
Section titled “macOS (Universal)”Works on both Apple Silicon and Intel Macs:
curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/rchat-server-macos-universalchmod +x rchat-server-macos-universalsudo mv rchat-server-macos-universal /usr/local/bin/rchat-serverVerify the installation
Section titled “Verify the installation”rchat-server --helpYou should see usage information and available flags.
Checksum verification
Section titled “Checksum verification”Each release includes a SHA256SUMS.txt file. Verify your download:
curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/SHA256SUMS.txtsha256sum -c SHA256SUMS.txtOn macOS:
curl -LO https://github.com/PDG-Global/rchat/releases/latest/download/SHA256SUMS.txtshasum -a 256 -c SHA256SUMS.txtOn FreeBSD:
fetch https://github.com/PDG-Global/rchat/releases/latest/download/SHA256SUMS.txtsha256 -c SHA256SUMS.txtSystem requirements
Section titled “System requirements”Port access
Section titled “Port access”rChat listens on port 443 by default:
# UFWsudo ufw allow 443/tcp
# iptablessudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT
# pf (FreeBSD)sudo sysctl net.inet.ip.forwarding=1echo 'pass in proto tcp to any port 443' | sudo tee -a /etc/pf.confBuild from source
Section titled “Build from source”If you prefer to build the server yourself:
Prerequisites
Section titled “Prerequisites”- Rust 1.75 or later
- OpenSSL development headers
git clone https://github.com/PDG-Global/rchat.gitcd rchatcargo build --release --bin rchat-serverThe binary will be at target/release/rchat-server.
Install
Section titled “Install”sudo cp target/release/rchat-server /usr/local/bin/sudo chmod +x /usr/local/bin/rchat-server