LinuxCommandLibrary

distccd

distcc server daemon for distributed compilation

TLDR

Start distcc daemon

$ distccd --daemon
copy
Start with allowed hosts
$ distccd --daemon --allow [192.168.1.0/24]
copy
Start in foreground
$ distccd --no-detach --daemon --allow [0.0.0.0/0]
copy
Specify listen address
$ distccd --daemon --listen [0.0.0.0]
copy

SYNOPSIS

distccd [options]

DESCRIPTION

distccd is the distcc server daemon that receives and processes compilation jobs from distcc clients on a network. It accepts preprocessed source code, compiles it using local compilers, and returns the object files to the requesting client.
The daemon listens on TCP port 3632 by default and should be configured with access control to prevent unauthorized compilation requests. Security is implemented through IP address allowlists specified with the --allow option, as the protocol itself provides no authentication.
distccd can limit the number of concurrent compilation jobs to prevent system overload. It logs to syslog by default but can be configured to write to specific log files. The daemon typically runs as a dedicated user with limited privileges for security.

PARAMETERS

--daemon

Run as a daemon.
--allow spec
Allow connections from specified addresses.
--listen addr
Listen on specified address.
--no-detach
Don't detach from terminal.
--port port
Listen on specified port (default 3632).
--jobs n
Maximum concurrent jobs.
--log-file file
Log to file instead of syslog.

CONFIGURATION

/etc/default/distccd

Default configuration for distccd daemon on Debian-based systems.
/etc/sysconfig/distccd
Default configuration for distccd daemon on Red Hat-based systems.

CAVEATS

Ensure firewall allows connections on port 3632. Use --allow to restrict access to trusted networks only.

SEE ALSO

distcc(1), ccache(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community