general warning, update-uninstall-unused authored by about:privacy's avatar about:privacy
......@@ -6,6 +6,8 @@ _This guide has been tested with Tails OS versions **6.6** and will not work on
* Many steps happen in the _Terminal_. To paste content in the terminal, either right-click in the terminal and choose Paste, or use CTRL-SHIFT-V (not CTRL-V).
* **Do NOT use the _Root Terminal_** or instructions won't work!
* A working **internet connection is required** at every step of the howto.
* The packages included in Tails are carefully tested for security. Installing additional packages might break the security built in Tails, so [be careful with what you install](https://tails.net/doc/persistent_storage/additional_software/index.en.html#warning).
## Persistent Storage
If you want to keep Element Desktop persistent, we need to set up the Persistent storage accordingly: (if you want to use Element Desktop only once and lose everything after shutdown/reboot skip to section [Install](#Install))
......@@ -48,10 +50,12 @@ torsocks flatpak install -y flathub im.riot.Riot
~~~
echo -e '#!/bin/sh\nenv /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/element --file-forwarding im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 @@u %U @@' | tee -a /home/amnesia/Persistent/element-desktop.sh && chmod +x /home/amnesia/Persistent/element-desktop.sh && echo -e '[Desktop Entry]\nType=Application\nName=Element\nIcon=/home/amnesia/.local/share/flatpak/app/im.riot.Riot/current/active/files/share/icons/hicolor/256x256/apps/im.riot.Riot.png\nExec=bash -c '\''/home/amnesia/Persistent/element-desktop.sh'\''\nTerminal=true\nCategories=Network\nMimeType=x-scheme-handler/element;\nStartupWMClass=element\nKeywords=Matrix;Element;' | tee -a ~/.local/share/applications/Element.desktop
~~~
4. If you haven't done it already while installing another Flatpak from this HowTo, create an update script and Desktop shortcut for conveniently updating Flatpak managed applications, executing:
4. If you haven't done it already while installing another Flatpak from this HowTo, create a Desktop shortcut for conveniently updating and uninstalling unused Flatpak managed applications, executing the following in the terminal:
~~~
echo -e '#!/bin/sh\n torsocks flatpak update -y' | tee -a /home/amnesia/Persistent/flatpak-update.sh && chmod a+x /home/amnesia/Persistent/flatpak-update.sh && echo -e '[Desktop Entry]\nType=Application\nName=Flatpak-Update\nExec=bash -c '\''/home/amnesia/Persistent/flatpak-update.sh'\''\nTerminal=true\nCategories=Network\nStartupWMClass=flatpak\nKeywords=flatpak;update;' | tee -a ~/.local/share/applications/Flatpak-Update.desktop
echo -e '[Desktop Entry]\nType=Application\nName=Flatpak-Update-Uninstall-unused\nExec=bash -c "/usr/bin/torsocks /usr/bin/flatpak update -y && /usr/bin/flatpak uninstall --unused -y"\nTerminal=true\nCategories=Network\nStartupWMClass=flatpak\nKeywords=flatpak;update;uninstall;unused' | tee ~/.local/share/applications/Flatpak-Update-Uninstall-Unused.desktop
~~~
A new application called **"Flatpak-Update-Uninstall-Unused"** is now visible in the [Activities Overview](https://tails.net/doc/first_steps/desktop/index.en.html#activities). You should run it regularly to update your Flatpak applications.
5. Close the terminal
### Start
1. Start Tails with persistent storage unlocked.
......@@ -68,19 +72,3 @@ echo -e '#!/bin/sh\n torsocks flatpak update -y' | tee -a /home/amnesia/Persiste
Persistent/element-desktop.sh
~~~
</details>
\ No newline at end of file
### Update applications installed via Flatpak
Regularly you should update your applications installed via Flatpak
1. Start Tails with persistent storage unlocked.
2. Wait until additional software is installed successfully.
3. Go to [Activities Overview](https://tails.boum.org/doc/first_steps/desktop/index.en.html#activities), type `Flatpak` and click on `Flatpak-Update` to start.
<details><summary>Alternatively via commandline:</summary>
1. Start Tails with persistent storage unlocked.
2. Wait until additional software is installed successfully.
3. Choose Applications ▸ System Tools ▸ Terminal
4. Execute:
~~~
Persistent/flatpak-update.sh
~~~
</details>
\ No newline at end of file