update-libreoffice does not work

Non release banter
Kulle
Warlord
Warlord
Posts: 601
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

update-libreoffice does not work

Post#1 by Kulle » 15 Aug 2020, 11:14

update-libreoffice does not work,
turns in circles!
tried: update-libreoffice de
tried: update-libreoffice en-US

Code: Select all

root@porteus:/home/guest# update-libreoffice de
 Starting checks ... 
[OK] User is root.
[OK] Distro is Porteus
[OK] libbfd was found
[OK] libbfd was found
Downloading live script ...
Downloading: update-libreoffice-live  DONE

Usage: update-libreoffice your-language
For example: update-libreoffice en-US

Supported languages:
af am ar as ast be bg bn bn-IN bo br brx bs ca ca-valencia cs cy da de
dgo dsb dz el en-GB en-US en-ZA eo es et eu fa fi fr fy ga gd gl gu gug
he hi hr hsb hu id is it ja ka kab kk km kmr-Latn kn ko kok ks lb lo lt
lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa-IN pl pt pt-BR
ro ru rw sa-IN sat sd si sid sk sl sq sr sr-Latn ss st sv sw-TZ ta te
tg th tn tr ts tt ug uk uz ve vec vi xh zh-CN zh-TW zu

root@porteus:/home/guest# update-libreoffice en-US
 Starting checks ... 
[OK] User is root.
[OK] Distro is Porteus
[OK] libbfd was found
[OK] libbfd was found
Downloading live script ...
Downloading: update-libreoffice-live  DONE

Usage: update-libreoffice your-language
For example: update-libreoffice en-US

Supported languages:
af am ar as ast be bg bn bn-IN bo br brx bs ca ca-valencia cs cy da de
dgo dsb dz el en-GB en-US en-ZA eo es et eu fa fi fr fy ga gd gl gu gug
he hi hr hsb hu id is it ja ka kab kk km kmr-Latn kn ko kok ks lb lo lt
lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa-IN pl pt pt-BR
ro ru rw sa-IN sat sd si sid sk sl sq sr sr-Latn ss st sv sw-TZ ta te
tg th tn tr ts tt ug uk uz ve vec vi xh zh-CN zh-TW zu

root@porteus:/home/guest# 

User avatar
Blaze
DEV Team
DEV Team
Posts: 3885
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

update-libreoffice does not work

Post#2 by Blaze » 15 Aug 2020, 11:43

Do you try it in Porteus RC2?
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Kulle
Warlord
Warlord
Posts: 601
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

update-libreoffice does not work

Post#3 by Kulle » 15 Aug 2020, 13:28

Hi Blaze,
I am using Porteus 4.0 Xfce

User avatar
Blaze
DEV Team
DEV Team
Posts: 3885
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

update-libreoffice does not work

Post#4 by Blaze » 15 Aug 2020, 15:16

Kulle, 4.0 is use the old script by brokenman (not my script).

Copy and run my script

Code: Select all

su
toor
chmod +x my-script.sh
cd /where-is-my-script
./my-script.sh de

Code: Select all

#!/bin/bash

# This is LibreOffice build script of xzm module for Porteus
# Version 2019-06-06

# Copyright 2019 Blaze admin at ublaze.ru
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Root check
if [ `whoami` != "root" ]; then
    echo -e "\nOnly root can run this.\n"
    exit 1
fi

PRGNAM=${PRGNAM:-LibreOffice}
VERSION=${VERSION:-`curl -sv http://download.documentfoundation.org/libreoffice/stable/ 2>/dev/null | grep [0-9].[0-9].[0-9] | sort -u | tail -1 | cut -d'"' -f4 | tr -d /`}
BUILD=${BUILD:-1}
TAG=${TAG:-bl}
LOLANG=${LOLANG:-$1}
BOLD=${BOLD:-"\e[1m"}
CYAN=${CYAN:-"\e[96m"}
GREEN=${GREEN:-"\e[92m"}
RED=${RED:-"\e[31m"}
RESET=${RESET:-"\e[0m"}

if [ -z "$LOLANG" ]; then
echo -e "\nUsage: ${BOLD}update-libreoffice ${CYAN}your-language${RESET}\nFor example: ${BOLD}update-libreoffice ${CYAN}en-US${RESET}\n"
# How to check supported languages of LO:
# curl -sv http://download.documentfoundation.org/libreoffice/stable/6.2.3/rpm/x86_64/ 2>/dev/null | awk '/pack/' | cut -d'_' -f7 | cut -d'.' -f1 | sort -u | tr '\n' ' ' | fmt
echo -e "Supported languages:\naf am ar as ast be bg bn bn-IN bo br brx bs ca ca-valencia cs cy da de
dgo dsb dz el en-GB en-US en-ZA eo es et eu fa fi fr fy ga gd gl gu gug
he hi hr hsb hu id is it ja ka kab kk km kmr-Latn kn ko kok ks lb lo lt
lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa-IN pl pt pt-BR
ro ru rw sa-IN sat sd si sid sk sl sq sr sr-Latn ss st sv sw-TZ ta te
tg th tn tr ts tt ug uk uz ve vec vi xh zh-CN zh-TW zu\n"
exit 1
fi

# Check if LO installed in the system
if [[ -d "$(ls -d /opt/libreoffice* 2>/dev/null)" ]]; then
  MYVER=${MYVER:-`/opt/libreoffice*/program/soffice --version | awk 'NR==1 {print $2}' | sed 's/..$//'`}
fi

if [ "$MYVER" == "$VERSION" ]; then
    echo -e "You have the latest ${GREEN}$MYVER${RESET} version of $PRGNAM"
    exit
else
    read -p "$(echo -e Do you want to build $PRGNAM ${GREEN}$VERSION${RESET} xzm module? [y/n])" -n 1 -r -s && echo
    if [[ $REPLY =~ ^[Yy]$ ]]; then
        echo "We continue the execution of the $0 script" &>/dev/null
        else
        exit
    fi
fi

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
    *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION

if [[ "$ARCH" == i686 || "$ARCH" == i586 ]]; then

    # Download LibreOffice
    echo -e "\nDownloading LibreOffice"
    wget -q --show-progress http://download.documentfoundation.org/libreoffice/stable/"$VERSION"/rpm/x86/LibreOffice\_"$VERSION"'_Linux_x86_'rpm.tar.gz
    tar -xf LibreOffice_"$VERSION"'_Linux_x86_'rpm.tar.gz
    rm -f $TMP/LibreOffice_"$VERSION".*'_Linux_x86_'rpm/RPMS/libreoffice?.?-dict-{es,fr}-*.rpm
    mv $TMP/LibreOffice_"$VERSION".*'_Linux_x86_'rpm/RPMS/* $PKG
    rm -rf $TMP/LibreOffice_"$VERSION".*'_Linux_x86_'rpm
    rm -f $TMP/LibreOffice_"$VERSION"'_Linux_x86_'rpm.tar.gz

    # Download helppack
    echo -e "\nDownloading ${BOLD}${CYAN}$LOLANG${RESET} helppack"
    wget -q --show-progress http://download.documentfoundation.org/libreoffice/stable/"$VERSION"/rpm/x86/LibreOffice\_"$VERSION"'_Linux_x86_rpm_helppack_'"$LOLANG".tar.gz
    tar -xf LibreOffice_"$VERSION"'_Linux_x86_rpm_helppack_'"$LOLANG".tar.gz
    mv $TMP/LibreOffice_"$VERSION".*'_Linux_x86_rpm_helppack_'"$LOLANG"/RPMS/* $PKG
    rm -rf $TMP/LibreOffice_"$VERSION".*'_Linux_x86_rpm_helppack_'"$LOLANG"
    rm -f $TMP/LibreOffice_"$VERSION"'_Linux_x86_rpm_helppack_'"$LOLANG".tar.gz

elif [[ "$ARCH" == x86_64 ]]; then

    # Download LibreOffice
    echo -e "\nDownloading LibreOffice"
    wget -q --show-progress http://download.documentfoundation.org/libreoffice/stable/"$VERSION"/rpm/'x86_64'/LibreOffice\_"$VERSION"'_Linux_x86-64_'rpm.tar.gz
    tar -xf LibreOffice_"$VERSION"'_Linux_x86-64_'rpm.tar.gz
    rm -f $TMP/LibreOffice_"$VERSION".*'_Linux_x86-64_'rpm/RPMS/libreoffice?.?-dict-{es,fr}-*.rpm
    mv $TMP/LibreOffice_"$VERSION".*'_Linux_x86-64_'rpm/RPMS/* $PKG
    rm -rf $TMP/LibreOffice_"$VERSION".*'_Linux_x86-64_'rpm
    rm -f $TMP/LibreOffice_"$VERSION"'_Linux_x86-64_'rpm.tar.gz

    # Download helppack
    echo -e "\nDownloading ${BOLD}${CYAN}$LOLANG${RESET} helppack"
    wget -q --show-progress http://download.documentfoundation.org/libreoffice/stable/"$VERSION"/rpm/'x86_64'/LibreOffice\_"$VERSION"'_Linux_x86-64_rpm_helppack_'"$LOLANG".tar.gz
    tar -xf LibreOffice_"$VERSION"'_Linux_x86-64_rpm_helppack_'"$LOLANG".tar.gz
    mv $TMP/LibreOffice_"$VERSION".*'_Linux_x86-64_rpm_helppack_'"$LOLANG"/RPMS/* $PKG
    rm -rf $TMP/LibreOffice_"$VERSION".*'_Linux_x86-64_rpm_helppack_'"$LOLANG"
    rm -f $TMP/LibreOffice_"$VERSION"'_Linux_x86-64_rpm_helppack_'"$LOLANG".tar.gz
    
else
    echo 'Failed to download LibreOffice!'
    exit 1
fi

if [[ "$LOLANG" != 'en-US' && "$ARCH" == i686 || "$ARCH" == i586 ]]; then
    # Download langpack
    echo -e "\nDownloading ${BOLD}${CYAN}$LOLANG${RESET} langpack"
    wget -q --show-progress http://download.documentfoundation.org/libreoffice/stable/"$VERSION"/rpm/'x86'/LibreOffice\_"$VERSION"'_Linux_x86_rpm_langpack_'"$LOLANG".tar.gz
    tar -xf LibreOffice_"$VERSION"'_Linux_x86_rpm_langpack_'"$LOLANG".tar.gz
    mv $TMP/LibreOffice_"$VERSION".*'_Linux_x86_rpm_langpack_'"$LOLANG"/RPMS/* $PKG
    rm -rf $TMP/LibreOffice_"$VERSION".*'_Linux_x86_rpm_langpack_'"$LOLANG"
    rm -f $TMP/LibreOffice_"$VERSION"'_Linux_x86_rpm_langpack_'"$LOLANG".tar.gz

elif [[ "$LOLANG" != 'en-US' && "$ARCH" == x86_64 ]]; then
    # Download langpack
    echo -e "\nDownloading ${BOLD}${CYAN}$LOLANG${RESET} langpack"
    wget -q --show-progress http://download.documentfoundation.org/libreoffice/stable/"$VERSION"/rpm/'x86_64'/LibreOffice\_"$VERSION"'_Linux_x86-64_rpm_langpack_'"$LOLANG".tar.gz
    tar -xf LibreOffice_"$VERSION"'_Linux_x86-64_rpm_langpack_'"$LOLANG".tar.gz
    mv $TMP/LibreOffice_"$VERSION".*'_Linux_x86-64_rpm_langpack_'"$LOLANG"/RPMS/* $PKG
    rm -rf $TMP/LibreOffice_"$VERSION".*'_Linux_x86-64_rpm_langpack_'"$LOLANG"
    rm -f $TMP/LibreOffice_"$VERSION"'_Linux_x86-64_rpm_langpack_'"$LOLANG".tar.gz

elif [[ "$LOLANG" == 'en-US' ]]; then
    echo "$LOLANG = en-US" &>/dev/null
else
    echo "Failed to download your ${BOLD}$LOLANG${RESET} language for LibreOffice!"
    exit 1
fi

# Extract all rpm
echo -e "\nBuilding of $OUTPUT/$PRGNAM-$VERSION-$ARCH-$LOLANG-$BUILD$TAG.xzm module"
cd $PKG
for i in `find . -type f | fgrep .rpm | sort`; do rpm2cpio $i | cpio -idmv &>/dev/null; done
rm -f *.rpm

# Cleaning of LO
rm -rf $PKG/var
rm -rf $PKG/opt/libreoffice?.?/{readmes,CREDITS.fodt,LICENSE,LICENSE.fodt,LICENSE.html,NOTICE}

# Fix of double menu entries
find $PKG/usr/share/applications/ -name *.desktop -delete
mv -f $PKG/opt/libreoffice?.?/share/xdg/*.desktop $PKG/usr/share/applications

# If you use official LibreOffice 6.1.x (or higher) rpm.tar.gz package -
# need to drop avahi and wayland dependences.

# set SAL_USE_VCLPLUGIN=gtk
LO=$(find $PKG/opt/libreoffice*/program -name soffice | awk 'NR==1 {print $0}')
sed -i -e '/^#\ restore/i# Prefer GTK2\nexport SAL_USE_VCLPLUGIN=${SAL_USE_VCLPLUGIN:-gtk}\n' $LO

# built two dummy/empty libraries (need for run LO Impress)
cd $(echo $LO | sed 's|soffice||')
gcc -shared -o libavahi-client.so.3 -x c - < /dev/null
gcc -shared -o libavahi-common.so.3 -x c - < /dev/null
unset LO

# Building of LO xzm module
mksquashfs $PKG $OUTPUT/$PRGNAM-$VERSION-$ARCH-$LOLANG-$BUILD$TAG.xzm -b 256K -comp xz -Xbcj x86 -noappend
rm -rf $PKG

# Check on LO xzm file exists in /tmp
if [ -f "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$LOLANG-$BUILD$TAG.xzm" ]; then
    echo -e "\n${BOLD}Your $PRGNAM module is at: ${GREEN}${BOLD}$OUTPUT/$PRGNAM-$VERSION-$ARCH-$LOLANG-$BUILD$TAG.xzm${RESET}\n${BOLD}Please move it to your modules folder to survive a reboot.${RESET}\n"
else
    echo -e "\n${RED}${BOLD}Faile. Your $PRGNAM module is not built.${RESET}\n"
fi
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

nnriyer
Black ninja
Black ninja
Posts: 32
Joined: 10 Aug 2020, 07:34
Distribution: Puppy

update-libreoffice does not work

Post#5 by nnriyer » 16 Aug 2020, 02:56

How to install Libreoffice in Porteus 5.0RC2 Xface laptop and thunderbird.

User avatar
Ed_P
Contributor
Contributor
Posts: 8368
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

update-libreoffice does not work

Post#6 by Ed_P » 16 Aug 2020, 04:22

What happens when you run Blaze's update script?
Ed

User avatar
Blaze
DEV Team
DEV Team
Posts: 3885
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

update-libreoffice does not work

Post#7 by Blaze » 16 Aug 2020, 07:01

nnriyer,

Code: Select all

su
toor
update-libreoffice

Code: Select all

Usage: update-libreoffice your-language
For example: update-libreoffice en-US

Supported languages:
af am ar as ast be bg bn bn-IN bo br brx bs ca ca-valencia cs cy da de
dgo dsb dz el en-GB en-US en-ZA eo es et eu fa fi fr fy ga gd gl gu gug
he hi hr hsb hu id is it ja ka kab kk km kmr-Latn kn ko kok ks lb lo lt
lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa-IN pl pt pt-BR
ro ru rw sa-IN sat sd si sid sk sl sq sr sr-Latn ss st sv sw-TZ ta te
tg th tn tr ts tt ug uk uz ve vec vi xh zh-CN zh-TW zu
mozilla-thunderbird-78.1.1-x86_64-1dj.txz
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

nnriyer
Black ninja
Black ninja
Posts: 32
Joined: 10 Aug 2020, 07:34
Distribution: Puppy

update-libreoffice does not work

Post#8 by nnriyer » 16 Aug 2020, 08:57

Libreoffice installed.
Thank you for the same. How to install mozilla thunderbid

Kulle
Warlord
Warlord
Posts: 601
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

update-libreoffice does not work

Post#9 by Kulle » 16 Aug 2020, 09:07

Hi Blaze,
thanks for the quick help

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3936
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

update-libreoffice does not work

Post#10 by ncmprhnsbl » 16 Aug 2020, 12:17

nnriyer wrote:
16 Aug 2020, 08:57
How to install mozilla thunderbid
try:

Code: Select all

getpkg mozilla-thunderbird
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

nnriyer
Black ninja
Black ninja
Posts: 32
Joined: 10 Aug 2020, 07:34
Distribution: Puppy

update-libreoffice does not work

Post#11 by nnriyer » 16 Aug 2020, 12:32

[OK] mozilla-thunderbird-68.11.0-x86_64-1.txz

Please enter a directory to download the packages to.
>

Downloading: mozilla-thunderbird-68.11.0-x86_64-1.txz DONE
Converting mozilla-thunderbird-68.11.0-x86_64-1.txz ...
Cannot install /mozilla-thunderbird-68.11.0-x86_64-1.txz: file not found
error installing /mozilla-thunderbird-68.11.0-x86_64-1.txz package

Processing finished.
Your files are in:
guest@porteus:~$

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3936
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

update-libreoffice does not work

Post#12 by ncmprhnsbl » 16 Aug 2020, 13:05

:D
you must enter a directory at the prompt.. /tmp is generally a good choice, any POSIX filesystem would do..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

nnriyer
Black ninja
Black ninja
Posts: 32
Joined: 10 Aug 2020, 07:34
Distribution: Puppy

update-libreoffice does not work

Post#13 by nnriyer » 16 Aug 2020, 14:09

Okay. Now installed. Thank you very much.

nnriyer
Black ninja
Black ninja
Posts: 32
Joined: 10 Aug 2020, 07:34
Distribution: Puppy

update-libreoffice does not work

Post#14 by nnriyer » 17 Aug 2020, 05:24

After reboot, regret to inform you that my thunderbird is not available. Please note that I have activated Thunderbird in the module as done for browser and Libreoffice. Thunderbird.xzm file was available in my tmp Now copied to module and again activated. Shall i required to do anything more on this.

User avatar
Ed_P
Contributor
Contributor
Posts: 8368
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

update-libreoffice does not work

Post#15 by Ed_P » 17 Aug 2020, 06:46

Modules, .xzm files, in the porteus/modules directory are activated automatically when booting. If you see the Thunderbird module in the /mnt/live/memory/images directory it has been activated.

Why do you say it's not available? Is it not in the Menu>Internet list of apps or are you getting an error message when starting it?
Ed

Post Reply