Like many of us have read the article on slashdot about the Openwrt capabilities of the Zsun Wifi card Reader.
The idea of having PirateBox running on the smallest device yet made me order one from China.
After many hours of installing, troubleshooting, resetting e.d. I now have a complete working Piratebox installation.
I would like to share my installation scripts in order to let you install your own.
DISCLAIMER: NOBODY will take responsibility or be liable for anything you do to your zsun. If you brick it trying these procedures, YOU are solely responsible for your actions. YOU HAVE BEEN WARNED.
0.Prerequisite (manual)
1.PreSetup (script)
[*] I have made an small script with the following lines
[*] make it executable and run script
2.ApplySetup (script)
[*] cd to the directory where you have moved the my custom zsun package to
[*] I have made an small script with the following lines
[*] make it executable and run script
3.PirateboxInstall (script)
[*] I have made an small script with the following lines
[*] make it executable and run script
4.PirateboxInstall (manual)
That's all folks!
The idea of having PirateBox running on the smallest device yet made me order one from China.
After many hours of installing, troubleshooting, resetting e.d. I now have a complete working Piratebox installation.
I would like to share my installation scripts in order to let you install your own.
DISCLAIMER: NOBODY will take responsibility or be liable for anything you do to your zsun. If you brick it trying these procedures, YOU are solely responsible for your actions. YOU HAVE BEEN WARNED.
0.Prerequisite (manual)
- [*] Having a Zsun running OpenWrt. I've used the hackerspace.pl methode
[*] 1 SD card with 2 primary partitions. For the first partition I've used vfat (size:remaining), the second is ext4 (size:1GiB) Setup based on link
[*] Download and extract my custum zsun install package with modified ext config
[*] Root password set
[*] Changed the default uhhtpd (LuCI) ports to 9080 and 9443
[*] Get internet working on the zsun using this methodeLanguage: HTMLvi /etc/config/uhttp /etc/init.d/uhttpd reload
Language: HTMLping google.com opkg update
1.PreSetup (script)
[*] I have made an small script with the following lines
[*] make it executable and run script
Language: HTMLmkdir /mnt/ext mkdir /mnt/usb mkdir /mnt/sda2 mount /dev/sda2 /mnt/sda2 tar -C /overlay -cvf - . | tar -C /mnt/sda2 -xf - echo check output uci add fstab mount uci set fstab.@mount[-1].target=/overlay uci set fstab.@mount[-1].device=/dev/sda2 uci set fstab.@mount[-1].fstype=ext4 uci set fstab.@mount[-1].options=rw,sync uci set fstab.@mount[-1].enabled=1 uci set fstab.@mount[-1].enabled_fsck=0 uci commit echo please reboot
2.ApplySetup (script)
[*] cd to the directory where you have moved the my custom zsun package to
[*] I have made an small script with the following lines
[*] make it executable and run script
Language: HTMLcp -r ./extendRoot/etc/* /etc/ chmod o+w /etc/init.d/ext cp -r ./extendRoot/usr/* /usr/ mount /dev/sda2 /mnt/usb cp -r ./piratebox.zip/install /mnt/usb/ gzip -dc /mnt/usb/install/OpenWRT_ext4_50MB.img.gz > /mnt/usb/OpenWRT.img /etc/init.d/ext init
3.PirateboxInstall (script)
[*] I have made an small script with the following lines
[*] make it executable and run script
Language: HTMLecho "src/gz piratebox http://stable.openwrt.piratebox.de/all/packages" >> /etc/opkg.conf sed 's|option check_signature 1||g' -i /etc/opkg.conf ln -s /etc /mnt/ext/ ln -s /lib /mnt/ext/ ln -s /tmp /mnt/ext/ ln -s /usr /mnt/ext/ opkg -d ext install piratebox
4.PirateboxInstall (manual)
Language: HTML## After firewall configuration network has been disconnected. ## Set fixed ip on client pc and finish install ## IP:192.168.1.2 GW:192.168.1.1 /etc/init.d/piratebox init ## post piratebox install config date ## adjust if needed date YYYYMMDDHHMM ## install timesave /opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf install /etc/init.d/piratebox timesave ## getting shoutbox working chmod a+w /opt/piratebox/share/tmp /etc/init.d/piratebox start /etc/init.d/piratebox enable ## Install minidlna opkg update opkg -d ext install minidlna ## setup minidlna cp /opt/piratebox/src/openwrt.example.minidlna /mnt/ext/etc/config/minidlna /etc/init.d/minidlna start /etc/init.d/minidlna enable ## Install imageboard ## I have got some errors during install of piratebox-mod-imageboard ## Errors like "* extract_archive: Cannot make dir /mnt/ext/usr/lib/perl5/5.20/: Too many levels of symbolic links." ## First installing perl separate opkg install --force-reinstall perl perlbase-base perlbase-cgi perlbase-essential perlbase-file perlbase-bytes perlbase-config perlbase-data perlbase-db-file perlbase-digest perlbase-encode perlbase-encoding perlbase-fcntl perlbase-gdbm-file perlbase-integer perlbase-socket perlbase-time perlbase-unicode perlbase-unicore perlbase-utf8 perlbase-xsloader ## Then imageboard opkg -d ext install piratebox-mod-imageboard ## post install config imageboard /opt/piratebox/bin/board-autoconf.sh ## verify passwords cat /opt/piratebox/www/board/config.pl ## Turn of the internet connection ## add option disabled '1' vi /etc/config/wireless -config wifi-iface - option network 'wwan' -.... - option disabled '[b]1[/b]' ## all done, reboot reboot
That's all folks!