<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
<HTML
><HEAD
><TITLE
>How do I compile GNOME with all the files in the right
      place for FHS Compliance?  How do I relocate GNOME's etc and var
      directories to easily network GNOME?</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet"><LINK
REL="HOME"
TITLE="GNOME Frequently Asked Questions"
HREF="index.html"><LINK
REL="UP"
TITLE="Compiling GNOME"
HREF="compilinggnome.html"><LINK
REL="PREVIOUS"
TITLE="How do I put GNOME someplace special, like
      /opt/gnome?"
HREF="x394.html"><LINK
REL="NEXT"
TITLE="I'm done with this module, how do I get rid of all the
      object files and other cruft from the source tree?"
HREF="x446.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GNOME Frequently Asked Questions</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x394.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Compiling GNOME</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x446.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="FHS"
>How do I compile GNOME with all the files in the right
      place for FHS Compliance?  How do I relocate GNOME's etc and var
      directories to easily network GNOME?</A
></H1
><P
>By default, GNOME puts all of its files under its prefix
      directory.  While this makes GNOME easy to isolate, it's not
      necessarily the best place for certain files in some situations.
      In particular, if you are looking to network GNOME, or for
      strict <A
HREF="http://www.pathname.com/fhs/2.0/fhs-toc.html"
TARGET="_top"
>FHS</A
> compliance, you might
      want to relocate some directories.  To relocate GNOME's etc
      directory, use the <SPAN
CLASS="OPTION"
>--sysconfdir</SPAN
> option.  To
      relocate the var directory, use the
      <SPAN
CLASS="OPTION"
>--localstatedir</SPAN
> option.</P
><P
>For example, an FHS installation of GNOME might have a
      prefix of <TT
CLASS="FILENAME"
>/opt/gnome</TT
>.  However, it's etc
      files should be in <TT
CLASS="FILENAME"
>/etc/opt/gnome</TT
>, and
      similarly, its var files should be in
      <TT
CLASS="FILENAME"
>/var/opt/gnome</TT
>.  This has the advantage of
      allowing you to network the <TT
CLASS="FILENAME"
>/opt/gnome</TT
>
      directory, keep it read-only, and allow machines to have local
      configuration and information without worrying about other
      machines.  To do this, the configure command would be as
      follows: <TT
CLASS="USERINPUT"
><B
>./configure --prefix=/opt/gnome
      --sysconfdir=/etc/opt/gnome
      --localstatedir=/var/opt/gnome</B
></TT
>.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x394.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x446.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>How do I put GNOME someplace special, like
      <TT
CLASS="FILENAME"
>/opt/gnome</TT
>?</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="compilinggnome.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>I'm done with this module, how do I get rid of all the
      object files and other cruft from the source tree?</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>