Difference between revisions of "Gnome2"

From CBLFS
Jump to navigationJump to search
m (Create and Update Environment Variables)
Line 1: Line 1:
 
=Pre-Installation Configuration=
 
=Pre-Installation Configuration=
 +
 +
If you're using the [[Bash Startup Files]] then run the commands below. Otherwise make sure that the values you want are properly set.
  
 
==Installation Strategies==
 
==Installation Strategies==
  
If you're committed to GNOME as your desktop, you will likely install it in the /usr hierarchy.  If less committed, or you prefer to install GNOME in an easy to remove location, the /opt hierarchy may be more suitable.  A third option, which simplifies version changes in the future, would be to install GNOME in a versioned directory and create a non-versioned symbolic link.
+
If you're committed to GNOME as your desktop, you will likely install it in the /usr hierarchy.  If less committed, or you prefer to install GNOME in an easy to remove location, the /opt hierarchy may be more suitable.
 +
 
 +
== Installing Gnome into /usr ==
 +
 
 +
Create and addition to the [[Bash Startup Files]]:
 +
 
 +
cat > /etc/prfile.d/30-gnome.sh << "EOF"
 +
# Begin /etc/profile.d/30-gnome.sh
 +
 +
export GNOME_PREFIX=/usr
 +
 +
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg"
 +
 +
# End /etc/profile.d/30-gnome.sh
 +
EOF
 +
  source /etc/profile
 +
 
 +
== Installing GNOME into /opt ==
 +
 
 +
Create a link from gnome-2.6.16 to gnome to make upgrades and changes in the future easier:
 +
 
 +
install -dv -m755 /opt/gnome-2.6.16 &&
 +
ln -sf gnome-2.6.16 /opt/gnome
 +
 
 +
Even though the env variables are refering to '''/opt/gnome''', '''''GNOME_PREFIX''''' should still be set to '''/opt/gnome-2.6.16''' as that's where GNOME is going to be installed to.
  
==Create and Update Environment Variables==
+
=== Non-Multilib ===
  
Set an environment variable for the prefix destination, if you wish.  Option 1:
+
Create an addition to the [[Bash Startup Files]]:
  
  export GNOME=/usr
+
cat > /etc/prfile.d/30-gnome.sh << "EOF"
 +
# Begin /etc/profile.d/30-gnome.sh
 +
 +
export GNOME_PREFIX=/opt/gnome-2.6.16
 +
 +
export PATH="${PATH}:/opt/gnome/bin"
 +
 +
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}/opt/gnome/lib/pkgconfig"
 +
 +
export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}/opt/gnome/share"
 +
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg"
 +
 +
# End /etc/profile.d/30-gnome.sh
 +
EOF
 +
source /etc/profile
  
Option 2:
+
Add a new entry to /etc/ld.so.conf for the libraries that GNOME is going to install:
  
  export GNOME=/opt/gnome-2.16
+
cat >> /etc/ld.so.conf << "EOF"
 +
# Begin GNOME addition to /etc/ld.so.conf
 +
 +
/opt/gnome/lib
 +
 +
# End GNOME addition
 +
EOF
  
Option 3:
+
== Multilib ==
  
  install -dv -m755 /opt/gnome-2.16
+
Create an addition to the [[Bash Startup Files]]:
  ln -sv gnome-2.16 /opt/gnome
 
  export GNOME=/opt/gnome
 
 
 
If installing GNOME in other than the /usr hierarchy, some configuration changes are needed.  If using a symbolic link, replace gnome-2.14 with gnome in the following commands.
 
  
Update or add paths in the system or user profile.
+
cat > /etc/prfile.d/30-gnome.sh << "EOF"
 +
# Begin /etc/profile.d/30-gnome.sh
 +
 +
export GNOME_PREFIX=/opt/gnome-2.6.16
 +
 +
export PATH="${PATH}:/opt/gnome/bin"
 +
 +
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}/opt/gnome/lib/pkgconfig"
 +
export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32:+:}/opt/gnome/lib32/pkgconfig"
 +
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64:+:}/opt/gnome/lib64/pkgconfig"
  
  export PATH=$PATH:/opt/gnome-2.16/bin
+
export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}/opt/gnome/share"
  export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome-2.16/lib/pkgconfig
+
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg"
  export GNOME_LIB_PATH=/usr/lib:/opt/gnome-2.16/lib
+
 +
# End /etc/profile.d/30-gnome.sh
 +
EOF
 +
source /etc/profile
  
Add the GNOME library path to your /etc/ld.so.conf then execute '''ldconfig''' as the ''root'' user.
+
Add a new entry to /etc/ld.so.conf for the libraries that GNOME is going to install:
  
  echo /opt/gnome-2.16/lib >> /etc/ld.so.conf
+
cat >> /etc/ld.so.conf << "EOF"
  ldconfig
+
# Begin GNOME addition to /etc/ld.so.conf
 +
 +
/opt/gnome/lib
 +
/opt/gnome/lib32
 +
/opt/gnome/lib64
 +
 +
# End GNOME addition
 +
EOF
  
 
==Prerequisites==
 
==Prerequisites==

Revision as of 10:55, 15 October 2006

Pre-Installation Configuration

If you're using the Bash Startup Files then run the commands below. Otherwise make sure that the values you want are properly set.

Installation Strategies

If you're committed to GNOME as your desktop, you will likely install it in the /usr hierarchy. If less committed, or you prefer to install GNOME in an easy to remove location, the /opt hierarchy may be more suitable.

Installing Gnome into /usr

Create and addition to the Bash Startup Files:

cat > /etc/prfile.d/30-gnome.sh << "EOF"
# Begin /etc/profile.d/30-gnome.sh

export GNOME_PREFIX=/usr

export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg"

# End /etc/profile.d/30-gnome.sh
EOF
source /etc/profile

Installing GNOME into /opt

Create a link from gnome-2.6.16 to gnome to make upgrades and changes in the future easier:

install -dv -m755 /opt/gnome-2.6.16 &&
ln -sf gnome-2.6.16 /opt/gnome

Even though the env variables are refering to /opt/gnome, GNOME_PREFIX should still be set to /opt/gnome-2.6.16 as that's where GNOME is going to be installed to.

Non-Multilib

Create an addition to the Bash Startup Files:

cat > /etc/prfile.d/30-gnome.sh << "EOF"
# Begin /etc/profile.d/30-gnome.sh

export GNOME_PREFIX=/opt/gnome-2.6.16

export PATH="${PATH}:/opt/gnome/bin"

export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}/opt/gnome/lib/pkgconfig"

export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}/opt/gnome/share"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg"

# End /etc/profile.d/30-gnome.sh
EOF
source /etc/profile

Add a new entry to /etc/ld.so.conf for the libraries that GNOME is going to install:

cat >> /etc/ld.so.conf << "EOF"
# Begin GNOME addition to /etc/ld.so.conf

/opt/gnome/lib

# End GNOME addition
EOF

Multilib

Create an addition to the Bash Startup Files:

cat > /etc/prfile.d/30-gnome.sh << "EOF"
# Begin /etc/profile.d/30-gnome.sh

export GNOME_PREFIX=/opt/gnome-2.6.16

export PATH="${PATH}:/opt/gnome/bin"

export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}/opt/gnome/lib/pkgconfig"
export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32:+:}/opt/gnome/lib32/pkgconfig"
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64:+:}/opt/gnome/lib64/pkgconfig"
export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}/opt/gnome/share"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg"

# End /etc/profile.d/30-gnome.sh
EOF
source /etc/profile

Add a new entry to /etc/ld.so.conf for the libraries that GNOME is going to install:

cat >> /etc/ld.so.conf << "EOF"
# Begin GNOME addition to /etc/ld.so.conf

/opt/gnome/lib
/opt/gnome/lib32
/opt/gnome/lib64

# End GNOME addition
EOF

Prerequisites

You'll need to have an X Window System installed, either Xorg or XFree86. Commence GNOME installation.