|(182 intermediate revisions by 17 users not shown)|
This a walkthrough for flashing a node with the sudomesh firmware and then configuring it with makenode. At the end of the walkthrough, you' ll be able to plug in your router and join the mesh. The walkthrough assumes you're using a linux-ish (OSX should mostly work) OS and that you have [https://help.ubuntu.com/community/UsingTheTerminal basic knowledge of the terminal]. The basic idea of getting a node (router) on the mesh consists of flashing (copying files to [https:// en. wikipedia.org/ wiki/Flash_memory flash memory] ) an operating system to the node and then using a software configurator finish setup .
'to of the [https://./ ]
To build an OpenWRT image from scratch, visit this How To: [[Mesh /Build An OpenWRT Image]]
Build Environment =
The directions that follow assume you are runing a linux-ish distro (OSX should work). Many of the quoted commands listed below may need `sudo` prepended to them. For the moment, Windows users will have to figure out some of these steps on their own. Sorry :/
you. to the , will own ./
, [https://..//-] . [https://./sudomesh/-firmware//] .
At the moment, we are supporting the following routers for home nodes:
* [https:// wiki. openwrt. org/ toh/ tp-link/tl-wdr3500 TP- Link WDR3500] - [https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/openwrt-ar71xx-generic-tl-wdr3500-v1-squashfs-factory. bin firmware image]
* [https:// wiki.openwrt. org/toh/tp-link/tl-wdr3600 TP-Link WDR3600] - [https:/ /builds.sudomesh .org/builds/chaos_calmer/ ar71xx/openwrt-ar71xx-generic-tl-wdr3600- v1-squashfs-factory.bin firmware image]
* [https://wiki.openwrt.org/ toh/ tp-link/tl-wdr4300 TP-Link WDR4300] - [https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-factory.bin firmware image]
* [https://wiki.openwrt.org/toh/wd/n600 Western Digital MyNet N600] - [https://builds.sudomesh.org/builds/chaos_calmer/ar71xx/openwrt-ar71xx-generic-mynet-n600-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]
Sudomesh firmware images can be found here:
https:/ /builds. sudomesh. org/builds/chaos_calmer/ar71xx/ https:// builds. sudomesh.org/ builds/chaos_calmer/ar71xx/]
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
the to your a .
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.
that the to the your router. the , :
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>
(where IF_NAME is the name of your ethernet interface)
You ''may'' want to stop network-manager (not all distros use this, but Ubuntu does):
<code>$ /etc/init.d/network-manager stop</code>
You can also assign yourself the address via a network manager, both in linux and OSX.
<code>$ ssh root@172. 22.0. 1</ code>
The default password will be: `meshtheplanet`
You '' may'' need to restart the router, but be careful not to restart it while it' s in the process of flashing.
the the the .
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.
You' ll need:
* A newish version of nodejs and npm. Follow the recommended instructions at [https:// docs.npmjs.com/ getting-started/ installing- node npmjs.com] .
* Git. In Debian based distros you can do: <code>$ apt-get install git</code>. For OSX you can probably use homebrew or your preferred package manager.
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>
Then you need to install nodejs/npm packages:
you to . . .
* <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.
, if you ,
If you'd like to add your ssh key to the router , add it to the `configs/ authorized_keys` file. You'll see that there are 3 other keys there for our developers. You can remove them if you'd like, but they 're currently the only way we can provide remote support. During the alpha test phase we ask that you consider whether you are able to do diagnostics/debugging yourself before you remove them.
the router the /.
the can the .
You should now be able to run makenode:
Makenode will detect the hardware on the router and ask you to input some data about the node. Some notes:
Set the "txpower" to 20. This should be set in the code , but hasn't been just yet.
* The password for the private ssid should be at least 8 characters or you will not be able to connect
* : ./
For info on what constitutes a valid hostname, see: [http://stackoverflow. com/ questions/3523028/valid-characters-of-a-hostname valid characters of a hostname]
The max downstream and upstream bandwidth are the maximum amount of bandwidth you want to share on the "peoplesopen. net" network. They are measured in kbps ( kilobits per second) , so if you'd like to share 10mbps (megabits per second), enter 10000. You may want to run a [http://www.dslreports.com/speedtest speed test] to find out how much bandwidth you have and determine how much you want to share.
* Make sure that your root password is strong! If you don't enter a root password, a strong one will be generated and will be logged to screen. It's generally preferable to not use the root password at all and instead add an ssh key to the device.
If configuration proceeded correctly, you should see the 'peoplesopen. net' and 'pplsopen. net-node2node' wifi interfaces when running `sudo iwlist wlan0 scan` or when looking at available wifi networks.
It's recommended that you read the [[ Home and extender nodes# Home_nodes| Home node info]] to find out more about the way that your new mesh node works.
you the [[
Congratulations on choosing to become part of the People's Open Network!
Continue reading to follow these do-it-yourself / do-it-together instructions, or read more about how to participate and get help.
This is a WalkThrough to install a custom operating system on a compatible network device for use as a node (e.g. your home router) on the network. You will learn how to flash Sudo Mesh's sudowrt-firmware (a custom build of OpenWRT) and then configure it.
At the end of this walkthrough, you'll be able to plug in your router and join the mesh. Note: In order to access the internet, you will likely need your own connection with an existing Internet Service Provider (ISP), or otherwise be located near another mesh node with its own route to the internet.
This walkthrough assumes you're using linux or another unix-like operating system (such as Mac OS X, Ubuntu, FreeBSD, etc) and that you have basic knowledge of the command-line interface terminal ('terminal' for short). Contact us if you can contribute instructions for other systems.
The general idea of building your own mesh node consists of three steps:
- downloading or compiling the custom firmware
- flashing that firmware to the node (i.e. copying firmware to flash memory)
- configuring the node to function as part of a mesh.
Before you flash your router, it is recommended that you read the home node info to ensure your router is compatible to work as a mesh node.
Now that you have a node, you can flash it with the latest sudowrt-firmware. The first step is to download the firmware image file for your supported router. At the moment, we are supporting the following firmware builds:
Builds for other routers can be found on our builds server or on zenodo, though most builds for routers not listed above have not been tested. For release notes, please go to our github release pages.
Alternatively, you can build your own copy of the firmware images by following the guide in the sudowrt-firmware source.
If you do not want to use Sudo Mesh's OpenWRT image, you can also install a standard OpenWRT release and configure it from scratch, (read more on github).
Once you have a copy of the sudowrt-firmware intended for your router, you can proceed with flashing it to your router. 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 convenience, if you have a Western Digital MyNet N600 or N750, follow these instructions:
Reset your new N750/N600 router
Instructions to reset / default a WD MyNet N600 or N750 router:
- Plug one end of the Ethernet cable into your laptop.
- Plug the other end of the Ethernet cable into one of the normal ports (LAN) on the router (not the Internet/WAN port).
- With the router plugged in and power turned off, push a pin / paperclip / tiny screwdriver into the reset hole and hold it for at least 15 seconds. Keep another hand free.
- With the pin still held down, turn on the router power button.
- Watch the front blue light - they will flash on and off a few times.
- Once the front blue is flashing, you can let go of the pin.
Configure your computer's network settings
On your laptop edit your network settings to reflect the following:
- Network Manager Method: Manual
- IP Address:
192.168.1.10 (some devices will only accept from this IP)
- Subnet Mask:
0.0.0.0 (Or leave blank)
You can also use the commands:
sudo ip link set <eth_interface> down
sudo ip addr add 192.168.1.10/24 dev <eth_interface>
sudo ip link set <eth_interface> up
<eth_interface> is the name of your ethernet interface found using the
ip addr command (common names include
See Network Configuration Guides: Linux, Mac
In your web browser:
- If your reset was not successful, try debugging your network configuration described in the previous step.
- If you continue to have issues consider reloading network settings or restarting your computer.
- If you are still unable to access this firmware upload page, turn off your router and try to reset it again as instructed above.
- Click 'Browse' and select the firmware file you downloaded
- Click Upload and you will be taken to an exciting countdown timer:
- Make sure not to disconnect or lose power at this stage, wait for the timer to complete.
Note: Sometimes the firmware upload will not complete correctly. After you click on 'Upload' You should get a page with a countdown of 120+ seconds. If this does not occur, reboot the router with the pin reset button depressed (as noted above), and try again.
If you are configuring something other than a WD MyNet N600, or firmware version 0.2.3 or earlier, follow (these instructions)
Plug into port 3 to access the private network from your laptop. Port 2 connects to the public 'peoplesopen.net' network
- Connect your newly-flashed MyNet N600 to your existing Internet router via ethernet cable from your existing router's LAN port to your new node's Internet port.
- Wait several minutes for your new node autoconfigure, connect to the Internet, and obtain its private IP address from the sudo mesh build server. When this process is complete, the node should broadcast several WiFi networks with the following SSIDs and purposes:
peoplesopen.net - This is the public network broadcast on the 2.4ghz band; it has no password, and is suitable for access to the internet.
peoplesopen.net fast - This is the same public network, but broadcast on the 5ghz band, which is more ideal for high-bandwidth activities such as streaming media.
peoplesopen.net-node2node - This is the public network used for mesh nodes to discover and communicate with one another. You should not need to connect or use this network, but you will want to verify it is active.
pplsopen-admin This is the private network, and you can use it to access a web dashboard to configure some settings, such as its SSID. The default WiFi password is
meshtheworld. Try connecting to it (you can also connect to the private network using an ethernet cable connected to port 3 on an N600 -- see diagram for details).
Learn more about the network's topology here.
Configuring the Web Dashboard
While connected to the private network (default
pplsopen-admin), try connecting to the home node's web dashboard by opening a web browser and navigating to 172.30.0.1
If the flash was successful you should be brought to the following screen:
The default password is
Here you can set the amount of downstream and upstream bandwidth you're willing to share on the public
peoplesopen.net network (default is set to 4096kb, or roughly 4 megabits/second):
Set your private SSID and password via the 'WIFi Settings' tab. NOTE: When you first set your private SSID name and hit 'Save', you will have to reconnect to the newly-named SSID using the original default password (
meshtheworld) and then reconnect again with the new password after setting it in the dashboard
See all devices connected to your node via the 'Connections' tab
Changing Admin and Root User Passwords
Note: If you would like to be able to change the above wifi settings in the future, or ssh into your router, you will need to change the admin and root passwords within 12 hours.
To do so, open a terminal while connected to the
pplsopen-admin private network (or whatever new SSID you may have chosen):
Enter the following password:
Set the root password.
Now set the admin password for logging into the web dashboard:
After you're finished with the flashing and configuration, your home node should be available for connections via your private WiFi SSID (default
pplsopen-admin). Additionally the public SSIDs
peoplesopen.net <your mesh IP> and
peoplesopen.net fast <your mesh IP> will be available. It should also be populated on the monitor!
A fourth interface named
pplsopen.net-node2node will be detectable as well. This is the interface used for the nodes to mesh with each other.
At this point you're setup. Reach out to the rest of the network!
Makenode (v.0.2.3 and earlier)
Note: If you installed autoconfiguring release 0.3.0 for myNet N600 routers, you do not need to use makenode. See the autoconf instructions above.
Makenode's documentation has been consolidated to its page.
Flashing TP-Link Routers
If you happen to come across a TP-Link router, such as a WDR4300, you may discover that the above instructions absolutely do not work. This is especially true if the router has previously been flashed with the sudowrt firmware (or any kind of OpenWRT or DD-WRT?). If you find yourself attempting to reflash a TP-Link router, you will first need to reset the router to its factory default firmware. Luckily, redconfetti has provided instructions on how to do this, http://www.rubycoloredglasses.com/2016/04/tp-link-wdr4300-recovery/ (TODO, test/update these instructions and copy them to this wiki)
Next, upload the sudort-firmware manually through the router's gui? Presumably, I haven't gotten that far yet...
After that, makenode should just work right?
There also exists something called tp-flasher, https://github.com/sudomesh/tp-flasher. However, it is highly recommended that you avoid using this because there is a very good chance you will brick your router if you use it incorrectly. Of course, we don't want to discourage anyone from improving tp-flasher.
Flashing Extender Nodes
If you would like to make long distance point-to-point connections between two or more home nodes, you'll want to setup an extender node (a roof mounted antenna).
See Mesh/Flashing extender nodes
Soldering A Reset Button
As you are resetting routers, you may end up having a component, such as the reset button itself, fall off of the PCB (printed circuit board). The WD MyNet n600 has security screws, so you may need a Torx T10 Security Bit to remove the case.
WD MyNet n600 naked (without case)
WD MyNet n600 resolder of the reset button that fell off