Giter Club home page Giter Club logo

Comments (6)

realSConway avatar realSConway commented on July 19, 2024 1

Ok, I'm not sure I quite understand.

But I got it working,

  1. for file /etc/tor/torrc, I added:
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
  1. Added group tor to $USER.

  2. Then chowned: chown $USER:tor /var/run/tor/control.authcookie

  3. Restarted tor service: sudo systemctl restart tor

  4. nyx is now run without sudo, displaying real-time information.

nyx - PC_NAME (Linux 5.xx.x-x-default)      Tor 0.4.4.6 (recommended)
Relaying Disabled, Control Port (cookie): 9051
cpu: 1.9% tor, 0.4% nyx    mem: 46 MB (0.3%)   pid: 5430   uptime: 07:28

page 1 / 5 - m: menu, p: pause, h: page help, q: quit
Bandwidth (limit: 1 GB/s, burst: 1 GB/s):
Download (307.1 KB/sec  - avg: 37.7 KB/sec):       Upload (9.5 KB/sec    - avg: 1.3 KB/sec):
1 MB                                               46 KB

969 KB                                             30 KB

485 KB                                             15 KB

12 KB                                              543 B
           5s   10   15   20   25   30   35                  5s   10   15   20   25   30   35

from nyx.

atagar avatar atagar commented on July 19, 2024 1

Great, glad it's working. :)

from nyx.

atagar avatar atagar commented on July 19, 2024

Path: /var/run/tor/control/var/run/tor/control.authcookie

Hi, that is certainly odd. Unless I'm missing something this can only arise if nyx believes tor is running within a chroot. Are you running FreeBSD or does your non-root user have a '~/.nyx/config' with a 'tor_chroot' field?

https://gitweb.torproject.org/nyx.git/tree/nyx/__init__.py#n383

If not, please run 'nyx --debug' with your non-root user and provide the debug output (minus anything you feel is sensitive).

Thanks!

from nyx.

realSConway avatar realSConway commented on July 19, 2024

Hi @atagar, thanks for the reply!

ok, so in '~/.nyx/config' I had tor_chroot with value: tor_chroot /var/run/tor/control
This was the reason for Path: /var/run/tor/control/var/run/tor/control.authcookie
Then I commented that line out, nyx -debug, this returned

Saving a debug log to ebug, please check it for sensitive information before sharing it.
We were unable to read tor's authentication cookie...

  Path: /var/run/tor/control.authcookie
  Issue: Authentication failed: unable to read '/var/run/tor/control.authcookie' ([Errno 13] Permission denied: '/var/run/tor/control.authcookie')

Does this mean it's not possible to use nyx as non-root user on a root service?

from nyx.

atagar avatar atagar commented on July 19, 2024

Does this mean it's not possible to use nyx as non-root user on a root service?

Hi, it means that your authentication cookie isn't readable by your user. Tor obnoxiously requires some additional setup (#24). Please check your cookie's filesystem permissions, then adjust torrc options like CookieAuthFileGroupReadable so your nyx user can read it.

from nyx.

42piratas avatar 42piratas commented on July 19, 2024

May I ask something although it's closed?

I'm facing the same error. Could you pls clarify what to do on step 2 Added group tor to $USER?

In my installation, there's no group or user tor. Should I create one or even both of them?

from nyx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.