Install AppImage Application from Installer Script (Joplin Notes)

This is a great question - lots to dig in to.

  1. Wget in a template?
    Remember that there is a proxy in templates, which you use to perform
    updates.
    You can have wget use that same proxy by creating a file, ~/.wgetrc:
use_proxy = on
http_proxy = 127.0.0.1:8082
https_proxy = 127.0.0.1:8082

Then your wget commands will work fine.

You can use that proxy to get all sorts of stuff in to a template
including PGP keys.

  1. Running bash scripts in templates.
    I would never simply pipe a downloaded script to bash.
    Download it, inspect it, and then run it once you know what it will do.
    So:
    wget https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh
    and then:
    bash Joplin_install_and_update.sh

  2. getting stuff from ~ in a template to an AppVM?
    /home/user/ in a template is not copied in to AppVMs - in this case,
    the install is to /.home/user/.joplin in the template.
    You need to copy that to /etc/skel in the template.
    Now AppVMs created using that template will pick up .joplin in
    /home/user

  3. How to add items to the Application list?
    There’s a page for that in the docs -
    https://qubes-os.org/doc/managing-appvm-shortcuts/
    I would probably add a menu item for the qube you are using it in,
    rather than the template, but your use may differ.

4 Likes