nerodark
30-08-2005, 06:48
What is Wi-viz?
Read it at its homepage (http://students.washington.edu/natetrue/wiviz/)!
1. You have to have read some of the macsat's tutorials (http://www.macsat.com/index.php?menu=1&PHPSESSID=ac70334f0dabf5958fca52a98fc655ec) before starting. You will need the following packages before installing Wi-viz: ipkg, microperl, cron and thttpd.
2. Proceed to install ipkg if you didn't install it before. Refer to macsat's ipkg tutorial (http://www.macsat.com/ipkg.php) to install it. This package is needed to install all other packages required by Wi-viz.
3. Proceed to install microperl if you didn't install it before. Refer to macsat's perl tutorial (http://www.macsat.com/CGIPerlGuide.php) to install it. This package is needed to install a perl interpreter to make the cgi-bin directory active, also needed by Wi-viz.
4. Proceed to install cron if you didn't install it before. Refer to macsat's cron tutorial (http://www.macsat.com/cron.php) to install it. I say we need this package because I was not able to get Wi-viz to renew the packets at intervals. So, by installing a cron job, the Wi-viz binary is going to refresh those packets.
5. Proceed to install thttpd if you didn't install it before. Refer to macsat's web server tutorial (http://www.macsat.com/php_web.php) to install it. You need another http daemon because you cannot extract the Wi-viz files to the default www directory, you have to extract them to read/write path.
6. Of course, you either need a USB memory stick or a hard drive to mount a read/write access to /opt, or you cannot install Wi-viz. ALSO BE SURE TO INSTALL LIBPCAP FOR PACKET CAPTURING OR YOU WONT SEE ANYTHING ON THE WEBPAGE: ipkg install http://nthill.free.fr/openwrt/ipkg/experimental/20050418/libpcap_0.8.3-7_mipsel.ipk
7. Before continuing, you can use all macsat's default configurations described in his tutorials without any problems. The best thing is to follow everything, step by step, to avoid unknown errors.
----- TIME TO INSTALL WI-VIZ -----
8. Use the wget command to get its binaries as followed: wget http://students.washington.edu/natetrue/wiviz/wiviz-binaries.tar.gz
I know there are already a french and an english package of Wi-viz(fr/en) 1.0 but they are a pain in the ass :P
9. Now you can extract the files in your www directory (/opt/share): tar xvzf wiviz-binaries.tar.gz
You must now have a ./www/wiviz, ./usr/sbin, ./www/cgi-bin directories in the above folder.
10. This is very important, Make sure you locate the Wi-viz binary. It must be in /opt/share/usr/sbin/wiviz. This path will be used in your cron job you will set later.
11. Now you need to change some access, type in the following commands in your shell:
chmod 755 /opt/share/www
chmod 755 /opt/share/www/wiviz
chmod 644 /opt/share/www/wiviz/*
chmod 755 /opt/share/www/cgi-bin
chmod 755 /opt/share/www/cgi-bin/*
12. Now it is time to set up the cron job to receive packets. Remember to refer to the cron job tutorial mentioned earlier.
I suggest you set a cron job to execute an instance of /opt/share/usr/sbin/wiviz every 5 minutes for good results on the web output and to not overload the router's cpu too much.
13. Oh yeah, I think for better results, try to change the frequency channel to 11 using this link:
http://<router's ip address>/Advanced_Wireless_Content.asp
----- SET MONITOR MODE ON THE ROUTER -----
Another very important step: you have to put your router in monitor mode so it will load the "prism0" adapter that wiviz is looking for when it is trying to capture packets in the sky. To do this, type in your linux prompt:
wl monitor 1
----- FINAL STEPS -----
14. You are now ready to reboot your router and test Wi-viz.
15. Once your router has rebooted, try it at this address:
http://<router's ip address>/wiviz/wiviz.html
and hope it works :cool:
----- LITTLE BYPASS -----
I saw that I couldn't make the functions on the right of the webpage to work. Those functions are just timers but they would not start the wiviz binary when set to a new thing. This explains the cron job :confused:
IF YOU FIND ANYTHING INCORRECT IN THIS TUTORIAL, PLEASE POST A SOLUTION NEXT TO THIS, THANX!
Read it at its homepage (http://students.washington.edu/natetrue/wiviz/)!
1. You have to have read some of the macsat's tutorials (http://www.macsat.com/index.php?menu=1&PHPSESSID=ac70334f0dabf5958fca52a98fc655ec) before starting. You will need the following packages before installing Wi-viz: ipkg, microperl, cron and thttpd.
2. Proceed to install ipkg if you didn't install it before. Refer to macsat's ipkg tutorial (http://www.macsat.com/ipkg.php) to install it. This package is needed to install all other packages required by Wi-viz.
3. Proceed to install microperl if you didn't install it before. Refer to macsat's perl tutorial (http://www.macsat.com/CGIPerlGuide.php) to install it. This package is needed to install a perl interpreter to make the cgi-bin directory active, also needed by Wi-viz.
4. Proceed to install cron if you didn't install it before. Refer to macsat's cron tutorial (http://www.macsat.com/cron.php) to install it. I say we need this package because I was not able to get Wi-viz to renew the packets at intervals. So, by installing a cron job, the Wi-viz binary is going to refresh those packets.
5. Proceed to install thttpd if you didn't install it before. Refer to macsat's web server tutorial (http://www.macsat.com/php_web.php) to install it. You need another http daemon because you cannot extract the Wi-viz files to the default www directory, you have to extract them to read/write path.
6. Of course, you either need a USB memory stick or a hard drive to mount a read/write access to /opt, or you cannot install Wi-viz. ALSO BE SURE TO INSTALL LIBPCAP FOR PACKET CAPTURING OR YOU WONT SEE ANYTHING ON THE WEBPAGE: ipkg install http://nthill.free.fr/openwrt/ipkg/experimental/20050418/libpcap_0.8.3-7_mipsel.ipk
7. Before continuing, you can use all macsat's default configurations described in his tutorials without any problems. The best thing is to follow everything, step by step, to avoid unknown errors.
----- TIME TO INSTALL WI-VIZ -----
8. Use the wget command to get its binaries as followed: wget http://students.washington.edu/natetrue/wiviz/wiviz-binaries.tar.gz
I know there are already a french and an english package of Wi-viz(fr/en) 1.0 but they are a pain in the ass :P
9. Now you can extract the files in your www directory (/opt/share): tar xvzf wiviz-binaries.tar.gz
You must now have a ./www/wiviz, ./usr/sbin, ./www/cgi-bin directories in the above folder.
10. This is very important, Make sure you locate the Wi-viz binary. It must be in /opt/share/usr/sbin/wiviz. This path will be used in your cron job you will set later.
11. Now you need to change some access, type in the following commands in your shell:
chmod 755 /opt/share/www
chmod 755 /opt/share/www/wiviz
chmod 644 /opt/share/www/wiviz/*
chmod 755 /opt/share/www/cgi-bin
chmod 755 /opt/share/www/cgi-bin/*
12. Now it is time to set up the cron job to receive packets. Remember to refer to the cron job tutorial mentioned earlier.
I suggest you set a cron job to execute an instance of /opt/share/usr/sbin/wiviz every 5 minutes for good results on the web output and to not overload the router's cpu too much.
13. Oh yeah, I think for better results, try to change the frequency channel to 11 using this link:
http://<router's ip address>/Advanced_Wireless_Content.asp
----- SET MONITOR MODE ON THE ROUTER -----
Another very important step: you have to put your router in monitor mode so it will load the "prism0" adapter that wiviz is looking for when it is trying to capture packets in the sky. To do this, type in your linux prompt:
wl monitor 1
----- FINAL STEPS -----
14. You are now ready to reboot your router and test Wi-viz.
15. Once your router has rebooted, try it at this address:
http://<router's ip address>/wiviz/wiviz.html
and hope it works :cool:
----- LITTLE BYPASS -----
I saw that I couldn't make the functions on the right of the webpage to work. Those functions are just timers but they would not start the wiviz binary when set to a new thing. This explains the cron job :confused:
IF YOU FIND ANYTHING INCORRECT IN THIS TUTORIAL, PLEASE POST A SOLUTION NEXT TO THIS, THANX!