User Tools

Site Tools


piratebox_as_source

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
piratebox_as_source [2015/12/09 22:50]
matthias removed
— (current)
Line 1: Line 1:
-====== PirateBox as install-source ====== 
-For non-internet-available locations you have to modify a existing PirateBox, that it provides all needed sources. We call this PirateBox now **PBS** 
- 
-This HowTo is created at 2012-10-26 ; maybe some paths changes in future. Ask in [[http://​forum.daviddarts.com|forums]] about that. 
- 
-The following howto assumes that only packages for the ar71xx architecture are needed. 
- 
-===== 1. Collect everything needed ===== 
-1.1. Create a mirror of my package-tree: ​ 
-1.1.1. Easiest way to get a complete copy is the command wget. That creates a mirror of all currently available OpenWRT packages (all/​packages) and custom images. 
- 
-     wget -m -l 1 http://​stable.openwrt.piratebox.de/​all/​packages/​ 
-     wget -m -l 1 http://​stable.openwrt.piratebox.de/​ar71xx_AA/​ 
-     wget -m -l 1 http://​stable.openwrt.piratebox.de/​trunk 
-     wget -m -l 2 http://​downloads.openwrt.org/​attitude_adjustment/​12.09/​ar71xx/​generic/​packages/​ 
- 
-1.2.Download the kareha-file with wget  
- 
-    wget http://​wakaba.c3.cx/​releases/​kareha_3.1.4.zip 
- 
-1.3. Download the piratebox stuff: 
- 
-1.3.1 The PirateBox-image File 
- 
-    wget http://​piratebox.aod-rpg.de/​piratebox_ws_0.6_img.tar.gz 
-    wget http://​piratebox.aod-rpg.de/​forban_img.tar.gz 
- 
-1.3.2 Download the HowTo-File for the installation via PBS and modify it to the SSID you want to use for your PBS. In the howto it is called "​Install_PirateBox"​ 
- 
-    wget http://​downloads.piratebox.de/​howto.html 
- 
-1.3.3 *Optional* RaspberryPI Image: 
- 
-    wget http://​downloads.piratebox.de/​2013-02-06-wheezy-raspbian-PBx06F.zip 
- 
-1.3.4 *Optional* Raw-Script collection (notebooks): ​   ​ 
- 
-    wget http://​downloads.piratebox.de/​piratebox-ws_current.tar.gz 
-    ​ 
- 
-1.4. Some stuff for Windows-User (Putty) 
- 
-    wget   ​http://​the.earth.li/​~sgtatham/​putty/​latest/​x86/​putty.exe 
-    wget   ​http://​the.earth.li/​~sgtatham/​putty/​latest/​x86/​psftp.exe 
-===== 2. Prepare your USB Device of the PBS ===== 
-Ok, if you collected everything, take your USB from the **PBS** (currently offline) and take it to your computer. Now it is time to copy over the stuff. 
- 
-2.1. Create a folder on your USB-Stick called "​install_src"​ 
- 
-2.2. Copy over the entire stable.openwrt.piratebox.de including the named folder to  <​usb>/​install_src 
- 
-2.3. Copy over the entire downloads.openwrt.org including the named folder to  <​usb>/​install_src 
- 
-2.4. Create a folder named "​kareha"​ in <​usb>/​install_src & Copy over kareha_3.1.4.zip into the new folder ​ 
- 
-2.4. Copy over piratebox_ws_0.6_img.tar.gz , forban_img.tar.gz and all the other files you downloaded to  <​usb>/​install_src ​ 
- 
- 
- 
-===== 3. Prepare the PBS  ===== 
-Plugin your USB Stick and boot it. Please take notice, that the bootup time now takes much more longer, because the bootup check have to look at many files now!  
- 
-3.1. Connect your desktop to the new **PBS** and login via Telnet&​SSH ​ 
- 
-3.2. **VERY IMPORTANT** Rename your **PBS**'​s Wifi-Network and change IP Adresses ​ 
- 
-3.2.1. Edit /​etc/​config/​wireless --> ssid .. please use something usefule and different from the normal name **don'​t use whitespaces or special characters here.** ​ 
- 
-3.2.2. Edit /​etc/​config/​network ​ 
- 
-Find: 
- 
-   ​config interface '​lan' ​                                                                   ​ 
-        option ifname '​eth0' ​                                                             ​ 
-        option type '​bridge' ​                                                             ​ 
-        option proto '​static' ​                                                             
-        option ipaddr '​192.168.1.1'​ 
- 
-Exchange it to: 
- 
-   ​config interface '​lan' ​                                                                   ​ 
-        option ifname '​eth0' ​                                                             ​ 
-        option type '​bridge' ​                                                             ​ 
-        option proto '​static' ​                                                             
-        option ipaddr '​192.168.2.1' ​       ​ 
- 
-3.2.3 Modify (nano) piratebox.conf 
-Find: 
- 
-   #​Network 
-   ​NET=192.168.1 
- 
-exchange it to: 
- 
-   #​Network 
-   ​NET=192.168.2 
- 
- 
-3.4 Link the all the files to get stable links compared to the internet. 
- 
-3.4.1 Easy way, which suits for the most stuff: 
- 
-   ln -s /​mnt/​usb/​install_src ​ /​opt/​piratebox/​www 
-   # That links the complete content of install_src into www and makes all the mirror-folders available. 
-   ln -s /​mnt/​usb/​install_src/​* ​ /​opt/​piratebox/​www 
- 
-3.4.2 Detailed stuff... 
- 
-   ln -s /​mnt/​usb/​install_src/​stable.openwrt.piratebox.de/​all ​ /​opt/​piratebox/​www 
-   ln -s /​mnt/​usb/​install_src/​downloads.openwrt.org/​attitude_adjustment ​ /​opt/​piratebox/​www 
-   # Kareha zip-File 
-   mkdir -p /​opt/​piratebox/​www/​releases 
-   ln -s /​mnt/​usb/​install_src/​kareha ​ /​opt/​piratebox/​www/​releases 
- 
-3.6. Do an additional compatibility-folder for the non custom OpenWRT images (will only work for not-kernel-packages) 
- 
-   mkdir -p /​opt/​piratebox/​www/​snapshots/​trunk ​ 
-   ln -s /​mnt/​usb/​install_src/​downloads.openwrt.org/​attitude_adjustment/​12.09/​ar71xx /​opt/​piratebox/​www/​snapshots/​trunk 
- 
-3.7. Add a link to the index-page. Currently we linked all together in the background. To allow the user to get easily to the howto, edit  
- 
-   vi /​opt/​piratebox/​www/​index.html 
- 
-And add a link below "​browse files",​ like  
- 
-<file html index.html>​ 
-<div class="​box"><​img src="/​piratebox-logo-small.png"/></​div>​ 
-<div id="​message"​ class="​box">​ 
-<​b>​1.</​b>​ Learn more about the project <a href="/​.READ.ME.htm"​ target="​_parent"><​b>​here</​b></​a>​.<​p>​ 
-<​b>​2.</​b>​ Click button below to begin sharing.</​p>​ 
-<​b>​3.</​b>​ Browse and download files <a href="/​Shared"​ target="​_parent"><​b>​here</​b></​a>​.<​br>​ 
-<​b>​4.</​b>​ Use this Box <a href="/​install_src"​ target="​_parent"><​b>​for installing</​b></​a>​ other PirateBoxes.<​br>​ 
-</​div>​ 
- 
-</​file>​ 
- 
- 
-3.8.  After you have done all this stuff, reboot your box, that it takes all the changes you have done in /etc/config & /​opt/​piratebox/​piratebox.conf ​ 
- 
-   ​reboot 
- 
-__**KEEP IN MIND: YOU BOX IS NOW AVAILABLE ON 192.168.2.1**__