SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-07-11 08:14:03

ysaquerai
Member
Registered: 2011-07-11
Posts: 31

[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)

Offline

Be excellent to each other!

#2 2011-07-11 09:28:49

mikhou
#! CrunchBanger
Registered: 2011-06-12
Posts: 148

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)

Offline

#3 2011-07-11 11:48:37

beadmaze
#! Junkie
Registered: 2009-10-10
Posts: 325

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.


We are a nice, friendly community here and I hope we stay that way.

Offline

#4 2011-07-11 12:03:20

ysaquerai
Member
Registered: 2011-07-11
Posts: 31

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

Offline

#5 2011-10-25 06:17:15

malachias
New Member
Registered: 2011-09-26
Posts: 6

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)

Offline

#6 2011-11-01 14:35:26

bloodshoteye
New Member
From: ZA
Registered: 2011-10-31
Posts: 7

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,


Cheers,
--
System: CB Statler 64b
----

Offline

#7 2011-11-01 15:44:02

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,654

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

bloodshoteye wrote:

Keep it so for package updates?

Cheers,

Yes.

Offline

#8 2011-11-24 02:03:41

jhi
New Member
Registered: 2011-11-24
Posts: 8

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.

Offline

#9 2011-11-24 16:24:02

beadmaze
#! Junkie
Registered: 2009-10-10
Posts: 325

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


We are a nice, friendly community here and I hope we stay that way.

Offline

#10 2011-11-25 00:54:38

jhi
New Member
Registered: 2011-11-24
Posts: 8

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

Offline

#11 2011-11-25 14:41:36

TitanMech
Banned
From: Blue Zone 3
Registered: 2011-08-28
Posts: 930

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.

Offline

#12 2011-11-25 14:43:35

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,272
Website

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


Start Distrohopping here! -> Roast your ownVSIDO | LinuxCNC | AntiX | <-

Keep it what way?

Offline

#13 2011-11-25 14:47:23

TitanMech
Banned
From: Blue Zone 3
Registered: 2011-08-28
Posts: 930

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

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

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo