netwatch.py/README.md

47 lines
1.2 KiB
Markdown
Raw Normal View History

2015-03-27 22:54:25 +00:00
NetWatch.py - Turnkey Network Dashboard
=======================================
Requirements
-----------
- nmap
Installation
------------
2015-03-27 23:57:14 +00:00
Install python-nmap and netaddr either via pip or via the below instructions:
```
cd python-nmap-0.3.4
sudo python setup.py install
cd ..
cd netaddr-0.7.10
sudo python setup.py install
cd ..
chmod +x netwatch.py
```
2015-03-27 22:54:25 +00:00
Running
-------
2015-03-27 23:55:03 +00:00
- Manually:
2015-03-27 23:57:14 +00:00
```
./netwatch.py
```
2015-03-27 23:55:03 +00:00
- Automatically login on a Raspberry Pi:
2015-03-27 23:59:32 +00:00
- `sudo nano /etc/inittab`
2015-03-27 23:55:03 +00:00
- Navigate to the following line in inittab
2015-03-27 23:57:14 +00:00
- `1:2345:respawn:/sbin/getty 115200 tty1`
2015-03-27 23:55:03 +00:00
- Add a # at the beginning of the line to comment it out
2015-03-27 23:57:14 +00:00
- `#1:2345:respawn:/sbin/getty 115200 tty1`
2015-03-27 23:55:03 +00:00
- Add the following line just below the commented line
2015-03-27 23:59:32 +00:00
- `1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1`
2015-03-27 23:55:03 +00:00
- This will run the login program with pi user and without any authentication
- Save and Exit.
- Press Ctrl+X to exit nano editor followed by Y to save the file and then press Enter to confirm the filename.
- Reboot the pi and it will boot straight on to the shell prompt pi@raspberrypi without prompting you to enter username or password.
- Run automatically after login:
2015-03-27 23:59:32 +00:00
- `echo '~/netwatch.py/netwatch.py' > ~/.bash_profile`