mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-07-07 13:15:48 +00:00
clear-linux/turorials/flatpak: update tutorial
This commit updates the Flatpak tutorial to make use of the gnome-software application and keep the command line setup as well. LibreOffice flatpak repository changed to Flathub. This commit updates the instructions to install it as documented in https://www.libreoffice.org/download/flatpak/ Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 823 KiB |
@@ -32,82 +32,68 @@ Install and run the LibreOffice Flatpak image
|
||||
|
||||
Application developers have the option to bundle their applications using
|
||||
Flatpak to allow the installation of a single distribution of their
|
||||
application on different distributions of Linux, including Clear Linux.
|
||||
Flatpak provides a `list of applications`_ available through Flatpak.
|
||||
application on different distributions of Linux, including |CL|.
|
||||
Flatpak provides a `list of applications`_ available through Flathub.
|
||||
|
||||
Download and install the Latest LibreOffice Flatpak
|
||||
---------------------------------------------------
|
||||
|CL| enables the Flathub repository by default.
|
||||
|
||||
To get the latest version of the LibreOffice Flatpak repository, either
|
||||
`download it here`_ or you can enter the following command:
|
||||
|
||||
Installing using gnome software
|
||||
-------------------------------
|
||||
|
||||
All you need to do is to launch `gnome software`, search for the LibreOffice
|
||||
app and click the install button
|
||||
|
||||
.. figure:: figures/01-install-libreoffice.gif
|
||||
:alt: install libreoffice step by step
|
||||
|
||||
Figure 1: Installing LibreOffice using gnome-software
|
||||
|
||||
|
||||
|
||||
Installing using the command line
|
||||
---------------------------------
|
||||
|
||||
Open the `gnome-terminal` and type the following command to install the
|
||||
LibreOffice app.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ curl –O -L http://download.documentfoundation.org/libreoffice/flatpak/latest/LibreOffice.flatpak
|
||||
$ flatpak install --user flathub org.libreoffice.LibreOffice
|
||||
Installing in user:
|
||||
org.libreoffice.LibreOffice/x86_64/stable flathub 2aff77bd5cf1
|
||||
permissions: ipc, network, pulseaudio, wayland, x11, dri
|
||||
file access: host, xdg-run/dconf
|
||||
dbus access: ca.desrt.dconf, org.gtk.vfs.*
|
||||
dbus ownership: org.libreoffice.LibreOfficeIpc0
|
||||
org.libreoffice.LibreOffice.Locale/x86_64/stable flathub 924157b3b009
|
||||
Is this ok [y/n]: y
|
||||
Installing for user: org.libreoffice.LibreOffice/x86_64/stable from flathub
|
||||
[####################] 403 metadata, 4661 content objects fetched; 222574 KiB transferred in 99 seconds
|
||||
Now at 2aff77bd5cf1.
|
||||
Installing for user: org.libreoffice.LibreOffice.Locale/x86_64/stable from flathub
|
||||
[####################] 10 metadata, 71 content objects fetched; 1013 KiB transferred in 3 seconds
|
||||
Now at 924157b3b009.
|
||||
|
||||
The command downloads the latest LibreOffice.flatpak and saves it in your
|
||||
current directory.
|
||||
|
||||
Once the download is complete, the next step is to install LibreOffice along
|
||||
with the runtime environment LibreOffice needs to execute. As mentioned on
|
||||
the `Flatpak website`_, with the release of Flatpak 0.8.0 and
|
||||
LibreOffice.flatpak 4.2.4, you no longer have to specifically install the
|
||||
runtime required to execute LibreOffice since it will automatically install
|
||||
the runtime referenced in the LibreOffice.flatpak file.
|
||||
Launch LibreOffice
|
||||
==================
|
||||
A new set of icons will appear in your Gnome applications list titled :guilabel:`LibreOffice.` To
|
||||
execute the application, highlight the application and click on the :guilabel:`LibreOffice` icon.
|
||||
LibreOffice will start normally.
|
||||
|
||||
To install LibreOffice run the following command:
|
||||
.. figure:: figures/02-openlibreoffice.gif
|
||||
:alt: Opening LibreOffice app
|
||||
|
||||
.. code-block:: console
|
||||
Figure 2: Select :guilabel:`LibreOffice` app
|
||||
|
||||
$ sudo flatpak install --bundle LibreOffice.flatpak
|
||||
|
||||
The output from this command will look similar to the following.
|
||||
|
||||
.. note::
|
||||
|
||||
You will be prompted to install the runtime environment if it is not
|
||||
already installed. Type :kbd:`y` to allow this task to execute.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
GLib-GIO-Message: Using the 'memory' GSettings backend.
|
||||
Your settings will not be saved or shared with other applications.
|
||||
This application depends on runtimes from:
|
||||
http://sdk.gnome.org/repo/
|
||||
Configure this as new remote 'gnome' [y/n]: y
|
||||
Required runtime for org.libreoffice.LibreOffice/x86_64/fresh
|
||||
(org.gnome.Platform/x86_64/3.20) is not installed, searching...
|
||||
Found in remote gnome, do you want to install it? [y/n]: y
|
||||
Installing: org.gnome.Platform/x86_64/3.20 from gnome
|
||||
|
||||
Receiving delta parts: 0/11 2.5 MB/s 4.9 MB/223.2 MB 1 minutes 28 seconds
|
||||
remain
|
||||
Receiving delta parts: 0/11 2.9 MB/s 8.7 MB/223.2 MB 1 minutes 13 seconds
|
||||
remain
|
||||
11 delta parts, 84 loose fetched; 218002 KiB transferred in 17 seconds
|
||||
Installing: org.gnome.Platform.Locale/x86_64/3.20 from gnome
|
||||
|
||||
5 metadata, 1 content objects fetched; 13 KiB transferred in 1 seconds
|
||||
Installing: org.libreoffice.LibreOffice/x86_64/fresh from bundle
|
||||
LibreOffice.flatpak
|
||||
|
||||
Once the LibreOffice Flatpak application has been installed, you can launch
|
||||
LibreOffice with the following command from the command line:
|
||||
Using the command line
|
||||
----------------------
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ flatpak run org.libreoffice.LibreOffice
|
||||
|
||||
Add LibreOffice to your Gnome desktop
|
||||
=====================================
|
||||
A new icon will appear in your Gnome applications list titled :guilabel:`LibreOffice.` To
|
||||
execute the application, highlight the application and click on the :guilabel:`LibreOffice` icon.
|
||||
LibreOffice will start normally.
|
||||
|
||||
.. figure:: figures/gnome1.png
|
||||
:alt: Gnome desktop
|
||||
|
||||
Figure 1: Select :guilabel:`Gnome applications list`
|
||||
|
||||
.. _Flatpak website: http://flatpak.org
|
||||
|
||||
|
||||
Reference in New Issue
Block a user