From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0A0111382C5 for ; Sun, 14 Jun 2020 22:20:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CDF0E0AB5; Sun, 14 Jun 2020 22:20:10 +0000 (UTC) Received: from smarthost03a.mail.zen.net.uk (smarthost03a.mail.zen.net.uk [212.23.1.20]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07BE1E0A9B for ; Sun, 14 Jun 2020 22:20:09 +0000 (UTC) Received: from [82.69.80.10] (helo=peak.localnet) by smarthost03a.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jkaz2-00031d-5U for gentoo-user@lists.gentoo.org; Sun, 14 Jun 2020 22:20:08 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Bitwarden, anyone? Date: Sun, 14 Jun 2020 23:20:07 +0100 Message-ID: <11540662.O9o76ZdvQC@peak> In-Reply-To: <20200614180636.mh3yi5ggz6hv47n5@nabokov.fritz.box> References: <11542277.O9o76ZdvQC@peak> <4552383.GXAFRqVoOG@peak> <20200614180636.mh3yi5ggz6hv47n5@nabokov.fritz.box> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-smarthost03a-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: 9b1bb51f-6f04-4525-bc3f-92eb1c05c91c X-Archives-Hash: 001997b388760572de913db57c00d4f7 On Sunday, 14 June 2020 19:06:36 BST Wynn Wolf Arbor wrote: > On 2020-06-14 18:45, Peter Humphrey wrote: > > Yes; this is what I get: > > > > $ ./Bitwarden*/opt/Bitwarden/bitwarden > > A JavaScript error occurred in the main process > > Uncaught Exception: > > Error: /tmp/.org.chromium.Chromium.QkN0cP: failed to map segment from > > shared object > > --->8 > > From what I remember this is caused by having /tmp mounted with noexec. > Sadly the app tries to execute a process directly from within the > temporary directory and fails. Try something like this to confirm: > > mkdir $HOME/.cache/bitwarden-tmp > TMPDIR=$HOME/.cache/bitwarden-tmp ./Bitwarden*/opt/Bitwarden/ bitwarden That was a good idea - but it didn't help, so that's not the answer. > To see whether you've mounted /tmp with noexec: mount | grep /tmp > > Should give something like this: > > tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime) > > Note that having /tmp mounted with noexec is usually a good idea. I used > to create a wrapper script that launched these kinds of app with a > special TMPDIR. > > > I haven't played with java before, so I'm trying to follow the gentoo > > wiki. My first question is whether I need a jdk as well as a jre. The > > wiki talks blithely about virtual machines, and I'm left to guess > > whether the jre is the jvm, as it seems. I'm currently installing > > openjre and openjdk; icedtea-bin is also installed. > > The JRE is the Runtime Environment. It includes all things necessary to > run a compiled Java program (so it does indeed include the JVM). The JDK > is the Development Kit - it includes the JRE, but also ships with the > javac compiler and a few other tools. So, if you intend to just run an > already compiled Java program (usually in the form of a .jar), you just > need the JRE. If you need to compile Java programs, you should instead > install the JDK (and can remove the JRE fully). That makes sense, and I'd supposed it to be so. It would be helpful if the wiki said so. > Regardless of that, JavaScript is not Java [1]. There's no need for the > JRE if you want to run JavaScript code. The Bitwarden desktop app does > not need a JRE or JDK. Yes, I understand that. > [1] https://en.wikipedia.org/wiki/JavaScript#Java -- Regards, Peter.