1 TITLE: Installing Gnome + Sawfish on LFS
3 AUTHOR: Mike Hildebrandt <mikehild@insight.org>
6 Getting from a plain LFS + X installation to a working Gnome/Sawfish environment.
10 ================================================================================
15 As you likely already know, this document should hopefully make it less
16 painless to get Gnome running on an LFS-based system. I don't see why these
17 instructions shouldn't work on other Linux distributions though - just that
18 several of these packages may already be installed, or older versions may be
19 installed which would need to be uninstalled first.
20 I don't claim to have created a "Definitive Guide to Gnome Installations",
21 nor do I claim to be an expert at Linux and/or Gnome (far from it, actually).
22 Rather, this is a list of what I did to get Gnome to work on my LFS install.
23 My hope is that these instructions work as smoothly for others as it did
24 for me. For the most part, the configuring and compiling itself isn't all
25 that complicated, but it's the order you install them in that makes a big
26 difference. In the event you encounter problems feel free to post it to the
27 lfs-apps@linuxfromscratch.com mailing list and there should be someone there
28 that knows of a solution.
29 Also, the window manager I decided to go with is Sawfish, mainly due to
30 it's inclusion in Helixcode's distribution of Gnome. I've made it clear
31 which packages are only required by Sawfish and not Gnome so you're not
32 installing unnecessary packages should you decide to install a different
33 window manager instead.
37 At this point, I have chosen not to install any packages found only in
38 the "Unstable" directory on the Gnome ftp site (such as bonobo, nautilus,
39 etc), even though some of them could be quite useful or others can be used
40 by the base packages. My reasoning for this is that first of all, these
41 packages are still in development and have not yet been deemed to be stable
42 by the Gnome team and/or their developers. Secondly, none of the base
43 packages described below require them to function properly, that I've seen.
44 When I have time, I am planning on looking into many of these new packages,
45 and when I do I'll try to update this document accordingly.
49 This file assumes that you have gone through the LFS Hint "X11Guide.txt"
50 by Sergey Ostrovsky, located at archive.linuxfromscratch.org/lfs-hints.
51 Although the purpose of that document is to get KDE2 up and running, it also
52 describes in detail how to install XFree86 4.01 as well as several libs that
53 are also needed by Gnome, so I decided not to duplicate their installation
55 In particular, you will need to install everything from X11Guide.txt,
56 except for lcms, libmng, qt, and kde*, unless, of course, you are planning
57 on installing KDE2 as well (lcms and libmng aren't KDE-specific, but none of
58 the Gnome packages seemed to need them).
60 ================================================================================
61 II. Packages to download
63 Following is a list of all the packages you need to download, as well as the
64 address you should be able to download it from. The values in brackets are
65 the version numbers of the most current packages at the time of writing. If
66 you find a higher version available, it should be safe to download it instead,
67 especially with the packages from the Gnome website. The Gnome guys are nice
68 enough to have the links on their website point to the most recent stable
69 versions of the packages.
72 ftp://prtr-13.ucsc.edu/pub/libgif - libungif (4.1.0b1)
73 www.sleepycat.com - db (3.1.14)
74 ftp.gnu.org/pub/gnu/bc - bc (1.05a)
75 www.gnome.org/start/installing - audiofile (0.1.9)
88 control-center (1.2.2)
92 ftp.gnu.org/pub/gnu/gmp - gmp (3.1)
93 ftp.gnu.org/pub/gnu/gdbm - gdbm (1.8.0)
94 sourceforge.net/project/filelist.php?group id=580 - librep (0.13)
95 sourceforge.net/project/filelist.php?group id=581 - rep-gtk (0.14)
96 sourceforge.net/project/filelist.php?group id=32 - sawfish (0.31.1)
98 ================================================================================
99 III. Installing Gnome Packages
101 1) Setting up for install
103 export CONF="--prefix=/usr --enable-shared"
105 echo "games:x:9:" >> /etc/group /* Or if you've added groups
106 yourself, change 9 to the
109 2) libungif - library for handling gif images
115 3) db - Berkeley DB database software
118 ../dist/configure $CONF --enable-compat185
122 4) glib - Additional GTK C libraries
129 5) gtk+ - Gimp Toolkit, library for creating GUIs
136 6) imlib - Image loading & rendering library
142 7) ORBit - Not quite sure what this is, but everything else needs it...
148 8) audiofile - Processes audio from various file formats
154 9) esound - Enlightened Sound Daemon, allows simultaneous playback of
155 multiple audio streams (ie. mixes two files in real time)
161 10) gnome-libs - Main libraries used by Gnome applications
163 ./configure $CONF --enable-prefer-db1
167 11) gdk-pixbuf - Image loading & rendering library (similar to Imlib)
173 12) libxml - XML parser for Gnome
179 13) libghttp - Gnome http client library
185 14) bc - precision numeric processing language
190 15) libtop - Provides info on running processes
196 16) libglade - Allows apps to load glade interface files
202 17) control-center - The primary means of configuring Gnome
208 18) gnome-core - The Gnome Panel plus other main parts of Gnome
214 19) gnome-applets - All the cool little programs that can run in the panel
220 20) gtk-engines - Basically just four extra GTK themes
226 21) mc - GNU Midnight Commander, file manager & desktop
232 ================================================================================
233 IV. Installing Sawfish Packages
235 1) gmp - GNU MP, precision arithmetic library
241 2) gdbm - GNU dbm database routines
248 3) librep - Lisp interpreter
254 4) rep-gtk - GTK+/Gnome/libglade bindings for Lisp
260 5) sawfish - The Sawfish window manager
266 ================================================================================
269 This part's quite simple, unless you or other applications have changed
270 things around. Edit the file /etc/X11/xinit/xinitrc, and go to the bottom
271 of the file. If Gnome was installed onto a fresh X installation, there
272 should be lines that run xclock and three xterms. Replace those lines with:
276 and save the file. If all went correctly, running startx should bring you to
277 the default Gnome desktop.
278 Installing the packages listed under "Gnome Additional source downloads" on
279 page where you downloaded the base and core packages should be as easy as a
280 /configure && make && make install. I haven't tried all of them yet, so I
281 can't be too sure. At the very least you'll probably want to install the
282 users-guide, gnome-utils, gnome-games, gnome-audio, and gnome-media packages
283 (or maybe not the last two if you don't have a sound card =). I haven't tried
284 the rest of the additional packages yet due to time constraints, but I'll be
285 sure to update this document once I do. I figured it wasn't worth holding on
286 to this for another few weeks while I figured out the non-mandatory packages.
287 If you're bored of the default appearance and want to change the look of
288 Gnome/Sawfish, you can download additional themes from gtk.themes.org and
289 sawfish.themes.org. To install gtk themes, unpack the downloaded archive into
290 /usr/share/themes. To install sawfish themes, copy the downloaded archive into
291 /usr/share/sawfish/themes (do not unpack!).
293 ===============================================================================
296 * Install rest of additional Gnome packages
297 * Try out some of the stuff from the "Unstable" source tree and see if
298 any of it's worth adding to this document yet (being careful not to follow
299 Redhat's recent example... ;)
300 * Finish reading "Lord of the Rings" (part of the reason this project has
301 been delayed longer than I would have liked... =)
303 ===============================================================================