command line usage under a hosted linux VPS

Help
Kob
2013-12-07
2013-12-07
  • Kob
    Kob
    2013-12-07

    Hi,
    I am trying to run PWS using the command line under a debian-based remote VPS (connecting with SSH).
    Can't get it to work.

    I downloaded the 0.92 beta .deb package (for ubuntu LTS), installed it (with all the required dependencies), and then tried to encrypt a sample file from the command line:

    root@x1:/usr/share/doc/passwordsafe# /usr/bin/pwsafe -e test.txt

    This is what I'm getting:

    Current locale doesn't support UTF-8
    Error: Unable to initialize gtk, is DISPLAY set properly?

    Howerver, I've set my locale using "dpkg-reconfigure locales" and checked the results:

    root@x1:/usr/share/doc/passwordsafe# locale -a
    C
    C.UTF-8
    POSIX
    en_US.utf8

    So my question is: can PWS run in such a remote environment (no GUI) and if yes, how can I make it work?

    P.S. I could not locate anywhere the linux installation instructions

     
    Last edit: Kob 2013-12-07
    • Johan Vromans
      Johan Vromans
      2013-12-07

      "Kob" ninveh@users.sf.net writes:

      So my question is: can PWS run in such a remote environment (no GUI)
      and if yes, how can I make it work?

      Yes and no.

      There are several programs called 'pwsafe'. Apparently you have
      installed a GUI version.

      A command line version is e.g. http://sourceforge.net/projects/pwsafe/
      but I cannot comment on whether it still works since it's rather old.

      Maybe someone else has other suggestions?

      BTW: If your sole purpose is to encrypt/decrypt arbitrary files you can
      better use a tool like GPG.

      -- Johan

       
  • Rony Shapiro
    Rony Shapiro
    2013-12-07

    Several things to consider here:
    1. The pwsafe deb package here is for GUI. The error messages that you get are related to that.
    2. I don't think '-e' and '-d' are supported in the Linux build.
    3. As Johan wrote, if you just want to encrypt/decrypt files for yourself, gpg is probably a better choice.
    4. It's possible to build a command-line-only version of pwsafe, but not as a deb package, at least, not without some work.

     
  • Kob
    Kob
    2013-12-07

    Johan / Rony - thank you for the helpful comments.

    I've tried to go with something quick that I know and trust - and this is PWS. I am not that familiar with GPG (I thought erroneously that it was only for asymmetric encryption), and did not feel like using openssl.
    I may still test the PWS version Johan pointed to, and if unsuccessful will probably go with your recommendation - GPG.

    Thanks again.