Skip to content

Latest commit

 

History

History
117 lines (96 loc) · 2.8 KB

File metadata and controls

117 lines (96 loc) · 2.8 KB

OnlyOffice desktop editors

info

centos-install fedora-install

#https://github.com/ONLYOFFICE/DesktopEditors/releases/latest/download/onlyoffice-desktopeditors.x86_64.rpm
sudo dnf install https://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-repo.noarch.rpm
sudo dnf install onlyoffice-desktopeditors -y

centos-run fedora-run

desktopeditors

centos-remove fedora-remove

sudo dnf remove onlyoffice-desktopeditors

debian-install ubuntu-install

mkdir -p -m 700 ~/.gnupg
gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
chmod 644 /tmp/onlyoffice.gpg
sudo chown root:root /tmp/onlyoffice.gpg
sudo mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg

echo 'deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main' | sudo tee -a /etc/apt/sources.list.d/onlyoffice.list

sudo apt-get update
sudo apt-get install onlyoffice-desktopeditors

debian-run ubuntu-run

desktopeditors

debian-remove ubuntu-remove

sudo apt-get remove onlyoffice-desktopeditors

user-install

app onlyoffice install appimage
${APPSHOME}/${APPNAME}.AppImage --appimage-extract
mv squashfs-root ${APPSHOME}/${APPNAME}
app onlyoffice remove appimage

user-check

[ -x "${APPSHOME}/${APPNAME}/AppRun" ]

user-run

${APPSHOME}/${APPNAME}/AppRun

flatpak-install

flatpak install flathub org.onlyoffice.desktopeditors

flatpak-run

flatpak run org.onlyoffice.desktopeditors

flatpak-check

flatpak info org.onlyoffice.desktopeditors > /dev/null

appimage-install

latest=$(curl -s https://api.github.com/repos/ONLYOFFICE/appimage-desktopeditors/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
url="https://github.com/ONLYOFFICE/appimage-desktopeditors/releases/download/${latest}/DesktopEditors-x86_64.AppImage"
curl -L "$url" -o ${APPSHOME}/${APPNAME}.AppImage
chmod +x ${APPSHOME}/${APPNAME}.AppImage

appimage-run

${APPSHOME}/${APPNAME}.AppImage

appimage-remove

rm -f ${APPSHOME}/${APPNAME}.AppImage

podman-install

podman run -d --name onlyoffice --cap-add=NET_ADMIN --cap-add=NET_RAW --device=/dev/net/tun --device=/dev/fuse ghcr.io/gbraad-apps/onlyoffice:latest
podman exec onlyoffice tailscale up -qr
ip=`podman exec onlyoffice tailscale ip -4`
echo "Open OnlyOffice at https://${ip}:8444"

alias default run run-desktop

if app onlyoffice check user; then
    app onlyoffice run user
elif app onlyoffice check appimage; then
    app onlyoffice run appimage
elif app onlyoffice check flatpak; then
    app onlyooffice run flatpak
else
    echo "${APPNAME} is not installed in ${APPSHOME}."
fi