Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
openwrt:zsun [2016/04/28 18:03]
theexpertnoob
openwrt:zsun [2016/06/10 18:46]
theexpertnoob Removed and consolidated to manual method
Line 13: Line 13:
 ==== 0. PreSetup ==== ==== 0. PreSetup ====
   * Having a Zsun running OpenWrt. I've used the [[https://​wiki.hackerspace.pl/​projects:​zsun-wifi-card-reader|hackerspace.pl]] method. ​   * Having a Zsun running OpenWrt. I've used the [[https://​wiki.hackerspace.pl/​projects:​zsun-wifi-card-reader|hackerspace.pl]] method. ​
-  * microSD card formatted ext4.+  * microSD card
   * Root password [[https://​wiki.openwrt.org/​doc/​howto/​firstlogin|set]].   * Root password [[https://​wiki.openwrt.org/​doc/​howto/​firstlogin|set]].
-  ​Changed ​the default uhhtpd (LuCI) ports to **9080** and **9443**.+ 
 +  ​Change ​the default uhhtpd (LuCI) ports to **9080** and **9443**.
 <​code>​ <​code>​
 #uhttpd config #uhttpd config
Line 55: Line 56:
   * Reconnect to OpenWRT   * Reconnect to OpenWRT
 <WRAP center round important 100%> <WRAP center round important 100%>
-An additional wireless connection with your own WiFi is made in '​sta'​ mode. Because OpenWrt (and PirateBox) are using the IP 192.168.1.1 (sub-netmask ​/24) the network (WiFi) you are connecting to can't use the same sub-net mask.+An additional wireless connection with your own WiFi is made in '​sta'​ mode. Because OpenWrt (and PirateBox) are using the IP Address: ​192.168.1.1 ​and Netmask: 255.255.255.0 ​(/24) the network (WiFi) you are connecting to can't use the same netmask.
 </​WRAP>​ </​WRAP>​
   * Verify your internet connection using   * Verify your internet connection using
Line 64: Line 65:
  
 ==== 1. Setup Mounts ==== ==== 1. Setup Mounts ====
 +  * Format sdcard to ext4
 +<​code>​
 +opkg update && opkg install -d ram e2fsprogs ​
 +export LD_LIBRARY_PATH='/​lib:/​usr/​lib:/​tmp/​lib:/​tmp/​usr/​lib'​
 +export PATH="​$PATH:/​tmp/​bin:/​tmp/​sbin:/​usr/​sbin"​
 +/​tmp/​usr/​sbin/​mkfs.ext4 /dev/sda1
 +</​code>​
 <​code>​ <​code>​
 mkdir /mnt/ext mkdir /mnt/ext
Line 88: Line 96:
 opkg install extendRoot opkg install extendRoot
 sed -i '​s|ext_linktarget="/​usr/​local"​|ext_linktarget=""​|g' ​ /​etc/​ext.config sed -i '​s|ext_linktarget="/​usr/​local"​|ext_linktarget=""​|g' ​ /​etc/​ext.config
-opkg install lighttpd 
-/​etc/​init.d/​lighttpd stop 
-/​etc/​init.d/​lighttpd disable ​ 
 opkg install piratebox opkg install piratebox
 </​code>​ </​code>​
Line 98: Line 103:
   * finish install with:   * finish install with:
 <​code>​ <​code>​
 +/​etc/​init.d/​lighttpd stop
 +/​etc/​init.d/​lighttpd disable
 +sed -i '​s|/​dev/​loop1|/​dev/​loop0|g'​ /​usr/​share/​piratebox/​piratebox.common
 /​etc/​init.d/​piratebox init /​etc/​init.d/​piratebox init
 /​etc/​init.d/​piratebox start /​etc/​init.d/​piratebox start
-/​opt/​piratebox/​bin/​timesave.sh ​ /​opt/​piratebox/​conf/​piratebox.conf install 
-/​etc/​init.d/​piratebox timesave 
 chmod a+w /​opt/​piratebox/​share/​tmp chmod a+w /​opt/​piratebox/​share/​tmp
 /​etc/​init.d/​piratebox enable /​etc/​init.d/​piratebox enable
-  +reboot
-# and enable LuCI +
-/​etc/​init.d/​uhttpd start +
-/​etc/​init.d/​uhttpd enable+
 </​code>​ </​code>​
-------------------------+=== Install Imageboard === 
 +  * This is a password **YOU** set. 
 +<​code>​opkg install piratebox-mod-imageboard 
 +/​opt/​piratebox/​bin/​board-autoconf.sh</​code>​
 === Install Minidlna === === Install Minidlna ===
-FIXME **NOT WORKING!** 
 <​code>​ <​code>​
 opkg update opkg update
-opkg -d ext install minidlna +opkg install minidlna 
-cp /​opt/​piratebox/​src/​openwrt.example.minidlna ​/mnt/ext/​etc/​config/​minidlna+cp /​opt/​piratebox/​src/​openwrt.example.minidlna /​etc/​config/​minidlna
 /​etc/​init.d/​minidlna start /​etc/​init.d/​minidlna start
 /​etc/​init.d/​minidlna enable /​etc/​init.d/​minidlna enable
 </​code>​ </​code>​
------------------------- +=== Enable LuCI and Turn off Internet connection ===
-=== Install Imageboard === +
-  * This is a password **YOU** set. +
-<​code>​opkg install piratebox-mod-imageboard +
-/​opt/​piratebox/​bin/​board-autoconf.sh +
-wget -qO- http://​127.0.0.1/​board/​kareha.pl &> /​dev/​null</​code>​ +
-=== Turn off Internet connection ===+
 <​code>​ <​code>​
 +/​etc/​init.d/​uhttpd start
 +/​etc/​init.d/​uhttpd enable
 uci set wireless.@wifi-iface[1].disabled=1 uci set wireless.@wifi-iface[1].disabled=1
 uci commit uci commit