NASD(1)
π NASD(1) β General Commands Manual π
okay bestie, you're reading the nasd(1) page, straight out of section 1 of the General Commands Manual, and honestly? it's giving "the backbone of your entire audio setup" and nobody talks about it enough. let's get into it πΈ
β¨ NAME β¨
nasd β Network Audio System server π
β¨ SYNOPSIS β¨
nasd [:listen port offset] [-option ...]
β¨ DESCRIPTION β¨
so nasd is the generic name for the Network Audio System server. it's frequently a link or a copy of the appropriate server binary for driving the most frequently used server on a given machine. lowkey a shapeshifter, highkey iconic π¦
π STARTING THE SERVER π
the server is usually started from /etc/rc or a user's startup script. no cap, that's just where it lives.
when the Network Audio System server starts up, it takes over /dev/audio. π
and here's the tea β note that if ReleaseDevice is set to TRUE [default] in the nasd.conf file, nasd will relinquish control of the audio device whenever it has finished playing a sound. this means you can use other non-NAS applications when nasd is running, as long as nasd isn't currently playing a song. bestie behavior honestly, sharing is caring π«Ά
but if ReleaseDevice is set to FALSE in the nasd.conf file, applications that attempt to access /dev/audio themselves will fail while nasd is running. gatekeeping, but make it audio π
π NETWORK CONNECTIONS π
the Network Audio System server supports connections made using the following reliable byte-streams:
TCPIP
the server listens on port 8000+n, where n is the listen port offset. math girlies rise β¨
Unix Domain
the X server uses /tmp/.sockets/audion as the filename for the socket, where n is the display number.
π OPTIONS π
all of the Network Audio System servers accept the following generic command line options. options specific to a particular server may also be available, and are not listed here. try nasd -? for a list of those options, if available. periodt π
-aaβ allows any client to connect. by default, access is allowed only to authenticated clients. so like, open the gates, no ID check πͺ-localβ allows only clients on the local host to connect. by default, access is allowed to local and remote hosts. introvert mode, we love her π-vβ enable verbose messages. this option overrides thenasd.conffile setting. she will NOT stop talking and honestly? we're here for it π£οΈ-Vβ print version information and exit (ignoring other options). she said bye immediately, main character exit π-bβ fork a child to run in the background and exit (daemon mode). messages are sent tosysloginstead ofstderr. background queen π-dn β enable debugging output at level n, where n is a positive integer. the higher the level, the more output you will get. a value of0[default] disables debugging output. this option overrides thenasd.conffile setting. turn it up and watch the lore unfold π₯-pn-nopn[default] β enables or disables Partial Networking. enabling Partial Networking allows the server to start, even if the server cannot establish all of its well-known sockets (connection points for clients), but establishes at least one. she's flexible, she's resilient, she shows up πΈ-configfile β use the config file file, instead of the default (/etc/nasd/nasd.conf). pick your own adventure π¦
β‘ SIGNALS β‘
the Network Audio System server attaches special meaning to the following signals:
SIGHUPβ this signal causes the server to close all existing connections, free all resources, and restore all defaults. factory reset energy, dramatic but necessary πSIGTERMβ this signal causes the server to exit cleanly. graceful queen, no mess left behind β¨SIGUSR1β this signal is used quite differently from either of the above. when the server starts, it checks to see if it has inheritedSIGUSR1asSIG_IGNinstead of the usualSIG_DFL. in this case, the server sends aSIGUSR1to its parent process after it has set up the various connection schemes. she texts her mom when she's settled in, that's the vibe π«Ά
π DIAGNOSTICS π
too numerous to list them all. literally. there are so many. we are not doing that today π
π FILES π
/tmp/.sockets/audio*β Unix domain socket/usr/adm/audio*msgs/dev/audioβ Audio device
π SEE ALSO π
nas(1), auinfo(1), auplay(1), auctl(1), nasd.conf(1)
π BUGS π
- if
audies before its clients, new clients won't be able to connect until all existing connections have their TCPTIME_WAITtimers expire. the way that this just *waits*β¦ so real π - the current access control support is weak at best. ngl she's not passing the vibe check on security fr fr π
Β©οΈ COPYRIGHT Β©οΈ
Copyright 1993, Network Computing Devices, Inc.
π AUTHORS π
the Network Audio System server was originally written by Greg Renda and Dave Lemke, with large amounts of code borrowed from the sample X server. legends, both of them π
the sample X server was originally written by Susan Angebranndt, Raymond Drewry, Philip Karlton, and Todd Newman, from Digital Equipment Corporation, with support from a large cast. it has since been extensively rewritten by Keith Packard and Bob Scheifler, from MIT. the lore is DEEP, the collaboration is unmatched π
and that's the whole nasd(1) page, bestie β general commands manual, section 1, start to finish. you're officially in the know, go forth and serve audio like the icon you are π¦β¨π
π¦ where this page comes from
- debian bookworm: nas 1.9.4-7
- debian trixie: nas 1.9.4-9
- ubuntu jammy: nas 1.9.4-7build1
- ubuntu noble: nas 1.9.4-8
- ubuntu questing: nas 1.9.4-9
- ubuntu resolute: nas 1.9.4-9.2
- ubuntu stonking: nas 1.9.4-9.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms