Description

This is a little project whitch aims to enhance the file explorer of the PirateBox web interface. You should at least know what SSH means if you want to make this upgrade : no self-extracting sh*ts for the moment.

What we are doing here is replacing the upload form (droopy) and the file listing (simpleserver) by a full-ajax interface based on a cgi-bin script. I use elFinder with its python connector. You have to use the 1.x branch because the connector is not able to talk with 2.x API. Original sources : https://github.com/Studio-42/elFinder/tree/1.x https://github.com/Studio-42/elfinder-python

Screenshots

How to Install :

Fetch the elFinder special package to your box : Get the package here : Untar and upload to your box (not necessary in this order) at /opt/piratebox/explorer.

		mkdir /tmp/pbox && cd /tmp/pbox
		wget -O toto.tar 
		[Connect to your box WLAN]
		scp -r /tmp/pbox/explorer root@192.168.1.1:/opt/piratebox/
	
Replace the existing piratebox services launcher by the special one.
	Upload to your box, dont forget to make a backup, and replace /opt/piratebox/init.d/piratebox
		wget -O toto.tar 
		scp -r /tmp/pbox/explorer root@192.168.1.1:/opt/piratebox/
		[Connect to your box over SSH]
		mv /opt/piratebox/init.d/piratebox /opt/piratebox/backups/piratebox-init.d
		mv /tmp/piratebox-init.d /opt/piratebox/init.d/piratebox

*Allow non-root users to modify files stored on the usb device.
	Modify your fstab and chmod your usb storage via SSH :
	<code>
		$ mv /etc/config/fstab /etc/config/fstab.bak
		$ sed -i -e "s/[0-9]*;#SAISON#/${SEASON};#SAISON#/g" /etc/config/fstab;
		$ sed -i -e "s/[0-9]*;#SAISON#/${SEASON};#SAISON#/g" /etc/config/fstab;
		$ chmod -R 777 /opt/piratebox/share
	</code>		
*Reboot and enjoy!

How to roolback

$ mv /opt/piratebox/backups/piratebox-init.d /opt/piratebox/init.d/piratebox 
$ mv /etc/config/fstab.bak /etc/config/fstab
$ reboot

What's missing :

It's not the latest release of elFinder : I use the 1.x branche because the python connector doesn't work with the 2.x one.

piratebox/explorer.txt · Last modified: 2012/04/30 20:05 by adrien
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki