Install issues on Pi Zero W

Posted by slashdevnullme 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Install issues on Pi Zero W
September 02, 2018 01:05AM
Hello,
Noob here seeking help.

What I've done:
- burned image for pi zero w to sd card
- started up pi zero w with card
- ssh'ed in to piratebox and ran post-install scripts (including the one using the sd card as the storage space)
It works! (Seemingly)
I uploaded some files, shut down, restarted and then when I try to connect, it puts me in an endless loop saying it is re-directing. Not sure why.
I need help at this point.
Also, is there anyone here who has successfully installed on pi zero w using the USB (actually micro-usb) successfully?

Thanks
Piratebox on Pi Zero W
September 01, 2018 11:35PM
Hello,
Noob here seeking help.

What I've done:
- burned image for pi zero w to sd card
- started up pi zero w with card
- ssh'ed in to piratebox and ran post-install scripts (including the one using the sd card as the storage space)
It works! (Seemingly)
I uploaded some files, shut down, restarted and then when I try to connect, it puts me in an endless loop saying it is re-directing. Not sure why.
I need help at this point.
Also, is there anyone here who has successfully installed on pi zero w using the USB (actually micro-usb) successfully?

Thanks
Re: Install issues on Pi Zero W
September 02, 2018 02:18PM
Merged the two topics. Please avoid double posting.

MaStr can probably help you more, but this might be a clue what you can try:
https://forum.piratebox.cc/read.php?9,20126

Check the "Uprading in general has a bug" part, it could be an old bug lurking around.

Ubuntuhak, playing and tinkering with Ubuntu!
Re: Install issues on Pi Zero W
September 02, 2018 02:37PM
I just looked at that thread, but it was referring to a much older version. I am using the most recent 1.1.4 so I am still in need of some form of assistance.
Re: Piratebox on Pi Zero W
September 02, 2018 04:41PM
Quote

I uploaded some files, shut down, restarted and then when I try to connect, it puts me in an endless loop saying it is re-directing. Not sure why.
Endless loop can be:
a) you browser cache
b) you modified some HTML files, which are now resulting in a 404. A 404 causes a redirect to
Language: PHP
http://piratebox.lan/content

This is a short idea summary.

To get more into detail, I need the output of the following commands

mount
ls -l /opt/piratebox
ls -l /opt/piratebox/share
ls -l /opt/piratebox/www
ls -l /opt/piratebox/content

best regards
Matthias
Re: Piratebox on Pi Zero W
September 02, 2018 07:04PM
Thank You.
Here are the output you asked for:

[alarm@alarmpi ~]$ ls -l /opt/piratebox > optpir
[alarm@alarmpi ~]$ cat optpir
total 44
drwxr-xr-x 3 root root 4096 Feb 27 2018 bin
drwxr-xr-x 5 root root 4096 Feb 24 2018 conf
drwxr-xr-x 2 root root 4096 Feb 27 2018 init.d
drwxr-xr-x 2 root root 4096 Feb 27 2018 lib
drwxr-xr-x 2 root root 4096 Feb 24 2018 python_lib
drwxr-xr-x 5 root root 4096 Feb 27 2018 rpi
lrwxrwxrwx 1 root root 18 May 23 17:42 share -> /mnt/sdshare/share
drwxr-xr-x 2 root root 4096 Feb 27 2018 src
drwxrwxr-x 2 nobody nogroup 4096 May 23 17:43 tmp
-rw-r--r-- 1 root root 98 Feb 27 2018 version
drwxr-xr-x 5 nobody nogroup 4096 Feb 24 2018 www
drwxr-xr-x 6 root root 4096 Feb 27 2018 www_content
[alarm@alarmpi ~]$ ls -l /opt/piratebox/share > optpirshare
[alarm@alarmpi ~]$ ls -l /opt/piratebox/www > optpirwww
[alarm@alarmpi ~]$ ls -l /opt/piratebox/content > optpircont
ls: cannot access '/opt/piratebox/content': No such file or directory
[alarm@alarmpi ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
dev 210716 0 210716 0% /dev
run 219656 5748 213908 3% /run
/dev/mmcblk0p2 1929616 1399976 413572 78% /
tmpfs 219656 0 219656 0% /dev/shm
tmpfs 219656 0 219656 0% /sys/fs/cgroup
/dev/mmcblk0p1 102182 28310 73872 28% /boot
tmpfs 219656 0 219656 0% /var/tmp
tmpfs 102400 16 102384 1% /var/log
tmpfs 102400 0 102400 0% /tmp
/dev/mmcblk0p4 12831848 42144 12118168 1% /mnt/sdshare
tmpfs 43928 0 43928 0% /run/user/1000
[alarm@alarmpi ~]$ df > dfresults
[alarm@alarmpi ~]$ ls
dfresults optpir optpircont optpirshare optpirwww
[alarm@alarmpi ~]$ cat *
Filesystem 1K-blocks Used Available Use% Mounted on
dev 210716 0 210716 0% /dev
run 219656 5748 213908 3% /run
/dev/mmcblk0p2 1929616 1399976 413572 78% /
tmpfs 219656 0 219656 0% /dev/shm
tmpfs 219656 0 219656 0% /sys/fs/cgroup
/dev/mmcblk0p1 102182 28310 73872 28% /boot
tmpfs 219656 0 219656 0% /var/tmp
tmpfs 102400 16 102384 1% /var/log
tmpfs 102400 0 102400 0% /tmp
/dev/mmcblk0p4 12831848 42144 12118168 1% /mnt/sdshare
tmpfs 43928 0 43928 0% /run/user/1000
total 44
drwxr-xr-x 3 root root 4096 Feb 27 2018 bin
drwxr-xr-x 5 root root 4096 Feb 24 2018 conf
drwxr-xr-x 2 root root 4096 Feb 27 2018 init.d
drwxr-xr-x 2 root root 4096 Feb 27 2018 lib
drwxr-xr-x 2 root root 4096 Feb 24 2018 python_lib
drwxr-xr-x 5 root root 4096 Feb 27 2018 rpi
lrwxrwxrwx 1 root root 18 May 23 17:42 share -> /mnt/sdshare/share
drwxr-xr-x 2 root root 4096 Feb 27 2018 src
drwxrwxr-x 2 nobody nogroup 4096 May 23 17:43 tmp
-rw-r--r-- 1 root root 98 Feb 27 2018 version
drwxr-xr-x 5 nobody nogroup 4096 Feb 24 2018 www
drwxr-xr-x 6 root root 4096 Feb 27 2018 www_content
lrwxrwxrwx 1 root root 18 May 23 17:42 /opt/piratebox/share -> /mnt/sdshare/share
total 36
lrwxrwxrwx 1 nobody nogroup 26 Feb 27 2018 board -> /opt/piratebox/share/board
drwxr-xr-x 2 nobody nogroup 4096 Feb 27 2018 cgi-bin
-rw-rw-r-- 1 nobody nogroup 289 Feb 24 2018 chat_content.html
lrwxrwxrwx 1 nobody nogroup 28 Feb 27 2018 content -> /opt/piratebox/share/content
-rw-rw-r-- 1 nobody nogroup 353 May 23 17:42 diskusage.html
lrwxrwxrwx 1 root root 40 Feb 24 2018 favicon.ico -> /opt/piratebox/share/content/favicon.ico
-rw-r--r-- 1 nobody nogroup 111 Feb 27 2018 generate_204
-rwxr-xr-x 1 nobody nogroup 327 Feb 27 2018 index.html
drwxr-xr-x 3 nobody nogroup 4096 Feb 27 2018 library
-rw-r--r-- 1 nobody nogroup 15 Feb 27 2018 ncsi.txt
-rw-r--r-- 1 root root 382 Feb 24 2018 piratebox_config.json
lrwxrwxrwx 1 nobody nogroup 27 Feb 27 2018 Shared -> /opt/piratebox/share/Shared
-rw-r--r-- 1 nobody nogroup 0 Feb 27 2018 station_cnt.txt
drwxr-xr-x 3 nobody nogroup 4096 Feb 27 2018 upload_handler
[alarm@alarmpi ~]$



[alarm@alarmpi ~]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=210716k,nr_inodes=52679,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/mmcblk0p2 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=44,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=10582)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p4 on /mnt/sdshare type ext4 (rw,noatime,nodiratime,data=writeback)
tmpfs on /tmp type tmpfs (rw,nosuid,noatime,size=102400k,mode=755)
tmpfs on /var/log type tmpfs (rw,nosuid,noatime,size=102400k,mode=755)
tmpfs on /var/tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=43928k,mode=700,uid=1000,gid=1000)
[alarm@alarmpi ~]$
Re: Piratebox on Pi Zero W
September 07, 2018 11:05AM
Hi,
sorry, that does not help much, because it looks totally unsorted.

please just run these commands and copy&paste the full output

ls -l /opt/piratebox
ls -l /opt/piratebox/share
ls -l /opt/piratebox/www
ls -l /opt/piratebox/content

thanks Matthias