Have you ever wanted to have additional functionality like Email, Bit-torrent or even MySQL directly on your router? Well maybe now you can. How-To Geek dives into how-to install Opkg software on DD-WRT.
Image by Jean Spector and Aviad Raviv
If you haven’t already, be sure and check out previous articles in the series:
Turn Your Home Router Into a Super-Powered Router with DD-WRT YatriTrivedi @yatritrivedi Updated July 10, 2017, 4:04pm EDT Wireless is everywhere and routers are the force that makes it happen, so why not supercharge yours to take proper advantage of it? Download DD-WRT for the WNDR3700 v1 depending on the region you purchased your router from: North America (NA): Go to the netgear-wndr3700 folder then download the wndr3700-factory_NA.img file. This is an intentional change by the DD-WRT developers, Netgear had the colors backwards as gigabit is usually orange (check any other NIC!).
Assuming you are familiar with those topics, keep reading. Keep in mind that this guide is a little more technical, and beginners should be careful when modding their router.
Find user manuals, troubleshooting guides, firmware updates, and much more for your WNDR3400v2 N600 wireless dual band router on our NETGEAR Support site today. N600 Wireless Dual Band Router WNDR3400v2. Thank you for selecting NETGEAR products. After installing your device, locate the serial number on the label of your product and use it to register your product at. You must register your product before you can use NETGEAR telephone support.
I’ve recently bought a new Buffalo WZR-HP-AG300H which comes with a re-branded version of DD-WRT. Due to the fact that this router has a USB port, I immediately connected an HD and tried to use the “Optware, The Right Way” wiki guide. Unfortunately I’ve quickly found that the router that I got, is Atheros based and the script from that wiki page, doesn’t support it. So I’ve started digging (as i always do) and came across several guides (1, 2, 3 and 4) that aimed to explain how to get Opkg working manually. While their contribution (among other sources on the web) to this guide was invaluable, some of the instructions are (IMHO) simply not straight forward enough. For example, giving you the “lib” files fish, but don’t teach you how to fish it from the source. Also having to make use of a Linux formatted HD or at least a partition of one (which actually doesn’t even work on the firmwares I’ve tested with). That is why, I felt the need to create the below concise, simple to follow and reproducible procedure for getting the OpenWRT Opkg package manager to work on such routers.
Update: The mounting partitions capability has been reintroduced into the re-branded version on the 17798 alpha build.
Opkg is a package manager like apt/aptitude and yum. It acts as a replacement for the Ipkg package manager, and can be used to install software such as: the Transmission BitTorrent daemon, the ssmtp email sender and Knockd a daemon that execute scripts after a specified port triggering sequence, to name a few. From the OpenWRT site:
The opkg utility (an ipkg fork) is a lightweight package manager used to download and install OpenWrt packages from local package repositories or ones located on the Internet. Opkg
attempts to resolve dependencies with packages in the repositories – if this fails, it will report an error, and abort the installation of that package.
So using Opkg we can install things like we did with Ipkg on the “Unleash Even More Power from Your Home Router” guide. The major differences, are:
In order to complete this guide note the following:
Note: It is possible to do this with only 2MB of space for the setup, but then we would lose the upshot of “/etc” becoming read-writable and would have to invoke Opkg, while specifying the configuration file manually every time… which is like sooo lame…
At this point you should have enabled JFFS and are able to SSH/WinSCP into the router.
mkdir /tmp/1
cd /tmp/1https://roguelucky.netlify.app/free-download-call-of-duty-black-ops.html. Other Call of Duty games allow only 4 players to play online, so you can enjoy more friends in the game.
Use Ipkg to install Opkg
While we are going to replace Ipkg as the package manager, we will be using it to manually install the Opkg installation package.
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-2_ar71xx.ipk
Note1: At the time of this writing, 618 is the latest version, this may be subject to change in the future, so adjust accordingly.
Note2: It may be possible that the only difference in getting this guide to work for other architectures is to get the Opkg installer from the applicable architecture for your router… however this is untested by yours truly.
ipkg install opkg_618-2_ar71xx.ipk
Note: You can, if you wanted too, install every package in the repository manually this way. However this would mean that you will have to resolve the dependencies on your own… and what would be the fun in that?
Obtaining the dynamic library files (“lib”s)
The required “lib” files to make Opkg work, are part of the OpenWRT distribution. To obtain them, one has to extract them from the “Root FileSystem” of said distribution.
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz
tar xvzf openwrt-ar71xx-generic-rootfs.tar.gz
cp -Pp /tmp/1/lib/* /jffs/usr/lib/
Note: You will get messages saying that the sub-directories are being omitted. As we don’t need anything but the “lib” files, this is fine and you can safely ignore these messages.
Fixing the LD_LIBRARY “PATH”
We need to tell the router, where to look for the shared libraries (libs) we’ve just “installed” and that it needs to do this before the ones that came with the firmware.
export LD_LIBRARY_PATH=/jffs/usr/lib:$LD_LIBRARY_PATH
HP OfficeJet 8600 Performance The front cover of the HP Officejet Pro 8600 Plus folds up down to offer access to the permanent printhead, which takes four, separate ink cartridges, with a double-width black cartridge which, in the XL version, can print up to 2,300 pages. Hp officejet 6700 printer driver download. However, a 2nd 25-sheet tray is available as an alternative. There’s no multi-purpose tray. If you’re used to printing on foolscap or American legal paper, the printer can also sustain these sizes, though then the output tray extends from the front by virtually 300mm.
Read-writable “/etc”
We are going to copy “/etc” to JFFS and then make the regular “/etc” mount point, point to it. Doing so, will both open up a world of possibilities, because “/etc” will become read-writeable (which I personally have been waiting for give or take 7 years now) and enable packages that expect this behavior, to work correctly.
mkdir -p /jffs/geek/etc
cp -a /etc/* /jffs/geek/etc/
mount -o bind /jffs/geek/etc/ /etc/
Set the Optware directory (“/opt”)
Opkg from OpenWRT, expects to be used when the router’s firmware is built. As at such time, the FileSystem isn’t on the router yet, and thus still subject to change, there is no problem installing to any location on the FileSystem. That is why the Opkg configuration file points packages to install to the “root” (/) of the FileSystem. However, we are using Opkg after the firmware was built and installed on the router, and as we can’t change the root of the filesystem to be read-writeable, we will point all installations to be installed under “/opt”. However Currently “/opt” also points to a read-only location on the router’s firmware. To overcome this, we will make “/opt” point to JFFS, which is read-writable.
mkdir -p /jffs/opt
mount -o bind /jffs/opt/ /opt/
Note: While beyond the scope of this guide, more advanced users may want to change this mount point, to point to an HD.
Adjusting the Opkg configurations file
We want the Opkg configuration file to be where Opkg searches for it by default (which is “/etc”) and adjusted to install to “/opt”.
mv /jffs/etc/opkg.conf /etc/
vi /etc/opkg.conf
Make it look like:
src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
dest root /opt
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
Note: You can change the “lists_dir” directive to point to a location that isn’t in RAM, but rather on JFFS. While this would relieve you from updating the lists, before you can install additional software (if your router is rebooted from the last time), you would lose about 1.5MB of the scarce JFFS space and you would be compounding to its erosion.
Watch bet awards 2016 download torrent. Oct 5, 2016 - Gucci Mane opened this year's BET Hip-Hop Awards in Atlanta with Travis Scott, Young Thug, Migos' Quavo, and Zaytoven on the piano. Recommended FREE Bet awards Download & Streaming. BET Awards 2016 HDTV x264 - MOVIES4YOU. 2 years, 737.0 MB, 336, 319, 1.05. The 16th BET Awards was hosted by Anthony Anderson and Tracee Ellis Ross,. The event was held on June 26, 2016 at the Microsoft Theater in Los.
Hello baby
You should be able to see that Opkg is working by issuing the update and lists commands.
opkg update; opkg list
StartUp script
We now need to make it so all of the required mounting and path-ing will happen automatically when the router boots. To that end, we’ve created for you, this initialization geek-init script.
chmod +x /jffs/geek/etc/geek-init.sh
/jffs/geek/etc/geek-init.sh web-gui
And Click “Save Startup”.
Private garden 1 free download game. Kicking the tires
If all went well, you should now be able to reboot the router and still use the Opkg package manager. That is to update, list and install applications.
Lets test that everything is working by installing the “netstat” command, which for some reason has been omitted from DD-WRT’s builds lately. Before we do this, execute the netstat command in the terminal and you will see that you’re grated by an error from the shell, saying “-sh: netstat: not found”.
opkg update
opkg list | grep netstat
opkg install net-tools-netstat
And now, when you execute the netstat command again it works… neat ha? :)
Until the future articles in which we will install and configure software packages using this method, may you have tons of geek fun exploring the vast amount of software that is now right at your finger tips.
READ NEXT