Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I'm a Linux newbie whose seeking a little help on configuring fun_plug to run SWAT.
The Samba package from fonz's site has been installed. It's running fine, sharing files to the PC's on my network. Tonight I thought I'd attempt configuration of fun_plug so I could use SWAT to edit the samba config file. Following instruction found within the package I added two files to /ffp/etc. The two files are services and inetd.conf. The services file contains the following line;
swat 901/tcp
the inetd.conf file contains the following line;
swat stream tcp nowait.400 root /ffp/sbin/swat swat
Once these two files were added the inetd service was started using the inetd.sh. Performing ps indicates inetd is running however when I attempt to launch SWAT (http://162.168.1.50:901/) from Firefox I get a "Failed to Connect" error.
Unfortunately searching the forum provided little in the way of resolution thus I'm posting in hope someone here can help. What have I missed?
Offline
Almost. You need to add 'swat 901/tcp' to /etc/services (not /ffp/etc/services).
echo 'swat 901/tcp' >>/etc/services cat /ffp/etc/examples/inetd.conf-swat >>/ffp/etc/inetd.conf sh /ffp/start/inetd.sh restart
/etc/services will be reset on reboot, so you need to repeat the first command on every reboot. If you're running a recent release of 0.5, you can add the echo command to /ffp/etc/fun_plug.local.
Offline
fonz wrote:
Almost. You need to add 'swat 901/tcp' to /etc/services (not /ffp/etc/services).
Code:
echo 'swat 901/tcp' >>/etc/services cat /ffp/etc/examples/inetd.conf-swat >>/ffp/etc/inetd.conf sh /ffp/start/inetd.sh restart
Worked like a charm.
Thank you very much fonz
Last edited by rcblackwell (2008-09-07 02:39:09)
Offline
fonz wrote:
/etc/services will be reset on reboot, so you need to repeat the first command on every reboot. If you're running a recent release of 0.5, you can add the echo command to /ffp/etc/fun_plug.local.
A file named /ffp/etc/fun_plug.init exists however there's no /ffp/etc/fun_plug.local. With this finding I must assume I'm running an earlier version of ffp 0.5? what would be the best way to upgrade to the latest version? I've made changes to a few scripts since original installation of ffp which I think was done in April. Should I save elsewhere the script changes I made then copy them back to the appropriate directories after performing an update? What harm if any could be caused by upgrading?
Offline
rcblackwell wrote:
A file named /ffp/etc/fun_plug.init exists however there's no /ffp/etc/fun_plug.local.
fun_plug.local is never installed (and will never be overwritten by package upgrades). You need to create it yourself. There should be an example in /ffp/etc/examples.
Offline
I'm a very big newbie and I'm interresting by enable Swat.
But I'm not sure to understand this topic! I would to know step by step how to proceed.
If you can help me please!
tell me what I have wrong or forget because I do that
1. edit /etc/services and add swat 901/tcp in file
2. edit inetd.conf and add swat stream tcp nowait.400 root /ffp/sbin/swat swat in file
I take inetd.cond from exemple and past on /ffp/etc
I'm not sure that correct
After how to run the service? I must lanch inetd.sh? (if yes how to? I must go in /mnt/HD_a2/ffp/start/ and after?)
3. past fun_plug.local and edit to add:
echo 'swat 901/tcp' >>/etc/services
cat /ffp/etc/examples/inetd.conf-swat >>/ffp/etc/inetd.conf
sh /ffp/start/inetd.sh restart
Offline