SEARCH

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

You are not logged in.

#1 2011-01-25 04:58:23

Raistlfiren
New Member
Registered: 2011-01-25
Posts: 5

LibreOffice Install Script for the Lazy...

Hey, I modified the OpenOffice.org install script for LibreOffice. This is just for the lazy like me that just want to copy and paste. 

#!/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>
# edited by Aaron Valandra (aka Ratty)
# ---------------------------------------------------------------------

# 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
        clear
        echo "  Adding LibreOffice Repo to /etc/apt/sources.list..."
    sleep 2s
        echo 'deb http://download.tuxfamily.org/gericom/libreoffice /' | sudo tee -a /etc/apt/sources.list
        sleep 2s
        echo "  Adding key for LibreOffice..."
    sleep 2s
        sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 890E7A26
        sleep 2s
        echo "  Updating sources..."
        sleep 2s
        sudo apt-get update
        clear
        if ! sudo apt-get install -y libreoffice3* liboasis3.3*; 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 "/opt/libreoffice/program/swriter" ];then
    INSTALLED=true
    cat << _swriter_
        <item label="Writer">
            <action name="Execute">
                <execute>
                    /opt/libreoffice/program/soffice
                </execute>
            </action>
        </item>
_swriter_
fi

# Formula
if [ -x "//opt/libreoffice/program/scalc" ];then
    INSTALLED=true
    cat << _scalc_
        <item label="Calc">
            <action name="Execute">
                <execute>
                    /opt/libreoffice/program/scalc
                </execute>
            </action>
        </item>
_scalc_
fi

# Impress
if [ -x "/opt/libreoffice/program/simpress" ];then
    INSTALLED=true
    cat << _simpress_
        <item label="Impress">
            <action name="Execute">
                <execute>
                    /opt/libreoffice/program/simpress
                </execute>
            </action>
        </item>
_simpress_
fi

# Draw
if [ -x "/opt/libreoffice/program/sdraw" ];then
    INSTALLED=true
    cat << _sdraw_
        <item label="Draw">
            <action name="Execute">
                <execute>
                    /opt/libreoffice/program/sdraw
                </execute>
            </action>
        </item>
_sdraw_
fi

# Math
if [ -x "/opt/libreoffice/program/smath" ];then
    INSTALLED=true
    cat << _smath_
        <item label="Math">
            <action name="Execute">
                <execute>
                    /opt/libreoffice/program/smath
                </execute>
            </action>
        </item>
_smath_
fi

# SQL
if [ -x "/opt/libreoffice/program/sbase" ];then
    INSTALLED=true
    cat << _squery_
            <item label="SQL">
            <action name="Execute">
                                <execute>
                                        /opt/libreoffice/program/sbase                   
                                </execute>
                        </action>
                </item>
_squery_
fi

# Base
if [ -x "/usr/bin/libreoffice" ];then
    INSTALLED=true
    cat << _sbase_
        <item label="Base">
            <action name="Execute">
                <execute>
                    libreoffice
                </execute>
            </action>
        </item>
_sbase_
fi

if [ $INSTALLED = false ]; then
    cat << _sinstall_
        <item label="Install LibreOffice.org">
            <action name="Execute">
                <execute>
                    cb-libreoffice.org-pipemenu --install
                </execute>
            </action>
        </item>
_sinstall_
fi

# End pipemenu
echo "    </openbox_pipe_menu>"
exit 0

Save the file as cb-libreoffice.org-pipemenu in /usr/bin OR just edit cb-openoffice.org-pipemenu. IF you create a new file don't forget to make it executable (sudo chmod +x /usr/bin/cb-libreoffice.org-pipemenu). Another note, don't forget to edit your menu config to point to the new script.

Cheers!
Ratty

Last edited by Raistlfiren (2011-01-25 04:58:54)

Offline

Be excellent to each other!

#2 2011-01-25 05:20:30

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 550

Re: LibreOffice Install Script for the Lazy...

Thanks! This is fantastic---but I'm trying to decide when I should install LibreOffice. Should I wait til it stabilizes? Gets a better GUI? So many questions! big_smile


Punch all your friends.

Offline

#3 2011-01-25 05:30:33

Raistlfiren
New Member
Registered: 2011-01-25
Posts: 5

Re: LibreOffice Install Script for the Lazy...

So far it seems stable enough but I haven't used it extensively. smile Try it out! You have to get rid of oo first though.

Offline

#4 2011-01-25 06:12:39

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 550

Re: LibreOffice Install Script for the Lazy...

Oh I don't have that so I'm on a clean install smile . Maybe I will try it and let you know!


Punch all your friends.

Offline

#5 2011-01-28 11:15:51

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

Re: LibreOffice Install Script for the Lazy...

installing LO with this script after doing a fresh statler install i wondered why these sources were needed:
http://download.tuxfamily.org/gericom/libreoffice
+
keyserver.ubuntu.com --recv-keys 890E7A26
?

btw. for me it didn't work to just replace the original "cb-openoffice.org-pipemenu" with "cb-libreoffice.org-pipemenu"
i had to replace the script in the original "cb-openoffice.org-pipemenu" with the one provided here and replace all entries of "cb-libreoffice.org-pipemenu" with "cb-openoffice.org-pipemenu".
nevertheless it seems to be LO 3.3 and i'm fine with that, thanks!

Last edited by beadmaze (2011-01-28 11:18:02)


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

Offline

#6 2011-01-28 18:26:38

Raistlfiren
New Member
Registered: 2011-01-25
Posts: 5

Re: LibreOffice Install Script for the Lazy...

Hey beadmaze,

LibreOffice is still not marked as "stable" in the official Debian/Crunchbang repos so you need to add a new repository to your current install of crunchbang. The url: http://download.tuxfamily.org/gericom/libreoffice is a temporary repository for ubuntu and linux mint users to use.

The apt-key or (keyserver.ubuntu.com --recv-keys 890E7A26) is there to validate the packages of the repo. Which you can find more info here: http://wiki.debian.org/SecureApt

Whenever you installed the script you need to change the menu entry with the menu editor or by hand to cb-libreoffice.org-pipemenu. So the label is "LibreOffice", id is "LibreOffice, and execute is cb-libreoffice.org-pipemenu. Excert from my menu config:

<menu execute="cb-libreoffice.org-pipemenu" id="libreoffice" label="LibreOffice"/>

Cheers!
Raist

Last edited by Raistlfiren (2011-01-28 18:27:10)

Offline

#7 2011-06-29 07:27:50

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

Re: LibreOffice Install Script for the Lazy...

as LibreOffice has moved to the backports of squeeze/stable http://packages.debian.org/squeeze-back … ibreoffice i'd wonder how to modify this script to get LO running on #!?
well, maybe it's easier to wait for the next statler image?


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

Offline

#8 2011-06-29 10:25:25

xtremejoshua
New Member
Registered: 2011-06-29
Posts: 4

Re: LibreOffice Install Script for the Lazy...

beadmaze wrote:

as LibreOffice has moved to the backports of squeeze/stable http://packages.debian.org/squeeze-back … ibreoffice i'd wonder how to modify this script to get LO running on #!?
well, maybe it's easier to wait for the next statler image?

I was wandering the same i was looking through the script but honestly have no clue...

Offline

#9 2011-06-29 11:35:10

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: LibreOffice Install Script for the Lazy...

xtremejoshua wrote:

I was wondering the same i was looking through the script but honestly have no clue...

I don't have any way of testing this today. I'd be interested to know if it works smile

#!/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
        clear
        echo "  Adding LibreOffice Repo to /etc/apt/sources.list..."
    sleep 2s
        echo 'deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free' | sudo tee -a /etc/apt/sources.list
        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

Offline

#10 2011-06-29 15:21:02

xtremejoshua
New Member
Registered: 2011-06-29
Posts: 4

Re: LibreOffice Install Script for the Lazy...

@ omns unfortunately it didn't it added the backports to my source list..even though it was already there duplicating it then ran apt-get update and stopped after that i sort of edited it though as i have both the stable and testing repos so pointed it to install libreoffice from the testing repo and i took out the part where it adds the backports to my source list because its already there hope this helps someone too and sorry if it's bad first time messing with things like this but it worked for me with no errors hehe learning more and more every day ^^


#!/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>
# modified by some random noob too o.o aka xtremejoshua :P
# ---------------------------------------------------------------------

# 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
        sudo apt-get update
        clear
        if ! sudo apt-get -t testing 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

i would like to add im relatively knew to linux maybe a bit less then a yr and yesterday was my first day with crunchbang and im really liking it ^^

edit: im thinking maybe it yours didnt work for me as i have the stable testing unstable and experimental and if this makes a difference ive edited my /etc/apt/preferences as so i can install newer software while still keeping my base system stable

Last edited by xtremejoshua (2011-06-29 15:28:15)

Offline

#11 2011-06-29 15:35:01

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: LibreOffice Install Script for the Lazy...

So perhaps a better method would be to open your sources.list, uncomment or add the entry for the backports repo, then use the following:

#!/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

Offline

#12 2011-06-29 15:39:11

xtremejoshua
New Member
Registered: 2011-06-29
Posts: 4

Re: LibreOffice Install Script for the Lazy...

Im happy with the way i installed it but ill uninstall it and give it a try just to see if it works

Offline

#13 2011-06-29 15:58:48

xtremejoshua
New Member
Registered: 2011-06-29
Posts: 4

Re: LibreOffice Install Script for the Lazy...

Okay yes it works i had to comment out all my extra repos the testing unstable and experimental then change my /etc/apt/preferences back to how they are by default and then the script works perfect thank you

Offline

#14 2011-07-08 10:39:10

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

Re: LibreOffice Install Script for the Lazy...

huh! this worked like a charm!

what i did was:
- remove (purge) OpenOffice completely, incl. all dependecies/packages/whatsoever
- uncommented ## DEBIAN BACKPORTS in etc/apt/sources.list
- created a new file called "cb-libreoffice.org-pipemenu" containing this script http://crunchbanglinux.org/forums/post/130075/#p130075 , copied it into /usr/bin, made it executable
- modified the OB-menu with replacing everything that said OpenOffice by LibreOffice
- clicked the "install LibreOffice" in the refreshed OB-menu
- watched LibreOffice installing
- installed a few other interesting things from the backports, except the network-manager and then commented ## DEBIAN BACKPORTS in etc/apt/sources.list

thank you very very much, omns!!!

p.s. now i'm praying that every errors i had when i first tried LibreOffice (opening/saving documents lead to complete freeze) are gone... well, actually they seem to... smile

Last edited by beadmaze (2011-07-08 13:11:45)


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

Offline

#15 2011-09-30 00:52:13

Kevins4
Member
Registered: 2011-09-30
Posts: 24

Re: LibreOffice Install Script for the Lazy...

Thanks to all.  I am always amazed at the work provided in the forums I have visited.

Just setting up Crunchbang after distro hopping for the last 5 months.  #! was actually the first distro to load successfully on my old Dell but I was brand new and had no idea what to do next.

Now I have learned just enough to love it.

Thanks again.  Got LO installed, though it took me a while to make each step clear in my head.  Had fun though.

Great work!

Last edited by Kevins4 (2011-09-30 00:52:37)


sum ergo cogito ( i am therefore i think )

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