Tuesday, March 10, 2009

Add a GPG signing key for KDE3.5 Repos in BT4 Beta

A GPG signing key has been created for the Pearson Computing's KDE 3.5 repos that are in use in BT4 Beta.

Run this to import the key:

wget http://apt.pearsoncomputing.net/public.gpg
apt-key add public.gpg
apt-get update

apt-get upgrade breaks BackTrack 4 Beta KDE

Some recent reports in the forums have indicated that an apt-get upgrade on BT4 breaks KDE 3. It seems like the guys responsible for the "unofficial" kde3 ubuntu repos made some fundamental changes in their updated version (namely path changes).

Here is a quick fix for the beta if you have upgraded KDE and borked it (copy and paste into a console shell).

cd /etc/alternatives/
mv x-session-manager x-session-manager-broke
ln -s /opt/kde3/bin/startkde x-session-manager
cd /opt/kde3/share/
mv applications borked-applications
mv pixmaps borked-pixmaps
mkdir -p /usr/local/share/applications/kde
cp borked-applications/kde/ksnapshot.desktop /usr/local/share/applications/kde
ln -s /usr/local/share/pixmaps pixmaps
ln -s /usr/local/share/applications applications
cd /opt/kde3/share/icons/crystalsvg/16x16/apps/
ln -s cache.png preferences-web-browser-cache.png
cd /opt/kde3/share/applications/kde
cat ksnapshot.desktop |grep -v ^GenericName > ksnapshot.desktop1
mv ksnapshot.desktop1 ksnapshot.desktop

Alternatively, you can download a script with the same commands and run it:

wget www.offensive-security.com/fix-kde.sh
cat fix-kde.sh
bash fix-kde.sh

Either should do the job!

This fix is f course temporary, and will be fully addressed in the final. Depending on third party repos doesn't seem reliable enough for a smooth run.
We are thinking of various alternatives...