Skip to content
MaStr edited this page Mar 29, 2012 · 8 revisions

Installation

  1. Install a fresh OpenWRT "Backfire" 10.03.1 onto your router. This is definitely the hardest step. The best place to start is probably going through the Table of supported hardware and clicking on your router model for model-specific installation instructions. Sometimes the steps provided refer to older versions of OpenWRT. Make sure to use a at least a version 10.03.1-rc4 image. Their download directory is sorted by platform which is also listed in the Table of hardware. Prefer squashfs images over jffs2. They're interchangable.
  2. To avoid any quirks with the PirateBox installation procedure, your OpenWRT should be mint. Do not touch it after you flashed it! If you already have an unclean or outdated OpenWRT installation, see "Recovery" below.
  3. Make sure your Internet router does not use the IP address 192.168.1.1 or any other address from the 192.168.1.0 subnet. Set it to 192.168.42.1 (with subnet mask 255.255.255.0), for example.
  4. Connect the WAN port of the PirateBox to your Internet router and one of its LAN ports your computer. This ensures the PirateBox router can download the required packages.
  5. Connect your USB drive. The script assumes a single partition with a FAT32 file system, but any partition layout should work as long as the first one is FAT32. Make sure the drive is partitioned, e.g. is not a "superfloppy" without partition table.
  6. telnet into the router on 192.168.1.1 and
cd /tmp
wget http://piratebox.aod-rpg.de/piratebox_0.3-2_all.ipk
opkg update && opkg install piratebox*
  1. When prompted, set a root password.
  2. Wait for the setup to finish which is when the open wireless network "PirateBox" appears.
  3. Reboot your router.
  4. Connect wirelessly and open any web page.
  5. If you see the PirateBox menu, you're done.
  6. You can disconnect the WAN connection now.

Recovery

Once you have an OpenWRT squashfs image installed, you have several options when you run into trouble, start all over, or get rid of PirateBox completely. First, log in via telnet or ssh.

  • Delete the overlay filesystem with the following command, afterwards re-plug AC:
rm -rf /overlay/*
  • Connect WAN to Internet and use sysupgrade. If PirateBox isn't installed yet, skip the first two commands:
/etc/init.d/piratebox stop
/etc/init.d/piratebox nodns
sysupgrade -n http://downloads.openwrt.org/backfire/10.03.1-rc4/ar71xx/openwrt-ar71xx-wzr-hp-g300nh-squashfs-sysupgrade.bin