keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.91k stars 1.23k forks source link

Install and use keybase as a user without root #19432

Open chicagoairmailcc opened 5 years ago

chicagoairmailcc commented 5 years ago

Steps to reporoduce:

  1. Run the curl script and get the deb file.

  2. dpkg to get the files

  3. add {base-folder}/usr/bin to path

  4. try run_keybase and fail

$ run_keybase
Starting via systemd...
Failed to restart keybase.service: Unit keybase.service not found.
  1. try keybase login and fail
 keybase login
▶ INFO Starting keybase.service.
Failed to restart keybase.service: Unit keybase.service not found.
▶ ERROR Failed to start keybase.service.
▶ ERROR Error in spawning server process: exit status 5
▶ ERROR exit status 5
  1. (Optional) Create an issue on the github repo
chicagoairmailcc commented 5 years ago
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

I ssh into this machine and I don't have root. Thanks!

heronhaye commented 5 years ago

You need to add the systemd units to .config/systemd/user and then run systemctl --user daemon-reload.

heronhaye commented 5 years ago

The unit files are otherwise in /usr/lib/systemd/user/{keybase,kbfs,keybase-gui}.service. There's also keybase-redirector.service but you can't use that without root.