Go to advanced search

by StaticDet5
Sun Mar 08, 2015 11:03 pm
Forum: Python
Topic: Run Python nmap as Root OR let me run full nmap without root
Replies: 12
Views: 2844

Re: Run Python nmap as Root OR let me run full nmap without

I didn't even think to use the Pi as a DNS or DHCP server... That may be the best solution, combined with occasional nmap scans to verify static clients and find "rogue" systems. I'm gonna set up wireshark. I need to get more familiar with it. There may be another elegant solution there. This is str...
by StaticDet5
Sun Mar 08, 2015 8:59 pm
Forum: Python
Topic: Run Python nmap as Root OR let me run full nmap without root
Replies: 12
Views: 2844

Re: Run Python nmap as Root OR let me run full nmap without

That was the post article got me thinking about doing this. Ultimately I'd like the system to detect when someone has arrived at the house, possibly announcing their presence. Everyone has a cellphone, they almost always carry it, and they're constantly on the network when they are here. It will be ...
by StaticDet5
Sun Mar 08, 2015 3:25 pm
Forum: Python
Topic: Run Python nmap as Root OR let me run full nmap without root
Replies: 12
Views: 2844

Re: Run Python nmap as Root OR let me run full nmap without

OK, looking at it from a different direction, is there an elegant way to ask my gateway (The Fios Router) for it's ARP table? Right now, the system that works involves two steps. I manually perform an "nmap -sP 192.168.1.1-254". I give it about 15 seconds, and then run my Python script. The script i...
by StaticDet5
Fri Mar 06, 2015 1:47 pm
Forum: Python
Topic: Run Python nmap as Root OR let me run full nmap without root
Replies: 12
Views: 2844

Re: Run Python nmap as Root OR let me run full nmap without

OK, I had some weird results yesterday using arp, but didn't have them this morning. I initially started using arp, but I didn't seem to get all the systems that were on the network, therefore I started looking at nmap. It seemed like I wasn't getting complete results using arp, unless I ran an nmap...
by StaticDet5
Fri Mar 06, 2015 2:29 am
Forum: Python
Topic: Run Python nmap as Root OR let me run full nmap without root
Replies: 12
Views: 2844

Run Python nmap as Root OR let me run full nmap without root

I'm looking to poll my network every minute (through cron), to get the list of MAC addresses associated to my network. I want to use Python and Python-nmap to do this. I've written a quick program, but I've learned that I can only get MAC addresses from nmap when it is run as root. First, can I some...
by StaticDet5
Tue Oct 21, 2014 3:46 pm
Forum: Beginners
Topic: Persistent BT recognition of a cellphone (or other device)
Replies: 2
Views: 599

Re: Persistent BT recognition of a cellphone (or other devic

So if the device is paired, it is not necessarily going to try to connect whenever it is within range? I thought that was one of the potential security liabilities of BT, that it was constantly checking to see if it could connect to devices when it comes within range of it?
by StaticDet5
Tue Oct 21, 2014 12:29 am
Forum: Beginners
Topic: Persistent BT recognition of a cellphone (or other device)
Replies: 2
Views: 599

Persistent BT recognition of a cellphone (or other device)

I'm running Raspbian. I don't consider myself advanced (Though I've written a couple of I2C libraries...) Still, this seems like a very basic problem. I've paired and trusted my phone using bt-device and bt-adapter. Once I do this, and my phone leaves discovery mode, the R-Pi can no longer see my ph...
by StaticDet5
Fri Mar 21, 2014 12:10 pm
Forum: Beginners
Topic: New scripts not running
Replies: 5
Views: 735

Re: New scripts not running

You're absolutely right! Is this a Debian versus "other linux" thing? At work I have several bash scripts as I have written them (I started out with shebangs in my scripts, but found that they didn't appear to change my scripts behavior here). Is this a different flavor of bash? I'm laughing at this...
by StaticDet5
Fri Mar 21, 2014 11:49 am
Forum: Beginners
Topic: New scripts not running
Replies: 5
Views: 735

Re: New scripts not running

I've tried the commands in a couple of different locations. First in my home directory, then in /bin, then in the root directory. Nothing is working. To invoke the command I'm simply typing the name of the command. As an example, I want a command that will immediately jump me to the /bin directory. ...
by StaticDet5
Fri Mar 21, 2014 3:27 am
Forum: Beginners
Topic: New scripts not running
Replies: 5
Views: 735

New scripts not running

I'm relatively experienced with linux, but I guess not THIS linux. I'm running Occidentalis from Adafruit. I'm trying to set up some of my "go to" commands. I'm creating simple commands the way that I do at work: nano (command) I put in my simple codes (The really simple ones are just directory chan...
by StaticDet5
Tue Oct 15, 2013 3:44 pm
Forum: Camera board
Topic: Pure Python camera interface
Replies: 462
Views: 166579

Re: Pure Python camera interface

That fixed it!

Now I need to go back and figure out why some of my other python programs require me to sudo them....
by StaticDet5
Tue Oct 15, 2013 3:20 pm
Forum: Camera board
Topic: Pure Python camera interface
Replies: 462
Views: 166579

Re: Pure Python camera interface

I'm having the same issue. I installed picamera using the suggested method (easy_install --user picamera) from the command line. I'm then starting a graphics desktop and opening up a terminal window there. I copied the program over, saved it, no problem. At this point, when I try to run the program ...
by StaticDet5
Tue Apr 23, 2013 12:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30573

Re: Enable both I2C Busses

Both buses are there, I'm just not sure where the "Pin Outs" are. Another option is to use one of the digital lines for each sensor to enable a "shutdown" of the sensor. Mr. Townsend on the Adafruit website does a great job of explaining how to do this: http://learn.adafruit.com/using-the-bmp085-wit...
by StaticDet5
Fri Mar 01, 2013 3:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30573

Re: Enable both I2C Busses

Yep.

Just found it. Bizarre wiring issue, I think. I've been having problems with a solderless breadboard. I switched it out, and everything looks good.
by StaticDet5
Fri Mar 01, 2013 12:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30573

Re: Enable both I2C Busses

I just got a bizarre result. I'm working on running a second TSL2561 Luminosity sensor off of my Pi. The first one is on bus 1 (RasbPi Model B, Rev 2). It seems to work, but erratically. The person I'm working with over on Adafruit is helping me run down the problem. I just wired up the second senso...
by StaticDet5
Sat Feb 23, 2013 4:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30573

Re: Enable both I2C Busses

Does this change need to be run every time at startup? Can the change be undone? Can it be undone without a reboot? Could you utilize the I2C bus, and then use code to switch back to the camera module? I'm interested in the camera module, but really interested in running identical sensor systems off...
by StaticDet5
Sat Feb 23, 2013 3:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30573

Re: Enable both I2C Busses

I'm not completely sure why this works, or how it works, but it definitely works. I've got my second I2C bus plugged in to P5, and the Python code works. I just had to run it once for the i2cdetect function to work correctly. I'm going to post links to this thread from the pages where I'm hosting my...
by StaticDet5
Sat Feb 23, 2013 2:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30573

Re: Enable both I2C Busses

I'm trying to get both I2C busses to work. I've soldered on a header onto P5. I need to photograph the board, as my technique leaves the original GPIO header relatively unobscured. Has anyone had any luck getting the second I2C bus to work? I'm using a Raspberry Pi Version B, Rev 2. The i2cdetect -y...
by StaticDet5
Mon Feb 18, 2013 10:15 pm
Forum: Python
Topic: Scientific Python
Replies: 20
Views: 10145

Re: Scientific Python

I ran it from the command line, in the Home directory:

Code: Select all

sudo python3 setup.py install
by StaticDet5
Sun Nov 25, 2012 7:48 pm
Forum: Python
Topic: Scientific Python
Replies: 20
Views: 10145

Re: Scientific Python

Took a break, slept a little. Found the problem. Matplotlib tries to make it easy for you. When you pull down the package, everything is there. Everything is there including BOTH installations (for Python 2.7 and Python 3.2. There may be others, I don't know how to look under the hood). To install f...
by StaticDet5
Sun Nov 25, 2012 5:19 am
Forum: Python
Topic: Scientific Python
Replies: 20
Views: 10145

Re: Scientific Python

I'm having a terrible time getting matplotlib to run with my installation of Python. I'm using 3.2. I started out using 2.7 when I was in college a couple of years ago. I haven't used Python that much since then, so I thought I'd "re-learn" the new system. I've installed matplotlib, but I can't seem...

Go to advanced search