- Timestamp:
- 04/17/2005 11:03:59 PM (19 years ago)
- Children:
- af9b59e
- Parents:
- a2d4711a
- Location:
- chapter07
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/profile.xml
ra2d4711a ra4495da 62 62 two-letter code for the desired language (e.g., <quote>en</quote>) and 63 63 <replaceable>[CC]</replaceable> with the two-letter code for the 64 appropriate country (e.g., <quote>GB</quote>). It may also be 65 necessary to specify (and this is actually the preferred form) the 66 character encoding (e.g. <quote>iso8859-1</quote>) after a dot (so 67 that the result is <quote>en_GB.iso8859-1</quote>). Issue the 68 following command for more information:</para> 69 70 <screen><userinput>man 3 setlocale</userinput></screen> 64 appropriate country (e.g., <quote>GB</quote>). 65 <replaceable>[charmap]</replaceable> should be replaced with the 66 canonical charmap for your chosen locale.</para> 71 67 72 68 <para>The list of all locales supported by Glibc can be obtained by running … … 74 70 75 71 <screen><userinput>locale -a</userinput></screen> 72 73 <para>Locales can have a number of synonyms, e.g. <quote>ISO-8859-1</quote> is 74 also referred to as <quote>iso8859-1</quote> and <quote>iso88591</quote>. 75 Some applications cannot handle the various synonyms correctly, so it is safest 76 to choose the canonical name for a particular locale. To determine the 77 canonical name, run the following command, where 78 <replaceable>[locale name]</replaceable> is the output given by 79 <command>locale -a</command> for your preferred locale 80 (<quote>en_GB.iso88591</quote> in our example).</para> 81 82 <screen><userinput>LC_ALL=<replaceable>[locale name]</replaceable> locale charmap</userinput></screen> 83 84 <para>For the <quote>en_GB.iso88591</quote> locale, the above command 85 will print:</para> 86 87 <screen>ISO-8859-1</screen> 88 89 <para>This results in in a final locale setting of <quote>en_GB.ISO-8859-1</quote>.</para> 76 90 77 91 <para>Once the proper locale settings have been determined, create the … … 81 95 <literal># Begin /etc/profile 82 96 83 export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable> 84 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable> 97 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable> 85 98 export INPUTRC=/etc/inputrc 86 99 -
chapter07/udev.xml
ra2d4711a ra4495da 31 31 resides entirely in memory and does not take up any disk space). 32 32 Device nodes do not require much disk space, so the memory that is 33 used i n negligable.</para>33 used is negligible.</para> 34 34 35 35 <sect2> … … 153 153 <title>Handling Hotpluggable/Dynamic Devices</title> 154 154 155 <para>When you plug in a device, such a Universal Serial Bus (USB) MP3 player, the kernel155 <para>When you plug in a device, such as a Universal Serial Bus (USB) MP3 player, the kernel 156 156 recognizes that the device is now connected and generates a hotplug 157 157 event. If the driver is already loaded (either because it was compiled … … 160 160 be called upon to create the relevant device node(s) according to the 161 161 <systemitem class="filesystem">sysfs</systemitem> data available in 162 <filename class="directory">/sys</filename>. If the driver for the 163 just plugged in device is available as a module but currently unloaded, 164 then attaching the device to the system will only cause the kernel's 165 bus driver to generate a hotplug event that notifies userspace of the 166 new device connection and it not being attached to a driver. In 167 effect, nothing happens and the device itself is not usable 168 yet.</para> 169 170 <para>If building a system that has a lot of drivers compiled as 171 modules rather than directly built into the kernel, using the 172 <command>S05modules</command> may not be practical. The Hotplug 173 package (see <ulink url="http://linux-hotplug.sourceforge.net/"/>) can 174 be beneficial in these cases. When the Hotplug package is installed, 175 it will respond to the aforementioned kernel's bus driver hotplug 176 events. The Hotplug package will load the appropriate module and make 177 this device available by creating the device node(s) for it.</para> 162 <filename class="directory">/sys</filename>.</para> 163 164 <para>If the driver for the just plugged in device is available as a module but 165 currently unloaded, the Hotplug package will load the appropriate module 166 and make this device available by creating the device node(s) for it.</para> 178 167 </sect2> 179 168
Note:
See TracChangeset
for help on using the changeset viewer.