Difference between revisions of "Mesh/WalkThrough"

Jump to navigation Jump to search
330 bytes added ,  19:49, 4 May 2016
m
Line 98: Line 98:
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.


Open your terminal in Linux and type:
Open your terminal and type:


   git clone https://github.com/sudomesh/makenode.git
   git clone https://github.com/sudomesh/makenode.git
Line 105: Line 105:
   cp settings.js.example settings.js
   cp settings.js.example settings.js


The default settings in `settings.js` should suffice in most cases, but if you need to make changes, do them in 'settings.js'.  
The default settings in <tt>settings.js</tt> should suffice in most cases, but if you need to make changes, do them in <tt>settings.js</tt>.  


A freshly flashed node will be setup on 172.22.0.1, so you will need to configure your machine to use IP address 172.22.0.9 (subnet 255.255.255.0, gateway: 0.0.0.0). On your laptop (instructions for Ubuntu) edit your network settings by doing the following:
A freshly flashed node will be setup on 172.22.0.1. You will need to configure your machine to use the following network settings to communicate with the node.


    Click on the network icon on the top right of the toolbar.
* IP address: 172.22.0.9  
    Click "Edit connections..."
* Subnet mask:  255.255.255.0
    Click on Ethernet connection "Wired connection 1" and click Edit
* Gateway: 0.0.0.0
    Click on the "IPv4 Settings" tab
    Change method to "Manual"
    Click Add
    Under "Address" type "172.22.0.9"
    Under "Netmask" type "255.255.255.0"
    Under "Gateway" type "0.0.0.0"
    Click Save
    Click Close


If you are using a Mac and configuring the network settings, you may need to simply leave the "Gateway" setting blank when configuring your network settings.
== Linux ==


Make sure the ethernet cable is connected to the 4th port on the router (closest to the yellow internet port).
Edit your network settings by doing the following:
 
* Click on the network icon on the top right of the toolbar.
* Click "Edit connections..."
* Click on Ethernet connection "Wired connection 1" and click Edit
* Click on the "IPv4 Settings" tab
* Change method to "Manual"
* Click Add
* Under "Address" type "172.22.0.9"
* Under "Netmask" type "255.255.255.0"
* Under "Gateway" type "0.0.0.0"
* Click Save
* Click Close
 
== Mac ==
 
* Open the System Preferences
* Open 'Network'
* Select 'Ethernet' from the list of interfaces on the left
* Change 'Configure IPv4' to 'Manually' using the drop-down menu
* Set 'IP address' as '172.22.0.9'
* Set 'Subnet Mask' as '255.255.255.0'
* Set 'Router' as '' (blank)
* Set 'DNS Server' as '' (blank)
* Set 'Search Domains' as '' (blank)
* Click 'Apply'
* Close the window
 
== Configuring the Home Node ==
 
Make sure the Ethernet cable is connected to the 4th port on the router.


Once your network configuration is refreshed, use the following command to run the script and configure your node:
Once your network configuration is refreshed, use the following command to run the script and configure your node:
Line 129: Line 151:
   ./makenode.js
   ./makenode.js


If you get the error "no such file or directory", open a new terminal and run this command to ensure that `node` points to your NodeJS executable:
If you get the error "no such file or directory", open a new terminal and run this command to ensure that <tt>node</tt> points to your NodeJS executable:


   sudo ln -s nodejs node
   sudo ln -s nodejs node
Line 156: Line 178:
=== Network Settings ===
=== Network Settings ===


Reconfigure your machine to use the following network settings:
After configuring your home node the IP address it uses will change. Reconfigure your machine to use the following network settings.


* IP Address: 172.22.0.9
* IP Address: 172.22.0.9
128

edits

Navigation menu