I can not install Electrum - Bitcoin Crypto Currency Wallet

Took a quick look and didn’t findd any electum Applmage profile. Found AppImage specific command.

https://community.parrot.sh/t/using-firejail/1560

firejail --appimage app_name.appimage

Season of Docs doc writing phase starts on September 2, 2019
I can either

  • Finish up tunnels documentation
  • Work on electrum appimage profile.

Either is fun for me . Your pick.

Edit: there is an electum profile in Debian firejail package but not for appimage.

https://packages.debian.org/buster/all/firejail-profiles/filelist

2 Likes

That would be great!

Once that is figured out, I can add support for it to the startup wrapper
https://github.com/adrelanos/binaries-freedom/blob/master/usr/bin/electrum-appimage

That would also help when we add other AppImages.

1 Like

I think we are in agreement, don’t see the need for arguing. Happy to concede I am wrong about anything and everything as long as the path forward is a positive one.

Hi there. I don’t want to create a separate thread for this issue so I decided to post here.
I just finished following the new guide on how to use Electrum wallet.
Electrum was installed succesfully, however after clicking on its icon in the menu or typing electrum-appimage into the console, nothing happens for me. Of course I’m using the latest Whonix, never experienced any problems with it until now.
Is the issue on my part? How do I troubleshoot?

Run.

bash -x /usr/bin/electrum-appimage

ls -la /usr/share/binaries-freedom/electrum-appimage/

dpkg -l | grep binaries-freedom

And post output here.

Edit: Had a typo when running electrum-appimage in my original post


user@host:~$ bash -x /usr/bin/electrum-appimage
+ set -e
+ '[' -f /usr/lib/helper-scripts/pre.bsh ']'
+ source /usr/lib/helper-scripts/pre.bsh
++ '[' -o xtrace ']'
++ XTRACE=0
++ set -o errtrace
+++ mktemp
++ TEMP_FILE_PRE_BSH=/tmp/tmp.w2bzg7T8Rn
++ '[' 0 = 0 ']'
++ true 'INFO: Setting DEBDEBUG to 1, because xtrace (-x) is set.'
++ DEBDEBUG=1
++ '[' 1 = 1 ']'
++ set -x
++ colors
++ '[' xterm-256color = '' ']'
++ [[ -t 2 ]]
+++ type -t errorhandlergeneral
++ '[' '' = function ']'
++ trap error_handler_pre ERR
++ bash -n /usr/lib/helper-scripts/pre.bsh
++ bash -n /usr/bin/electrum-appimage
++ own_filename=electrum-appimage
++ source_config_folder
++ pre_bsh_settings_folder=_maint.d
++ shopt -s nullglob
++ local i
++ shopt -u nullglob
++ unset skip_script
++ '[' electrum-appimage = '' ']'
+ shopt -s nullglob
+ for file_name in /usr/share/binaries-freedom/electrum-appimage/*
+ test -x /usr/share/binaries-freedom/electrum-appimage/electrum-3.3.8-x86_64.AppImage
+ /usr/share/binaries-freedom/electrum-appimage/electrum-3.3.8-x86_64.AppImage

Thanks for pointing that out @Patrick_mobile :wink:

1 Like

don’t prepend electrum-appimage. see original post.

bash -x … only

2 Likes

Here’s output from the first command.

user@host:~$ bash -x /usr/bin/electrum-appimage
+ set -e
+ '[' -f /usr/lib/helper-scripts/pre.bsh ']'
+ source /usr/lib/helper-scripts/pre.bsh
++ '[' -o xtrace ']'
++ XTRACE=0
++ set -o errtrace
+++ mktemp
++ TEMP_FILE_PRE_BSH=/tmp/tmp.zjkQmrVRTs
++ '[' 0 = 0 ']'
++ true 'INFO: Setting DEBDEBUG to 1, because xtrace (-x) is set.'
++ DEBDEBUG=1
++ '[' 1 = 1 ']'
++ set -x
++ colors
++ '[' xterm-256color = '' ']'
++ [[ -t 2 ]]
+++ type -t errorhandlergeneral
++ '[' '' = function ']'
++ trap error_handler_pre ERR
++ bash -n /usr/lib/helper-scripts/pre.bsh
++ bash -n /usr/bin/electrum-appimage
++ own_filename=electrum-appimage
++ source_config_folder
++ pre_bsh_settings_folder=_maint.d
++ shopt -s nullglob
++ local i
++ shopt -u nullglob
++ unset skip_script
++ '[' electrum-appimage = '' ']'
+ shopt -s nullglob
+ for file_name in /usr/share/binaries-freedom/electrum-appimage/*
+ test -x /usr/share/binaries-freedom/electrum-appimage/electrum-3.3.8-x86_64.AppImage
+ /usr/share/binaries-freedom/electrum-appimage/electrum-3.3.8-x86_64.AppImage

(python3.6:2490): dbind-WARNING **: 12:34:31.804: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
+ exit 0

Electrum launched succesfully issuing this command. Clicking on the icon in the menu or typing bare electrum-appimage into the terminal still don’t work.
And for the following commands.

user@host:~$ ls -la /usr/share/binaries-freedom/electrum-appimage/
total 48212
drwxr-xr-x 2 root root     4096 Aug 21 00:15 .
drwxr-xr-x 3 root root     4096 Aug 21 00:15 ..
-rwxr-xr-x 1 root root 49356776 Aug  9 10:15 electrum-3.3.8-x86_64.AppImage
-rw-r--r-- 1 root root      833 Aug  9 10:15 electrum-3.3.8-x86_64.AppImage.asc
user@host:~$ dpkg -l | grep binaries-freedom
ii  binaries-freedom                             0.6-1                        all          Freedom Software Binaries
1 Like

Therefore the desktop file is broken somehow.

Strange since that works for me.

As solution try this…

Open /usr/share/applications/electrum-appimage.desktop with root rights.

lxsudo mousepad /usr/share/applications/electrum-appimage.desktop

That line

Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\" electrum-appimage %u"

is taken from Debian electrum package and just modified to append -appimage. I did that to keep the diff to “upstream” implementation close. But it’s not very important. That feature only allow putting a custom electrum-appimage script into ~/.local/bin folder, which probably few are doing. ~/bin should be usable anyhow, but untested.

Try changing that line to:

electrum-appimage

I wasn’t sure whether you meant to change the entire line into

electrum-appimage

or into

Exec=electrum-appimage

Nonetheless I tried both and neither fixed it. The first one caused the menu icon to disappear completely and the second one had the menu icon but still wouldn’t start electrum.
Now that I think of it, could it be somehow caused by the fact that my whonix workstation is not a fresh install, but an upgraded one from whonix 14? I remember reading something on the upgrading guide page about desktop files change between whonix 14 and 15.
Are you sure it’s caused by desktop files though? Since typing electrum-appimage into the terminal doesn’t work either.

moxataxoma via Whonix Forum:

or into

Exec=electrum-appimage

This.

Now that I think of it, could it be somehow caused by the fact that my whonix workstation is not a fresh install, but an upgraded one from whonix 14?

Could be but should be the same.

I remember reading something on the upgrading guide page about desktop files change between whonix 14 and 15.

Unrelated. The change probably was: no more default desktop icons added
by Whonix.

Are you sure it’s caused by desktop files though? Since typing electrum-appimage into the terminal doesn’t work either.

electrum-appimage in terminal has to be made work first indeed.

Do you have any ideas on what next steps could be taken to troubleshoot this?
For now I’ve changed the Exec= line in /usr/share/applications/electrum-appimage.desktop into Exec=bash -x /usr/bin/electrum-appimage, which for some reason works, but I know it’s only a workaround and the fact that the electrum-appimage command still doesn’t work is kinda bugging me.

1 Like

Maybe /usr/bin/electrum-appimage isn’t executable for some reason.

Check

sudo ls -la /usr/bin/electrum-appimage

Make executable.

chmod +x /usr/bin/electrum-appimage

Check again.

sudo ls -la /usr/bin/electrum-appimage

I thought this may be the reason before and I made sure it was executable. The issue still persists.

-rwxr-xr-x 1 root root 560 Aug 9 10:15 /usr/bin/electrum-appimage

Removing the binaries-freedom package and installing it again doesn’t help either. I’m really confused.

Something that /usr/lib/helper-scripts/pre.bsh does could be causing this.

You could try getting latest from github or testers repository.

https://raw.githubusercontent.com/Whonix/helper-scripts/master/usr/lib/helper-scripts/pre.bsh

Or try remove or out comment

if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
   source /usr/lib/helper-scripts/pre.bsh
fi

from /usr/bin/electrum-appimage.

1 Like

What’s the purpose of this script? I just run the electrum appimage elf file directly. What do I miss?

It’s supposed to be always the same stable wrapper script name. No need to type the full path to the AppImage.

While the AppImage and OpenPGP signature can stay in /usr/share/binaries-freedom/electrum-appimage folder.

Future use:

  • Placing a default configuration file at first start that enables stream isolation.

Future potential use:

  • Mandatory access control (MAC) such as firejail.
  • Signature verification before starting the binary. (Not sure that will improve security a lot since I verify the signature when downloading electrum before git committing it to the pacakge.)

No reason against it.

1 Like