KeePassXC

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
Post Reply
User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

KeePassXC

Post#1 by user0815 » 10 Feb 2019, 22:53

Dear All,
Does anyone have or know where to download this module? I tried myself at least 10 times with USM but get most of the time LIBS.txt error. It seems to depend on which dependency packages I choose. Finally I have a working xzm, but it’s bigger than 130mb, for keepassxc a weird big size. Thanks in advance.
Cheers
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 4979
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: KeePassXC

Post#2 by Ed_P » 10 Feb 2019, 23:20

I have a keepassx module, 2.0.3, that is only 516.1KB. Not sure what the XC version is.

USM LIB.txt errors can be caused by bad mirrors. Did you update the databases before running USM

An automated USM mirror fix is sesm.sh which is described here. [INFO & SCRIPT] Slackware Mirror Settings for USM


-update-

I just tried building keepassxc and it requires a bunch of dependencies and I ended with the LIB.TXT error also. It looks like keepassxc requires some libreoffice packages and they can indeed be huge. Are you sure the keepassx module won't work for you?
Ed

AcnapyxoB
White ninja
White ninja
Posts: 21
Joined: 24 Dec 2014, 10:15
Distribution: 4.0 XFCE x64
Location: Bulgaria

Re: KeePassXC

Post#3 by AcnapyxoB » 11 Feb 2019, 05:23


User avatar
Ed_P
Contributor
Contributor
Posts: 4979
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: KeePassXC

Post#4 by Ed_P » 11 Feb 2019, 06:43

How does one use an AppImage with Porteus?
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2103
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Re: KeePassXC

Post#5 by ncmprhnsbl » 11 Feb 2019, 08:27

Ed_P wrote:
11 Feb 2019, 06:43
How does one use an AppImage with Porteus?
make it executable and run it... ie. in term(in the directory where the appimage is):

Code: Select all

$ chmod +x KeePassXC-2.3.3-x86_64.AppImage
$ ./KeePassXC-2.3.3-x86_64.AppImage
if it doesn't work, the output may give some clue about what's missing..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Re: KeePassXC

Post#6 by user0815 » 11 Feb 2019, 12:18

@Ed: Yes, keepassx works for me, but its latest version 2.0.3 was more than two years ago, and I like to try the new one which has active development, keepassXC is a fork and actively maintained.

@AcnapyxoB and ncmprhnsbl: thanks a lot for your advises. It works great for me. The only drawback I see now is that I cannot create a module out of the ApImage for now, maybe there is a way. Thanks again.

ps. itś a pity that such useful information is not easy to find for newbies like me.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 4979
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: KeePassXC

Post#7 by Ed_P » 11 Feb 2019, 15:19

user0815 wrote:
11 Feb 2019, 12:18
ps. itś a pity that such useful information is not easy to find for newbies like me.
Hopefully now it won't be for others. :good:

user0815 wrote:
11 Feb 2019, 12:18
The only drawback I see now is that I cannot create a module out of the ApImage for now
I'm not sure you need to but it would be convenient.

https://appimage.org/ :o I suspect we will be seeing more of these files.

Or not. OpenShot not working
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2103
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Re: KeePassXC

Post#8 by ncmprhnsbl » 11 Feb 2019, 22:44

user0815 wrote:
11 Feb 2019, 12:18
The only drawback I see now is that I cannot create a module out of the ApImage for now, maybe there is a way.
once it's executable it will run like any script or binary, so:
(from the same directory as the appimage, as root user)

Code: Select all

mkdir -p /tmp/build/usr/bin
cp -a KeePassXC-2.3.3-x86_64.AppImage /tmp/build/usr/bin
mkdir -p /tmp/build/usr/share/applications
echo -e "[Desktop Entry]\nName=KeepPassXC\nExec=/usr/bin/KeePassXC-2.3.3-x86_64.AppImage\nType=Application\nTerminal=false\nCategories=Accesories;Utility;" > /tmp/build/usr/share/applications/keeppassxc.desktop
dir2xzm /tmp/build KeePassXC-2.3.3-x86_64-AppImage.xzm 
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 4979
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: KeePassXC

Post#9 by Ed_P » 12 Feb 2019, 00:09

Show off. :D A interesting approach though. I will have to study it. :happy62:

This is what I used to create a module.

Code: Select all

#!/bin/bash

# Save AppView as a mod file
# Place file in the /tmp folder and make executable via chmod +x first

# For KeePassXC execute it one time and choose the Install option before running this. 

MOD=KeePassXC
VRSN=2.3.3       
TO=/mnt/sda6/porteus4.0/Optional                             # Change to fit your environment #

if [ `whoami` != "root" ]; then
    echo "Enter root's password"
    su -c "sh $0 $1"
    exit
fi

if [ -d /tmp/mod/ ]; then
   rm -rf /tmp/mod
fi
mkdir -p  /tmp/mod

# copy mod files

cp -a --parents /tmp/*AppView                                                                      /tmp/mod/
cp -a --parents /home/guest/.local/share/mime/application/x-keepass2.xml                           /tmp/mod/
cp -a --parents /home/guest/.local/share/mime/packages/keepassxc.xml                               /tmp/mod/
cp -a --parents /home/guest/.local/share/applications/appimagekit-org.keepassxc.KeePassXC.desktop  /tmp/mod/
cp -a --parents /home/guest/.config/keepassxc/keepassxc.ini                                        /tmp/mod/
cp -a --parents /home/guest/.local/share/icons/hicolor/*/*/*keepassxc*.png                         /tmp/mod/

echo
du -ch  /tmp/mod/  
echo Changed files copied. Press Enter to create module, Ctrl+C to exit.
read

du -h   /tmp/mod/
echo 
dir2xzm /tmp/mod /tmp/$MOD.xzm     &&     rm -rf /tmp/mod

echo 
ls -sh  /tmp/*.xzm
#read

DIR () {
ls -lght --time-style long-iso $1 | awk '{print $5,$6,$4,$7}'
}

echo
echo Press Enter to copy /tmp/$MOD.xzm to $TO, Ctrl+C to exit.
DIR     /tmp/$MOD.xzm 
if [ -f /$TO/$MOD.xzm ]; then DIR /$TO/$MOD.xzm; fi 
read
cp      /tmp/$MOD.xzm  /$TO
echo Finished!
read  
:smiling9:
Last edited by Ed_P on 13 Feb 2019, 18:56, edited 1 time in total.
Reason: Refined script code.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2103
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Re: KeePassXC

Post#10 by ncmprhnsbl » 12 Feb 2019, 01:05

ok, so presumably when this appimage launches it offers to create/install a .desktop file.. (or does so automatically)(EDIT ok "choose install option")
and it's Exec= line points to whereever you launched it from (which would need to be outside the union(live filesystem) if you're not using changes/save file)(EDIT ok "TO=/mnt/sda6/porteus4.0/Optional" )
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 4979
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: KeePassXC

Post#11 by Ed_P » 12 Feb 2019, 01:20

Actually once the xzm module is Activated the KeePassXC desktop Exec points to the AppImage file in /tmp. :)


-update-

Exec="/tmp/KeePassXC-2.3.3-x86_64.AppImage" %U

There is also a section of the desktop file that I don't understand how it gets invoked.

[Uninstall]
Name=Remove desktop integration for KeePassXC
Exec="/tmp/KeePassXC-2.3.3-x86_64.AppImage" --remove-appimage-desktop-integration
Ed

Post Reply