Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
jietang wrote:
run the fun_plug on a usb flash drive
I haven't done this myself, but others have. They might be able to provide more detailed instructions.
Here's how it's supposed to work:
- install funplug (0.5) as usual to /mnt/HD_a2/ffp
- manually mount your usb drive and copy the ffp directory
- change/extend the fun_plug script to load required kernel modules and mount the usb disk
- if successful, make it create a /ffp -> /path/to/mounted/usb/ffp symlink instead of /ffp -> /mnt/HD_a2/ffp
- fall back to /ffp -> /mnt/HD_a2/ffp if usb disk couldn't be mounted or ffp directory wasn't found
Offline
Tanks Fonz! Now it's all perfect! Congratulation for your work!
Offline
Can I upgrade fun_plug 0.3 to 0.5 or do I need to uninstall 0.3 and reinstall 0.5?
If I can upgrade, how can I do it? Did not find upgrade instructions at the README.TXT
Tks
Offline
Hi zehninguem,
if your read the readme for 0.3 and 0.4 you will see, that there is no really "update" possible.
Always rename old fun_plug.d directory and fun_plug file:
mv fun_plug fun_plug.bak
mv fun_plug.d fun_plug.d.bak
It means, it is always a full installation with new files.
regards
Tester
Offline
Thanks Tester
Now I really just read the 0.5 README (read 0.3 long time ago).
Offline
quick question... I installed funplug 0.5 on my DNS 323 with no problems, installed the OpenSSH package, but now I can't start the service or change the user information.
The directions for funplug 0.3 and 0.4 don't work. Whenever I try to use one of the commands (sshd, ssh-add) I just get "ssh: can't load library 'libcrypto.so.0.9.8'" It's not in /lib and I don't see that library in any of the other packages.
Thanks.
Offline
libcrypto.so is part of the openssl package.
Offline
KyleK wrote:
libcrypto.so is part of the openssl package.
Thanks for the tip. Now I have ssh working and running on startup. I can login via ssh, but I don't get a usable prompt. All I get is:
BusyBox v1.00-pre1 (2006.07.17-10:17+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands.
Typing comands does nothing and I just have to Ctrl-C the connection.
Offline
I haven't (yet) hacked the openssh package as I did with dropbear. Openssh runs the shell from /etc/passwd, while dropbear always ran /ffp/bin/sh. You can either change your shell in /etc/passwd or relink /bin/sh to /ffp/bin/busybox or /ffp/bin/bash.
PS: Enter 5784468 to unlock that shell.
PPS: Attached is a small start-script to automatically fix /etc/passwd on boot. Copy it to your dns, move it to the /ffp/start directory and make it executable. No need to reboot, just run:
chmod a+x /ffp/start/passwd.sh /ffp/start/passwd.sh start
Then check /etc/passwd for /ffp/bin/sh instead of /bin/sh in the last column.
Last edited by fonz (2008-04-05 13:02:29)
Offline
Thanks for the help. The PPS step worked just fine.
Small request, how about a simpler text editor package? Nano or pico maybe? VI is a pain in the butt.
SSH for transfer and browsing is way better for my purposes than samba.
Offline
Using fonz's outstanding funplug 0.5 with openssh and keep getting "WARNING: Your password has expired. You must change your password now and login again!" I'm using SSH Secure Shell v3.2.9 on Windoze XP SP2 (but I don't think it's a client issue). DNS-323 is FW 1.04.
I didn't have this problem with dropbear...but it sounds like you hacked dropbear to use /ffp/bin/ssh. So I installed and successfully ran the passwd.sh you provided in post #184. Still the same problem. I've changed the password, but the next time I login, same error. I've played with the sshd_config, but no luck. It looks like ssh V1 supported a construct of "ForcePasswdChange No" (spelling in this email may not be precise), but this version doesn't like that option.
Thanks for any options you all might suggest. I'd hate to go back to 0.3.
Offline
mrmiketheman wrote:
WARNING: Your password has expired. You must change your password now and login again!
If
1. you've installed the shadow package (i.e. /ffp/var/packages/shadow-4.0.18.2-1 exists)
2. output of 'cat /etc/shadow' does not contain the user in question, and
3. 'chage --list XXX' (XXX = user in question) also tells that the user must change password,
run "pwconv", redo above checks, retry ssh login. If that solved the problem, either get and run the store-passwd.sh script from 0.3/0.4, or add the call to pwconv to the passwd.sh start script.
Offline
YEAHHH FONZ!
So for others who encounter a problem logging in as root with SSH under fonz 0.5. Here are the detailed instructions for installing openssh on fonz 0.5.
1. Download openssh and shadow from fonz's 0.5 distribution http://www.inreto.de/dns323/fun-plug/0.5-experimental/
2. funpkg -i the openssh, openssl (for libcrypt), and shadow packages (I don't recall any other dependencies, perhaps others can comment).
3. Add root to the /etc/shadow password file using fonz's "Setting Passwords" instructions at http://www.inreto.de/dns323/fun-plug/0.3/ (attached below). First add root to /etc/shadow, THEN while logged in as root, run passwd to set the root passwd in the /etc/shadow file.
4. 'chage -l root' will show when the password expires (note first field)
# chage -l root
Last password change : password must be changed
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
5. 'chage -d 2008-04-04 root' will change the last password change date to something more current
6. 'pwconv' will copy changes from /etc/passwd to /etc/shadow
6. Since store-passwd.sh is NOT included in 0.5 yet, I've attached it below from the 0.3 distribution. Make sure you run store-passwd.sh at the end to save your changes to NVRAM, otherwise you'll get to do all of this again at the next reboot
ADDENDUM:
--------------
http://www.inreto.de/dns323/fun-plug/0.3/ change root password excerpt.
-- Setting passwords --
passwd and smbpasswd can be used to change passwords on the command
line. To make password changes permanent (i.e. survive reboots), the
changed password files must be written to flash memory. A script is
included for that purpose. After running passwd or smbpasswd, run:
store-passwd.sh
By default, root has no entry in /etc/shadow and passwd will store
the password in /etc/passwd instead. If you want your root password
in /etc/shadow, you can manually add an entry before running passwd:
echo "root::0:0:99999:7:::" >>/etc/shadow
IMPORTANT: Be sure you run the command exactly as shown. Screwing up
the shadow file can cause serious problems.
Last edited by mrmiketheman (2008-04-10 05:47:56)
Offline
Hello fonz,
is there a way to include the command "convmv" into your experimental 0.5 funplug?
This would put me into a position to rescue filenames that have been spoiled due to D-Links messy Samba implementation.
The issue is described here
http://dns323.kood.org/forum/t1691-Prob … -1.04.html
along with the solution - unfortunately my Linux-skills are not good enough...can you help?
Last edited by rori (2008-04-08 22:42:45)
Offline
Hi fonz,
thank you for the fast response. I started from scratch and delete the ffp directory and also the directory with the packages and reinstalled a fresh funplug 0.5, and rsynced as described in the howto.
Then I installed succesfully:
/mnt/HD_a2/packages # funpkg -i *.tgz Installing package apr-1.2.12-1 ... . (lot of packages here) . [b]Installing package convmv-1.12-1 ... [/b] . (even more packages here) . Installing package zlib-1.2.3-2 ... /mnt/HD_a2/packages # cd .. /mnt/HD_a2 # cd mnt /mnt/HD_a2 # cd MP3 /mnt/HD_a2/MP3 # cd Die\ Ärzte/ /mnt/HD_a2/MP3/Die Ärzte # convmv -f ISO-8859-1 -t utf-8 -r *.* /ffp/bin/sh: convmv: not found /mnt/HD_a2/MP3/Die Ärzte #
Within this directory all "Ä"-characters are spoiled - unfortunaltely convmv is not working. Rebooting does not help.
What do I do wrong?
Regards from Flensburg
Offline
rori wrote:
/mnt/HD_a2/MP3/Die Ärzte # convmv -f ISO-8859-1 -t utf-8 -r *.*
/ffp/bin/sh: convmv: not found
I forgot to patch the script interpreter, it seems. This should fix it for now:
ln -s /ffp/bin/perl /usr/bin/perl
Offline
Thanks, now convmv runs. Let's see if it will fix the Samba mess. Thanks for your help!
Offline
Thank you fonz for the 0.5-Funplug. At the momentan i am looking at the source-codes in your SVN. Nice work!
I'm wondering, if it would be possible to include mysql into php? You already linked to an example for MySQL-Server (@Wiki:
http://dns323.kood.org/forum/t1737-MySQL-DNS-323.html), but i'd like to use it from PHP
Offline
Hi fonz,
thanks again for implementing convmv into your funplug0.5. I just wanted to give you feedback-it works 100%
However there is some strange message coming up regarding pearl. It did not cause any trouble with this program but maybe it means something to other programs installed ?
/mnt/HD_a2 # convmv -f cp850 -t utf-8 -r * Your Perl version has fleas #37757 Starting a dry run without changes...
Offline
Hi Fonz,
Your work is super! There are already many packages for ffp 0.5. Is it possible that you also make SABnzbd avaible so it is not required to run it via a chrooted debian? THNX!
Offline
0.5 has not caused any disasters so far, so it's time to remove the 'experimental' warning. (It's still beta, though)
New location is: http://www.inreto.de/dns323/fun-plug/0.5/
A wiki page with detailed instructions is growing here: http://dns323.kood.org/howto:ffp
I've added quite a few programs to the install tarball to make 0.5 as convenient to install and use
as possible:
* Lighttpd Web Server
* OpenSSH Secure Shell
* Mediatomb UPnP Media Server
* NTP Network Time Daemon
* UNFS3 User-Space NFS Server
* NFS-Utils NFS Server (required kernel support)
* RSync File Transfer Utility
Please report trouble and suggestions here, as usual.
Offline
thanks fonz for the good work,
anyway, I have trouble getting the sshd server (0.5) to run on my CH3SNAS (latest firmware 1.3).
when I telnet in and do a:
> sh /mnt/HD_a2/ffp/start/sshd.sh start
it says:
/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name' /ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name' /ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name' Starting /ffp/sbin/sshd /ffp/sbin/sshd: can't resolve symbol 'program_invocation_short_name'
Am i missing something? It worked correctly with dropbear under 0.3.
Any advice ?
Greetings,
barcode
Last edited by barcode (2008-04-13 21:08:24)
Offline
Hi fonz,
I've just tried to get 0.5 up and running and have copied across the files and re-booted which correctly created the ffp files.
I have telnet'd to the 323 OK but when I try and run any of the start scripts I get a message that permission is denied:
/mnt/HD_a2/ffp/start # ./sshd.sh
/ffp/bin/sh: ./sshd.sh: Permission denied
/mnt/HD_a2/ffp/start # ./mediatomb.sh
/ffp/bin/sh: ./mediatomb.sh: Permission denied
I was already using 0.4 to ssh to the box so have my root password set OK so was (optimistically) hoping the all I needed to do to get ssh connection under 0.5 was to start the sshd
Any ides what I may have done wrong?
Offline