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

Why is root required for install? #42

Closed
taxilian opened this issue Oct 8, 2012 · 3 comments
Closed

Why is root required for install? #42

taxilian opened this issue Oct 8, 2012 · 3 comments

Comments

@taxilian
Copy link

taxilian commented Oct 8, 2012

I have no particular need to create a special user for this to run as; it'd be just fine to run it as my current user. Why is this so hardcoded to require root?

I understand having an install script to set it up in the traditional setup, but it seems a little odd that I cant' just install it as a normal user without all that extra stuff. nothing requiring creating a new user or root access should ever be required to run something like this.

@cyberb
Copy link

cyberb commented Oct 24, 2012

had to fix log.io-harvester / log.io-server startup scripts to use relative paths for configs and to run as current user.
I would like to have non-root support out of the box.

@jochenonline
Copy link

I have just installed log.io under my "normal" user and it works like charm.

mkdir mylogio
cd mylogio
npm install coffee-script 
npm install log.io

Without the extra coffe-script installation my log.io installation missed cake.

The only thing you have to do now is to start the server/harvester "by hand":

node ~/mylogio/node_modules/log.io/bin/log.io-server
node ~/mylogio/node_modules/log.io/bin/log.io-harvester

That's it!

You can find the config files in ~/.log.io

@msmathers
Copy link
Collaborator

@jochenonline is right, v0.3.0 now installs entirely in user space. You'll still need root to do a global install (npm install -g log.io), but it's not required.

Also, be sure to tell npm to use a specific user, otherwise it will fail out when trying to create your ~/.log.io directory for configuration:

npm install -g log.io --user "ubuntu"

or

npm set "user" "ubuntu"
npm install -g log.io

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

4 participants