hmm gives a readonly filesystem again...
looks like either you know how to or dont![]()
hmm gives a readonly filesystem again...
looks like either you know how to or dont![]()
When do you get a read only file when you try to save the inetd.conf file ?? Make sure that you have a vsftpd (the bin file) and a vsftpd.conf file in the directory you specify in the inetd file. Let me look into it a little deeper I am obviously missing something. I will try on my box see what I get.
Last edited by snappy46; 02-27-2010 at 07:35 PM.
when i try
this error happens:Code:mkdir /tmp/hdd/root/opt mount -o remount,rw / # then ln -sf /tmp/hdd/root/opt /opt
maybe caused by no room on / ?Code:ln: /opt: Cannot allocate memory
Any suggestion to solve this?Code:/ # df -h Filesystem Size Used Available Use% Mounted on /dev/root 63.1M 63.1M 0 100% / /dev/mtdblock/3 40.0M 1.2M 38.8M 3% /usr/local/etc /dev/rd/0 40.0k 40.0k 0 100% /mnt/rd /dev/scsi/host0/bus0/target0/lun0/part1 465.3G 454.9G 10.4G 98% /tmp/hdd/volumes/HDD1 /dev/scsi/host0/bus0/target0/lun0/part3 151.9M 11.6M 132.5M 8% /tmp/hdd/root
Last edited by robfantini; 02-27-2010 at 10:39 PM.
you can try to run as standalone ftp server,
# cat /opt/etc/vsftpd.conf
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
vsftpd_log_file=/opt/var/log/vsftpd.log
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to My PBO.
ls_recurse_enable=YES
listen=YES
ftp_username=nobody
# mkdir -p /opt/var/log
# /opt/sbin/vsftpd /opt/etc/vsftpd.conf &
Login:
ftp venus
User: anonymous
Pass: whatever@whatever.com
Agreed!! A tutorial would be GREATLY appreciated. All I want to do is transfer files faster from my PC to PBO, and its seems that FTP might be the way to go.
But I know virtually nothing of Linux. I think I installed ipkg onto my PBO - I followed exactly the instructions, but how is one to know?
And how does one obtain/install/use vsftpd? My search on the Internet for USEFUL information came up with nothing - every site assumes Linux literacy.
Any step-by-step instructions would be most appreciated!!![]()
Ok so I install transmission just because I prefer that client more then the one offered in the PBO. I also seem to be getting a faster transfer rate... probably my imagination.
This is still at the experimental stage and many complication may arise. First off transmission will not start automatically the way I have it setup so still need some work. I need to edit the inetd.config file in the /etc/ directory but that is still giving me a headache. I think I have to create a symbolic link to the hdd to be able to edit it so that transmission can start automatically. This requires to make the root partition readable and writable "mount -o remount,rw /" and then to create a symbolik link to the hdd so that it can be edited something like ln -sf /tmp/hdd/root/etc /etc. So far I have not been able to do that when I try to create the symbolik link for the /etc directory I get can't "allocate memory". I actually got that when I try to create the symbolik link for ipkg but after a few tries it took. Anyhow back to transmission.
Ok first step after install ipkg (see first post)
1) cd /tmp/hdd/root/opt/bin "Telnet and go to where ipkg bin file is located this step is not necessary if you have a path setup."
2) ./ipkg install transmission "Install transmission"
3) after installation is complete enter:
./transmission-daemon -a (ip address of computer) -w /tmp/btdownload ex: ./transmission-daemon -a 192.168.0.100 -w /tmp/btdownload.
A few explanation here: ip address of the computer must be the IP address of the computer you will use to access transmission thru the web interface not the IP adress of the PBO. The -w only makes sure that the torrent is saved in the bt directory of your PBO. Now all those setting can be set in the transmission.config file but I was not able to locate it. The -a add this IP to the whitelist (list that says who can access the interface). This list can also be disable but as I mentioned I cannot find the config file for transmission.
4) Finally go to your favorite web browser and enter the following in the address bar:
Your PBO IP address:9091 ex: 192.168.0.102:9091 "9091 is the port used by transmission for it's web interface.
If everything when ok you should now see the web interface of transmission in your web page. Just open a torrent file and go crazy. The torrent will be downloaded to the usual directory /BT. Now that being said this is work in progress and I did lock up my PBO a few times while the torrent was downloading. At least it's a starting point for those of you that like to experiment.
EDIT: Forgot to mention that if you want to stop transmission server just enter the following: "killall transmission-daemon"
Last edited by snappy46; 03-01-2010 at 03:16 AM.
As a non-Linux person, this has been a MAJOR learning curve for me.Help would be most appreciated.
I extracted vsftpd.gar.tz to a directory (/tmp/vsftpd), and then copied the vsftpd.conf file within it to opt/etc/ and reconfigured it as noted a couple posts above.
Then when I restarted PBO, the vsftpd directory was gone! (The moved .conf file was still intact). Wha' happened?
Should I have extracted it to somewhere else? No post indicates a specific directory.
===============================
User ipkg-cl to install vsftpd.
1. install ipkg (first post)
2. run these cmds.
# cd /opt/tmp
# wget http://ipkg.nslu2-linux.org/feeds/op...2-1_mipsel.ipk
# ipkg-cl install vsftpd_2.2.2-1_mipsel.ipk
# rm vsftpd_2.2.2-1_mipsel.ipk
3. edit vsftpd.conf
# cd /opt/etc
# mv vsftpd.conf vsftpd.conf.ori
# touch vsftpd.conf
# vi vsftpd.conf
(press i for insert, then copy and paste following lines)
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
vsftpd_log_file=/opt/var/log/vsftpd.log
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to My PBO.
ls_recurse_enable=YES
listen=YES
ftp_username=nobody
secure_chroot_dir=/tmp/hdd/volumes/HDD1 (add this line if you have bootcode .16, thanks to jamaroney)
(then press ESC and type :wq! to exit vi editor)
added: make the log directory
# mkdir -p /opt/var/log
4. start vsftpd
# /opt/sbin/vsftpd /opt/etc/vsftpd.conf &
***note: thank jamaroney pointed out, it should be /opt/sbin/vsftpd
5. auto start vsftpd at boot
add this line to the end of /usr/local/etc/rcS
/opt/sbin/vsftpd /opt/etc/vsftpd.conf &
6. login
from DOS:
c:\> ftp venus
user: anonymous
password: anything@anything.com
or use any ftp client you like. (FireFTP is a nice Firefox extension)
Note:
1. you need to have the internal hard disk installed for all this.
2. above is installed vsftpd as a standalone ftp server with anonymous enabled, you might modify vsftpd.conf to enable login.
3. i wrote this out of my memory, could be typo there, let me know if you have any trouble following.
Last edited by supergizboy; 03-05-2010 at 04:51 PM.