Development Cycle for PirateBox 1.1

Posted by TheExpertNoob 
Development Cycle for PirateBox 1.1
June 15, 2016 06:22PM
Raspberry Pi images:

For Raspberry Pi 1 and Raspberry Pi Zero, use this image:
Language: HTML
magnet:?xt=urn:btih:1286060defdce630fe6cd411fe63fd0d831d59c2&dn=piratebox_rpi_1.1.0_devBuild-15-06-2016.zip&tr=udp%3a%2f%2ftracker.piratebox.cc%3a7070&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969

For Raspberry Pi 2 and Raspberry Pi 3, use this image:
Language: HTML
magnet:?xt=urn:btih:5a187792d27ffdf03a18381e6a4a9e543456f06b&dn=piratebox_rpi2_1.1.0_devBuild-15-06-2016.zip&tr=udp%3a%2f%2ftracker.piratebox.cc%3a7070&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969

For OpenWrt:
Beta images can be found on: http://beta.openwrt.piratebox.de/auto/.
The normal Upgrade Tutorial applies.

Image Testing Checklist
If you are part of the testing team, this Checklist is for you.

For RaspberryPi

Download the image, dump it to SD card, connect your PirateBox to the same network the computer you are testing from is connected to and then go through the checklist step by step to make sure everything is working as it should. Before going through the checklist, make sure your USB WiFi is attached and is one of the supported types. Also make sure you have a FAT32 formatted USB thumb drive attached to your RPi.

For OpenWrt

Download the corresponding install_piratebox.zip and .bin file for your device. If you have already a PirateBox running, follow the upgrade instructions. If you install your Software on a fresh device, follow the installation howto Make sure you PirateBox stopped flashing (indicating the installation is running). On PirateBox 1.1.0 the installation happens in multiple interations.

Checklist

(Skip sections which are not valid for your architecture).

Initial configuration setup
    [*] PirateBox' WiFi is available
    [*] Connection to PirateBox' WiFi could be established
    [*] RPi only SSH connection to PirateBox with the username alarm and the password alarm could be established
    [*] RPi only Message of the day containing information about First Steps is displayed correctly
    [*] RPi only Change the password for the alarm user, log out and log back in
    [*] RPi only Enable USB share
    [*] Set some date and enable Fake-timeservice
    [*] Enable Kareha Image and Discussion Board
    [*] Enable UPnP media server (minidlna)
    [*] It is possible to post to the chat
    [*] It is possible to upload files
    [*] It is possible to post to the board
    [*] Reboot
    [*] PirateBox' WiFi is available
    [*] Connection to PirateBox' WiFi could be established
    [*] Date matches the set date from the Fake-timeservice

Functional tests

UI in General
    [*] UI looks proper, no ugly overlapping
    [*] UI is responsive on small browser size; is adjusts the look
    [*] Every URL is working, on main screen
    [*] Title URLs to mainscreen and Forum are working in Directory-Listing

ImageBoard
    [*] It is possible to post new threads
    [*] These threads can be answered on
    [*] When I come back later to the imageboard and post a reply, the post order is correct.
    [*] I can upload files (<5Mcool smiley to the posts as well

Shoutbox
    [*] Different color work in Shoutbox , Username can be changed
    [*] Posting URLs or other HTML like special characters do not break Shoutbox

Upload
    [*] Upload of different filetypes works
    [*] Multiple files can be uploaded
    [*] The messages inside the upload box are in english or my language
    [*] Special characters are correctly uploaded
    [*] It is not possible to upload a file named index.html

Directory Listing
    [*] Download of files is possible
    [*] Directory listing reacts responsive on screen size changes
    [*] Created folders are accessiable (UI is deployed after reboot)
    [*] URLs to mainpage and forum in subfolder work
    [*] Special character files uploaded via upload functionality work

UPNP Server
    [*] Streaming of MP3 works via an UPNP client
    [*] It is possible to stream videos via UPNP

IRC Server
    [*] Is started after activation in piratebox.conf
    [*] With an IRC client, the IRC server is usable
    [*] New channels can be created

Customization
    [*] Changes on the folder "content" on the USB Stick (valid for OpenWrt and RPI with USB Storage mod) are visible on the browser
    [*] PHP was sucessfully enabled in lighttpd.conf and fastcgi processes are visible in "ps"
    [*] My custom PHP script is working in /content folder
    [*] Deleting the content folder creates a new folder after a reboot
    [*] It is possible to change the visible hostname of piratebox using the install_piratebox.sh script

Enhanced Network Configuration
    [*] Clients with static DNS Server entries work while being connected to PirateBox (PirateBox interferes here)
    [*] One Client can not ping or connect to another Client (directly via wifi)


PirateBox Installs:
2x Zsun's (both testing, one with serial interface)
A5-V11 (mostly for OpenWRT testing DIY)
2x RPi Zero's
(one active in car 24/7, gets a lot of hits at Walmart, movie theaters and the mall)
2x RPi3's (both home servers, one Ubuntu custom install along side a ton of other services)
1x RPi2 (currently work server)



Edited 3 time(s). Last edit at 06/15/2016 08:46PM by TheExpertNoob.
Re: Development Cycle for PirateBox 1.1
June 15, 2016 08:10PM
Added openwrt links to the opening thread
Re: Development Cycle for PirateBox 1.1
June 15, 2016 08:20PM
What I have managed to test initially. Done for the day.

Tested Raspberry Pi 1 B+ with 2Gb SanDisk Cruzier & 8129cu wifi

Initial configuration setup
[Y] PirateBox' WiFi is available
[Y] Connection to PirateBox' WiFi could be established
[Y] RPi only SSH connection to PirateBox with the username alarm and the password alarm could be established
[N] RPi only Message of the day containing information about First Steps is displayed correctly
Version Numbers need changing (github updated as of this writing)
[Y] RPi only Change the password for the alarm user, log out and log back in
[?] RPi only Enable USB share
Ran script with USB installed. Lost connection to SSID. No longer broadcasts.
upon reconnecting /opt/piratebox/share/share -> /mnt/usbshare/share
should be: /opt/piratebox/share -> /mnt/usbshare/share
/mnt/usbshare/ lists nothing. (no share directory)
[Y] Set some date and enable Fake-timeservice
[Y] Enable Kareha Image and Discussion Board
[Y] Enable UPnP media server (minidlna)
[Y] It is possible to post to the chat
[Y] It is possible to upload files
[Y] It is possible to post to the board
[Y] Reboot
[Y] PirateBox' WiFi is available
[Y] Connection to PirateBox' WiFi could be established
[?] Date matches the set date from the Fake-timeservice
Hmm... I set it to May 23rd 2017 17:42
upon reboot and 'date' Feb 22 2016 14:41
running commands again after a reboot worked.

Functional tests

UI in General
[N] UI looks proper, no ugly overlapping
iframe for droopy has a scroll bar in chrome
PB logo has scrollbars in IE
[Y] UI is responsive on small browser size; is adjusts the look
[Y] Every URL is working, on main screen
[Y] Title URLs to mainscreen and Forum are working in Directory-Listing

ImageBoard
[Y] It is possible to post new threads
[Y] These threads can be answered on
[Y] When I come back later to the imageboard and post a reply, the post order is correct.
Timesave error does not seem to affect this. I guess it uses a post count?
[Y] I can upload files (<5Mcool smiley to the posts as well

Shoutbox
[Y] Different color work in Shoutbox , Username can be changed
[Y] Posting URLs or other HTML like special characters do not break Shoutbox
I only tested a url. didnt test code injection.

Upload
[Y] Upload of different filetypes works
[Y] Multiple files can be uploaded
[Y] The messages inside the upload box are in english or my language
[*] Special characters are correctly uploaded
[Y] It is not possible to upload a file named index.html

Directory Listing
[Y] Download of files is possible
[Y] Directory listing reacts responsive on screen size changes
[Y] Created folders are accessiable (UI is deployed after reboot)
[Y] URLs to mainpage and forum in subfolder work
[*] Special character files uploaded via upload functionality work

UPNP Server
[*] Streaming of MP3 works via an UPNP client
[*] It is possible to stream videos via UPNP

IRC Server
[*] Is started after activation in piratebox.conf
[*] With an IRC client, the IRC server is usable
[*] New channels can be created

Customization
[*] Changes on the folder "content" on the USB Stick (valid for OpenWrt and RPI with USB Storage mod) are visible on the browser
[*] PHP was sucessfully enabled in lighttpd.conf and fastcgi processes are visible in "ps"
[*] My custom PHP script is working in /content folder
[*] Deleting the content folder creates a new folder after a reboot
[*] It is possible to change the visible hostname of piratebox using the install_piratebox.sh script

Enhanced Network Configuration
[*] Clients with static DNS Server entries work while being connected to PirateBox (PirateBox interferes here)
[*] One Client can not ping or connect to another Client (directly via wifi)

EDIT: I keep having random drop-outs of the wifi. Could be a power issue? Switching to Pi Zero for next test.


PirateBox Installs:
2x Zsun's (both testing, one with serial interface)
A5-V11 (mostly for OpenWRT testing DIY)
2x RPi Zero's
(one active in car 24/7, gets a lot of hits at Walmart, movie theaters and the mall)
2x RPi3's (both home servers, one Ubuntu custom install along side a ton of other services)
1x RPi2 (currently work server)



Edited 3 time(s). Last edit at 06/16/2016 12:16AM by TheExpertNoob.
Re: Development Cycle for PirateBox 1.1
June 16, 2016 01:19AM
Tested Raspberry Pi Zero 64Gb SD card only (no usb hub)
Extended image to entire sd card in Lubutu with Gparted

Initial configuration setup
[Y] PirateBox' WiFi is available
[Y] Connection to PirateBox' WiFi could be established
[Y] RPi only SSH connection to PirateBox with the username alarm and the password alarm could be established
[N] RPi only Message of the day containing information about First Steps is displayed correctly
Version Numbers need changing (github updated as of this writing)
[Y] RPi only Change the password for the alarm user, log out and log back in
[N/A] RPi only Enable USB share
[Y] Set some date and enable Fake-timeservice
[Y] Enable Kareha Image and Discussion Board
[Y] Enable UPnP media server (minidlna)
[Y] It is possible to post to the chat
[Y] It is possible to upload files
[Y] It is possible to post to the board
[Y] Reboot
[Y] PirateBox' WiFi is available
[Y] Connection to PirateBox' WiFi could be established
[Y] Date matches the set date from the Fake-timeservice

Functional tests

UI in General
[N] UI looks proper, no ugly overlapping
----Same as previous
[Y] UI is responsive on small browser size; is adjusts the look
[Y] Every URL is working, on main screen
[Y] Title URLs to mainscreen and Forum are working in Directory-Listing

ImageBoard
[Y] It is possible to post new threads
[Y] These threads can be answered on
[Y] When I come back later to the imageboard and post a reply, the post order is correct.
[Y] I can upload files (<5Mcool smiley to the posts as well

Shoutbox
[Y] Different color work in Shoutbox , Username can be changed
[Y] Posting URLs or other HTML like special characters do not break Shoutbox

Upload
[Y] Upload of different filetypes works
[Y] Multiple files can be uploaded
[Y] The messages inside the upload box are in english or my language
[*] Special characters are correctly uploaded
[Y] It is not possible to upload a file named index.html

Directory Listing
[Y] Download of files is possible
[Y] Directory listing reacts responsive on screen size changes
[Y] Created folders are accessiable (UI is deployed after reboot)
----However Folders have to be created with sudo making them owned by root.
----Should be owned by nobody:nogroup
----N/A if share is moved to a fat32 drive (always 777)
[y] URLs to mainpage and forum in subfolder work
[*] Special character files uploaded via upload functionality work

UPNP Server
[Y] Streaming of MP3 works via an UPNP client
[Y] It is possible to stream videos via UPNP

IRC Server
[Y] Is started after activation in piratebox.conf
[Y] With an IRC client, the IRC server is usable
[Y] New channels can be created

Customization
[N/A] Changes on the folder "content" on the USB Stick (valid for OpenWrt and RPI with USB Storage mod) are visible on the browser
[Y] PHP was sucessfully enabled in lighttpd.conf and fastcgi processes are visible in "ps"
[Y] My custom PHP script is working in /content folder
----phpinfo() works anyway
[Y] Deleting the content folder creates a new folder after a reboot
[Y] It is possible to change the visible hostname of piratebox using the install_piratebox.sh script
----Requires to change /opt/piratebox/www/index.html
----Requires to change /opt/piratebox/share/content/index.html

Enhanced Network Configuration
[Y] Clients with static DNS Server entries work while being connected to PirateBox (PirateBox interferes here)
[N] One Client can not ping or connect to another Client (directly via wifi)
----I was able to ping my phone and another notebook both connected wirelessly to the piZero with my PC.


PirateBox Installs:
2x Zsun's (both testing, one with serial interface)
A5-V11 (mostly for OpenWRT testing DIY)
2x RPi Zero's
(one active in car 24/7, gets a lot of hits at Walmart, movie theaters and the mall)
2x RPi3's (both home servers, one Ubuntu custom install along side a ton of other services)
1x RPi2 (currently work server)
Tool for teaching
August 06, 2016 06:19PM
I just installed PirateBox 1.1. I thought, in this build it would be easier to customize the appearence. I would like to use the piratebox for education purpose. For this i have to change the "skin" of the piratebox. Is there an easier way to do this?
Thank you for your help.
Re: Tool for teaching
August 07, 2016 03:06AM
Anouso Wrote:
-------------------------------------------------------
> I just installed PirateBox 1.1. I thought, in this
> build it would be easier to customize the
> appearence. I would like to use the piratebox for
> education purpose. For this i have to change the
> "skin" of the piratebox. Is there an easier way to
> do this?
> Thank you for your help.

Yes. The web files are now installed on the usb drive for easier editing on a PC. It Still requires you to know html, css, and other web languages.

However, I believe the script may be bugged in the test release. A few other bugs. We're working on those.


PirateBox Installs:
2x Zsun's (both testing, one with serial interface)
A5-V11 (mostly for OpenWRT testing DIY)
2x RPi Zero's
(one active in car 24/7, gets a lot of hits at Walmart, movie theaters and the mall)
2x RPi3's (both home servers, one Ubuntu custom install along side a ton of other services)
1x RPi2 (currently work server)



Edited 1 time(s). Last edit at 08/07/2016 03:08AM by TheExpertNoob.
Re: Development Cycle for PirateBox 1.1
September 24, 2016 07:27AM
Running 1.1.0 on a Pi 3 from fresh install. I'm able to connect via ethernet and complete the post install tasks and the SSID is showing up in my connections list, but I can't connect - it times out after a minute or so.

Edit: Just tested the Zero compatible image and the same thing is happening. This previously had the stable version with the same USB adapter working fine.

I've tested multiple devices, but they all get the same. Checking the connection logs on OSX, I'm seeing the below. This is the same with the onboard Wi-Fi and plugging in a compatible USB adapter as well.

I've N/A'd a bunch of stuff on the check list as I can't confirm without being able to connect.

23/09/2016 05:28:58.000 kernel[0]: Got incomplete channel sequence length 0, should be 16
23/09/2016 05:28:58.000 kernel[0]: Got incomplete channel sequence length 0, should be 16
23/09/2016 05:28:58.000 kernel[0]: en1: channel changed to 1
23/09/2016 05:28:58.000 kernel[0]: en1::IO80211Interface::postMessage bssid changed
23/09/2016 05:28:58.776 symptomsd[206]: -[NetworkAnalyticsEngine _writeJournalRecord:fromCellFingerprint:key:atLOIyawning smileyfKind:lqm:isFaulty:] Hashing of the primary key failed. Dropping the journal record.
23/09/2016 05:28:58.000 kernel[0]: MacAuthEvent en1   Auth result for: $MACADDR  MAC AUTH succeeded
23/09/2016 05:28:58.000 kernel[0]: Google Chrome He[71603] triggered unnest of range 0x7fff93200000->0x7fff93400000 of DYLD shared region in VM map 0x92420b12679a0fd3. While not abnormal for debuggers, this increases system memory footprint until the target exits.
23/09/2016 05:28:58.000 kernel[0]: wlEvent: en1 en1 Link UP virtIf = 0
23/09/2016 05:28:58.000 kernel[0]: AirPort: Link Up on en1
23/09/2016 05:28:58.000 kernel[0]: Got incomplete channel sequence length 0, should be 16
23/09/2016 05:28:58.000 kernel[0]: en1: BSSID changed to $MACADDR
23/09/2016 05:28:58.000 kernel[0]: en1: channel changed to 1
23/09/2016 05:28:58.000 kernel[0]: en1::IO80211Interface::postMessage bssid changed
23/09/2016 05:28:58.860 configd[48]: LINKLOCAL en1: parent has no IP
23/09/2016 05:28:58.877 UserEventAgent[39]: Captive: CNPluginHandler en1: Inactive
23/09/2016 05:28:58.878 configd[48]: network changed: v4(en1-:192.168.0.12) v6(en1-:fdbc:6add:df8::e2f8:47ff:fe1c:7b26) DNS- Proxy-
23/09/2016 05:28:58.905 symptomsd[206]: -[NetworkAnalyticsEngine _writeJournalRecord:fromCellFingerprint:key:atLOIyawning smileyfKind:lqm:isFaulty:] Hashing of the primary key failed. Dropping the journal record.
23/09/2016 05:28:58.000 kernel[0]: Unexpected payload found for message 9, dataLen 0
23/09/2016 05:28:59.266 symptomsd[206]: -[NetworkAnalyticsEngine _writeJournalRecord:fromCellFingerprint:key:atLOIyawning smileyfKind:lqm:isFaulty:] Hashing of the primary key failed. Dropping the journal record.
23/09/2016 05:28:59.270 cdpd[926]: Saw change in network reachability (isReachable=0)
23/09/2016 05:28:59.288 symptomsd[206]: __73-[NetworkAnalyticsEngine observeValueForKeyPathyawning smileyfObject:change:context:]_block_invoke unexpected switch value 2
23/09/2016 05:28:59.294 netbiosd[71591]: network_reachability_changed : network is not reachable, netbiosd is shutting down

Checklist

Initial configuration setup
[Y] PirateBox' WiFi is available
[N] Connection to PirateBox' WiFi could be established
[Y] RPi only SSH connection to PirateBox with the username alarm and the password alarm could be established
[Y] RPi only Message of the day containing information about First Steps is displayed correctly
[Y] RPi only Change the password for the alarm user, log out and log back in
[Y] RPi only Enable USB share
[Y] Set some date and enable Fake-timeservice
[Y] Enable Kareha Image and Discussion Board
[Y] Enable UPnP media server (minidlna)
[N/A] It is possible to post to the chat
[N/A] It is possible to upload files
[N/A] It is possible to post to the board
[Y] Reboot
[Y] PirateBox' WiFi is available
[N] Connection to PirateBox' WiFi could be established
[Y] Date matches the set date from the Fake-timeservice

Functional tests

UI in General
[N/A] UI looks proper, no ugly overlapping
[N/A] UI is responsive on small browser size; is adjusts the look
[N/A] Every URL is working, on main screen
[N/A] Title URLs to mainscreen and Forum are working in Directory-Listing

ImageBoard
[N/A] It is possible to post new threads
[N/A] These threads can be answered on
[N/A] When I come back later to the imageboard and post a reply, the post order is correct.
[N/A] I can upload files (<5Mcool smiley to the posts as well

Shoutbox
[N/A] Different color work in Shoutbox , Username can be changed
[N/A] Posting URLs or other HTML like special characters do not break Shoutbox

Upload
[N/A] Upload of different filetypes works
[N/A] Multiple files can be uploaded
[N/A] The messages inside the upload box are in english or my language
[N/A] Special characters are correctly uploaded
[N/A] It is not possible to upload a file named index.html

Directory Listing
[N/A] Download of files is possible
[N/A] Directory listing reacts responsive on screen size changes
[N/A] Created folders are accessiable (UI is deployed after reboot)
[N/A] URLs to mainpage and forum in subfolder work
[N/A] Special character files uploaded via upload functionality work

UPNP Server
[N/A] Streaming of MP3 works via an UPNP client
[N/A] It is possible to stream videos via UPNP

IRC Server
[N/A] Is started after activation in piratebox.conf
[N/A] With an IRC client, the IRC server is usable
[N/A] New channels can be created

Customization
[N/A] Changes on the folder "content" on the USB Stick (valid for OpenWrt and RPI with USB Storage mod) are visible on the browser
[Y] PHP was sucessfully enabled in lighttpd.conf and fastcgi processes are visible in "ps"
[N/A] My custom PHP script is working in /content folder
[N/A] Deleting the content folder creates a new folder after a reboot
[Y] It is possible to change the visible hostname of piratebox using the install_piratebox.sh script

Enhanced Network Configuration
[*] Clients with static DNS Server entries work while being connected to PirateBox (PirateBox interferes here)
[*] One Client can not ping or connect to another Client (directly via wifi)



Edited 1 time(s). Last edit at 09/24/2016 11:12AM by Torx.
Re: Development Cycle for PirateBox 1.1
September 26, 2016 10:01AM
wow, thank you for you detailed feedback.
I'll review the image today or tomorrow and push out an updated version.
Re: Development Cycle for PirateBox 1.1
September 26, 2016 09:09PM
I found the issue about the not working RPi image.

[alarm@alarmpi ~]$ sudo netstat -l -p
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.53:domain       0.0.0.0:*               LISTEN      228/systemd-resolve 
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN      220/sshd            
tcp        0      0 0.0.0.0:llmnr           0.0.0.0:*               LISTEN      228/systemd-resolve 
tcp        0      0 0.0.0.0:www-http        0.0.0.0:*               LISTEN      5569/lighttpd       
tcp        0      0 0.0.0.0:http-alt        0.0.0.0:*               LISTEN      5511/python         
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      220/sshd            
tcp6       0      0 [::]:llmnr              [::]:*                  LISTEN      228/systemd-resolve 
tcp6       0      0 [::]:www-http           [::]:*                  LISTEN      5569/lighttpd       
udp        0      0 0.0.0.0:llmnr           0.0.0.0:*                           228/systemd-resolve 
udp        0      0 127.0.0.53:domain       0.0.0.0:*                           228/systemd-resolve 
udp        0      0 alarmpi.fritz.bo:bootpc 0.0.0.0:*                           191/systemd-network 
udp6       0      0 [::]:llmnr              [::]:*                              228/systemd-resolve 
udp6       0      0 alarmpi:dhcpv6-client   [::]:*                              191/systemd-network 
raw6       0      0 [::]:ipv6-icmp          [::]:*                  7           191/systemd-network 
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name     Path
unix  2      [ ACC ]     SEQPACKET  LISTENING     7174     1/init               /run/systemd/coredump
unix  2      [ ACC ]     STREAM     LISTENING     17514    5570/php-cgi         /tmp/php.socket-0
unix  2      [ ACC ]     STREAM     LISTENING     6770     1/init               /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     6777     1/init               /run/systemd/journal/stdout
unix  2      [ ACC ]     SEQPACKET  LISTENING     6788     1/init               /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     6791     1/init               /run/lvm/lvmetad.socket
unix  2      [ ACC ]     STREAM     LISTENING     8087     1/init               /run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     14006    2478/systemd         /run/user/1000/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     14012    2478/systemd         /run/user/1000/bus
[alarm@alarmpi ~]$ sudo systemctl status  
* alarmpi
    State: starting
     Jobs: 1 queued
   Failed: 1 units
    Since: Thu 1970-01-01 00:00:05 UTC; 46 years 8 months ago
   CGroup: /
           |-init.scope
           | `-1 /sbin/init
           |-system.slice
           | |-dbus.service
           | | `-189 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
           | |-system-serial\x2dgetty.slice
           | | `-serial-getty@ttyAMA0.service
           | |   `-237 /sbin/agetty --keep-baud 115200,38400,9600 ttyAMA0 vt220
           | |-systemd-journald.service
           | | `-136 /usr/lib/systemd/systemd-journald
           | |-systemd-resolved.service
           | | `-228 /usr/lib/systemd/systemd-resolved
           | |-systemd-timesyncd.service
           | | `-178 /usr/lib/systemd/systemd-timesyncd
           | |-systemd-logind.service
           | | `-193 /usr/lib/systemd/systemd-logind
           | |-systemd-networkd.service
           | | `-191 /usr/lib/systemd/systemd-networkd
           | |-system-getty.slice
           | | `-getty@tty1.service
           | |   `-232 /sbin/agetty --noclear tty1 linux
           | |-sshd.service
           | | `-220 /usr/bin/sshd -D
           | |-piratebox.service
           | | |-5467 /usr/sbin/hostapd /opt/piratebox/conf/hostapd.conf
           | | |-5511 python /opt/piratebox/bin/droopy -d /opt/piratebox/share/Shared -m --chmod 755 8080
           | | |-5569 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf
           | | |-5570 /usr/bin/php-cgi
           | | `-5580 /usr/bin/php-cgi
           | |-systemd-udevd.service
           | | `-167 /usr/lib/systemd/systemd-udevd
           | |-haveged.service
           | | `-195 /usr/bin/haveged -F -w 1024 -v 1
           | `-man-db.service
           |   |-  208 /usr/bin/mandb
           |   `-11925 /usr/bin/mandb
           `-user.slice
             `-user-1000.slice
               |-user@1000.service
               | `-init.scope

DNSmasq is not starting, because on the new images, systemd has its own resolve-daemon. This blocks the DNS port and makes dnsmasq impossible to start.



sudo systemctl stop systemd-resolved.service 
sudo systemctl disable systemd-resolved.service 
sudo systemctl restart piratebox

AFTER

[alarm@alarmpi ~]$ sudo netstat -l -p
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:domain          0.0.0.0:*               LISTEN      14264/dnsmasq       
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN      220/sshd            
tcp        0      0 0.0.0.0:www-http        0.0.0.0:*               LISTEN      14321/lighttpd      
tcp        0      0 0.0.0.0:http-alt        0.0.0.0:*               LISTEN      14284/python        
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      14264/dnsmasq       
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      220/sshd            
tcp6       0      0 [::]:www-http           [::]:*                  LISTEN      14321/lighttpd      
udp        0      0 0.0.0.0:domain          0.0.0.0:*                           14264/dnsmasq       
udp        0      0 0.0.0.0:bootps          0.0.0.0:*                           14264/dnsmasq       
udp        0      0 alarmpi.fritz.bo:bootpc 0.0.0.0:*                           191/systemd-network 
udp6       0      0 alarmpi:dhcpv6-client   [::]:*                              191/systemd-network 
udp6       0      0 [::]:domain             [::]:*                              14264/dnsmasq       
raw6       0      0 [::]:ipv6-icmp          [::]:*                  7           191/systemd-network 
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name     Path
unix  2      [ ACC ]     SEQPACKET  LISTENING     7174     1/init               /run/systemd/coredump
unix  2      [ ACC ]     STREAM     LISTENING     27413    14322/php-cgi        /tmp/php.socket-0
unix  2      [ ACC ]     STREAM     LISTENING     6770     1/init               /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     6777     1/init               /run/systemd/journal/stdout
unix  2      [ ACC ]     SEQPACKET  LISTENING     6788     1/init               /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     6791     1/init               /run/lvm/lvmetad.socket
unix  2      [ ACC ]     STREAM     LISTENING     8087     1/init               /run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     14006    2478/systemd         /run/user/1000/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     14012    2478/systemd         /run/user/1000/bus
[alarm@alarmpi ~]$ sudo systemctl status
* alarmpi
    State: starting
     Jobs: 1 queued
   Failed: 1 units
    Since: Thu 1970-01-01 00:00:05 UTC; 46 years 8 months ago
   CGroup: /
           |-init.scope
           | `-1 /sbin/init
           |-system.slice
           | |-dbus.service
           | | `-189 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
           | |-system-serial\x2dgetty.slice
           | | `-serial-getty@ttyAMA0.service
           | |   `-237 /sbin/agetty --keep-baud 115200,38400,9600 ttyAMA0 vt220
           | |-systemd-journald.service
           | | `-136 /usr/lib/systemd/systemd-journald
           | |-systemd-timesyncd.service
           | | `-178 /usr/lib/systemd/systemd-timesyncd
           | |-systemd-logind.service
           | | `-193 /usr/lib/systemd/systemd-logind
           | |-systemd-networkd.service
           | | `-191 /usr/lib/systemd/systemd-networkd
           | |-system-getty.slice
           | | `-getty@tty1.service
           | |   `-232 /sbin/agetty --noclear tty1 linux
           | |-sshd.service
           | | `-220 /usr/bin/sshd -D
           | |-piratebox.service
           | | |-14238 /usr/sbin/hostapd /opt/piratebox/conf/hostapd.conf
           | | |-14264 /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/piratebox/conf/dnsmasq_generated.conf
           | | |-14284 python /opt/piratebox/bin/droopy -d /opt/piratebox/share/Shared -m --chmod 755 8080
           | | |-14321 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf
           | | |-14322 /usr/bin/php-cgi
           | | `-14327 /usr/bin/php-cgi
           | |-systemd-udevd.service
           | | `-167 /usr/lib/systemd/systemd-udevd
           | |-haveged.service
           | | `-195 /usr/bin/haveged -F -w 1024 -v 1
           | `-man-db.service
           |   |-  208 /usr/bin/mandb
           |   `-21169 /usr/bin/mandb
           `-user.slice
             `-user-1000.slice
               |-user@1000.service
               | `-init.scope
               |   |-2478 /usr/lib/systemd/systemd --user

Well, I'll add those commands to the RPi build



Edited 1 time(s). Last edit at 09/26/2016 09:11PM by Matthias.
Re: Development Cycle for PirateBox 1.1
September 26, 2016 09:51PM
Matthias Wrote:
-------------------------------------------------------
> I found the issue about the not working RPi
> image.
>
>
> $ sudo netstat -l -p
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address
> Foreign Address State PID/Program
> name
> tcp 0 0 127.0.0.53:domain
> 0.0.0.0:* LISTEN
> 228/systemd-resolve
> tcp 0 0 0.0.0.0:ssh
> 0.0.0.0:* LISTEN 220/sshd
>
> tcp 0 0 0.0.0.0:llmnr
> 0.0.0.0:* LISTEN
> 228/systemd-resolve
> tcp 0 0 0.0.0.0:www-http
> 0.0.0.0:* LISTEN 5569/lighttpd
>
> tcp 0 0 0.0.0.0:http-alt
> 0.0.0.0:* LISTEN 5511/python
>
> tcp6 0 0 [::]:ssh [::]:*
> LISTEN 220/sshd
> tcp6 0 0 [::]:llmnr [::]:*
> LISTEN 228/systemd-resolve
> tcp6 0 0 [::]:www-http [::]:*
> LISTEN 5569/lighttpd
> udp 0 0 0.0.0.0:llmnr
> 0.0.0.0:*
> 228/systemd-resolve
> udp 0 0 127.0.0.53:domain
> 0.0.0.0:*
> 228/systemd-resolve
> udp 0 0 alarmpi.fritz.bo:bootpc
> 0.0.0.0:*
> 191/systemd-network
> udp6 0 0 [::]:llmnr [::]:*
> 228/systemd-resolve
> udp6 0 0 alarmpi:dhcpv6-client [::]:*
> 191/systemd-network
> raw6 0 0 [::]:ipv6-icmp [::]:*
> 7 191/systemd-network
> Active UNIX domain sockets (only servers)
> Proto RefCnt Flags Type State
> I-Node PID/Program name Path
> unix 2 [ ACC ] SEQPACKET LISTENING
> 7174 1/init
> /run/systemd/coredump
> unix 2 [ ACC ] STREAM LISTENING
> 17514 5570/php-cgi /tmp/php.socket-0
> unix 2 [ ACC ] STREAM LISTENING
> 6770 1/init
> /run/systemd/private
> unix 2 [ ACC ] STREAM LISTENING
> 6777 1/init
> /run/systemd/journal/stdout
> unix 2 [ ACC ] SEQPACKET LISTENING
> 6788 1/init /run/udev/control
> unix 2 [ ACC ] STREAM LISTENING
> 6791 1/init
> /run/lvm/lvmetad.socket
> unix 2 [ ACC ] STREAM LISTENING
> 8087 1/init
> /run/dbus/system_bus_socket
> unix 2 [ ACC ] STREAM LISTENING
> 14006 2478/systemd
> /run/user/1000/systemd/private
> unix 2 [ ACC ] STREAM LISTENING
> 14012 2478/systemd /run/user/1000/bus
> $ sudo systemctl status
> * alarmpi
> State: starting
> Jobs: 1 queued
> Failed: 1 units
> Since: Thu 1970-01-01 00:00:05 UTC; 46 years 8
> months ago
> CGroup: /
> |-init.scope
> | `-1 /sbin/init
> |-system.slice
> | |-dbus.service
> | | `-189 /usr/bin/dbus-daemon --system
> --address=systemd: --nofork --nopidfile
> --systemd-activation
> | |-system-serial\x2dgetty.slice
> | | `-serial-getty@ttyAMA0.service
> | | `-237 /sbin/agetty --keep-baud
> 115200,38400,9600 ttyAMA0 vt220
> | |-systemd-journald.service
> | | `-136
> /usr/lib/systemd/systemd-journald
> | |-systemd-resolved.service
> | | `-228
> /usr/lib/systemd/systemd-resolved
> | |-systemd-timesyncd.service
> | | `-178
> /usr/lib/systemd/systemd-timesyncd
> | |-systemd-logind.service
> | | `-193
> /usr/lib/systemd/systemd-logind
> | |-systemd-networkd.service
> | | `-191
> /usr/lib/systemd/systemd-networkd
> | |-system-getty.slice
> | | `-getty@tty1.service
> | | `-232 /sbin/agetty --noclear tty1
> linux
> | |-sshd.service
> | | `-220 /usr/bin/sshd -D
> | |-piratebox.service
> | | |-5467 /usr/sbin/hostapd
> /opt/piratebox/conf/hostapd.conf
> | | |-5511 python
> /opt/piratebox/bin/droopy -d
> /opt/piratebox/share/Shared -m --chmod 755 8080
> | | |-5569 /usr/sbin/lighttpd -f
> /opt/piratebox/conf/lighttpd/lighttpd.conf
> | | |-5570 /usr/bin/php-cgi
> | | `-5580 /usr/bin/php-cgi
> | |-systemd-udevd.service
> | | `-167
> /usr/lib/systemd/systemd-udevd
> | |-haveged.service
> | | `-195 /usr/bin/haveged -F -w 1024
> -v 1
> | `-man-db.service
> | |- 208 /usr/bin/mandb
> | `-11925 /usr/bin/mandb
> `-user.slice
> `-user-1000.slice
> |-user@1000.service
> | `-init.scope
>
>
> DNSmasq is not starting, because on the new
> images, systemd has its own resolve-daemon. This
> blocks the DNS port and makes dnsmasq impossible
> to start.
>
>
>
>
> sudo systemctl stop systemd-resolved.service
> sudo systemctl disable systemd-resolved.service
> sudo systemctl restart piratebox
>
>
> AFTER
>
>
> $ sudo netstat -l -p
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address
> Foreign Address State PID/Program
> name
> tcp 0 0 0.0.0.0:domain
> 0.0.0.0:* LISTEN 14264/dnsmasq
>
> tcp 0 0 0.0.0.0:ssh
> 0.0.0.0:* LISTEN 220/sshd
>
> tcp 0 0 0.0.0.0:www-http
> 0.0.0.0:* LISTEN 14321/lighttpd
>
> tcp 0 0 0.0.0.0:http-alt
> 0.0.0.0:* LISTEN 14284/python
>
> tcp6 0 0 [::]:domain [::]:*
> LISTEN 14264/dnsmasq
> tcp6 0 0 [::]:ssh [::]:*
> LISTEN 220/sshd
> tcp6 0 0 [::]:www-http [::]:*
> LISTEN 14321/lighttpd
> udp 0 0 0.0.0.0:domain
> 0.0.0.0:* 14264/dnsmasq
>
> udp 0 0 0.0.0.0:bootps
> 0.0.0.0:* 14264/dnsmasq
>
> udp 0 0 alarmpi.fritz.bo:bootpc
> 0.0.0.0:*
> 191/systemd-network
> udp6 0 0 alarmpi:dhcpv6-client [::]:*
> 191/systemd-network
> udp6 0 0 [::]:domain [::]:*
> 14264/dnsmasq
> raw6 0 0 [::]:ipv6-icmp [::]:*
> 7 191/systemd-network
> Active UNIX domain sockets (only servers)
> Proto RefCnt Flags Type State
> I-Node PID/Program name Path
> unix 2 [ ACC ] SEQPACKET LISTENING
> 7174 1/init
> /run/systemd/coredump
> unix 2 [ ACC ] STREAM LISTENING
> 27413 14322/php-cgi /tmp/php.socket-0
> unix 2 [ ACC ] STREAM LISTENING
> 6770 1/init
> /run/systemd/private
> unix 2 [ ACC ] STREAM LISTENING
> 6777 1/init
> /run/systemd/journal/stdout
> unix 2 [ ACC ] SEQPACKET LISTENING
> 6788 1/init /run/udev/control
> unix 2 [ ACC ] STREAM LISTENING
> 6791 1/init
> /run/lvm/lvmetad.socket
> unix 2 [ ACC ] STREAM LISTENING
> 8087 1/init
> /run/dbus/system_bus_socket
> unix 2 [ ACC ] STREAM LISTENING
> 14006 2478/systemd
> /run/user/1000/systemd/private
> unix 2 [ ACC ] STREAM LISTENING
> 14012 2478/systemd /run/user/1000/bus
> $ sudo systemctl status
> * alarmpi
> State: starting
> Jobs: 1 queued
> Failed: 1 units
> Since: Thu 1970-01-01 00:00:05 UTC; 46 years 8
> months ago
> CGroup: /
> |-init.scope
> | `-1 /sbin/init
> |-system.slice
> | |-dbus.service
> | | `-189 /usr/bin/dbus-daemon --system
> --address=systemd: --nofork --nopidfile
> --systemd-activation
> | |-system-serial\x2dgetty.slice
> | | `-serial-getty@ttyAMA0.service
> | | `-237 /sbin/agetty --keep-baud
> 115200,38400,9600 ttyAMA0 vt220
> | |-systemd-journald.service
> | | `-136
> /usr/lib/systemd/systemd-journald
> | |-systemd-timesyncd.service
> | | `-178
> /usr/lib/systemd/systemd-timesyncd
> | |-systemd-logind.service
> | | `-193
> /usr/lib/systemd/systemd-logind
> | |-systemd-networkd.service
> | | `-191
> /usr/lib/systemd/systemd-networkd
> | |-system-getty.slice
> | | `-getty@tty1.service
> | | `-232 /sbin/agetty --noclear tty1
> linux
> | |-sshd.service
> | | `-220 /usr/bin/sshd -D
> | |-piratebox.service
> | | |-14238 /usr/sbin/hostapd
> /opt/piratebox/conf/hostapd.conf
> | | |-14264 /usr/sbin/dnsmasq -x
> /var/run/piratebox_dnsmasq.pid -C
> /opt/piratebox/conf/dnsmasq_generated.conf
> | | |-14284 python
> /opt/piratebox/bin/droopy -d
> /opt/piratebox/share/Shared -m --chmod 755 8080
> | | |-14321 /usr/sbin/lighttpd -f
> /opt/piratebox/conf/lighttpd/lighttpd.conf
> | | |-14322 /usr/bin/php-cgi
> | | `-14327 /usr/bin/php-cgi
> | |-systemd-udevd.service
> | | `-167
> /usr/lib/systemd/systemd-udevd
> | |-haveged.service
> | | `-195 /usr/bin/haveged -F -w 1024
> -v 1
> | `-man-db.service
> | |- 208 /usr/bin/mandb
> | `-21169 /usr/bin/mandb
> `-user.slice
> `-user-1000.slice
> |-user@1000.service
> | `-init.scope
> | |-2478 /usr/lib/systemd/systemd
> --user
>
>
>
> Well, I'll add those commands to the RPi build

Great work! I'll make those changes and give another run of testing tomorrow.
Re: Development Cycle for PirateBox 1.1
September 27, 2016 12:00AM
I'll upload two new images as well... including those commands in the image build. They should be available by 9/27 morning.
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: