Topic: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

I'm just new to crunchbang, seems it's not the default office programs for the system, how do i install latest libreoffice to #!, can anyone help me, install it the right way? big_smile

Thanks ....

Last edited by ysaquerai (2011-07-12 21:51:24)

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

Just out of curiosity, did you go through the setup script "cb-welcome" when you first installed #!?  If so, there should have been an option to install openoffice.org in the cb-welcome script.

If you didn't run "cb-welcome," just open a terminal and type:

cb-welcome

It'll walk you through what to do.  I suggest this because it will also setup other things that you might want/need.  If you don't want to run the cb-welcome script (and you're still using the stable repros), just open a terminal and type:

sudo apt-get install openoffice.org


If you're on the testing repros, type:

sudo apt-get install libreoffice


If you have the stable-backport repros enabled, type:

sudo apt-get install libreoffice/squeeze-backports
or
sudo apt-get install libreoffice/stable-backports


If you want to remove the lightweight office packages that came with #!, just run:

apt-get remove --purge abiword gnumeric


Hope that helps, and welcome to #!.

mikhou

Last edited by mikhou (2011-07-11 09:29:52)

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

i can recommend this procedure:
http://crunchbanglinux.org/forums/post/131281/#p131281
as it worked pretty well.

Pancakes
1 cup all-purpose flour, 2 eggs, 1 cup of  milk, 3 tbs water, 1-2 tsp of vanilla extract, 1/2 cup of sugar, 1/2 apple, few grains of salt
Preheat your pan or griddle to about medium heat. Slowly combine the wet ingredients to the dry ingredients, work in sliced apple. Each pancake should take about a minute or so on each side. Serve with plum jam, maple syrup, or powdered sugar

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

you guys are really helpful, yup i've gone through the cb-welcome thing, but i don't want open office, i just want libre office to be installed, thanks for the helpful input on how to install libreoffice big_smile cheers mates ... smile

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

I know this is marked as solved but you can install it pretty easily from the debian backports without jumping through hoops with other packages:

1) enable the debian backports:

$ sudo nano /etc/apt/sources.list

Uncomment the last line:

## DEBIAN BACKPORTS
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

2) !!IMPORTANT!! fix the pinning so you don't completely screw your system over pulling in every backport ever

$ sudo nano /etc/apt/preferences

change the 100 to a 500 in the second block:

Package: *
Pin: release n=statler
Pin-Priority: 1001

Package: *
Pin: release n=squeeze
Pin-Priority: 500

3) update your packages and install

sudo apt-get update
sudo apt-get -t squeeze-backports install libreoffice

And that's it smile You need the "-t squeeze-backports" so that apt-get will automatically pull in the required deps from backports as well.

Last edited by malachias (2011-10-25 06:21:08)

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

@malachias
Your instructions worked great, thanks big_smile

change the 100 to a 500 in the second block:

Package: *
Pin: release n=statler
Pin-Priority: 1001

Package: *
Pin: release n=squeeze
Pin-Priority: 500

Keep it so for package updates?

Cheers,

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

bloodshoteye wrote:

Keep it so for package updates?

Cheers,

Yes.

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

@malachias, what does it mean to uncomment the last line? I don't have a clear understanding of what is going on.

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

@jhi
in sources.list [located @ /etc/apt/sources.list > open with sudo]
the line in question originally looks like this:

#deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

all you have to do to uncomment it is to remove the "#" to make it look like this:

deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

save the file and you're done...
smile

Pancakes
1 cup all-purpose flour, 2 eggs, 1 cup of  milk, 3 tbs water, 1-2 tsp of vanilla extract, 1/2 cup of sugar, 1/2 apple, few grains of salt
Preheat your pan or griddle to about medium heat. Slowly combine the wet ingredients to the dry ingredients, work in sliced apple. Each pancake should take about a minute or so on each side. Serve with plum jam, maple syrup, or powdered sugar

10

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

Ok, beadmaze, understood, thank you for your help. I will try to install later. smile

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

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.

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

^ As stated in post #3 and http://crunchbanglinux.org/forums/post/130075/#p130075

Nothing right in the left brain. Nothing left in the right brain.

Re: [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox?

I didnt read all the posts, and i simply pasted my entire document -_-