source: multimedia/libdriv/alsa-utils.xml@ 3a79861

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3a79861 was 3a79861, checked in by Thomas Trepl <thomas@…>, 16 years ago

Updates on usermod commands

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7337 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY alsa-utils-download-http "&alsa-download-http;/utils/alsa-utils-&alsa-utils-version;.tar.bz2">
8 <!ENTITY alsa-utils-download-ftp "&alsa-download-ftp;/utils/alsa-utils-&alsa-utils-version;.tar.bz2">
9 <!ENTITY alsa-utils-md5sum "dfe4bb5d3217f3ec662b172ce8397cf0">
10 <!ENTITY alsa-utils-size "958 KB">
11 <!ENTITY alsa-utils-buildsize "8.1 MB">
12 <!ENTITY alsa-utils-time "0.1 SBU">
13]>
14
15<sect1 id="alsa-utils" xreflabel="ALSA Utilities-&alsa-utils-version;">
16 <?dbhtml filename="alsa-utils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>ALSA Utilities-&alsa-utils-version;</title>
24
25 <indexterm zone="alsa-utils">
26 <primary sortas="a-ALSA-Utilities">ALSA Utilities</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to ALSA Utilities</title>
31
32 <para>The <application>ALSA Utilities</application> package contains
33 various utilities which are useful for controlling your sound card.</para>
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>Download (HTTP): <ulink url="&alsa-utils-download-http;"/></para>
39 </listitem>
40 <listitem>
41 <para>Download (FTP): <ulink url="&alsa-utils-download-ftp;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download MD5 sum: &alsa-utils-md5sum;</para>
45 </listitem>
46 <listitem>
47 <para>Download size: &alsa-utils-size;</para>
48 </listitem>
49 <listitem>
50 <para>Estimated disk space required: &alsa-utils-buildsize;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated build time: &alsa-utils-time;</para>
54 </listitem>
55 </itemizedlist>
56
57 <bridgehead renderas="sect3">ALSA Utilities Dependencies</bridgehead>
58
59 <bridgehead renderas="sect4">Required</bridgehead>
60 <para role="required"><xref linkend="alsa-lib"/></para>
61
62 <para condition="html" role="usernotes">User Notes:
63 <ulink url="&blfs-wiki;/alsa-utils"/></para>
64
65 </sect2>
66
67 <sect2 role="installation">
68 <title>Installation of ALSA Utilities</title>
69
70 <para>Install <application>ALSA Utilities</application> by
71 running the following commands:</para>
72
73<screen><userinput>./configure &amp;&amp;
74make</userinput></screen>
75
76 <para>This package does not come with a test suite.</para>
77
78 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
79
80<screen role="root"><userinput>make install</userinput></screen>
81
82 </sect2>
83
84 <sect2 role="configuration">
85 <title>Configuring ALSA Utilities</title>
86
87 <sect3 id="alsa-utils-config">
88 <title>Config Files</title>
89
90 <para><filename>/etc/asound.state</filename></para>
91
92 <indexterm zone="alsa-utils alsa-utils-config">
93 <primary sortas="e-etc-asound.state">/etc/asound.state</primary>
94 </indexterm>
95
96 </sect3>
97
98 <sect3 id="alsa-utils-init">
99 <title>Configuration Information</title>
100
101 <para> Use a bootscript to store the values at shutdown.</para>
102
103 <indexterm zone="alsa-utils alsa-utils-init">
104 <primary sortas="f-alsa">alsa</primary>
105 </indexterm>
106
107 <para>As the <systemitem class="username">root</systemitem> user,
108 install the init script <filename>/etc/rc.d/init.d/alsa</filename> included
109 in the <xref linkend="bootscripts"/> package.</para>
110
111<screen role="root"><userinput>make install-alsa</userinput></screen>
112
113 <para>Note that all channels of your sound card are muted by default.
114 You can use the <command>alsamixer</command> program from the
115 <application>ALSA Utilities</application> to change this. Use
116 <command>speaker-test</command> to check that your settings have
117 been applied correctly.</para>
118
119 <para>The first time the <filename>alsactl</filename> program is run from
120 the <application>udev</application> rule below, it will complain that
121 there is no state in <filename>/etc/asound.state</filename>. You can
122 prevent this by running the following commands as the <systemitem
123 class="username">root</systemitem> user:</para>
124
125<screen role="root"><userinput>touch /etc/asound.state &amp;&amp;
126alsactl store</userinput></screen>
127
128 <para>The volume settings will be restored from the saved state by
129 <application>Udev</application> when the device is detected (during boot
130 or when plugged in for USB devices).</para>
131
132<!--
133 <para> While still the
134 <systemitem class="username">root</systemitem> user, create the
135 <filename>/etc/udev/scripts/alsa-restore</filename> script with
136 the following commands:</para>
137
138<screen role="root"><userinput>install -v -d -m754 /etc/udev/scripts &amp;&amp;
139cat &gt; /etc/udev/scripts/alsa-restore &lt;&lt; "EOF"
140#!/bin/sh -e
141# Begin /etc/udev/scripts/alsa-restore
142# $1 is (the numbered device "%n") passed in by udev/kernel.
143
144 rc=1
145
146 if [ -f /usr/sbin/alsactl ]; then
147 /usr/sbin/alsactl restore "${1}"
148 rc=$?
149 fi
150
151 exit $rc
152
153# End /etc/udev/scripts/alsa-restore
154EOF
155chmod -v 754 /etc/udev/scripts/alsa-restore</userinput></screen>
156-->
157
158 <para>As the <systemitem class="username">root</systemitem> user, install
159 a new <application>Udev</application> rules file to create the audio
160 device nodes and run the restore script:</para>
161
162<screen role="root"><userinput>cat &gt; /etc/udev/rules.d/40-alsa.rules &lt;&lt; "EOF"
163# /etc/udev/rules.d/40-alsa.rules
164
165# When a sound device is detected, restore the volume settings
166KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"
167EOF
168chmod -v 644 /etc/udev/rules.d/40-alsa.rules</userinput></screen>
169
170 <para>All sound devices are not accessable for any user except
171 <systemitem class="username">root</systemitem> and members of the
172 <systemitem class="groupname">audio</systemitem> group. Add any users
173 that might use the sound devices to that group:</para>
174<screen role="root"><userinput>usermod -a -G audio <replaceable>&lt;username&gt;</replaceable></userinput></screen>
175
176 <note>
177 <para>You may need to log out and back in again to refresh your group
178 memberships. '<command>su <replaceable>&lt;username&gt;</replaceable></command>'
179 should work around this as well.</para>
180 </note>
181
182 </sect3>
183
184 </sect2>
185
186 <sect2 role="content">
187 <title>Contents</title>
188
189 <segmentedlist>
190 <segtitle>Installed Programs</segtitle>
191 <segtitle>Installed Libraries</segtitle>
192 <segtitle>Installed Directories</segtitle>
193
194 <seglistitem>
195 <seg>aconnect, alsaconf, alsactl, alsamixer, amidi,
196 amixer, aplay, aplaymidi, arecord, arecordmidi, aseqnet,
197 aseqdump, iecset, and speaker-test</seg>
198 <seg>None</seg>
199 <seg>None</seg>
200 </seglistitem>
201 </segmentedlist>
202
203 <variablelist>
204 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
205 <?dbfo list-presentation="list"?>
206 <?dbhtml list-presentation="table"?>
207
208 <varlistentry id="aconnect">
209 <term><command>aconnect</command></term>
210 <listitem>
211 <para>is a utility for connecting and disconnecting two existing
212 ports in the ALSA sequencer system.</para>
213 <indexterm zone="alsa-utils aconnect">
214 <primary sortas="b-aconnect">aconnect</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="alsaconf">
220 <term><command>alsaconf</command></term>
221 <listitem>
222 <para>is a configuration tool which tries to detect the sound cards
223 on your system and write a suitable configuration file for ALSA.
224 This program is incompatible with udev and hotplug.</para>
225 <indexterm zone="alsa-utils alsaconf">
226 <primary sortas="b-alsaconf">alsaconf</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="alsactl">
232 <term><command>alsactl</command></term>
233 <listitem>
234 <para>is used to control advanced settings for the
235 ALSA sound card drivers.</para>
236 <indexterm zone="alsa-utils alsactl">
237 <primary sortas="b-alsactl">alsactl</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="alsamixer">
243 <term><command>alsamixer</command></term>
244 <listitem>
245 <para>is an ncurses-based mixer program for use with the
246 ALSA sound card drivers.</para>
247 <indexterm zone="alsa-utils alsamixer">
248 <primary sortas="b-alsamixer">alsamixer</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="amidi">
254 <term><command>amidi</command></term>
255 <listitem>
256 <para>is used to read from and write to ALSA
257 RawMIDI ports.</para>
258 <indexterm zone="alsa-utils amidi">
259 <primary sortas="b-amidi">amidi</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="amixer">
265 <term><command>amixer</command></term>
266 <listitem>
267 <para> allows command-line control of the mixers for the
268 ALSA sound card drivers.</para>
269 <indexterm zone="alsa-utils amixer">
270 <primary sortas="b-amixer">amixer</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="aplay">
276 <term><command>aplay</command></term>
277 <listitem>
278 <para>is a command-line soundfile player for the
279 ALSA sound card drivers.</para>
280 <indexterm zone="alsa-utils aplay">
281 <primary sortas="b-aplay">aplay</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="aplaymidi">
287 <term><command>aplaymidi</command></term>
288 <listitem>
289 <para>is a command-line utility that plays the specified
290 MIDI file(s) to one or more ALSA sequencer ports.</para>
291 <indexterm zone="alsa-utils aplaymidi">
292 <primary sortas="b-aplaymidi">aplaymidi</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="arecord">
298 <term><command>arecord</command></term>
299 <listitem>
300 <para>is a command-line soundfile recorder for the
301 ALSA sound card drivers.</para>
302 <indexterm zone="alsa-utils arecord">
303 <primary sortas="b-arecord">arecord</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="arecordmidi">
309 <term><command>arecordmidi</command></term>
310 <listitem>
311 <para>is a command-line utility that records a standard
312 MIDI file from one or more ALSA sequencer ports.</para>
313 <indexterm zone="alsa-utils arecordmidi">
314 <primary sortas="b-arecordmidi">arecordmidi</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="aseqdump">
320 <term><command>aseqdump</command></term>
321 <listitem>
322 <para>is a command-line utility that prints the sequencer events it
323 receives as text.</para>
324 <indexterm zone="alsa-utils aseqdump">
325 <primary sortas="b-aseqdump">aseqdump</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="aseqnet">
331 <term><command>aseqnet</command></term>
332 <listitem>
333 <para>is an ALSA sequencer client which sends
334 and receives event packets over a network.</para>
335 <indexterm zone="alsa-utils aseqnet">
336 <primary sortas="b-aseqnet">aseqnet</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
341 <varlistentry id="iecset">
342 <term><command>iecset</command></term>
343 <listitem>
344 <para>is a small utility to set or dump the IEC958 (or so-called
345 <quote>S/PDIF</quote>) status bits of the specified sound
346 card via the ALSA control API.</para>
347 <indexterm zone="alsa-utils iecset">
348 <primary sortas="b-iecset">iecset</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="speaker-test">
354 <term><command>speaker-test</command></term>
355 <listitem>
356 <para>is a command-line speaker test tone generator for ALSA.</para>
357 <indexterm zone="alsa-utils speaker-test">
358 <primary sortas="b-speaker-test">speaker-test</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 </variablelist>
364
365 </sect2>
366
367</sect1>
Note: See TracBrowser for help on using the repository browser.