User Tools

Site Tools


notepad_for_installer

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
notepad_for_installer [2015/12/09 22:47]
matthias removed
— (current)
Line 1: Line 1:
-====== Notes for installing PirateBox automatically ====== 
-  * Problem is, that additional packages loaded while install on separate image depending on arch. 
-  * Most laptops have a LAN Port- routing or "​proxy"​ is no solution ( difficult setup? )-- Would be eth0 -> wlan0 routing -.-  
- 
-===== Steps which have to be done ===== 
-  - Start script and say user to connect OpenWRT System to home-network and computer too (wired) ​ (and start openwrt system) 
-  - make DHCPClient & extract IP to a file  ( grep & SED ifconfig eth0) 
-  - add aditional interface with IP 192.168.1.2 
-  - Wait until you get a ping respond from 192.168.1.1 
-  - Start Webserver in Background for getting aditional scripts down to the piratebox. 
-  - Promt the user to push enter, set password with  //passwd// and then logoff //exit// 
-  - Promt the user, that he has to reenter the password a few times, because now the magic happens 
-  - SSH 192.168.1.1 "wget from the current IP script #1 && chmod u+x script #1 && ./script #1" 
-  - extract mac to IP 192.168.1.1 from ARP -a table 
-  - search dhcp-given router'​s ip out of arp-table 
-  - run ssh against this given ip " wget from the current IP script #2 && chmod u+x script #2 && ./script #2" 
-  - Ask for Imageboard (if yes install, if no, not) 
-  - Send reboot command to Box (via SSH)  
- 
-That's it 
- 
- 
- 
-==== Script #1 ==== 
-  - Get IP-Homelan config from  
-  - configures network-config to dhcp 
-  - reload network config 
-  - and ping and computer ( based on previously downloaded config file )  
- 
-==== Script #2 ==== 
-  - Install wget piratebox-package_current ​ 
- 
- 
-====== 2nd idea ====== 
- 
-  * OpenWRT Package, which suffices the normal OpenWRT Package-Build process (to get it into a Repository & on firmware) 
-  * Logs every step in detail ​ 
-  * Requires DHCP - LAN with direct internet access 
-  * One setup - script, which asks the user about 
-      * Which (PirateBox) 
-      * Which Modification (i.e. imageboard) 
-      * Does this device have a separate WAN Port? (Maybe ask for device) 
-      * Debug output 
-  * This setup writes a config files 
-  * (if no WAN Port is available) Orderes the User to switch network cable  
-  * Starts up a 2nd script and (if no WAN Port is available) ​ disconnects the users session ​ 
-  * changes network config and reloads it 
-  * Do everything is needed to get the stuff working 
-  * Finish 
-  * **If something goes wrong, reset network config, if changed anything** 
- 
-The user is left only with installing OpenWRT on his device, LogIn, set password and now a few simple facts about his device. ​ 
-