Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Ricochet_Choco on October 31, 2017, 02:52:11 AM

Title: FTP server
Post by: Ricochet_Choco on October 31, 2017, 02:52:11 AM
i want install vsftpd on PiCore 9.0

when i tried
Code: [Select]
tce-load -wi vsftpdi get this

Code: [Select]
Downloading: vsftpd.tcz
Connecting to distro.ibiblio.org (152.19.134.43:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: vsftpd.tcz.md5.txt: No such file or directory
Error on vsftpd.tcz

and i cant find vsftpd on appbrowser. any idea? i need your help, thank you
Title: Re: FTP server
Post by: Juanito on October 31, 2017, 03:44:59 AM
How about gftp, lftp or ncftp?
Title: Re: FTP server
Post by: Ricochet_Choco on October 31, 2017, 04:00:05 AM
Thank you Juanito. i will try it  :D

wait those are ftp server right? not a client? because i want use PiCore as FTP server.
Title: Re: FTP server
Post by: Juanito on October 31, 2017, 07:31:15 AM
Code: [Select]
$ tftpd --help
BusyBox v1.26.2 (2017-05-05 07:13:57 UTC) multi-call binary.

Usage: tftpd [-cr] [-u USER] [DIR]

Transfer a file on tftp client's request

tftpd should be used as an inetd service.
tftpd's line for inetd.conf:
        69 dgram udp nowait root tftpd tftpd -l /files/to/serve
It also can be ran from udpsvd:
        udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve

        -r      Prohibit upload
        -c      Allow file creation via upload
        -u      Access files as USER
        -l      Log to syslog (inetd mode requires this)
Title: Re: FTP server
Post by: curaga on October 31, 2017, 02:31:33 PM
TFTP is a different protocol. OP, if there's no server in the repo, you can compile one.
Title: Re: FTP server
Post by: Rich on October 31, 2017, 02:51:51 PM
Hi Ricochet_Choco
Try  inetutils-servers.tcz. It contains:
Code: [Select]
usr/local/sbin/inetd
usr/local/sbin/rexecd
usr/local/sbin/rlogind
usr/local/sbin/rshd
usr/local/sbin/syslogd
usr/local/sbin/tftpd
usr/local/sbin/uucpd
usr/local/sbin/telnetd
usr/local/sbin/ftpd <------------- Is this what you want?
usr/local/sbin/talkd
Title: Re: FTP server
Post by: Ricochet_Choco on November 01, 2017, 12:59:30 PM
Code: [Select]
$ tftpd --help
BusyBox v1.26.2 (2017-05-05 07:13:57 UTC) multi-call binary.

Usage: tftpd [-cr] [-u USER] [DIR]

Transfer a file on tftp client's request

tftpd should be used as an inetd service.
tftpd's line for inetd.conf:
        69 dgram udp nowait root tftpd tftpd -l /files/to/serve
It also can be ran from udpsvd:
        udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve

        -r      Prohibit upload
        -c      Allow file creation via upload
        -u      Access files as USER
        -l      Log to syslog (inetd mode requires this)

what is this mean? i dont understand. i am new to linux. thank you for your reply
Title: Re: FTP server
Post by: Ricochet_Choco on November 01, 2017, 01:01:37 PM
TFTP is a different protocol. OP, if there's no server in the repo, you can compile one.

how can i do that?? try vsftpd on linux mint on my pc and it was working. but on PiCore i cant find any vsftpd. so i dont know

Thank you for reply
Title: Re: FTP server
Post by: Ricochet_Choco on November 01, 2017, 01:03:52 PM
Hi Ricochet_Choco
Try  inetutils-servers.tcz. It contains:
Code: [Select]
usr/local/sbin/inetd
usr/local/sbin/rexecd
usr/local/sbin/rlogind
usr/local/sbin/rshd
usr/local/sbin/syslogd
usr/local/sbin/tftpd
usr/local/sbin/uucpd
usr/local/sbin/telnetd
usr/local/sbin/ftpd <------------- Is this what you want?
usr/local/sbin/talkd

Yes Rich, i want ftp server. how can i do that? i mean using inetutils-servers? can you give me instruction?

thank you for your reply
Title: Re: FTP server
Post by: Rich on November 01, 2017, 01:09:07 PM
Hi Ricochet_Choco
Use the  Apps  utility to install  inetutils-servers  or use this command:
Code: [Select]
tce-load -wi inetutils-servers
Title: Re: FTP server
Post by: Ricochet_Choco on November 01, 2017, 02:27:24 PM
Hi Ricochet_Choco
Use the  Apps  utility to install  inetutils-servers  or use this command:
Code: [Select]
tce-load -wi inetutils-servers

i am try it and it like this

Code: [Select]
tc@box:~$ tce-load -wi inetutils-servers
inetutils-servers.tcz.dep OK
Downloading: inetutils-servers.tcz
Connecting to distro.ibiblio.org (152.19.134.43:80)
inetutils-servers.tc 100% |*****************************************************************************|   296k  0:00:00 ETA
inetutils-servers.tcz: OK

and after this what should i do?

i am sorry, im completely new to networking and linux.


thank for your reply Rich
Title: Re: FTP server
Post by: Rich on November 01, 2017, 10:40:39 PM
Hi Ricochet_Choco
Take a look at this thread and see if it helps:
http://forum.tinycorelinux.net/index.php/topic,13340.msg73948.html#msg73948
Title: Re: FTP server
Post by: Ricochet_Choco on November 06, 2017, 05:29:37 AM
Hi Ricochet_Choco
Take a look at this thread and see if it helps:
http://forum.tinycorelinux.net/index.php/topic,13340.msg73948.html#msg73948

im try to enter those thread but still didnt get it. :'(

i still dont know what to do.

thank you for your reply.
Title: Re: FTP server
Post by: Juanito on November 06, 2017, 05:40:52 AM
please post the steps you have taken and the error messages you get, for example:
Code: [Select]
$ tce-load -i inetutils-servers
$ cat /usr/local/etc/inetd.conf
ftp    stream tcp4 nowait root /usr/local/sbin/ftpd    ftpd -A
$ sudo /usr/local/sbin/inetd
...
Title: Re: FTP server
Post by: Ricochet_Choco on November 06, 2017, 06:50:09 AM
Thank you Juanito,

as far as i know im just only install inetutils server. after that i dont know what to do.

im new to this so i dont know.

i want to install ftp server for my PiCore. i hope you can guide me. thanks
Title: Re: FTP server
Post by: Juanito on November 07, 2017, 01:29:35 AM
you could try something like this:
Code: [Select]
$ tce-load -i inetutils-servers
inetutils.tcz: OK
inetutils-servers.tcz: OK

$ sudo su
# echo "ftp  stream tcp4 nowait root /usr/local/sbin/ftpd  ftpd -A" > /usr/local/etc/inetd.conf
# su tc
$ cat /usr/local/etc/inetd.conf
ftp stream tcp4 nowait root /usr/local/sbin/ftpd ftpd -A

$ sudo mkdir /usr/local/etc/inetd.d

$ sudo /usr/local/sbin/inetd -d
Using pid-file at "/var/run/inetd.pid".
/usr/local/etc/inetd.conf:1: ADD : *:ftp proto=tcp4, wait=0, max=0, user=root group= builtin=no server=/usr/local/sbin/ftpd
registered /usr/local/sbin/ftpd on 4
Title: Re: FTP server
Post by: Rich on November 07, 2017, 01:46:17 AM
Hi Juanito
Don't know whether this is relevant, but  iana-etc.tcz  is a dependency of  inetutils-servers  under  x86. PiCore does not list
this dependency nor is  iana-etc.tcz  in the repository.
Title: Re: FTP server
Post by: Ricochet_Choco on November 07, 2017, 06:42:12 AM
Thank you Juanito, i will try it now.
Title: Re: FTP server
Post by: Ricochet_Choco on November 07, 2017, 06:47:53 AM
Hi Juanito
Don't know whether this is relevant, but  iana-etc.tcz  is a dependency of  inetutils-servers  under  x86. PiCore does not list
this dependency nor is  iana-etc.tcz  in the repository.

Rich? what does it mean?