Orange Pi?

Posted by Collegeguy 
Orange Pi?
March 31, 2017 02:56AM
Hi!

I ordered an Orange Pi Zero (Ordered from AliExpress, just search "Orange Pi Zero) and I was wondering if it were to be possible to follow the raspberry pi zero instructions to create a piratebox from this device.
Here is the home website's download page, the Opi zero isnt on there yet.
[www.orangepi.org]

Any help/tips/ect.. Would be awesome!

Thanks!
Re: Orange Pi?
March 31, 2017 06:35AM
Hi,
do you know if the ArchLinux will boot on the OrangePi Zero with these instructions?

[wiki.archlinux.org]

If you can raspbian or armbian, these instruction will most likely help you: [piratebox.cc]

best regards Matthias
Re: Orange Pi?
March 31, 2017 08:19PM
I just ordered it yesterday, once i receive it (19-30 days) I'll try what you suggested and post an update!

Thanks!
Re: Orange Pi?
May 11, 2017 11:05AM
Hi @Collegeguy,
any news on your project with OrangePi and PirateBox ? I'm interessed to follow this path, an update would be appreciated.

Thanks !
MH46
Re: Orange Pi?
May 30, 2017 05:11AM
Hi, Im trying to install Piratebox onto a OrangePi Zero (h2) right now.
I tried to follow this tutorial
-I used the Openwrt Image from here.
-I could not use telnet to set a new password and LuCI didnt accept an empty password login like the tutorials said. It turned out, that the password "OrangePi" was already set and I could ssh login with it. From there I set a new password.
-I then used the webUI to enable the Wireless Antenna and connected to my internet. Pinged google.com. Internet access works fine.

Now to where I am currently stuck: I tried the command lines from the tutorial
  echo "src/gz piratebox [stable.openwrt.piratebox.de]; >> /etc/opkg.conf
This did not give me a response. no errors, no indication of success. Im an absolute beginner and don't know if that is how it is supposed to be.
 sed 's|option check_signature 1||g' -i /etc/opkg.conf
This gave me the error that "sed" is not known, so I changed it to "set".
 opkg update
This is where I get tens of lines as a response and at the end errors that tell me it couldnt download from stable.openwrt.piratebox.de/all/packages
Now I think the problem is with the URL, because the link is indeed offline. So is every other piratebox image I could find on piratebox.cc. For example stable.openwrt.piratebox.de/auto/install_piratebox.zip

Whats going on, Is there something Im not seeing? Help would be very much appreciated!
Re: Orange Pi?
May 30, 2017 05:36AM
Hi,
this sounds pretty much like a very custom version of OpenWrt.
Assuming you entered "sed" correctly, then the version is kind of useless. sed is a common and default POSIX utility and needed on each *nix based system.

Are you able to just run ?
sed -h

Are you able to run ping against the domain?
Language: PHP
ping -c 5 stable.openwrt.piratebox.de

Can you post the opkg update error messages please?

Thank you,
best regards
Matthias
MH46
Re: Orange Pi?
May 30, 2017 05:50AM
Thank you for answering!

My bad, I didnt even know sed grinning smiley

root@OpenWrt:~# sed -h
sed: invalid option -- h
BusyBox v1.23.2 (2017-01-07 00:30:41 EET) multi-call binary.

Usage: sed [-inrE] [-f FILE]... [-e CMD]... [FILE]...
or: sed [-inrE] CMD [FILE]...

        -e CMD  Add CMD to sed commands to be executed
        -f FILE Add FILE contents to sed commands to be executed
        -i[SFX] Edit files in-place (otherwise sends to stdout)
                Optionally back files up, appending SFX
        -n      Suppress automatic printing of pattern space
        -r,-E   Use extended regex syntax

If no -e or -f, the first non-option argument is the sed command string.
Remaining arguments are input files (stdin if none).

pinging stable.openwrt.piratebox.de works too.

opkg update gives Collected errors:
 * opkg_conf_parse_file: Duplicate src declaration (piratebox [stable.openwrt.piratebox.de]). Skipping.
 * opkg_conf_parse_file: Duplicate src declaration (piratebox [stable.openwrt.piratebox.de]). Skipping.
 * opkg_download: Failed to download [stable.openwrt.piratebox.de], wget returned 8.

Re: Orange Pi?
May 30, 2017 06:07AM
Ok, so sed works. btw, it is correct that you do not receive output on some commands... most Linux commands are quite if they were able to run the command correctly.

Your error messages sound like you have a dublicate entry in /etc/opkg.conf
run the editor and delete a duplicate line..

The keyboard command series is:

vi /etc/opkg.conf
<use arrow keys to navigate to a duplicate line>
dd
:wq

after that retry
opkg update
MH46
Re: Orange Pi?
May 30, 2017 06:24AM
Ok opkg update worked without errors.
Now the tutorial says: Optional: If you have a different installation destination, like a SDCard, edit '/etc/ext.config' , and change the USB device option.
I dont have a USB and would like to pack everything onto the sd card. I tried
vi /etc/ext.config
but there are only blank lines.

I tried
opkg install extendRoot
anyway and it gave me the following errors
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for extendRoot:
 *      kernel (= 3.18.23-1-3dbff8ef8ed26481a5d3cd9723973f43) *         kernel (= 3.18.23-1-3dbff8ef8ed26481a5d3cd9723973f43) *         kernel (= 3.18.23-1-3dbff8ef8ed26481a5d3cd9723973f43) *         kernel (= 3.18.23-1-3dbff8ef8ed26481a5d3cd9723973f43) *         kernel (= 3.18.23-1-3dbff8ef8ed26481a5d3cd9723973f43) *
 * opkg_install_cmd: Cannot install package extendRoot.

I forgot to mention it btw. the openwrt version is: openwrt chaos calmer 15.05.1 r49389
Re: Orange Pi?
May 30, 2017 07:06AM
Hi,
ok, now you hit a roadblocker which we can not solve.
The openwrt image for the orangePi is not compatible with the public kernel packages. This means this image is missing drivers and you can not install the needed drivers to get it working.

Sorry, no way to move forward from here :-(

best regards Matthias
MH46
Re: Orange Pi?
May 30, 2017 07:22AM
Should I try with another image or is it completely hopeless? (Is this problem hardware based?)
Do you know any other way to use the OrangePi like a piratebox (especially the server feature).
I had great hopes for this, because the OrangePi is incredibly cheap and small.

Btw. thank you so much for all of this, Im learning a lot.
Re: Orange Pi?
May 30, 2017 08:02AM
It is not an hardware issue.
If you are able to get a properly built OpenWrt image, or even better:
Someone should try this howto: [wiki.archlinux.org]

If that is working, I can create an "RPirateBox" image for the OrangePi.
MH46
Re: Orange Pi?
May 30, 2017 10:30PM
I'd love to try, but even following this tutorial is hard for me.
Also it says OrangePi One H3, still want me to try with the zero H2?
Anyway, here my noob problems:

First of all, I formatted the sd card in windows back to standard and erased anything.
Then for this
dd if=/dev/zero of=/dev/sdX bs=1M count=8
I replace sdX with sdc1(the name of my sd card) but it says failed to open /dev/sdc1 permission denied. 1 Problem

Then
Quote

Use fdisk to partition the SD card, and format it with mkfs.ext4 -O ^metadata_csum,^64bit /dev/sdX1.
Use fdisk and partition how exactly? 2 Problem
MH46
Re: Orange Pi?
May 30, 2017 11:47PM
Ok Im a retard and wasn't root in the terminal...
This is what I did:
mint mint # dd if=/dev/zero of=/dev/sdc1 bs=1M count=8
8+0 records in
8+0 records out
8388608 bytes (8.4 MB, 8.0 Micool smiley copied, 0.0166642 s, 503 MB/s
mint mint # fdisk /dev/sdc1
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xde0b6ece.
Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-123467775, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-123467775, default 123467775): 123467775

Created a new partition 1 of type 'Linux' and of size 58.9 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Invalid argument
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

after this, fdisk -l showed this:
Disk /dev/sdc: 58.9 GiB, 63216549888 bytes, 123469824 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x005f9702

Device     Boot Start       End   Sectors  Size Id Type
/dev/sdc1  *     2048 123469823 123467776 58.9G  c W95 FAT32 (LBA)

Then I did:
mint mint # mkfs.ext4 -O ^metadata_csum,^64bit /dev/sdc1
mke2fs 1.42.13 (17-May-2015)
Found a dos partition table in /dev/sdc1
Proceed anyway? (y,n) y
/dev/sdc1 is mounted; will not make a filesystem here!

I also tried the next step just to see what happens
I also tried the next step to see what happens
mint mint # mkdir mnt
mint mint # /dev/sdc1 mnt
bash: /dev/sdc1: Permission denied

So a couple of things went wrong I guess. Do I have to create a new table first with fdisk before the partition?
Also I did everything default for the partition, is that ok?

Sorry for spamming, everything is new for me so if Im too annoying, tell me and I`ll try it alone
Re: Orange Pi?
May 31, 2017 09:45PM
Hi,
can you give this image a try: [reshare.bitcave.cc] ?

unzip and then like normal dd the .img file to the sdcard

best regards
Matthias
MH46
Re: Orange Pi?
June 01, 2017 03:33AM
Hey,

I did and connected the OrangePi via LAN cable to my laptop.
It looks like it connects/disconnects over and over again. Couldnt use webUI/telnet/ssh 192.168.1.1
Not sure if it helps, but with the other image, there was a constant green little LED when powered, that doesnt work with this image.
Btw. this is my model
Re: Orange Pi?
June 01, 2017 07:01AM
Well, this is like a normal RPi image without PirateBox. Just plug it to your homenetwork and it will receive an IP address.
But I am more interested if it is booting or not. Can you plug a monitor or a serial port and try to figure out if it is booting?

edit: Yes, I created the bootloader for that board type



Edited 1 time(s). Last edit at 06/01/2017 07:03AM by Matthias.
MH46
Re: Orange Pi?
June 01, 2017 08:24AM
Ok, in the meantime I tried Armbian_5.27.170601_Orangepizero_Ubuntu_xenial_dev_4.11.3 from here
I plugged it into the router and the green LED is on. I could ssh with the assigned ip. I tried this tutorial, that you recommended earlier in this thread. Below is the result:
root@orangepizero:~# sudo apt-get update
Hit:1 [ports.ubuntu.com] xenial InRelease
Hit:2 [ports.ubuntu.com] xenial-security InRelease
Hit:3 [ports.ubuntu.com] xenial-updates InRelease
Hit:4 [beta.armbian.com] xenial InRelease
Hit:5 [ports.ubuntu.com] xenial-backports InRelease
Reading package lists... Done
root@orangepizero:~# sudo apt-get install perl lighttpd dnsmasq hostapd python php5-cgi zip avahi-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-cgi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-cgi' has no installation candidate
root@orangepizero:~# sudo apt-get install php5-cgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-cgi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-cgi' has no installation candidate
root@orangepizero:~# sudo systemctl stop lighttpd
Failed to stop lighttpd.service: Unit lighttpd.service not loaded.
root@orangepizero:~# sudo systemctl disable lighttpd
Failed to execute operation: No such file or directory
root@orangepizero:~# sudo systemctl stop dnsmasq
Failed to stop dnsmasq.service: Unit dnsmasq.service not loaded.
root@orangepizero:~# wget [downloads.piratebox.de]
--2017-06-01 05:57:00--  [downloads.piratebox.de]
Resolving downloads.piratebox.de (downloads.piratebox.de)... 87.237.121.137
Connecting to downloads.piratebox.de (downloads.piratebox.de)|87.237.121.137|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 150790 (147K) [application/x-gzip]
Saving to: ‘piratebox-ws_current.tar.gz’

piratebox-ws_curren 100%[===================>] 147.26K  --.-KB/s    in 0.08s

2017-06-01 05:57:00 (1.69 MB/s) - ‘piratebox-ws_current.tar.gz’ saved [150790/150790]

root@orangepizero:~# tar xf piratebox-ws_current.tar.gz
root@orangepizero:~# cd piratebox
root@orangepizero:~/piratebox# sudo cp -rv piratebox /opt
'piratebox' -> '/opt/piratebox'
'piratebox/bin' -> '/opt/piratebox/bin'
'piratebox/bin/hooks' -> '/opt/piratebox/bin/hooks'
'piratebox/bin/hooks/hook_piratebox_start_done.sh' -> '/opt/piratebox/bin/hooks/hook_piratebox_start_done.sh'
'piratebox/bin/hooks/hook_piratebox_start.sh' -> '/opt/piratebox/bin/hooks/hook_piratebox_start.sh'
'piratebox/bin/hooks/hook_piratebox_stop_done.sh' -> '/opt/piratebox/bin/hooks/hook_piratebox_stop_done.sh'
'piratebox/bin/hooks/hook_piratebox_stop.sh' -> '/opt/piratebox/bin/hooks/hook_piratebox_stop.sh'
'piratebox/bin/hooks/hook_post_init.sh' -> '/opt/piratebox/bin/hooks/hook_post_init.sh'
'piratebox/bin/hooks/hook_pre_init.sh' -> '/opt/piratebox/bin/hooks/hook_pre_init.sh'
'piratebox/bin/hooks/hook_pre_openwrt_init.sh' -> '/opt/piratebox/bin/hooks/hook_pre_openwrt_init.sh'
'piratebox/bin/board-autoconf.sh' -> '/opt/piratebox/bin/board-autoconf.sh'
'piratebox/bin/avahi_to_sdns.sh' -> '/opt/piratebox/bin/avahi_to_sdns.sh'
'piratebox/bin/distribute_files.sh' -> '/opt/piratebox/bin/distribute_files.sh'
'piratebox/bin/delete_empty.sh' -> '/opt/piratebox/bin/delete_empty.sh'
'piratebox/bin/firewall.sh' -> '/opt/piratebox/bin/firewall.sh'
'piratebox/bin/droopy' -> '/opt/piratebox/bin/droopy'
'piratebox/bin/generate_config_files.sh' -> '/opt/piratebox/bin/generate_config_files.sh'
'piratebox/bin/distribute_file_into_directory.sh' -> '/opt/piratebox/bin/distribute_file_into_directory.sh'
'piratebox/bin/flush_dnsmasq.sh' -> '/opt/piratebox/bin/flush_dnsmasq.sh'
'piratebox/bin/install_piratebox.sh' -> '/opt/piratebox/bin/install_piratebox.sh'
'piratebox/bin/json_generation.sh' -> '/opt/piratebox/bin/json_generation.sh'
'piratebox/bin/miniircd.py' -> '/opt/piratebox/bin/miniircd.py'
'piratebox/bin/piratebox_setup_wlan.sh' -> '/opt/piratebox/bin/piratebox_setup_wlan.sh'
'piratebox/bin/rpi_hwclock.sh' -> '/opt/piratebox/bin/rpi_hwclock.sh'
'piratebox/bin/shoutbox_daemon.sh' -> '/opt/piratebox/bin/shoutbox_daemon.sh'
'piratebox/bin/shoutbox_stuff.sh' -> '/opt/piratebox/bin/shoutbox_stuff.sh'
'piratebox/bin/station_cnt.sh' -> '/opt/piratebox/bin/station_cnt.sh'
'piratebox/bin/timesave.sh' -> '/opt/piratebox/bin/timesave.sh'
'piratebox/conf' -> '/opt/piratebox/conf'
'piratebox/conf/avahi' -> '/opt/piratebox/conf/avahi'
'piratebox/conf/avahi/services' -> '/opt/piratebox/conf/avahi/services'
'piratebox/conf/avahi/services/http.service' -> '/opt/piratebox/conf/avahi/services/http.service'
'piratebox/conf/avahi/services/ssh.service' -> '/opt/piratebox/conf/avahi/services/ssh.service'
'piratebox/conf/avahi/avahi-daemon.conf.schema' -> '/opt/piratebox/conf/avahi/avahi-daemon.conf.schema'
'piratebox/conf/irc' -> '/opt/piratebox/conf/irc'
'piratebox/conf/irc/motd.txt' -> '/opt/piratebox/conf/irc/motd.txt'
'piratebox/conf/lighttpd' -> '/opt/piratebox/conf/lighttpd'
'piratebox/conf/lighttpd/fastcgi-php.conf' -> '/opt/piratebox/conf/lighttpd/fastcgi-php.conf'
'piratebox/conf/lighttpd/env' -> '/opt/piratebox/conf/lighttpd/env'
'piratebox/conf/lighttpd/lighttpd.conf' -> '/opt/piratebox/conf/lighttpd/lighttpd.conf'
'piratebox/conf/lighttpd/fastcgi-php-generate203.conf' -> '/opt/piratebox/conf/lighttpd/fastcgi-php-generate203.conf'
'piratebox/conf/lighttpd/mime.types' -> '/opt/piratebox/conf/lighttpd/mime.types'
'piratebox/conf/dnsmasq_default.conf' -> '/opt/piratebox/conf/dnsmasq_default.conf'
'piratebox/conf/chat_init.txt' -> '/opt/piratebox/conf/chat_init.txt'
'piratebox/conf/hosts_mesh' -> '/opt/piratebox/conf/hosts_mesh'
'piratebox/conf/hosts' -> '/opt/piratebox/conf/hosts'
'piratebox/conf/firewall.conf' -> '/opt/piratebox/conf/firewall.conf'
'piratebox/conf/hook_custom.conf' -> '/opt/piratebox/conf/hook_custom.conf'
'piratebox/conf/hostapd.conf' -> '/opt/piratebox/conf/hostapd.conf'
'piratebox/conf/json.conf' -> '/opt/piratebox/conf/json.conf'
'piratebox/conf/irc.conf' -> '/opt/piratebox/conf/irc.conf'
'piratebox/conf/ipv6.conf' -> '/opt/piratebox/conf/ipv6.conf'
'piratebox/conf/node.conf' -> '/opt/piratebox/conf/node.conf'
'piratebox/conf/piratebox.conf' -> '/opt/piratebox/conf/piratebox.conf'
'piratebox/init.d' -> '/opt/piratebox/init.d'
'piratebox/init.d/piratebox' -> '/opt/piratebox/init.d/piratebox'
'piratebox/init.d/piratebox_alt' -> '/opt/piratebox/init.d/piratebox_alt'
'piratebox/lib' -> '/opt/piratebox/lib'
'piratebox/lib/node_name_generation.sh' -> '/opt/piratebox/lib/node_name_generation.sh'
'piratebox/lib/json_func.sh' -> '/opt/piratebox/lib/json_func.sh'
'piratebox/lib/node_name_resolution.sh' -> '/opt/piratebox/lib/node_name_resolution.sh'
'piratebox/python_lib' -> '/opt/piratebox/python_lib'
'piratebox/python_lib/broadcast.py' -> '/opt/piratebox/python_lib/broadcast.py'
'piratebox/python_lib/.keep' -> '/opt/piratebox/python_lib/.keep'
'piratebox/python_lib/discover.py' -> '/opt/piratebox/python_lib/discover.py'
'piratebox/python_lib/diskusage.py' -> '/opt/piratebox/python_lib/diskusage.py'
'piratebox/python_lib/messages.py' -> '/opt/piratebox/python_lib/messages.py'
'piratebox/python_lib/psogen.py' -> '/opt/piratebox/python_lib/psogen.py'
'piratebox/python_lib/psutil.py' -> '/opt/piratebox/python_lib/psutil.py'
'piratebox/python_lib/style.css' -> '/opt/piratebox/python_lib/style.css'
'piratebox/rpi' -> '/opt/piratebox/rpi'
'piratebox/rpi/bin' -> '/opt/piratebox/rpi/bin'
'piratebox/rpi/bin/starter.sh' -> '/opt/piratebox/rpi/bin/starter.sh'
'piratebox/rpi/bin/wifi_detect.sh' -> '/opt/piratebox/rpi/bin/wifi_detect.sh'
'piratebox/rpi/bin/usb_share.sh' -> '/opt/piratebox/rpi/bin/usb_share.sh'
'piratebox/rpi/bin/do_switch_client.sh' -> '/opt/piratebox/rpi/bin/do_switch_client.sh'
'piratebox/rpi/bin/run_client.sh' -> '/opt/piratebox/rpi/bin/run_client.sh'
'piratebox/rpi/bin/sdcard_share.sh' -> '/opt/piratebox/rpi/bin/sdcard_share.sh'
'piratebox/rpi/bin/switch_to_client.sh' -> '/opt/piratebox/rpi/bin/switch_to_client.sh'
'piratebox/rpi/services' -> '/opt/piratebox/rpi/services'
'piratebox/rpi/services/piratebox.service' -> '/opt/piratebox/rpi/services/piratebox.service'
'piratebox/rpi/services/rpi_hwclock.service' -> '/opt/piratebox/rpi/services/rpi_hwclock.service'
'piratebox/rpi/services/timesave.service' -> '/opt/piratebox/rpi/services/timesave.service'
'piratebox/rpi/udev' -> '/opt/piratebox/rpi/udev'
'piratebox/rpi/udev/99-wifi.rules' -> '/opt/piratebox/rpi/udev/99-wifi.rules'
'piratebox/rpi/motd.txt' -> '/opt/piratebox/rpi/motd.txt'
'piratebox/share' -> '/opt/piratebox/share'
'piratebox/share/.keep' -> '/opt/piratebox/share/.keep'
'piratebox/src' -> '/opt/piratebox/src'
'piratebox/src/kareha_img_config.pl' -> '/opt/piratebox/src/kareha_img_config.pl'
'piratebox/src/HEADER.txt' -> '/opt/piratebox/src/HEADER.txt'
'piratebox/src/README.txt' -> '/opt/piratebox/src/README.txt'
'piratebox/src/forest.css' -> '/opt/piratebox/src/forest.css'
'piratebox/src/forest.py' -> '/opt/piratebox/src/forest.py'
'piratebox/src/kareha.pl' -> '/opt/piratebox/src/kareha.pl'
'piratebox/src/openwrt.example.minidlna' -> '/opt/piratebox/src/openwrt.example.minidlna'
'piratebox/src/no_forum.html' -> '/opt/piratebox/src/no_forum.html'
'piratebox/src/linux.example.minidlna.conf' -> '/opt/piratebox/src/linux.example.minidlna.conf'
'piratebox/src/no_link.html' -> '/opt/piratebox/src/no_link.html'
'piratebox/src/redirect.html.schema' -> '/opt/piratebox/src/redirect.html.schema'
'piratebox/tmp' -> '/opt/piratebox/tmp'
'piratebox/tmp/.keep' -> '/opt/piratebox/tmp/.keep'
'piratebox/www' -> '/opt/piratebox/www'
'piratebox/www/cgi-bin' -> '/opt/piratebox/www/cgi-bin'
'piratebox/www/cgi-bin/diskwrite.py' -> '/opt/piratebox/www/cgi-bin/diskwrite.py'
'piratebox/www/cgi-bin/data.pso' -> '/opt/piratebox/www/cgi-bin/data.pso'
'piratebox/www/cgi-bin/psoread.py' -> '/opt/piratebox/www/cgi-bin/psoread.py'
'piratebox/www/cgi-bin/psowrte.py' -> '/opt/piratebox/www/cgi-bin/psowrte.py'
'piratebox/www/cgi-bin/style.css' -> '/opt/piratebox/www/cgi-bin/style.css'
'piratebox/www/library' -> '/opt/piratebox/www/library'
'piratebox/www/library/test' -> '/opt/piratebox/www/library/test'
'piratebox/www/library/test/success.html' -> '/opt/piratebox/www/library/test/success.html'
'piratebox/www/upload_handler' -> '/opt/piratebox/www/upload_handler'
'piratebox/www/upload_handler/files' -> '/opt/piratebox/www/upload_handler/files'
'piratebox/www/upload_handler/files/.gitignore' -> '/opt/piratebox/www/upload_handler/files/.gitignore'
'piratebox/www/chat_content.html' -> '/opt/piratebox/www/chat_content.html'
'piratebox/www/.READ.ME.htm' -> '/opt/piratebox/www/.READ.ME.htm'
'piratebox/www/redirect.html' -> '/opt/piratebox/www/redirect.html'
'piratebox/www/ncsi.txt' -> '/opt/piratebox/www/ncsi.txt'
'piratebox/www/generate_204' -> '/opt/piratebox/www/generate_204'
'piratebox/www/index.html' -> '/opt/piratebox/www/index.html'
'piratebox/www/station_cnt.txt' -> '/opt/piratebox/www/station_cnt.txt'
'piratebox/www_content' -> '/opt/piratebox/www_content'
'piratebox/www_content/css' -> '/opt/piratebox/www_content/css'
'piratebox/www_content/css/jquery-ui.min.css' -> '/opt/piratebox/www_content/css/jquery-ui.min.css'
'piratebox/www_content/css/page_style.css' -> '/opt/piratebox/www_content/css/page_style.css'
'piratebox/www_content/img' -> '/opt/piratebox/www_content/img'
'piratebox/www_content/img/menu.png' -> '/opt/piratebox/www_content/img/menu.png'
'piratebox/www_content/img/piratebox-logo-horizontal-white.png' -> '/opt/piratebox/www_content/img/piratebox-logo-horizontal-white.png'
'piratebox/www_content/img/piratebox-logo-small.png' -> '/opt/piratebox/www_content/img/piratebox-logo-small.png'
'piratebox/www_content/js' -> '/opt/piratebox/www_content/js'
'piratebox/www_content/js/scripts.js' -> '/opt/piratebox/www_content/js/scripts.js'
'piratebox/www_content/js/l10n.js' -> '/opt/piratebox/www_content/js/l10n.js'
'piratebox/www_content/js/jquery-ui.min.js' -> '/opt/piratebox/www_content/js/jquery-ui.min.js'
'piratebox/www_content/js/jquery.min.js' -> '/opt/piratebox/www_content/js/jquery.min.js'
'piratebox/www_content/locales' -> '/opt/piratebox/www_content/locales'
'piratebox/www_content/locales/data.de.properties' -> '/opt/piratebox/www_content/locales/data.de.properties'
'piratebox/www_content/locales/locales.ini' -> '/opt/piratebox/www_content/locales/locales.ini'
'piratebox/www_content/locales/data.en.properties' -> '/opt/piratebox/www_content/locales/data.en.properties'
'piratebox/www_content/locales/data.fr.properties' -> '/opt/piratebox/www_content/locales/data.fr.properties'
'piratebox/www_content/locales/data.pt-br.properties' -> '/opt/piratebox/www_content/locales/data.pt-br.properties'
'piratebox/www_content/index.html' -> '/opt/piratebox/www_content/index.html'
'piratebox/www_content/favicon.ico' -> '/opt/piratebox/www_content/favicon.ico'
'piratebox/version' -> '/opt/piratebox/version'
root@orangepizero:~/piratebox# sudo ln -s /opt/piratebox/init.d/piratebox /etc/init.d/
root@orangepizero:~/piratebox# sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf part2
Starting initialize PirateBox Part2..
Distribute HEADER.txt into /opt/piratebox/share/Shared
Distribute README.txt into /opt/piratebox/share/Shared
root@orangepizero:~/piratebox# sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard
  Wgetting kareha-zip file
--2017-06-01 06:02:24--  [wakaba.c3.cx]
Resolving wakaba.c3.cx (wakaba.c3.cx)... 2400:cb00:2048:1::681c:1156, 2400:cb00:2048:1::681c:1056, 104.28.16.86, ...
Connecting to wakaba.c3.cx (wakaba.c3.cx)|2400:cb00:2048:1::681c:1156|:80... connected.
HTTP request sent, awaiting response... 302 Found
Cookie coming from wakaba.c3.cx attempted to set domain to c3.cx
Location: [wakaba.c3.cx] [following]
--2017-06-01 06:02:24--  [wakaba.c3.cx]
Reusing existing connection to [wakaba.c3.cx]:80.
HTTP request sent, awaiting response... 200 OK
Cookie coming from wakaba.c3.cx attempted to set domain to c3.cx
Length: 222185 (217K) [application/zip]
Saving to: ‘kareha_3.1.4.zip’

kareha_3.1.4.zip    100%[===================>] 216.98K   755KB/s    in 0.3s

2017-06-01 06:02:25 (755 KB/s) - ‘kareha_3.1.4.zip’ saved [222185/222185]

Kareha Zip found...
Archive:  kareha_3.1.4.zip
   creating: kareha/
  inflating: kareha/.DS_Store
  inflating: kareha/admin.pl
  inflating: kareha/captcha.pl
  inflating: kareha/config.pl
  inflating: kareha/example.htaccess
   creating: kareha/extras/
   creating: kareha/extras/icons/
 extracting: kareha/extras/icons/archive-7z.png
 extracting: kareha/extras/icons/archive-bz2.png
 extracting: kareha/extras/icons/archive-gz.png
 extracting: kareha/extras/icons/archive-lzh.png
 extracting: kareha/extras/icons/archive-rar.png
 extracting: kareha/extras/icons/archive-zip.png
 extracting: kareha/extras/icons/audio-aac.png
 extracting: kareha/extras/icons/audio-flac.png
  inflating: kareha/extras/icons/audio-it.png
  inflating: kareha/extras/icons/audio-mo3.png
  inflating: kareha/extras/icons/audio-mod.png
 extracting: kareha/extras/icons/audio-mp3.png
 extracting: kareha/extras/icons/audio-mpc.png
  inflating: kareha/extras/icons/audio-nsf.gif
 extracting: kareha/extras/icons/audio-ogg.png
  inflating: kareha/extras/icons/audio-sid.png
  inflating: kareha/extras/icons/audio-spc.png
  inflating: kareha/extras/icons/audio-xm.png
 extracting: kareha/extras/icons/flash.png
  inflating: kareha/extras/icons/torrent.png
   creating: kareha/extras/old_perl/
  inflating: kareha/extras/old_perl/sjis.pl
   creating: kareha/extras/styles/
   creating: kareha/extras/styles/css/
  inflating: kareha/extras/styles/css/buun.css
  inflating: kareha/extras/styles/css/mercury.css
   creating: kareha/extras/styles/img/
 extracting: kareha/extras/styles/img/ginchan.png
  inflating: kareha/extras/styles/img/greyrose.png
  inflating: kareha/extras/styles/img/greyrose_big.png
  inflating: kareha/extras/styles/img/rose.png
 extracting: kareha/extras/styles/img/rose_big.png
  inflating: kareha/kareha.ico
  inflating: kareha/kareha.js
  inflating: kareha/kareha.pl
   creating: kareha/mode_image/
  inflating: kareha/mode_image/config.pl
  inflating: kareha/mode_image/config_defaults.pl
   creating: kareha/mode_image/css/
  inflating: kareha/mode_image/css/burichan.css
  inflating: kareha/mode_image/css/futaba.css
  inflating: kareha/mode_image/css/gurochan.css
  inflating: kareha/mode_image/css/photon.css
   creating: kareha/mode_image/include/
  inflating: kareha/mode_image/include/footer.html
 extracting: kareha/mode_image/include/header.html
  inflating: kareha/mode_image/include/rules.html
   creating: kareha/mode_image/src/
  inflating: kareha/mode_image/templates.pl
   creating: kareha/mode_image/thumb/
  inflating: kareha/mode_image/zeroconv.pl
   creating: kareha/mode_message/
  inflating: kareha/mode_message/config.pl
  inflating: kareha/mode_message/config_defaults.pl
   creating: kareha/mode_message/css/
  inflating: kareha/mode_message/css/blue_moon.css
  inflating: kareha/mode_message/css/futaba.css
  inflating: kareha/mode_message/css/headline.css
  inflating: kareha/mode_message/css/pseud0ch.css
  inflating: kareha/mode_message/css/toothpaste.css
  inflating: kareha/mode_message/css/VIPPER.css
   creating: kareha/mode_message/img/
 extracting: kareha/mode_message/img/ba.gif
   creating: kareha/mode_message/include/
  inflating: kareha/mode_message/include/footer.html
 extracting: kareha/mode_message/include/header.html
 extracting: kareha/mode_message/include/mid.html
  inflating: kareha/mode_message/include/rules.html
  inflating: kareha/mode_message/templates.pl
  inflating: kareha/mode_message/templates_jp.pl
   creating: kareha/res/
  inflating: kareha/spam.txt
   creating: kareha/src/
   creating: kareha/thumb/
  inflating: kareha/wakautils.pl
Errors in chown occurs if you are using vfat on the USB stick
   . don't Panic!
Generating index page
finished!
Now Edit your kareha settings file to change your ADMIN_PASS and SECRET :
  # vi /opt/piratebox/www/board/config.pl
root@orangepizero:~/piratebox# sudo /opt/piratebox/bin/board-autoconf.sh
/opt/piratebox/bin/board-autoconf.sh: 3: /opt/piratebox/bin/board-autoconf.sh: [[: not found
Imageboard admin password: /opt/piratebox/bin/board-autoconf.sh: 9: read: Illegal option -s

root@orangepizero:~/piratebox# sudo /etc/init.d/piratebox start
Starting initialize PirateBox Part2..
Distribute HEADER.txt into /opt/piratebox/share/Shared
Distribute README.txt into /opt/piratebox/share/Shared
Creating 'content' folder on USB stick and move over stuff
 * Starting script piratebox
Generating hosts file ....
Generating dnsmasq.conf .....
Generating Environment-config for lighttpd .....
Empty tmp folder
rm: cannot remove '/opt/piratebox/tmp/': Is a directory
Copy over directory design files
/opt/piratebox/bin/json_generation.sh: 7: [: yes: unexpected operator
/opt/piratebox/bin/json_generation.sh: 7: [: yes: unexpected operator
Generating json configuration file: /opt/piratebox/www/piratebox_config.json
 * Starting hostap...                                                    [ OK ]
 *   Setting up wlan                                                            Bringing up wifi interface wlan0
wlan0: ERROR while getting interface flags: No such device
..failed
 * failed setting up Interface
As you can see, there were some problems.
I will try yours again later.
Re: Orange Pi?
June 01, 2017 08:31AM
Can you please post the output of

iwconfig
ifconfig -a

btw: good idea to test armbian!



Edited 1 time(s). Last edit at 06/01/2017 08:57AM by Matthias.
MH46§
Re: Orange Pi?
June 01, 2017 09:43PM
It now shows two devices when I connect the Pi to the router one as <orangepizero> like before and one as simply <computer> with two different IPs.
I cant connect to <computer> via ssh, but the other one works.
Your request:
root@orangepizero:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

root@orangepizero:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 8a:13:3c:88:5b:40
          inet addr:192.168.1.112  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2a02:120b:c3fa:f160:7d72:d079:5221:a70/64 Scope:Global
          inet6 addr: 2a02:120b:c3fa:f160:e787:9dcd:80:478/64 Scope:Global
          inet6 addr: fe80::3fab:db4e:720b:6ca1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4444 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3316 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:344941 (344.9 Kcool smiley  TX bytes:250851 (250.8 Kcool smiley

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:27 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2592 (2.5 Kcool smiley  TX bytes:2592 (2.5 Kcool smiley
The wifi antenna worked before in openwrt.
As a sidenote, does the CPU suffer with 53°C, should I cool it?
Re: Orange Pi?
June 02, 2017 06:20AM
This reads like the armbian is missing drivers for the wifi card. It is not recognized.
If you take a look at the Armbian - OrangePi Zero, you will find out that the wifi support is poor (look at the bottom).

Seems that orangePi thingy is really badly supported. :-( Not even armbian is doing well on those boxes. (Just do a google search with "armbian orange pi zero wifi" )


The OpenWrt image was able to detect the wificard because it was specially built, probably with custom drivers added. You can compare the linux images hardly.. It is not like Windows. On Linux everyone is able to compose the distribution like she wants.

best regards Matthias
Re: Orange Pi?
July 06, 2017 09:50AM
Good news
I managed to install and run PB on an Orange Pi Zero 512Mb
I started with an image of ARMBIAN 5.31 stable Ubuntu 16.04.2 LTS 3.4.113-sun8i downloaded from armbian site
Then I did
sudo apt-get update
 sudo apt-get install perl lighttpd dnsmasq hostapd python php-cgi zip avahi-daemon
Note that php5-cgi is not available but php-cgi is

sudo systemctl stop lighttpd
sudo systemctl disable lighttpd
sudo systemctl stop dnsmasq
sudo systemctl disable dnsmasq
sudo systemctl stop hostapd
sudo systemctl disable hostapd
wget  [downloads.piratebox.de]
tar xf piratebox-ws_current.tar.gz
cd piratebox
sudo cp -rv piratebox /opt
sudo ln -s /opt/piratebox/init.d/piratebox /etc/init.d/
sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf part2
sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard
sudo systemctl enable piratebox

now trying to set up AP with the onboard wifi . If it does not succeed I will use a usb dongle



Edited 3 time(s). Last edit at 07/06/2017 10:54AM by m3fisto.
Re: Orange Pi?
August 26, 2017 06:04AM
Any success seting up AP with the onboard wifi?
Re: Orange Pi?
August 31, 2017 11:30AM
No Unfortunately no luck with Opi Zero.I cannot for the love of god get the onboard wifi to work as a WIFI AP.
I am gonna try with a Opi Lite and check .
maurice
Re: Orange Pi?
March 29, 2018 05:15PM
Try Orangepi Zero (h2+) again with the latest armbian version. I used the debian mainline. Had some trouble at first but the armbian hotspot worked and after that I was able to get the piratebox wifi working properly. Its a cute inexpensive board and this is a good application for it. Its much more powerful than the routers. I'm just using a 32gb microsd for storage.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
 **    **   ******    ********  **    **  **     ** 
 ***   **  **    **   **    **  ***   **  **     ** 
 ****  **  **             **    ****  **  **     ** 
 ** ** **  **   ****     **     ** ** **  **     ** 
 **  ****  **    **     **      **  ****   **   **  
 **   ***  **    **     **      **   ***    ** **   
 **    **   ******      **      **    **     ***    
Message: