This time we will be trying to integrate Phpmyadmin with Nginx and MariaDB. We are using Arch Linux since its my preferred distribution, but all of these commands are not very specific to the distribution you choose to work with. PhpMyAdmin is one of the most famous tools for managing the MySQL database, and is…
Installing OpenWRT on Asus RT-N16 wireless router
Since my Raspberry Pi is up and running now, I needed some networks to hack. There is some legal issues when trying this out on random networks. To avoid any of these issues, I got myself a new router, by doing this I could try out as many different wireless configurations as i wanted to and see the results right away on my Pi. I borrowed this router from my school, and it seems that the previous users of this router has made this into some sort of file server. It seemed as if there was no way to contact the configuration interface of the router, and it even had a default ip address of 184.108.40.206.
So now we are installing OpenWRT on the Asus RT-N16 wireless router becaue it’s possible and a good operating system. OpenWRT is a nice aftermarket firmware, it supports a lot of different routers. (you can find more here.)
Installing OpenWRT is pretty simple in this case. The installation varies a bit between devices, but it should work well on a Asus RT-N16 router. The following commans are all Linux commands. The program I am using is called tftp and can be installed with sudo apt-get install tftp.
1: We find the image needed to flash the router, this can be found here, you are looking for a file called : openwrt-brcm47xx-squashfs.trx, copy it into the home folder, or use cd to get into the download folder.
2: Turn the router off. (pull the plug)
3: You also need to clear the NvRam. this is done by holding the red “WPS” button down for 10 seconds, the router will restart, wait about 1-2 minutes, then unplug the router again.
4: Now press and hold the reset button for about 5 seconds when you have plugged in the power plug again. This will put the router into listening mode.
Now the router is ready to be flashed with a new image. Enter the command:
ifconfig eth0 192.168.1.2
this will force your ip to be the same range as the router. (it should have the ip of 192.168.1.1)
try pinging the router to see if there is any response:
This is what it looks like if everything has worked out for you. Lets flash the image. Using tftp 192.168.1.1
There we go, the image should now be flashed and ready to be used. If you have any problems, you can always use one of the original firmwares that comes with the Asus router. This is sometimes easier than using the TFTP method.