KDE4/KDE Pre-Installation Configuration

From CBLFS
Revision as of 20:58, 5 February 2008 by 161.184.43.148 (talk) (Non-Multilib)
Jump to navigationJump to search

To prevent KDE4 from killing KDE3 we only talk about installing into /opt. This will be changed once KDE4 has been tested and more accepted. We use a hard link to /opt/kde4 to prevent /opt/KDE from being removed and causeing KDE3 to fail.

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

Installing KDE into /opt

Create the /opt/kde4 directory:

install -dv -m755 /opt/kde4

Create the KDE4 tmp dir. This will prolly need to be run once for each user that want access to KDE4.

install -dv -m1777 /tmp/{$USER}-kde4

Non-Multilib

Create an addition to the Bash Startup Files:

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

export KDEDIR=/opt/kde4
export KDEDIRS=$KDEDIR
export KDETMP=/tmp/$USER-kde4
export STRIGI_HOME=${KDEDIR}
export QT_PLUGINS_DIR=$KDEDIR/lib/kde4/plugins:$QTDIR/lib${QT_PLUGINS_DIR+:}$QT_PLUGINS_DIR
export PATH="${PATH}:${KDEDIR}/bin"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${KDEDIR}/lib/pkgconfig"
export XDG_CONFIG_DIRS='${XDG_CONFIG_DIRS}:${KDEDIR}/share
# End /etc/profile.d/30-kde4.sh
EOF
source /etc/profile

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

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

/opt/kde4/lib

# End KDE addition
EOF

Multilib

Create an addition to the Bash Startup Files:

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

export KDEDIR=/opt/kde4
export KDEDIRS=$KDEDIR
export KDETMP=/tmp/$USER-kde4
export PATH="${PATH}:${KDEDIR}/bin"
export STRIGI_HOME=${KDEDIR}
export QT_PLUGINS_DIR32=$KDEDIR/lib/kde4/plugins:$QTDIR/lib${QT_PLUGINS_DIR+:}$QT_PLUGINS_DIR
export QT_PLUGINS_DIRN32=$KDEDIR/lib32/kde4/plugins:$QTDIR/lib32${QT_PLUGINS_DIR+:}$QT_PLUGINS_DIR
export QT_PLUGINS_DIR64=$KDEDIR/lib64/kde4/plugins:$QTDIR/lib64${QT_PLUGINS_DIR+:}$QT_PLUGINS_DIR
export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}${KDEDIR}/lib/pkgconfig"
export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}${KDEDIR}/lib32/pkgconfig"
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${KDEDIR}/lib64/pkgconfig" 

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

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

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

/opt/kde4/lib
/opt/kde4/lib32
/opt/kde4/lib64

# End KDE addition
EOF