Need help resurrecting old Pirate Box

Posted by lujke324 
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
Need help resurrecting old Pirate Box
February 26, 2017 11:47PM
Alright so I made a piratebox out of a TP-Link TL-MR3020 a pretty long while ago (possibly 2-3 years ago ;D) and after a discussion with a friend about deaddrops (like USBs) I decided to resurrect it for fun! Problem is, I cannot access it.

I'm pretty sure (when it's working) you do not need to default IP in the address bar to access it like you would before installing openwrt, just any input into any browser will result in a redirect to the imageboard interface, correct? Either way, I have tried all and any input in the address bar to access it.

I tried troubleshooting it myself and came across a post about making an "auto_flash" folder with the openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin file and it seemed to be installing as it kept blinking and resetting and then returned to normal after a couple minutes, although this did not fix it I believe.

I also cannot ssh or telnet into it, here are the results:

Lukes-MacBook-Pro:~ Luke$ ssh root@192.168.1.1
root@192.168.1.1's password: 
Permission denied, please try again.
root@192.168.1.1's password: 
Permission denied, please try again.
root@192.168.1.1's password: 
Permission denied (publickey,password).
Lukes-MacBook-Pro:~ Luke$ telnet 192.168.1.1
Trying 192.168.1.1...
telnet: connect to address 192.168.1.1: Connection refused
telnet: Unable to connect to remote host
Lukes-MacBook-Pro:~ Luke$

After attempting default passwords like "admin", "password", and "passwd", still no access. I did however assume the auto flash with a fresh install would reset any password I might have set previously.(?)

I WOULD try the instructions on the original post on the homepage but it seems I need to be able to access it via ssh or telnet before all else.

Any responses are greatly appreciated as it seems piratebox are becoming an obsolete project! Or at least less discussed thumbs down

Edit 1: Failsafe results coming soon...

Edit 2:

After following failsafe instructions here are the results:

Last login: Sun Feb 26 18:55:39 on ttys000
Lukes-MacBook-Pro:~ Luke$ ifconfig eth0 192.168.1.2
ifconfig: interface eth0 does not exist
Lukes-MacBook-Pro:~ Luke$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.487 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.310 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.294 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.316 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.294/0.352/0.487/0.078 ms
Lukes-MacBook-Pro:~ Luke$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.

 === IMPORTANT ============================
  Use 'passwd' to set your login password
  this will disable telnet and enable SSH
 ------------------------------------------


BusyBox v1.19.4 (2014-04-12 20:08:28 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (12.09.2, r40431, V0.2)
 With additional backports from BB
 [www.friedzombie.com]
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@(none):/# passwd
Changing password for root
New password: 
Retype password: 
passwd: /etc/passwd: Read-only file system
passwd: can't update password file /etc/passwd
root@(none):/#

ifconfig wasn't cooperating (probably because in the video OP was using linux) so I made the IP static to 192.168.1.2 through System Preferences -> Network -> Ethernet

Once I was in I decided to change the password:

root@(none):/# passwd
Changing password for root
New password: 
Retype password: 
passwd: /etc/passwd: Read-only file system
passwd: can't update password file /etc/passwd

then found out I needed to mount_root before doing so:

root@(none):/# mount_root
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: set_jffs_mp: not found
/sbin/mount_root: line 1: determine_root_device: not found
/sbin/mount_root: line 1: can't create /.extroot.md5sum: Read-only file system
switching to jffs2
root@(none):/# passwd
Changing password for root
New password: 
Retype password: 
passwd: can't create '/etc/shadow+': No space left on device
passwd: can't update password file /etc/shadow
root@(none):/#

I interpreted the feedback from mount_root to be errors but after trying passwd again it seemed to work, but indicate that there was no space left. I do not have the USB connected… aaaand I just inserted it while in fail safe, tried passwd again and still says no space left...

Edit 3:

Just inserted the USB and went through the failsafe process again trying to change the password and ran into the "No space left on device" error.

I think I have ran out of experiments to test so here are the "example output for technical questions" info:

root@(none):/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)

root@(none):/# ls -la /mnt/
drwxr-xr-x    1 root     root             0 Jan  1 00:01 .
drwxr-xr-x    1 root     root             0 Jan  1 00:00 ..
drwxr-xr-x    5 root     root             0 Jan  1 00:00 ext
drwxr-xr-x    2 root     root             0 Jan  1 00:00 usb

root@(none):/# ls -la /mnt/usb
drwxr-xr-x    2 root     root             0 Jan  1 00:00 .
drwxr-xr-x    1 root     root             0 Jan  1 00:01 ..
root@(none):/# ls -la /mnt/usb/PirateBox
ls: /mnt/usb/PirateBox: No such file or directory
root@(none):/# ls -la /opt/piratebox
drwxr-xr-x    2 root     root             0 Jan  1 00:10 .
drwxr-xr-x    3 root     root             0 Jan  1 00:10 ..

root@(none):/# ls -la /opt/piratebox/www
ls: /opt/piratebox/www: No such file or directory

root@(none):/# cat /opt/piratebox/version
cat: can't open '/opt/piratebox/version': No such file or directory

root@(none):/# cat /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option ifname 'eth0'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6addr 'fdc0:ffea::1/64'

config alias
        option interface 'lan'
        option ip6addr 'fdc0:ffea::14e7:5652:c07d:4bb9/64'
        option proto 'static'

root@(none):/# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11ng'
        option macaddr 'e8:94:f6:d9:dd:54'
        option htmode 'HT20'
        list ht_capab 'SHORT-GI-20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'RX-STBC1'
        list ht_capab 'DSSS_CCK-40'

config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option network 'lan'
        option ssid 'PirateBox - Share Freely'
        option encryption 'none'
        option isolate '1'

root@(none):/# ps
  PID USER       VSZ STAT COMMAND
    1 root      1636 S    {preinit} /bin/sh /etc/preinit
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
    7 root         0 SW   [kworker/u:1]
   63 root         0 SW   [sync_supers]
   65 root         0 SW   [bdi-default]
   67 root         0 SW<  [kblockd]
   96 root         0 SW   [kswapd0]
  144 root         0 SW   [fsnotify_mark]
  173 root         0 SW<  [ath79-spi]
  184 root         0 SW   [mtdblock0]
  189 root         0 SW   [mtdblock1]
  194 root         0 SW   [mtdblock2]
  199 root         0 SW   [mtdblock3]
  204 root         0 SW   [mtdblock4]
  209 root         0 SW   [mtdblock5]
  250 root         0 SW   [kworker/0:1]
  365 root       804 S    /sbin/hotplug2 --set-worker /lib/hotplug2/worker_for
  427 root      1496 S    telnetd -l /bin/login.sh
  431 root      1488 S    lock /tmp/.failsafe
  432 root      1500 S    ash --login
  440 root      1500 S    /bin/ash --login
  464 root         0 SWN  [jffs2_gcd_mtd3]
  466 root         0 SW   [flush-mtd-unmap]
  489 root      1496 R    ps



Edited 4 time(s). Last edit at 02/27/2017 05:38PM by lujke324.
Re: Need help resurrecting old Pirate Box
February 27, 2017 08:08PM
Hi,
it seems you made good progress in recovering it. Congratulations smiling smiley

The auto_flash feature only works for PirateBox 1.1 , it is not included in older PirateBoxes. It might run the installer with replacing the install folder and with the less error handling of 1.0 you wrote the content to the firmware (resulting in "no space left" error messages).

As you are able to use the failsafe, I recommend to follow these steps: reflash with usb
After executing the reflash, remember to place a fresh copy of the install folder to the usb stick.

I hope that helps,
best regards
Matthias
Re: Need help resurrecting old Pirate Box
February 27, 2017 10:56PM
Thank you dearly for your response!

After following the instructions from your link and executing
 
mount /dev/sda1 /mnt
cd /mnt/
mtd -r write openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin firmware
the last text output was "Rebooting…" as it did so. I waited 5 or so minutes expecting a confirmation that it finished on my terminal but when I started typing it said it was disconnected by unknown host. The instructions I was following indicated that when it was finished I had to run
 reboot -f 
but I'm assuming it is unnecessary now.

I took the USB out and replaced the install folder that was created on the drive with the one downloaded from http://stable.openwrt.piratebox.de/auto/install_piratebox.zip, then put the USB back in. Now it is doing a lot of blinking and what looks like rebooting, also no signal being broadcast from it yet. I will be patient and return when I believe it has finished.

Edit1:

It eventually finished!(and later read that it could take 15-20mins or even 45 on some drives)

I also went ahead and finished up the post installation steps with one small error:
Please enter your date in the format  YYYYMMDD : 20170227
Please enter your time in the format  HHMM : 1808
Mon Feb 27 18:08:00 UTC 2017
... OK
crontab: can't open 'root': No such file or directory
initialize timesave file
Remember MAY have to cron active...
  on OpenWrt run: /etc/init.d/piratebox enable
Placing Timerecover on Startup
Activating cron-service..
done

So should I go ahead and ssh into it and execute the above? Is that what it's indicating or can it be ignored? I know I read about others having issues with the date and time so I thought I'd add that here just in case.

Edit 2:

Just ran into this issue:
Lukes-MacBook-Pro:~ Luke$ ssh root@192.168.1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
c8:ac:34:58:c5:b9:53:5e:a4:9b:76:38:48:7b:fa:6d.
Please contact your system administrator.
Add correct host key in /Users/Luke/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/Luke/.ssh/known_hosts:1
RSA host key for 192.168.1.1 has changed and you have requested strict checking.
Host key verification failed.

Should I add c8:ac:34:58:c5:b9:53:5e:a4:9b:76:38:48:7b:fa:6d to my known_hosts?



Edited 2 time(s). Last edit at 02/27/2017 11:45PM by lujke324.
Re: Need help resurrecting old Pirate Box
February 28, 2017 05:55AM
This error is expected, because the ssh key was regenerated through the reflash.
That sounds promising smiling smiley

Just remove the entry starting with 192.168.1.1 from /Users/Luke/.ssh/known_hosts

best regards
Matthias
Re: Need help resurrecting old Pirate Box
March 02, 2017 04:56AM
Done!
I was able to successfully connect via ssh but I noticed that the forum on the main piratebox.lan/content/ interface only displays an index of directories. Any idea? I remember there being a 4chan like image board but I’m not sure how to initiate it other than during the post installation after executing:
 /opt/piratebox/bin/board-autoconf.sh

Everything else seems to be working fine with the exception of the forum and time/date over the chatroom.

Thank you again for your timely responses.
Re: Need help resurrecting old Pirate Box
March 02, 2017 07:24PM
Hi,
ok, that we can solve.

Login to your piratebox via SSH and run:

/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf content
You might see some chown & chmod errors, just ignore it. (Because you are using FAT32 filesystem)

For restoring the imageboard

rm  /opt/piratebox/share/board/init_done
cp /mnt/usb/install/kareha_3.1.4.zip /opt/piratebox/tmp
/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf  imageboard
You might see some chown & chmod errors, just ignore it. (Because you are using FAT32 filesystem)

Hope that helps, I understood the error correctly smiling smiley

best regards
Matthias
Re: Need help resurrecting old Pirate Box
March 02, 2017 09:20PM
Seems the imageboard still isn't functional. When I enter the forum it says:

"The kareha imageboard is not fully configured.
Visit the following Link to do the initial configuration.
Or go back to PirateBox start page."

Following the Link opens a page stating:

"Software error:

No ADMIN_PASS defined in the configuration at config_defaults.pl line 8.
BEGIN failed--compilation aborted at config_defaults.pl line 133.
Compilation failed in require at /opt/piratebox/www/board/kareha.pl line 13.
BEGIN failed--compilation aborted at /opt/piratebox/www/board/kareha.pl line 13.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error."

Here is the feedback I got from terminal:

root@VQxrU8u4:~# /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/pir
atebox.conf content
Creating 'content' folder on USB stick and move over stuff
chown: /opt/piratebox/share/content/css/jquery-ui.min.css: Operation not permitted
chown: /opt/piratebox/share/content/css/page_style.css: Operation not permitted
chown: /opt/piratebox/share/content/css: Operation not permitted
chown: /opt/piratebox/share/content/css: Operation not permitted
chown: /opt/piratebox/share/content/favicon.ico: Operation not permitted
chown: /opt/piratebox/share/content/img/piratebox-logo-small.png: Operation not permitted
chown: /opt/piratebox/share/content/img/piratebox-logo-horizontal-white.png: Operation not permitted
chown: /opt/piratebox/share/content/img/menu.png: Operation not permitted
chown: /opt/piratebox/share/content/img: Operation not permitted
chown: /opt/piratebox/share/content/img: Operation not permitted
chown: /opt/piratebox/share/content/index.html: Operation not permitted
chown: /opt/piratebox/share/content/js/jquery.min.js: Operation not permitted
chown: /opt/piratebox/share/content/js/l10n.js: Operation not permitted
chown: /opt/piratebox/share/content/js/scripts.js: Operation not permitted
chown: /opt/piratebox/share/content/js/jquery-ui.min.js: Operation not permitted
chown: /opt/piratebox/share/content/js: Operation not permitted
chown: /opt/piratebox/share/content/js: Operation not permitted
chown: /opt/piratebox/share/content/locales/data.de.properties: Operation not permitted
chown: /opt/piratebox/share/content/locales/locales.ini: Operation not permitted
chown: /opt/piratebox/share/content/locales/data.en.properties: Operation not permitted
chown: /opt/piratebox/share/content/locales/data.fr.properties: Operation not permitted
chown: /opt/piratebox/share/content/locales: Operation not permitted
chown: /opt/piratebox/share/content/locales: Operation not permitted
chown: /opt/piratebox/share/content: Operation not permitted
chown: /opt/piratebox/share/content: Operation not permitted

root@VQxrU8u4:~# rm /opt/piratebox/share/board/init_done
root@VQxrU8u4:~# cp /mnt/usb/install/kareha_3.1.4.zip /opt/piratebox/tmp
root@VQxrU8u4:~# /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/pir
atebox.conf imageboard
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     
mv: can't remove '/opt/piratebox/share/board/extras': Is a directory
mv: can't remove '/opt/piratebox/share/board/mode_image': Is a directory
mv: can't remove '/opt/piratebox/share/board/mode_message': Is a directory
mv: can't remove '/opt/piratebox/share/board/res': Is a directory
mv: can't remove '/opt/piratebox/share/board/src': Is a directory
mv: can't remove '/opt/piratebox/share/board/thumb': Is a directory
chown: /opt/piratebox/share/board/kareha.pl: Operation not permitted
chown: /opt/piratebox/share/board/admin.pl: Operation not permitted
chown: /opt/piratebox/share/board/captcha.pl: Operation not permitted
chown: /opt/piratebox/share/board/config.pl: Operation not permitted
chown: /opt/piratebox/share/board/example.htaccess: Operation not permitted
chown: /opt/piratebox/share/board/extras/old_perl/sjis.pl: Operation not permitted
chown: /opt/piratebox/share/board/extras/old_perl: Operation not permitted
chown: /opt/piratebox/share/board/extras/old_perl: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/img/greyrose.png: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/img/rose_big.png: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/img/greyrose_big.png: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/img/rose.png: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/img/ginchan.png: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/img: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/img: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/css/buun.css: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/css/mercury.css: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/css: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles/css: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles: Operation not permitted
chown: /opt/piratebox/share/board/extras/styles: Operation not permitted
chown: /opt/piratebox/share/board/extras: Operation not permitted
chown: /opt/piratebox/share/board/extras: Operation not permitted
chown: /opt/piratebox/share/board/kareha.ico: Operation not permitted
chown: /opt/piratebox/share/board/kareha.js: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/config_defaults.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/include/rules.html: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/include/header.html: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/include/footer.html: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/include: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/include: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/thumb: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/thumb: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/src: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/src: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/templates.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/zeroconv.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/css/gurochan.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/css/burichan.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/css/futaba.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/css/photon.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/css: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/css: Operation not permitted
chown: /opt/piratebox/share/board/mode_image/config.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_image: Operation not permitted
chown: /opt/piratebox/share/board/mode_image: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/config_defaults.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/include/rules.html: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/include/mid.html: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/include/header.html: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/include/footer.html: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/include: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/include: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/img/ba.gif: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/img: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/img: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/templates.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css/VIPPER.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css/headline.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css/pseud0ch.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css/futaba.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css/blue_moon.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css/toothpaste.css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/css: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/config.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_message/templates_jp.pl: Operation not permitted
chown: /opt/piratebox/share/board/mode_message: Operation not permitted
chown: /opt/piratebox/share/board/mode_message: Operation not permitted
chown: /opt/piratebox/share/board/res: Operation not permitted
chown: /opt/piratebox/share/board/res: Operation not permitted
chown: /opt/piratebox/share/board/spam.txt: Operation not permitted
chown: /opt/piratebox/share/board/src: Operation not permitted
chown: /opt/piratebox/share/board/src: Operation not permitted
chown: /opt/piratebox/share/board/thumb: Operation not permitted
chown: /opt/piratebox/share/board/thumb: Operation not permitted
chown: /opt/piratebox/share/board/wakautils.pl: Operation not permitted
chown: /opt/piratebox/share/board/config_defaults.pl: Operation not permitted
chown: /opt/piratebox/share/board/css/gurochan.css: Operation not permitted
chown: /opt/piratebox/share/board/css/burichan.css: Operation not permitted
chown: /opt/piratebox/share/board/css/futaba.css: Operation not permitted
chown: /opt/piratebox/share/board/css/photon.css: Operation not permitted
chown: /opt/piratebox/share/board/css: Operation not permitted
chown: /opt/piratebox/share/board/css: Operation not permitted
chown: /opt/piratebox/share/board/include/rules.html: Operation not permitted
chown: /opt/piratebox/share/board/include/header.html: Operation not permitted
chown: /opt/piratebox/share/board/include/footer.html: Operation not permitted
chown: /opt/piratebox/share/board/include: Operation not permitted
chown: /opt/piratebox/share/board/include: Operation not permitted
chown: /opt/piratebox/share/board/templates.pl: Operation not permitted
chown: /opt/piratebox/share/board/zeroconv.pl: Operation not permitted
chown: /opt/piratebox/share/board/index.htm: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-mod.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/archive-lzh.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-ogg.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-mpc.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/flash.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-nsf.gif: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-it.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/archive-rar.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-xm.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/archive-gz.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/archive-bz2.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/archive-zip.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-mo3.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-sid.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-spc.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/archive-7z.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-mp3.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/torrent.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-flac.png: Operation not permitted
chown: /opt/piratebox/share/board/icons/audio-aac.png: Operation not permitted
chown: /opt/piratebox/share/board/icons: Operation not permitted
chown: /opt/piratebox/share/board/icons: Operation not permitted
chown: /opt/piratebox/share/board: Operation not permitted
chown: /opt/piratebox/share/board: Operation not permitted
mv: can't rename '/opt/piratebox/share/board/extras/icons': No such file or directory
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

I also attempted to edit the settings and change the "ADMIN_PASS" and "SECRET" hoping this would fix the Software Error page I talked about at the top and recieved the following response:


root@VQxrU8u4:~# /opt/piratebox/www/board/config.pl
: not foundbox/www/board/config.pl: line 7: 
: not foundbox/www/board/config.pl: line 12: 
/opt/piratebox/www/board/config.pl: line 14: use: not found
/opt/piratebox/www/board/config.pl: line 15: use: not found
/opt/piratebox/www/board/config.pl: line 16: use: not found
/opt/piratebox/www/board/config.pl: line 17: can't create /content/img/piratebox-logo-small.png: nonexistent directory
/opt/piratebox/www/board/config.pl: line 17: use: not found
/opt/piratebox/www/board/config.pl: line 23: use: not found
: not foundbox/www/board/config.pl: line 24: 
/opt/piratebox/www/board/config.pl: line 26: use: not found
/opt/piratebox/www/board/config.pl: line 27: use: not found
: not foundbox/www/board/config.pl: line 40: 
/opt/piratebox/www/board/config.pl: line 45: use: not found
/opt/piratebox/www/board/config.pl: line 50: use: not found
/opt/piratebox/www/board/config.pl: line 51: use: not found
/opt/piratebox/www/board/config.pl: line 52: syntax error: unexpected "("

Sorry for the long response smiling bouncing smiley Responses always appreciated!
Re: Need help resurrecting old Pirate Box
March 03, 2017 05:19AM
Ups, I forgot: you need to run the board autoconfig script
 /opt/piratebox/bin/board-autoconf.sh
Please avoid special characters in the admin password.. :-/

After this, go back and try it in the browser
Re: Need help resurrecting old Pirate Box
March 03, 2017 04:34PM
Executing the code removed the "software error" message, but now it's back to displaying the directories like before.. confused smiley


Index of /board/
Name                    Last Modified    Size  Type
Parent Directory/                         -   Directory
css/                2017-Feb-27 22:44:11  -   Directory
extras/             1980-Jan-01 00:00:00  -   Directory
icons/              2005-Feb-23 23:15:06  -   Directory
include/            2017-Feb-27 22:44:11  -   Directory
mode_image/         2006-Jul-08 02:08:34  -   Directory
mode_message/       2006-Jul-08 02:07:36  -   Directory
res/                2004-Oct-06 20:22:40  -   Directory
src/                2005-Feb-26 19:26:34  -   Directory
thumb/              2005-Feb-26 19:26:38  -   Directory
admin.pl            2009-Apr-16 18:26:09  12.4K application/octet-stream
captcha.pl          2006-May-17 00:12:50  7.6K  application/octet-stream
config.pl           2017-Feb-27 22:45:07  12.2K application/octet-stream
config_defaults.pl  2017-Feb-27 22:44:11  7.8K  application/octet-stream
example.htaccess    2006-May-17 00:13:44  0.5K  application/octet-stream
init_done           2017-Feb-27 22:44:13  0.0K  application/octet-stream
kareha.ico          2004-Sep-14 16:19:10  0.8K  application/octet-stream
kareha.js           2006-May-17 00:13:12  6.0K  text/javascript
kareha.pl           2007-Jan-28 14:22:04  31.2K application/octet-stream
spam.txt            2009-Apr-16 18:07:41  5.5K  text/plain
templates.pl        2017-Feb-27 22:44:11  16.6K application/octet-stream
wakautils.pl        2009-Apr-16 18:33:05  31.3K application/octet-stream
zeroconv.pl         2017-Feb-27 22:44:11  1.8K  application/octet-stream

Re: Need help resurrecting old Pirate Box
March 10, 2017 02:28PM
I suppose this is a unique problem? I might just have to connect it to the gateway router and follow this tutorial as I had never connected it to the internet when I set it up like this guide indicates. Getting down to brass tacks.
Re: Need help resurrecting old Pirate Box
March 12, 2017 07:09AM
Hi,
sorry for the late response.
The issue is unique, yes- but nothing special. If you are getting the message software error can you please:

- Post the complete error message and where did you see it?
- Can you please post the content of /opt/piratebox/tmp/error.log and break.log (after trying it in the browser)

Thank you,
best regards
Matthias