Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suport bunsenLabs linux #355

Closed
mef opened this issue Feb 24, 2018 · 3 comments
Closed

Suport bunsenLabs linux #355

mef opened this issue Feb 24, 2018 · 3 comments

Comments

@mef
Copy link

mef commented Feb 24, 2018

Hi,

The setup of Prey fails on bunsenLabs linux distribution (debian derivative), with the following error message:

Error! Invalid os: does not exist.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	BunsenLabs
Description:	BunsenLabs GNU/Linux 8.1 (Hydrogen)
Release:	8.1
Codename:	Hydrogen

Distro's website: https://www.bunsenlabs.org/

Could you add suport for this distribution, please?

P.S. instead of adding each distro variant individually, it might be worth finding a more generic method to support derivatives:

$ cat /etc/os-release
[...]
ID=bunsenlabs
ID_LIKE="debian"
[...]
VERSION_ID="8.1"
@mef
Copy link
Author

mef commented Feb 24, 2018

Workaround to make prey setup work on unsupported debian derivatives:

  1. Install the .deb package
  2. As soon as the config GUI appears, edit the file /usr/lib/prey/current/node_modules/linus/index.js: inside the callback function of lsb_release (line 43 in current version), replace return cb(null, res); by return cb(null, 'debian');:
var get_distro_info = function(what, lsb_param, issue_cb, cb) {
  lsb_release(lsb_param, function(err, res) {
    if (res && res != '')
      return cb(null, 'debian');
  1. Proceed with the configuration

Edit: a typo

@javo
Copy link
Contributor

javo commented Feb 28, 2018

Nice @mef,
We've also added the BunsenLabs distro so it should work now.

@mef
Copy link
Author

mef commented Apr 22, 2018

FYI, the problem is still here when installing prey 1.7.4 on bunsenLabs 9.4 (Helium).

$ lsb_release -a
No LSB modules are available.
Distributor ID:	BunsenLabs
Description:	BunsenLabs GNU/Linux 9.4 (Helium)
Release:	9.4
Codename:	helium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants