Page 1 of 3
update-libreoffice does not work
Posted: 15 Aug 2020, 11:14
by Kulle
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#
update-libreoffice does not work
Posted: 15 Aug 2020, 11:43
by Blaze
Do you try it in Porteus RC2?
update-libreoffice does not work
Posted: 15 Aug 2020, 13:28
by Kulle
Hi Blaze,
I am using Porteus 4.0 Xfce
update-libreoffice does not work
Posted: 15 Aug 2020, 15:16
by Blaze
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
update-libreoffice does not work
Posted: 16 Aug 2020, 02:56
by nnriyer
How to install Libreoffice in Porteus 5.0RC2 Xface laptop and thunderbird.
update-libreoffice does not work
Posted: 16 Aug 2020, 04:22
by Ed_P
What happens when you run Blaze's update script?
update-libreoffice does not work
Posted: 16 Aug 2020, 07:01
by Blaze
nnriyer,
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
update-libreoffice does not work
Posted: 16 Aug 2020, 08:57
by nnriyer
Libreoffice installed.
Thank you for the same. How to install mozilla thunderbid
update-libreoffice does not work
Posted: 16 Aug 2020, 09:07
by Kulle
Hi Blaze,
thanks for the quick help
update-libreoffice does not work
Posted: 16 Aug 2020, 12:17
by ncmprhnsbl
nnriyer wrote: ↑16 Aug 2020, 08:57
How to install mozilla thunderbid
try:
update-libreoffice does not work
Posted: 16 Aug 2020, 12:32
by nnriyer
[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:~$
update-libreoffice does not work
Posted: 16 Aug 2020, 13:05
by ncmprhnsbl

you must enter a directory at the prompt.. /tmp is generally a good choice, any POSIX filesystem would do..
update-libreoffice does not work
Posted: 16 Aug 2020, 14:09
by nnriyer
Okay. Now installed. Thank you very much.
update-libreoffice does not work
Posted: 17 Aug 2020, 05:24
by nnriyer
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.
update-libreoffice does not work
Posted: 17 Aug 2020, 06:46
by Ed_P
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?