s-macke / jor1k

Online OR1K Emulator running Linux
http://jor1k.com
BSD 2-Clause "Simplified" License
1.74k stars 198 forks source link

request for ftp command #69

Open trabitboy opened 9 years ago

trabitboy commented 9 years ago

hello, I read in one of the docs that easiest way to add software to the linux image is to ask for it because of the custom build chain. Would it be possible to have "ftp" command line tool? We use it to pass small development builds around.

benjamincburns commented 9 years ago

Two things:

First, if it helps any, it looks like you already have sftp and in a pinch you can do quite well with tar, ssh (or telnet) and the pipe operator. This is called a tarpipe.

Second, this is really what a package manager is for. For a distro of this size, opkg would be ideal, however I did do some[1] work a while back to see about running Debian w/ a package mirror hosted on the relay. I didn't get very far.

If somebody is willing to play the role of package maintainer, I'd be very pleased to host the apt repos on the same machine which hosts the VPN. Further, I'd be very happy to disable throttling of bandwidth for connections to/from the package repo. This would give the fastest possible access to the package repos.

@s-macke: FWIW I'm still embarrassingly in love with this project, but I never have the time to contribute in the way that I'd like. If you know of someone who'd like to be actively working on Debian support (or support for any other major distro) for (j)or1k, I'd really enjoy supporting the effort in any way I can. Specifically, I'd be happy to host (and to some degree, maintain) an automated build environment to make this a bit easier.

1: By "some" I mean very little, and I cannot take any credit for the OR1K Debian port as I was not involved with that in any way.

s-macke commented 9 years ago

@trabitboy: busybox comes with ftpput and ftpget. Is this not enough? An alternative would be to compile NcFTP or inetutils. I can try it.

trabitboy commented 9 years ago

Thanks for the really useful/ educative answers ; trying the ftpput get / then tarpipe out of curiosity .

On 12 May 2015 at 00:16, Sebastian Macke notifications@github.com wrote:

@trabitboy https://github.com/trabitboy: busybox comes with ftpput and ftpget. Is this not enough? An alternative would be to compile NcFTP or inetutils. I can try it.

— Reply to this email directly or view it on GitHub https://github.com/s-macke/jor1k/issues/69#issuecomment-101064569.

s-macke commented 9 years ago

I compiled ncftp without problems. However the program crashes when a ftp connection is established. Somewhere in a memcpy routine.

trabitboy commented 9 years ago

I could use ftpget and ftpput without pb; if I succeed in getting a directory listing with telnet, my use case is covered! Le 12 mai 2015 22:49, "Sebastian Macke" notifications@github.com a écrit :

I compiled ncftp without problems. However the program crashes when a ftp connection is established. Somewhere in a memcpy routine.

— Reply to this email directly or view it on GitHub https://github.com/s-macke/jor1k/issues/69#issuecomment-101415102.