From 14305423b3d079ed0f2ecdc3a17c7e85119faa40 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Fri, 27 Mar 2015 23:57:14 +0000 Subject: [PATCH] Readme formatting --- README.md | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 353eb33..94f4707 100644 --- a/README.md +++ b/README.md @@ -9,31 +9,42 @@ Requirements Installation ------------ - cd python-nmap-0.3.4 - sudo python setup.py install - cd .. - cd netaddr-0.7.10 - sudo python setup.py install - chmod +x netwatch.py +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 +``` Running ------- - Manually: - ./netwatch.py +``` +./netwatch.py +``` - Automatically login on a Raspberry Pi: - sudo nano /etc/inittab +``` +sudo nano /etc/inittab +``` - Navigate to the following line in inittab - - 1:2345:respawn:/sbin/getty 115200 tty1 + - `1:2345:respawn:/sbin/getty 115200 tty1` - Add a # at the beginning of the line to comment it out - - #1:2345:respawn:/sbin/getty 115200 tty1 + - `#1:2345:respawn:/sbin/getty 115200 tty1` - Add the following line just below the commented line - 1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1 +``` +1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1 +``` - This will run the login program with pi user and without any authentication - Save and Exit. @@ -42,4 +53,6 @@ Running - Run automatically after login: - echo '~/netwatch.py/netwatch.py' > ~/.bash_profile +``` +echo '~/netwatch.py/netwatch.py' > ~/.bash_profile +```