<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sudoroom.org/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Praxis</id>
	<title>Sudo Room - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://sudoroom.org/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Praxis"/>
	<link rel="alternate" type="text/html" href="https://sudoroom.org/wiki/Special:Contributions/Praxis"/>
	<updated>2026-04-12T20:36:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4342</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4342"/>
		<updated>2013-05-17T07:00:37Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* Web interface method */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
:If you have an Asus RT-N10+, you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/ramips/rt305x/openwrt-ramips-rt305x-rt-n10-plus-squashfs-sysupgrade.bin] assuming 12.09 (attitude adjustment is the most recent stable version. &lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
== Curl method ==&lt;br /&gt;
&lt;br /&gt;
You may use the command line tool 'curl' on Linux and Mac OS X systems to send files to your router. For instance,&lt;br /&gt;
to flash the firmware of the Asus R10+ router, using 'curl' instead of tftp, you can issue the following command:&lt;br /&gt;
&lt;br /&gt;
   $ curl -T openwrt-ramips-rt305x-rt-n10-plus-squashfs-sysupgrade.bin tftp://192.168.1.1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes for various routers ===&lt;br /&gt;
&lt;br /&gt;
== Asus RT-N10+ ==&lt;br /&gt;
This router has TFTP enabled out of the box. You _must_ set your computer's IP address on ethernet, &lt;br /&gt;
however, to '192.168.1.15' in order to be able to use a command-line TFTP client.&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(Linux: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP on various routers == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4341</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4341"/>
		<updated>2013-05-17T06:56:48Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* Curl method */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
== Curl method ==&lt;br /&gt;
&lt;br /&gt;
You may use the command line tool 'curl' on Linux and Mac OS X systems to send files to your router. For instance,&lt;br /&gt;
to flash the firmware of the Asus R10+ router, using 'curl' instead of tftp, you can issue the following command:&lt;br /&gt;
&lt;br /&gt;
   $ curl -T openwrt-ramips-rt305x-rt-n10-plus-squashfs-sysupgrade.bin tftp://192.168.1.1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes for various routers ===&lt;br /&gt;
&lt;br /&gt;
== Asus RT-N10+ ==&lt;br /&gt;
This router has TFTP enabled out of the box. You _must_ set your computer's IP address on ethernet, &lt;br /&gt;
however, to '192.168.1.15' in order to be able to use a command-line TFTP client.&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(Linux: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP on various routers == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4340</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4340"/>
		<updated>2013-05-17T06:55:05Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* OpenWRT installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
== Curl method ==&lt;br /&gt;
&lt;br /&gt;
=== Notes for various routers ===&lt;br /&gt;
== Asus RT-N10+ ==&lt;br /&gt;
This router has TFTP enabled out of the box. You _must_ set your computer's IP address on ethernet, &lt;br /&gt;
however, to '192.168.1.15' in order to be able to use a command-line TFTP client.&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(Linux: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP on various routers == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4339</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4339"/>
		<updated>2013-05-17T06:52:55Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* Asus RT-N10+ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
=== Asus RT-N10+ ===&lt;br /&gt;
This router has TFTP enabled out of the box. You _must_ set your computer's IP address on ethernet, &lt;br /&gt;
however, to '192.168.1.15' in order to be able to use a command-line TFTP client.&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(Linux: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP on various routers == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4338</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4338"/>
		<updated>2013-05-17T06:52:33Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* TFTP method */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
=== Asus RT-N10+ ===&lt;br /&gt;
 This router has TFTP enabled out of the box. You _must_ set your computer's IP address on ethernet, however, to '192.168.1.15' in order to be able to use a command-line TFTP client.&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(Linux: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP on various routers == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4337</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4337"/>
		<updated>2013-05-17T06:50:40Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* Router TFTP instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(Linux: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP on various routers == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4336</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4336"/>
		<updated>2013-05-17T06:48:39Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* (note: for Ubuntu/Linux Mint only) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(Linux: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Router TFTP instructions == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4335</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4335"/>
		<updated>2013-05-17T06:48:08Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* (note: for Ubuntu/Linux Mint only) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(note: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
&lt;br /&gt;
   dpkg --get-selections | grep tftp&lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
   sudo apt-get install tftp&lt;br /&gt;
&lt;br /&gt;
== Router TFTP instructions == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4334</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4334"/>
		<updated>2013-05-17T06:45:00Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* Linux: (note: for Ubuntu/Linux Mint only) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: ===&lt;br /&gt;
using whatever your Linux distribution's package management might be, you need to check for the presence of a tftp client, and if necessary, install that package. Instructions for xUbuntu/Linux Mint (xUbuntu means any Ubuntu based distribution, including Kubuntu, Xubuntu, etc. Instructions for Debian may be similar, but are not yet tested). &lt;br /&gt;
&lt;br /&gt;
===(note: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
(note: type everything except the single quotes)&lt;br /&gt;
&lt;br /&gt;
'dpkg --get-selections | grep tftp' &lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
'sudo apt-get install tftp'&lt;br /&gt;
&lt;br /&gt;
== Router TFTP instructions == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4333</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4333"/>
		<updated>2013-05-17T06:42:44Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* (Linux: note for Ubuntu/Linux Mint only) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== Linux: (note: for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
(note: type everything except the single quotes)&lt;br /&gt;
&lt;br /&gt;
'dpkg --get-selections | grep tftp' &lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
'sudo apt-get install tftp'&lt;br /&gt;
&lt;br /&gt;
== Router TFTP instructions == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
	<entry>
		<id>https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4332</id>
		<title>Mesh/OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://sudoroom.org/mediawiki/index.php?title=Mesh/OpenWRT&amp;diff=4332"/>
		<updated>2013-05-17T06:42:20Z</updated>

		<summary type="html">&lt;p&gt;Praxis: /* Enabling TFTP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= OpenWRT installation =&lt;br /&gt;
&lt;br /&gt;
== Web interface method ==&lt;br /&gt;
&lt;br /&gt;
*Power on router and let it boot. &lt;br /&gt;
*Press and hold power button for 30 seconds.&lt;br /&gt;
*Wait for router to reboot.&lt;br /&gt;
*Connect to the access point using LAN.&lt;br /&gt;
*Go to web interface, e.g. http://192.168.1.1/&lt;br /&gt;
:If this doesn't work, look up the reset method for your specific router.&lt;br /&gt;
*Find the firmware upgrade page.&lt;br /&gt;
*On your computer, download the firmware.&lt;br /&gt;
:Different versions are [http://downloads.openwrt.org/ here].&lt;br /&gt;
:The snapshots directory has recent development versions.&lt;br /&gt;
:If you have a WRT54G you probably want [http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/openwrt-wrt54g-squashfs.bin this one] assuming 12.09 (attitude adjustment) is the most recent stable version.&lt;br /&gt;
*Upload the firmware using the web form and wait for the router to reboot.&lt;br /&gt;
&lt;br /&gt;
== TFTP method ==&lt;br /&gt;
&lt;br /&gt;
This requires that the router has a TFTP server enabled. Type these commands with the router powered off, then power on the router and it should work.&lt;br /&gt;
&lt;br /&gt;
 tftp 192.168.1.1&lt;br /&gt;
 binary&lt;br /&gt;
 rexmt 1&lt;br /&gt;
 timeout 60&lt;br /&gt;
 trace&lt;br /&gt;
 tftp&amp;gt; put firmwarefile.bin&lt;br /&gt;
&lt;br /&gt;
= OpenWRT configuration =&lt;br /&gt;
&lt;br /&gt;
== Logging in and setting root password ==&lt;br /&gt;
&lt;br /&gt;
Telnet into the device:&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If it asks for a password use 'passwd' (without the quotes).&lt;br /&gt;
&lt;br /&gt;
Set a root password on the router:&lt;br /&gt;
&lt;br /&gt;
 passwd&lt;br /&gt;
&lt;br /&gt;
Verify that you can log in using ssh from your computer:&lt;br /&gt;
&lt;br /&gt;
 ssh root@192.168.1.1&lt;br /&gt;
&lt;br /&gt;
If you can ssh into the router, disable telnet:&lt;br /&gt;
&lt;br /&gt;
 rm /etc/rc.d/S50telnet&lt;br /&gt;
&lt;br /&gt;
== Enabling TFTP ==&lt;br /&gt;
&lt;br /&gt;
== Operating Systems: TFTP clients ==&lt;br /&gt;
&lt;br /&gt;
=== Windows 7/Server 2008 ===&lt;br /&gt;
&lt;br /&gt;
TFTP is disabled by default. In '''Control Panel &amp;gt; Programs and Features''', click on '''Turn Windows features on or off''', find '''TFTP Client''' and tick the box. You should now be able to use TFTP from the command prompt&lt;br /&gt;
&lt;br /&gt;
=== (Linux: note for Ubuntu/Linux Mint only) ===&lt;br /&gt;
tftp client may not be installed by default on Ubuntu 12.10 or Linux Mint 14. &lt;br /&gt;
check and see if you have it by issuing:&lt;br /&gt;
(note: type everything except the single quotes)&lt;br /&gt;
&lt;br /&gt;
'dpkg --get-selections | grep tftp' &lt;br /&gt;
&lt;br /&gt;
if you do not have the client, then install it with: &lt;br /&gt;
&lt;br /&gt;
'sudo apt-get install tftp' &lt;br /&gt;
&lt;br /&gt;
== Router TFTP instructions == &lt;br /&gt;
&lt;br /&gt;
=== WRT54G / WRT54GL ===&lt;br /&gt;
&lt;br /&gt;
If you're on an WRT54G or WRT54GL then you should do this to enable TFTP. If you're not on one of those routers, then don't do it!&lt;br /&gt;
&lt;br /&gt;
It makes it easier to upgrade the firmware and recover from serious problems.&lt;br /&gt;
&lt;br /&gt;
CAUTION: This will reboot your router.&lt;br /&gt;
&lt;br /&gt;
 nvram set boot_wait=on&lt;br /&gt;
 nvram set boot_time=10&lt;br /&gt;
 nvram set wait_time=10&lt;br /&gt;
 nvram commit &amp;amp;&amp;amp; reboot&lt;br /&gt;
&lt;br /&gt;
== Enabling wifi ==&lt;br /&gt;
&lt;br /&gt;
OpenWRT has wifi disabled per default.&lt;br /&gt;
&lt;br /&gt;
vim /etc/config/wireless&lt;br /&gt;
&lt;br /&gt;
Remove the line indicated:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        config wifi-device  radio0&lt;br /&gt;
	option type     mac80211&lt;br /&gt;
	option channel  11&lt;br /&gt;
	option macaddr	00:1c:10:bc:a7:1f&lt;br /&gt;
	option hwmode	11g&lt;br /&gt;
&lt;br /&gt;
	# REMOVE THIS LINE TO ENABLE WIFI:&lt;br /&gt;
	option disabled 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
Wait a few minutes, then ssh back into the router.&lt;br /&gt;
&lt;br /&gt;
Run 'wifi'. You should see the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	root@OpenWrt:~# wifi&lt;br /&gt;
	Configuration file: /var/run/hostapd-phy0.conf&lt;br /&gt;
	Using interface wlan0 with hwaddr 00:1c:10:bc:a7:1f and ssid &amp;quot;OpenWrt&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connecting to wifi ==&lt;br /&gt;
&lt;br /&gt;
You will need internet access to install packages and other things. Edit your config wifi-iface section to match the example below.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/wireless&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config wifi-iface &lt;br /&gt;
	option device   radio0 &lt;br /&gt;
	option network  wwan &lt;br /&gt;
	option mode     sta &lt;br /&gt;
	option ssid     sudoroom&lt;br /&gt;
	option encryption none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're on an encrypted network add the following options...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option encryption psk2&lt;br /&gt;
option key 1234567890&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the &amp;quot;wwan&amp;quot; interface.&lt;br /&gt;
&lt;br /&gt;
vi /etc/config/network&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config interface wwan &lt;br /&gt;
	option proto dhcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart networking and you should be set.&lt;br /&gt;
/etc/init.d/network restart&lt;br /&gt;
&lt;br /&gt;
== Installing BATMAN ==&lt;br /&gt;
&lt;br /&gt;
These are the required packages:&lt;br /&gt;
&lt;br /&gt;
 kmod-batman-adv_3.3.8+2012.3.0-3_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-crypto-hash_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc16_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-lib-crc32c_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 kmod-tun_3.3.8-1_&amp;lt;chipset&amp;gt;.ipk&lt;br /&gt;
 libpthread_0.9.33.2-1_&amp;lt;chipset&amp;gt;.ipk&lt;/div&gt;</summary>
		<author><name>Praxis</name></author>
	</entry>
</feed>