# Node-red on debian - libpcap/amazon dash

**URL:** https://discourse.nodered.org/t/node-red-on-debian-libpcap-amazon-dash/5721
**Category:** General
**Created:** [12 December 2018 17:25 UTC](https://discourse.nodered.org/t/node-red-on-debian-libpcap-amazon-dash/5721 "2018-12-12T17:25:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Samuel](https://discourse.nodered.org/u/Samuel)
#### Post date: [12 December 2018 17:25 UTC](https://discourse.nodered.org/t/node-red-on-debian-libpcap-amazon-dash/5721/1 "2018-12-12T17:25:44Z")

</div>

hi guys, I have recently resurrected my old netbook (samsung nc10) and installed debian 9 on it. works great, good learning curve and NR works much faster than on raspi for example.

So far I have managed to install most palletes/nodes without greater problem. The only one I am struggling with at the moment is libpcap to sniff arps from amazon dash buttons. It did work without any problem on raspi - so I thought - similar systems - shouldn't be a problem - but unfortunately I was mistaken.

Installed libpcap and setting up amazon dash button, pressing it- gives no results.

I have so far installed npm for dash button, pcap and installed pcap2 and libpcap.

Please tell me what info you need from me or maybe point me on different forums to ask?

Thank you!

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [12 December 2018 20:49 UTC](https://discourse.nodered.org/t/node-red-on-debian-libpcap-amazon-dash/5721/2 "2018-12-12T20:49:05Z")

</div>

Libpcap often needs you to run as root. Is that the case here ?

---

<div class="post-metadata">

### Author: ![Samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Samuel](https://discourse.nodered.org/u/Samuel)
#### Post date: [12 December 2018 21:05 UTC](https://discourse.nodered.org/t/node-red-on-debian-libpcap-amazon-dash/5721/3 "2018-12-12T21:05:00Z")

</div>

I will try run it as root user. I can't remember if I tried it already. Will report back.

---

<div class="post-metadata">

### Author: ![Samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Samuel](https://discourse.nodered.org/u/Samuel)
#### Post date: [13 December 2018 07:31 UTC](https://discourse.nodered.org/t/node-red-on-debian-libpcap-amazon-dash/5721/4 "2018-12-13T07:31:49Z")

</div>

Hi there, it was indeed permissions case - or capabilities as its called. I had to issue this command to get libpcap working on normal user:

sudo setcap cap\_net\_raw=eip /usr/bin/node

Then I could start seeing arps being captured by nodered and amazon dash button presses are now fully functional.

Thank you for point this to me.
