Difference between revisions of "KDE4/KDE Pre-Installation Configuration"

From CBLFS
Jump to navigationJump to search
 
(19 intermediate revisions by 6 users not shown)
Line 9: Line 9:
  
 
  install -dv -m755 /opt/kde4
 
  install -dv -m755 /opt/kde4
 +
 +
A few KDE applications require a [[D-BUS]] service to be installed. Ensure that they can be found with the following:
 +
 +
sed -i "/<standard_session_servicedirs \/>/a\  <servicedir>/opt/kde4/share/dbus-1/services</servicedir>" /etc/dbus-1/session.conf
  
 
=== Non-Multilib ===
 
=== Non-Multilib ===
Line 16: Line 20:
 
  cat > /etc/profile.d/30-kde4.sh << "EOF"
 
  cat > /etc/profile.d/30-kde4.sh << "EOF"
 
  # Begin /etc/profile.d/30-kde4.sh
 
  # Begin /etc/profile.d/30-kde4.sh
   
+
  if [ ! -d /tmp/${USER}-kde4 ]; then
 +
mkdir /tmp/${USER}-kde4
 +
fi
 
  export KDEDIR=/opt/kde4
 
  export KDEDIR=/opt/kde4
 
  export KDEDIRS=$KDEDIR
 
  export KDEDIRS=$KDEDIR
export QTDIR=/opt/qt4
 
 
  export KDETMP=/tmp/$USER-kde4
 
  export KDETMP=/tmp/$USER-kde4
export QT_PLUGINS_DIR=$KDEDIR/lib/kde4/plugins:$QTDIR:$QT_PLUGINS_DIR
 
export PATH="${PATH}:${KDE_PREFIX}/bin"
 
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${KDE_PREFIX}/lib/pkgconfig"
 
 
   
 
   
  # End /etc/profile.d/30-kde.sh
+
export PATH="${PATH}:${KDEDIR}/bin"
 +
 +
export STRIGI_HOME=${KDEDIR}
 +
 +
export QT_PLUGINS_DIR=$KDEDIR/lib/kde4/plugins:$QTDIR/lib${QT_PLUGINS_DIR+:}$QT_PLUGINS_DIR
 +
 +
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${KDEDIR}/lib/pkgconfig"
 +
 +
  # End /etc/profile.d/30-kde4.sh
 
  EOF
 
  EOF
 
  source /etc/profile
 
  source /etc/profile
Line 36: Line 46:
 
  /opt/kde4/lib
 
  /opt/kde4/lib
 
   
 
   
  # End KDE addition
+
  # End KDE4 addition
 
  EOF
 
  EOF
  
Line 45: Line 55:
 
  cat > /etc/profile.d/30-kde4.sh << "EOF"
 
  cat > /etc/profile.d/30-kde4.sh << "EOF"
 
  # Begin /etc/profile.d/30-kde4.sh
 
  # Begin /etc/profile.d/30-kde4.sh
   
+
  if [ ! -d /tmp/${USER}-kde4 ]; then
  export KDE_PREFIX=/opt/kde4
+
mkdir /tmp/${USER}-kde4
 +
fi
 +
  export KDEDIR=/opt/kde4
 
  export KDEDIRS=$KDEDIR
 
  export KDEDIRS=$KDEDIR
export QTDIR=/opt/qt4
 
 
  export KDETMP=/tmp/$USER-kde4
 
  export KDETMP=/tmp/$USER-kde4
export PATH="${PATH}:${KDE_PREFIX}/bin"
 
 
   
 
   
  export QT_PLUGINS_DIR32=$KDEDIR/lib/kde4/plugins:$QTDIR/lib:$QT_PLUGINS_DIR
+
export PATH="${PATH}:${KDEDIR}/bin"
  export QT_PLUGINS_DIR64=$KDEDIR/lib64/kde4/plugins:$QTDIR/lib64:$QT_PLUGINS_DIR
+
  export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}${KDE_PREFIX}/lib/pkgconfig"
+
export STRIGI_HOME=${KDEDIR}
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${KDE_PREFIX}/lib64/pkgconfig"
+
 +
  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
 
   
 
   
  # End /etc/profile.d/30-kde.sh
+
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
 
  EOF
 
  source /etc/profile
 
  source /etc/profile
Line 67: Line 84:
 
   
 
   
 
  /opt/kde4/lib
 
  /opt/kde4/lib
 +
/opt/kde4/lib32
 
  /opt/kde4/lib64
 
  /opt/kde4/lib64
 
   
 
   
  # End KDE addition
+
  # End KDE4 addition
 
  EOF
 
  EOF
  
Now we set and unset some VARIBLES that will effect KDE4 and KD3. you might need to modify them depended on you system.
+
* [[KDE4]]
 
 
unset XDG_DATA_DIRS
 
unset XDG_CONFIG_DIRS
 
export KDE_COLOR_DEBUG=1
 
export QTEST_COLORED=1
 
export OBJ_REPLACEMENT="s#$KDE_SRC#$KDE_BUILD#"
 
export LD_LIBRARY_PATH32=$KDEDIR/lib:/opt/qt4/lib:$LD_LIBRARY_PATH
 
export LD_LIBRARY_PATH64=$KDEDIR/lib64:/opt/qt4/lib64:$LD_LIBRARY_PATH
 
unset $PATH
 
export PATH=$KDEDIR/bin:/opt/qt4/bin:/bin:/usr/bin:/usr/local/bin
 

Latest revision as of 13:55, 13 September 2009

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

A few KDE applications require a D-BUS service to be installed. Ensure that they can be found with the following:

sed -i "/<standard_session_servicedirs \/>/a\  <servicedir>/opt/kde4/share/dbus-1/services</servicedir>" /etc/dbus-1/session.conf

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
if [ ! -d /tmp/${USER}-kde4 ]; then
mkdir /tmp/${USER}-kde4
fi
export KDEDIR=/opt/kde4
export KDEDIRS=$KDEDIR
export KDETMP=/tmp/$USER-kde4

export PATH="${PATH}:${KDEDIR}/bin"

export STRIGI_HOME=${KDEDIR}

export QT_PLUGINS_DIR=$KDEDIR/lib/kde4/plugins:$QTDIR/lib${QT_PLUGINS_DIR+:}$QT_PLUGINS_DIR

export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${KDEDIR}/lib/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

# End KDE4 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
if [ ! -d /tmp/${USER}-kde4 ]; then
mkdir /tmp/${USER}-kde4
fi
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 KDE4 addition
EOF