Hey jhi
Not all the methods for installing libre office worked for me, but the one below did.
Libre Office in crunchbang
1. You need to add backports to your sources.list:
sudo gedit /etc/apt/sources.list
And paste in this line:
#SQUEEZE-BACKPORTS
deb http://backports.debian.org/debian-backports squeeze-backports main
2. Update apt with:
sudo apt-get update
3. Then install Libre Office with:
apt-get -t squeeze-backports install libreoffice
4. in a terminal type sudo gedit
then paste in this code, without *
***************************************************************************
#!/bin/bash
# ---------------------------------------------------------------------
# An Openbox pipemenu for use with Libreoffice.org/ and CrunchBang Linux.
# Written for CrunchBang Linux <http://crunchbanglinux.org/>
# by Philip Newborough (aka corenominal) <mail@philipnewborough.co.uk>
# modified by Grant Galbraith (aka omns) <omns@omnsproject.org>
# ---------------------------------------------------------------------
# Set flag
INSTALLED=false
if [ "$1" = "--install" ]; then
terminator --command="cb-libreoffice.org-pipemenu --install-libre"
exit 0
fi
if [ "$1" = "--install-libre" ]; then
clear
echo ""
echo " INSTALL LIBREOFFICE.ORG"
echo " ----------------------"
echo " This script will install libreoffice.org."
echo ""
echo -n " Run the installer now? (Y|n) > "
read a
if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
[ "$a" = "" ]; then
# Checking internet connection...
clear
echo " Checking internet connection..."
sleep 2s
echo ""
IS=`/bin/ping -c 1 ftp.de.debian.org | grep -c "64 bytes"`
if [ "$IS" -lt "1" ]; then
until [ "$CONT" != "" ]; do
echo ""
IS=`/bin/ping -c 1 ftp.de.debian.org | grep -c "64 bytes"`
if [ "$IS" -lt "1" ]; then
clear
echo " Internet connection test failed!"
echo ""
echo " This script requires a working internet connection. Please configure"
echo " your internet connection, then hit any key to continue, else hit \"q\""
echo " to quit."
read -n1 a
if [ "$a" = "q" ]; then
clear
echo "Script aborted."
sleep 3s
exit 0
fi
else
CONT="pass"
fi
done
fi
clear
echo " Internet connection test passed..."
sleep 2s
echo " Updating sources..."
sleep 2s
sudo apt-get update
clear
if ! sudo apt-get install -y libreoffice libreoffice-gtk; then
clear
echo ""
echo " There was a problem installing LibreOffice.org."
echo ""
echo " Hit any key to try again, or \"q\" to quit..."
read -n1 a
if [ "$a" = "q" ] || [ "$a" = "Q" ]; then
clear
exit 0
else
cb-libreoffice.org-pipemenu --install-libre
exit 0
fi
else
clear
echo ""
echo " LibreOffice.org has been installed successfully."
echo ""
echo " Hit any key to exit..."
read -n1 a
exit 0
fi
else
exit 0
fi
fi
# Start pipemenu
echo " <openbox_pipe_menu>"
# Writer
if [ -x "/usr/bin/lowriter" ];then
INSTALLED=true
cat << _lowriter_
<item label="Writer">
<action name="Execute">
<execute>
/usr/bin/lowriter
</execute>
</action>
</item>
_lowriter_
fi
# Formula
if [ -x "/usr/bin/localc" ];then
INSTALLED=true
cat << _localc_
<item label="Calc">
<action name="Execute">
<execute>
/usr/bin/localc
</execute>
</action>
</item>
_localc_
fi
# Impress
if [ -x "//usr/bin/loimpress" ];then
INSTALLED=true
cat << _loimpress_
<item label="Impress">
<action name="Execute">
<execute>
/usr/bin/loimpress
</execute>
</action>
</item>
_loimpress_
fi
# Draw
if [ -x "//usr/bin/lodraw" ];then
INSTALLED=true
cat << _lodraw_
<item label="Draw">
<action name="Execute">
<execute>
/usr/bin/lodraw
</execute>
</action>
</item>
_lodraw_
fi
# Math
if [ -x "/usr/bin/lomath" ];then
INSTALLED=true
cat << _lomath_
<item label="Math">
<action name="Execute">
<execute>
/usr/bin/lomath
</execute>
</action>
</item>
_lomath_
fi
# SQL
if [ -x "/usr/bin/lobase" ];then
INSTALLED=true
cat << _loquery_
<item label="SQL">
<action name="Execute">
<execute>
/usr/bin/lobase
</execute>
</action>
</item>
_loquery_
fi
# Base
if [ -x "/usr/bin/libreoffice" ];then
INSTALLED=true
cat << _lobase_
<item label="Base">
<action name="Execute">
<execute>
libreoffice
</execute>
</action>
</item>
_lobase_
fi
if [ $INSTALLED = false ]; then
cat << _loinstall_
<item label="Install LibreOffice.org">
<action name="Execute">
<execute>
cb-libreoffice.org-pipemenu --install
</execute>
</action>
</item>
_loinstall_
fi
# End pipemenu
echo " </openbox_pipe_menu>"
exit 0
***************************************************************************
5. Now save this file to /usr/bin - Name this file cb-libreoffice.org-pipemenu, close edit
6. Open the Menu editor GUI, in the 'Office' section, edit the entry for open office, by changing the title to libreoffice, and the pipemenu.