Re: Need help use AppImage
Posted: Mon Dec 09, 2019 5:46 pm
The Debian kernel doesn't support sandboxing. It starts up for me using a Liquorix kernel, so what kernel are the other users running that have success with it?
Support for MX and antiX Linux distros
http://www.forum.mxlinux.org/
Code: Select all
./Ankama\ Launcher-Setup-x86_64.AppImage
[sudo] password for DJ:
[4200:1210/185337.567698:FATAL:atom_main_delegate.cc(210)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap
Code: Select all
$ ./Ankama\ Launcher-Setup-x86_64.AppImage
[6705:1210/191151.824920:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_AnkamaYnfC58/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
Code: Select all
./Ankama Launcher-Setup-x86_64.AppImage
I've been using the latest antiX 4.19 LTS kernel from the MX repo, and the Dofus Appimage worked for me. So, yes, some difference from the stock MX kernel.Stevo wrote: Mon Dec 09, 2019 10:32 pm Electron apps, even in Appimages, are using an included runtime version of Chromium as the javascript engine, and we know that Chromium requires sandboxing. I therefore think I asked a legitimate question when I inquired about what kernel the successful users were using.
Code: Select all
$ uname -r
4.19.83-antix.1-amd64-smpw
I don't know if something is missing, but there have been multiple reports of chromium-derived apps not working for all users. So, it's probably worthwhile to explore and ask questions like Stevo is asking.ForWIW wrote: Tue Dec 10, 2019 7:14 pm @andyprough
Just to clarify:The kernel you're using IS a Debian kernel ... so I still don't understand Stevo's assertion in the context of the OP's problem in this thread ... am I missing something here?Stevo said ...
The Debian kernel doesn't support sandboxing.
Code: Select all
./Ankama\ Launcher-Setup-x86_64.AppImage
[sudo] password for DJ:
[4200:1210/185337.567698:FATAL:atom_main_delegate.cc(210)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap
Code: Select all
#!/bin/bash
# AppImage launcher
# fehlix: 11.12.2019
# A simple appimage (type 2) launcher wrapper to enable chrome-sandbox SUID bit
# and enhance security by setting kernel.yama.ptrace.scope parameter
#
# Usage: run_app.sh path-to-appimage
# run_app.sh
# default App at: "$HOME/AppImage/Ankama Launcher-Setup-x86_64.AppImage"
APP="${1:-$HOME/AppImage/Ankama Launcher-Setup-x86_64.AppImage}"
APP=$(readlink -e "$APP")
[ ! -f "$APP" ] && echo "Fatal: No such AppImage: $APP" && exit 1
chmod +x "$APP"
TMP=$(mktemp -d /tmp/AppImageLauncher.XXXXXXXXXXXX)
tidy_up() { rm -rf $TMP; }
trap tidy_up EXIT
pushd $TMP
"$APP" --appimage-extract >/dev/null
CRS=$TMP/squashfs-root/chrome-sandbox
RUN=$TMP/squashfs-root/AppRun
YAMA="kernel.yama.ptrace_scope = 1"
CONF=/etc/sysctl.d/10-kernel.yama.ptrace_scope.conf
pkexec bash -c "echo $YAMA > $CONF ; sysctl --load $CONF; chown 0:0 $CRS; chmod 4755 $CRS;"
$RUN