Re: [Passwordsafe-linux] PasswordSafe Linux Beta release 1.07
Popular easy-to-use and secure password manager
Brought to you by:
ronys
From: JP V. <jp...@jp...> - 2019-01-05 02:51:20
|
On 1/2/19 10:29 AM, pwsafe.org wrote: > PasswordSafe Linux 1.07 Beta is formally released. > > Packages for Debian, Ubuntu and Fedora may be downloaded from > https://github.com/pwsafe/pwsafe/releases/tag/1.07BETA > or > https://sourceforge.net/projects/passwordsafe/files/Linux-BETA/1.07BETA/ > > Let me know if you need a build for another distro, and I'll see what I > can do. It looks like at least passwordsafe-ubuntu18-1.07.0-BETA.amd64.deb has missing deps for libcurl.so.4 and locales (which I found out doing the Docker build below). I've still got some Mint 17 which is based on Ubuntu 14.04/Trusty...but never mind, I just noticed the EoL date is 2019-04. Sigh. I'll get those updated, Real Soon Now. Real Soon. That said, what about a Snap? https://en.wikipedia.org/wiki/Snappy_(package_manager) https://github.com/snapcore/snapcraft https://docs.snapcraft.io/creating-a-snap/6799 https://docs.snapcraft.io/pre-built-apps/6739 https://snapcraft.io/ And/or a Docker container? The Snap is probably a better way to go because (GUI) app dependencies & packaging is exactly why it exists, but I'm playing with Docker at the moment, so... This 'Dockerfile' builds and works! More or less. I haven't tested it much yet and I doubt the system tray will work. There won't be an icon outside of the container either. Note this is my very first Dockerfile and is the result of reading 2 books and about 3 hours of messing around, so you have been warned. My MTA is going to mess up line-breaks too... ---- # See: https://hub.docker.com/_/debian and https://hub.docker.com/_/ubuntu FROM ubuntu:18.04 # Build with: sudo docker build -t passwordsafe . # --or-- sudo docker build -t passwordsafe:1.07BETA . # Run with: sudo docker run --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" --volume="$HOME/.pwsafe:/root/.pwsafe:rw" passwordsafe LABEL "maintainer"="The Passwordsafe Project <Pas...@li...>" # Install deps for PWSafe (LOTS and LOTS!) # 0 upgraded, 173 newly installed, 0 to remove and 0 not upgraded. # Need to get 59.9 MB of archives. # After this operation, 363 MB of additional disk space will be used. # See https://docs.docker.com/develop/develop-images/dockerfile_best-practices#apt-get RUN apt-get update \ && apt-get install -qy libwxgtk3.0-0v5 libxtst6 libxerces-c3.2 libykpers-1-1 libqrencode3 libcurl4 locales \ && rm -rf /var/lib/apt/lists/* # Set the locale, per http://jaredmarkell.com/docker-and-locales/ RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 # Avoid: (pwsafe:8): Gtk-WARNING **: *: Attempting to set the permissions of `/root/.local/share', but failed: No such file or directory RUN mkdir -p /root/.local/share # This is here to leave everything above UNCHANGED as much as possible # to allow layer caching to work at build time! ARG deb_file=passwordsafe-ubuntu18-1.07.0-BETA.amd64.deb LABEL "pwsafe"="$deb_file" ADD https://github.com/pwsafe/pwsafe/releases/download/1.07BETA/$deb_file \ /tmp/$deb_file RUN dpkg -i /tmp/$deb_file && rm /tmp/$deb_file CMD /usr/bin/pwsafe ---- A non-cached build that actually has to do the APT installs takes about 5 mins on my workstation, most of which is `apt-get` "Setting up...". Build: ---- [jp@ringo:T19:L1:C535:J0:2019-01-04_20:52:42_EST] /home/jp/working/docker/passwordsafe$ time sudo docker build -t passwordsafe:1.07BETA . Sending build context to Docker daemon 3.584kB Step 1/13 : FROM ubuntu:18.04 ---> 1d9c17228a9e Step 2/13 : LABEL "maintainer"="The Passwordsafe Project <Pas...@li...>" ---> Using cache ---> 7740484d49d6 Step 3/13 : RUN apt-get update && apt-get install -qy libwxgtk3.0-0v5 libxtst6 libxerces-c3.2 libykpers-1-1 libqrencode3 libcurl4 locales && rm -rf /var/lib/apt/lists/* ---> Using cache ---> a27408669b39 Step 4/13 : RUN locale-gen en_US.UTF-8 ---> Using cache ---> 5a77b0e1353a Step 5/13 : ENV LANG en_US.UTF-8 ---> Using cache ---> 2f130971ca1f Step 6/13 : ENV LANGUAGE en_US:en ---> Using cache ---> 5e3b97476bcb Step 7/13 : ENV LC_ALL en_US.UTF-8 ---> Using cache ---> 3fab6d434cb1 Step 8/13 : RUN mkdir -p /root/.local/share ---> Using cache ---> 853a2a59033b Step 9/13 : ARG deb_file=passwordsafe-ubuntu18-1.07.0-BETA.amd64.deb ---> Using cache ---> b8c13697e68e Step 10/13 : LABEL "pwsafe"="$deb_file" ---> Using cache ---> a04a7de3ab67 Step 11/13 : ADD https://github.com/pwsafe/pwsafe/releases/download/1.07BETA/$deb_file /tmp/$deb_file Downloading 11.26MB/11.26MB ---> Using cache ---> d75d25d248ca Step 12/13 : RUN dpkg -i /tmp/$deb_file && rm /tmp/$deb_file ---> Using cache ---> 5d88cddbe9b4 Step 13/13 : CMD /usr/bin/pwsafe ---> Using cache ---> 00b895e642f0 Successfully built 00b895e642f0 Successfully tagged passwordsafe:1.07BETA real 0m3.823s user 0m0.120s sys 0m0.040 ---- Here is how to run it. It works, but is a tad ugly, I assume due to default GTK themes: ---- [jp@ringo:T19:L1:C526:J0:2019-01-04_20:07:03_EST] /home/jp/working/docker/passwordsafe$ sudo docker run --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" --volume="$HOME/.pwsafe:/root/.pwsafe:rw" passwordsafe ---- The image is not small because of the large amount of stuff that gets pulled in to meet the deps: ---- [jp@ringo:T19:L1:C537:J0:2019-01-04_20:55:03_EST] /home/jp/working/docker/passwordsafe$ sudo docker image list REPOSITORY TAG IMAGE ID CREATED SIZE passwordsafe 1.07BETA 00b895e642f0 2 minutes ago 359MB passwordsafe latest 00b895e642f0 2 minutes ago 359MB <none> <none> 852d5e907158 29 minutes ago 359MB <none> <none> 9d5272a16c46 About an hour ago 359MB ... ubuntu 18.04 1d9c17228a9e 7 days ago 86.7MB ---- Thanks, JP -- ------------------------------------------------------------------- JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/ |