LXDE Pre-Installation Configuration

From CBLFS
Jump to navigationJump to search

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 LXDE as your desktop, you will likely install it in the /usr hierarchy. If less committed, or you prefer to install LXDE in an easy to remove location, the /opt hierarchy may be more suitable.

Installing LXDE into /usr

Create an addition to the Bash Startup Files:

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

export LXDE_PREFIX=/usr

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

# End /etc/profile.d/30-lxde.sh
EOF

source /etc/profile

Installing LXDE into /opt

Create the /opt/lxde directory:

install -v -m755 -d /opt/lxde

Non-Multilib

Create an addition to the Bash Startup Files:

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

export LXDE_PREFIX=/opt/lxde

if [ $EUID -eq 0 ]; then
  export PATH="${PATH}:${LXDE_PREFIX}/sbin"
fi
export PATH="${PATH}:${LXDE_PREFIX}/bin"

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

export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${LXDE_PREFIX}/share"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/lxde/xdg"

# End /etc/profile.d/30-lxde.sh
EOF

source /etc/profile

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

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

/opt/lxde/lib

# End LXDE addition
EOF

Multilib

Create an addition to the Bash Startup Files:

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

export LXDE_PREFIX=/opt/lxde

if [ $EUID -eq 0 ]; then
  export PATH="${PATH}:${LXDE_PREFIX}/sbin"
fi
export PATH="${PATH}:${LXDE_PREFIX}/bin"

export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}${LXDE_PREFIX}/lib/pkgconfig"
export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}${LXDE_PREFIX}/lib32/pkgconfig"
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${LXDE_PREFIX}/lib64/pkgconfig"

export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${LXDE_PREFIX}/share"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/lxde/xdg"

# End /etc/profile.d/30-lxde.sh
EOF

source /etc/profile

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

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

/opt/lxde/lib
/opt/lxde/lib32
/opt/lxde/lib64

# End LXDE addition
EOF