Index of /dns323/fun-plug/0.2/
FUN-PLUG 0.2
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
This fun-plug includes:
busybox 1.5.0
dropbear 0.49
lighttpd 1.4.15
openssh-sftp 4.6p1
portmap 5.0
rsync 2.6.9
unfs3 0.9.17
Installation:
Unpack funplug-0.2.tar.gz. Then copy fun_plug and fun_plug.tar from
the funplug-0.2/ directory to the root of the first volume. Reboot
and wait a minute.
The fun_plug will automatically start a telnet server.
Scripts to start dropbear, lighttpd, rsync and unfs server live
in /mnt/HD_a2/fun_plug.d/start/. Run a script (sh /.../script.sh)
to start a service, set the script's executable bit to make it start
automatically on boot. Example:
To start the NFS server:
telnet bob
sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh
To make it start automatically on boot, set the executable bit of
unfsd.sh:
chmod a+x /mnt/HD_a2/fun_plug.d/start/unfsd.sh
The unfsd.sh script will create a default exports file in
/mnt/HD_a2/fun_plug.d/etc if it doesn't already exist.
Note: If you're using only a single volume, the default exports file
won't work. Remove the line starting with /mnt/HD_b2 from
fun_plug.d/etc/exports and restart unfsd.sh (Unix line breaks!).
Upgrade:
After you have copied new fun_plug and fun_plug.tar files to
/mnt/HD_a2/, rename the old fun_plug directory. Then reboot:
telnet bob
cd /mnt/HD_a2
mv fun_plug.d fun_plug.d-old
reboot
After reboot, use telnet to copy old config files and start
services, e.g.:
telnet bob
cd /mnt/HD_a2
cp -aR fun_plug.d-old/etc/* fun_plug.d/etc/
cd /mnt/HD_a2/fun_plug.d/start
chmod a+x unfsd.sh
sh unfsd.sh
sh lighttpd.sh
sh dropbear.sh
How it works:
All fun-plug files are installed below /mnt/HD_a2/fun_plug.d. There
are four directories:
bin/ - all program binaries
etc/ - all configuration files
log/ - log files
start/ - scripts to run at startup
The main fun_plug script will run all executable scripts (*.sh)
from the start/ directory. Script output is redirected to
log/fun_plug.log.
If the fun_plug script finds /mnt/HD_a2/fun_plug.tar, it will
unpack and remove it (this is how the installation works).
Have fun.
2007.07.10 tp@fonz.de