Difference between revisions of "Mesh/WalkThrough"

Jump to navigation Jump to search
1,932 bytes added ,  18:01, 21 March 2016
How to configure router
m (formatting)
(How to configure router)
Line 28: Line 28:
* [https://wiki.openwrt.org/toh/wd/n750 Western Digital MyNet N750] - [https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/openwrt-ar71xx-generic-mynet-n750-squashfs-factory.bin firmware image]
* [https://wiki.openwrt.org/toh/wd/n750 Western Digital MyNet N750] - [https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/openwrt-ar71xx-generic-mynet-n750-squashfs-factory.bin firmware image]


==Images==
==Download the Sudomesh OpenWRT Image File==
Sudomesh firmware images can be found here:
Sudomesh firmware images can be found here:
[https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/ https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/]
[https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/ https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/]
Line 34: Line 34:
Download the image according to your hardware. For example, if you have a Western Digital MyNet N600, download the image named: openwrt-ar71xx-generic-mynet-n750-squashfs-factory.bin, or use the links above
Download the image according to your hardware. For example, if you have a Western Digital MyNet N600, download the image named: openwrt-ar71xx-generic-mynet-n750-squashfs-factory.bin, or use the links above


==Flashing==
==Flashing the Router with OpenWRT==
There are different techniques for flashing each of the routers. Use the links above to the openwrt wiki and follow the instructions there to flash the router with the firmware you've downloaded.
There are different techniques for flashing each of the routers. Use the links above to the openwrt wiki and follow the instructions there to flash the router with the firmware you've downloaded.


For example, if you have a Western Digital MyNet N600, follow these instructions:
For example, if you have a Western Digital MyNet N600, follow these instructions:<br>
With the router plugged in and off, push a pin into the reset hole and hold it.<br>
With the router plugged in and off, push a pin into the reset hole and hold it.<br>
With the pin held down, turn on the router power button.<br>
With the pin held down, turn on the router power button.<br>
Line 64: Line 64:




==Confirm Installation==
==Confirm Installation of OpenWRT on the Router==
In order to confirm that the installation has proceeded correctly, use an ethernet cable to  connect your computer to the "internet/WAN" port of  your router and set your IP address to an address on the 172.22.0.0/24 subnet:
In order to confirm that the installation has proceeded correctly, use an ethernet cable to  connect your computer to the "internet/WAN" port of  your router and set your IP address to an address on the 172.22.0.0/24 subnet:
<code>$ ip addr add 172.22.0.9/24 dev IF_NAME</code>
<code>$ ip addr add 172.22.0.9/24 dev IF_NAME</code>
Line 72: Line 72:


You can also assign yourself the address via a network manager, both in linux and OSX.
You can also assign yourself the address via a network manager, both in linux and OSX.
 
<code>$ ssh root@172.22.0.1</code>  
<code>$ ssh root@172.22.0.1</code>  
   
   
Line 80: Line 80:




=Configuring=
=Configuring The Router to Work on the Sudomesh Network=
These are the steps for configuring your newly flashed router. It will retrieve hardware information about the node, prompt you for a few config settings, and then query the meshnode database to get an available IP address and subnet.
These are the steps for configuring your newly flashed router. It will retrieve hardware information about the node, prompt you for a few config settings, and then query the meshnode database to get an available IP address and subnet.


Line 89: Line 89:


==Setup==
==Setup==
Open your terminal in Linux:<br>
<code>cd makenode</code>
<code>npm install</code>
<code>cp settings.js.example settings.js</code>
<code>./makenode.js</code>
if you get the error "no such file or directory":<br>
open a new terminal<br>
<code>sudo ln -s nodejs node</code>
(this will point node to nodejs)<br>
<code>npm install</code><br>
<code>./makenode.js</code>
Now the configuration wizard will ask you a number of questions, here are what they mean:<br>
*"enter valid hostname" - this is the host name when you SSH into the node
*"max share upstream bandwidth" - how much of your home network upstream bandwidth you wish to share with the mesh network - eg. 256 kbits
*"max share downstream bandwidth" - how much of your home network upstream bandwidth you wish to share with the mesh network - eg. 512 kbits
*"admin user password" - this is the password for for changing wifi settings on the node
*"root user password" - this is the root password for the router
*"wifi transmit power" - set this to 23 dBm (which is equivalent to 200 milliwatts)
*"operator name" - this is the name that the network admins can associate with the node - so use a unique name like your first name or location name
*"private wifi SSID" - this is the wireless SSID name for the private wireless network that will run on this router
*"private wifi password" - this is the password for the private wireless network that will run on this router
In a separate terminal you will log into the node using these directions:<br>
To find the name of your ethernet port, type:<br>
<code>ifconfig</code><br>
In the example below, the wired Ethernet port was "eth0"<br>
In the terminal type the following, replacing "eth0" with the name of your Ethernet port:<br>
<code>sudo ip addr add 172.22.0.9/24 dev eth0</code>
Then type:<br>
<code>ssh root@172.22.0.1</code><br>
It will ask you for a password, which is "meshtheplanet"
Download [https://github.com/sudomesh/makenode makenode]. The easiest way to do this will likely be with git:
Download [https://github.com/sudomesh/makenode makenode]. The easiest way to do this will likely be with git:
<code>$ git clone https://github.com/sudomesh/makenode.git</code>
<code>$ git clone https://github.com/sudomesh/makenode.git</code>


Then you need to install nodejs/npm packages:
Then you need to install nodejs/npm packages:
* <code>$ cd makenode</code>
 
* <code>$ npm install</code>
* <code>$ cp settings.js.example settings.js</code>


The default settings in `settings.js` should suffice in most cases, but if you need to make changes, do them there.  
The default settings in `settings.js` should suffice in most cases, but if you need to make changes, do them there.  
76

edits

Navigation menu