Changeset 8edca0a
- Timestamp:
- 02/15/2013 07:26:30 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- e4d8c0cd
- Parents:
- 9cefc3b
- Location:
- chapter06
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/createfiles.xml
r9cefc3b r8edca0a 64 64 <literal>root:x:0:0:root:/root:/bin/bash 65 65 bin:x:1:1:bin:/dev/null:/bin/false 66 messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false 66 67 nobody:x:99:99:Unprivileged User:/dev/null:/bin/false</literal> 67 68 EOF</userinput></screen> … … 91 92 cdrom:x:15: 92 93 adm:x:16: 94 messagebus:x:18: 93 95 mail:x:34: 94 96 nogroup:x:99:</literal> -
chapter06/dbus.xml
r9cefc3b r8edca0a 26 26 <para>D-Bus is a message bus system, a simple way for applications to talk 27 27 to one another. D-Bus supplies both a system daemon (for events such as 28 “new hardware device added” or “printer queue changed”) and a28 "new hardware device added" or "printer queue changed") and a 29 29 per-user-login-session daemon (for general IPC needs among user 30 30 applications). Also, the message bus is built on top of a general one-to-one … … 47 47 <title>Installation of D-Bus</title> 48 48 49 <para>The D-Bus system daemon (the message bus) needs to run as a non-priveleged user, so create a suitable group and user:</para>50 51 <screen><userinput remap="pre">groupadd -g 18 messagebus52 useradd -c "D-Bus Message Daemon User" -d /var/run/dbus \53 -u 18 -g messagebus -s /bin/false messagebus</userinput></screen>54 55 49 <para>Prepare D-Bus for compilation:</para> 56 50 … … 58 52 --sysconfdir=/etc \ 59 53 --localstatedir=/var \ 54 --libexecdir=/usr/lib/dbus-1.0 \ 60 55 --docdir=/usr/share/doc/dbus-&dbus-version; \ 61 --libexecdir=/usr/lib/dbus-1.0 \62 56 --with-console-auth-dir=/run/console/ \ 63 --without-systemdsystemunitdir \ 64 --disable-systemd</userinput></screen> 57 --with-systemdsystemunitdir=/lib/systemd/system</userinput></screen> 65 58 66 59 <variablelist> … … 72 65 <para>This specifies the location of the ConsoleKit auth 73 66 directory.</para> 74 </listitem>75 </varlistentry>76 77 <varlistentry>78 <term><parameter>--without-systemdsystemunitdir</parameter></term>79 <listitem>80 <para>This prevents installation of Systemd unit files as Systemd81 has not been installed yet (due to a circular dependency; Systemd82 requires D-Bus, but D-Bus can also use Systemd functionality).</para>83 </listitem>84 </varlistentry>85 86 <varlistentry>87 <term><parameter>--disable-systemd</parameter></term>88 <listitem>89 <para>This disables Systemd support in D-Bus, again due to the90 circular dependency between D-Bus and Systemd.</para>91 67 </listitem> 92 68 </varlistentry> … … 103 79 <para>Install the package:</para> 104 80 105 <screen><userinput remap="install">make install</userinput></screen> 81 <screen><userinput remap="install">make install 82 dbus-uuidgen --ensure</userinput></screen> 106 83 107 84 </sect2> … … 113 90 <segtitle>Installed programs</segtitle> 114 91 <segtitle>Installed libraries</segtitle> 92 <segtitle>Installed directories</segtitle> 115 93 116 94 <seglistitem> 117 <seg>dbus-cleanup-sockets, dbus-daemon, dbus- monitor, dbus-send,118 dbus- uuidgen</seg>95 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor, 96 dbus-send and dbus-uuidgen</seg> 119 97 <seg>libdbus-1.{so,a}</seg> 98 <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0, 99 /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version; and 100 /var/lib/dbus</seg> 120 101 </seglistitem> 121 102 </segmentedlist> … … 142 123 <indexterm zone="ch-system-dbus dbus-daemon"> 143 124 <primary sortas="b-dbus-daemon">dbus-daemon</primary> 125 </indexterm> 126 </listitem> 127 </varlistentry> 128 129 <varlistentry id="dbus-launch"> 130 <term><command>dbus-launch</command></term> 131 <listitem> 132 <para>Starts <command>dbus-daemon</command> from a shell 133 script.</para> 134 <indexterm zone="ch-system-dbus dbus-launch"> 135 <primary sortas="b-dbus-launch">dbus-launch</primary> 144 136 </indexterm> 145 137 </listitem> -
chapter06/findutils.xml
r9cefc3b r8edca0a 75 75 76 76 <screen><userinput remap="install">make install</userinput></screen> 77 78 <para>Some of the scripts in the LFS-Bootscripts package depend on79 <command>find</command>. As <filename class="directory">/usr</filename>80 may not be available during the early stages of booting, this program81 needs to be on the root partition. The <command>updatedb</command>82 script also needs to be modified to correct an explicit path:</para>83 84 <screen><userinput remap="install">mv -v /usr/bin/find /bin85 sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb</userinput></screen>86 77 87 78 </sect2> -
chapter06/intltool.xml
r9cefc3b r8edca0a 57 57 58 58 <screen><userinput remap="install">make install 59 install -v - m644 -Ddoc/I18N-HOWTO \60 /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen>59 install -v -Dm644 doc/I18N-HOWTO \ 60 /usr/share/doc/intltool-&intltool-version;/I18N-HOWTO</userinput></screen> 61 61 62 62 </sect2> … … 67 67 <segmentedlist> 68 68 <segtitle>Installed program</segtitle> 69 <segtitle>Installed library</segtitle>70 69 <segtitle>Installed directories</segtitle> 71 70 … … 73 72 <seg>intltool-extract, intltool-merge, intltool-prepare, 74 73 intltool-update, and intltoolize</seg> 75 <seg>None</seg>76 74 <seg>/usr/share/doc/intltool-&intltool-version; and 77 75 /usr/share/intltool</seg> -
chapter06/kbd.xml
r9cefc3b r8edca0a 57 57 <para>Prepare Kbd for compilation:</para> 58 58 59 <screen><userinput remap="configure">./configure --prefix=/usr --datadir=/lib/kbd \ 60 --disable-vlock</userinput></screen> 59 <screen><userinput remap="configure">./configure --prefix=/usr --datadir=/lib/kbd --disable-vlock</userinput></screen> 61 60 62 61 <variablelist> … … 128 127 kbd_mode, kbdrate, loadkeys, loadunimap, 129 128 mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to 130 psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,-->129 psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons, 131 130 setfont, setkeycodes, setleds, setmetamode, 132 131 showconsolefont, showkey, unicode_start, and unicode_stop</seg> … … 302 301 </varlistentry> 303 302 304 < !--<varlistentry id="resizecons">303 <varlistentry id="resizecons"> 305 304 <term><command>resizecons</command></term> 306 305 <listitem> … … 310 309 </indexterm> 311 310 </listitem> 312 </varlistentry> -->311 </varlistentry> 313 312 314 313 <varlistentry id="setfont"> -
chapter06/kmod.xml
r9cefc3b r8edca0a 158 158 </varlistentry> 159 159 160 <varlistentry id="lsmod"> 161 <term><command>lsmod</command></term> 162 <listitem> 163 <para>Lists currently loaded modules</para> 164 <indexterm zone="ch-system-kmod lsmod"> 165 <primary sortas="b-lsmod">lsmod</primary> 166 </indexterm> 167 </listitem> 168 </varlistentry> 169 170 <varlistentry id="modinfo"> 171 <term><command>modinfo</command></term> 172 <listitem> 173 <para>Examines an object file associated with a kernel module and 174 displays any information that it can glean</para> 175 <indexterm zone="ch-system-kmod modinfo"> 176 <primary sortas="b-modinfo">modinfo</primary> 177 </indexterm> 178 </listitem> 179 </varlistentry> 180 181 <varlistentry id="modprobe"> 182 <term><command>modprobe</command></term> 183 <listitem> 184 <para>Uses a dependency file, created by 185 <command>depmod</command>, to automatically load relevant modules</para> 186 <indexterm zone="ch-system-kmod modprobe"> 187 <primary sortas="b-modprobe">modprobe</primary> 188 </indexterm> 189 </listitem> 190 </varlistentry> 191 192 <varlistentry id="rmmod"> 193 <term><command>rmmod</command></term> 194 <listitem> 195 <para>Unloads modules from the running kernel</para> 196 <indexterm zone="ch-system-kmod rmmod"> 197 <primary sortas="b-rmmod">rmmod</primary> 198 </indexterm> 199 </listitem> 200 </varlistentry> 201 160 202 <varlistentry id="libkmod"> 161 203 <term><filename class="libraryfile">libkmod</filename></term> … … 169 211 </varlistentry> 170 212 171 <varlistentry id="lsmod">172 <term><command>lsmod</command></term>173 <listitem>174 <para>Lists currently loaded modules</para>175 <indexterm zone="ch-system-kmod lsmod">176 <primary sortas="b-lsmod">lsmod</primary>177 </indexterm>178 </listitem>179 </varlistentry>180 181 <varlistentry id="modinfo">182 <term><command>modinfo</command></term>183 <listitem>184 <para>Examines an object file associated with a kernel module and185 displays any information that it can glean</para>186 <indexterm zone="ch-system-kmod modinfo">187 <primary sortas="b-modinfo">modinfo</primary>188 </indexterm>189 </listitem>190 </varlistentry>191 192 <varlistentry id="modprobe">193 <term><command>modprobe</command></term>194 <listitem>195 <para>Uses a dependency file, created by196 <command>depmod</command>, to automatically load relevant modules</para>197 <indexterm zone="ch-system-kmod modprobe">198 <primary sortas="b-modprobe">modprobe</primary>199 </indexterm>200 </listitem>201 </varlistentry>202 203 <varlistentry id="rmmod">204 <term><command>rmmod</command></term>205 <listitem>206 <para>Unloads modules from the running kernel</para>207 <indexterm zone="ch-system-kmod rmmod">208 <primary sortas="b-rmmod">rmmod</primary>209 </indexterm>210 </listitem>211 </varlistentry>212 213 213 </variablelist> 214 214 -
chapter06/sysvinit.xml
r9cefc3b r8edca0a 42 42 <title>Installation of Sysvinit</title> 43 43 44 <para>Compile the package:</para> 44 <para>Since LFS uses Systemd as init system, this package 45 is needed for few utils that are not present in other 46 packages. Compile the package:</para> 45 47 46 <screen><userinput remap="make">make -C src</userinput></screen> 48 <screen><userinput remap="make">make -C src fstab-decode 49 make -C src killall5 50 make -C src last</userinput></screen> 47 51 48 52 <para>This package does not come with a test suite.</para> … … 50 54 <para>Install the package:</para> 51 55 52 <screen><userinput remap="install">make -C src install</userinput></screen> 56 <screen><userinput remap="install">cp -v src/{fstab-decode,killall5} /sbin 57 ln -sv ../sbin/killall5 /bin/pidof 58 cp -v src/last /usr/bin 59 ln -sv last /usr/bin/lastb</userinput></screen> 60 61 <para>Install manual pages for the installed programs:</para> 62 63 <screen><userinput remap="install">cp -v man/{last,lastb}.1 /usr/share/man/man1 64 cp -v man/{fstab-decode,killall5,pidof}.8 /usr/share/man/man8</userinput></screen> 53 65 54 66 </sect2> -
chapter06/xz.xml
r9cefc3b r8edca0a 47 47 <para>Prepare Xz for compilation with:</para> 48 48 49 <screen><userinput remap="configure">./configure --prefix=/usr -- libdir=/lib --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>49 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen> 50 50 51 51 <para>Compile the package:</para> … … 59 59 <para>Install the package:</para> 60 60 61 <screen><userinput remap="install">make pkgconfigdir=/usr/lib/pkgconfig install</userinput></screen> 61 <screen><userinput remap="install">make install</userinput></screen> 62 63 <para>The shared library needs to be moved to 64 <filename class="directory">/lib</filename>, and as a result the 65 <filename class="extension">.so</filename> file in 66 <filename class="directory">/usr/lib</filename> will need to be recreated:</para> 67 68 <screen><userinput remap="install">mv -v /usr/lib/liblzma.so.* /lib 69 ln -sfv ../../lib/liblzma.so.5.0.4 /usr/lib/liblzma.so</userinput></screen> 62 70 63 71 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.