Author Topic: (S)FTP client for the Zero?  (Read 2670 times)

lokkenjawnz (OP)

  • *
  • Posts: 6
(S)FTP client for the Zero?
« on: December 15, 2013, 07:34:31 am »
Has anyone looked into a simple (S)FTP client for the Zero? It'd be a really nice way to grab files without having to use a computer as an intermediary. That way you can just setup a local server, throw all the files you want on it, and selectively pull them without putting down the Zero!

Has OpenSSH been ported to MIPS? Can it be? That could probably be a decent start, for the backend anways. There may be simpler/lighter solutions though that I'm not aware of, hopefully someone much more knowledgeable than I can chime in on the subject.

mth

  • *
  • Posts: 298
Re: (S)FTP client for the Zero?
« Reply #1 on: December 15, 2013, 06:03:17 pm »
OpenSSH is already present on the rootfs. But I'm not aware of any UI for it that is usable without a full keyboard or mouse.

lokkenjawnz (OP)

  • *
  • Posts: 6
Re: (S)FTP client for the Zero?
« Reply #2 on: December 16, 2013, 05:02:57 am »
Well that's certainly a start, once USB-OTG is working that should be fairly workable, though still not ideal. I imagine there must already be a simple front end for it, hopefully one that'd be easy to port over, and work with only game controls. I'd lend my hand to it, but I really don't know anything about porting.

It'd also be nice to get a package manger like apt or yum on it, could open up some nice Linux utilities and daemons.

mth

  • *
  • Posts: 298
Re: (S)FTP client for the Zero?
« Reply #3 on: December 16, 2013, 10:18:12 pm »
Well that's certainly a start, once USB-OTG is working that should be fairly workable, though still not ideal. I imagine there must already be a simple front end for it, hopefully one that'd be easy to port over, and work with only game controls. I'd lend my hand to it, but I really don't know anything about porting.
One possibility would be to add SFTP support in DinguxCommander, since that already has a GUI for manipulating files. Any volunteers?

As a workaround, it might be possible to use FUSE to mount a remote server as a local file system and then use DinguxCommander to transfer files. There is no FUSE support in the current kernel and rootfs if I recall correctly, but that's a matter of enabling it in the configs and rebuilding; it wouldn't require new code to be written.

It'd also be nice to get a package manger like apt or yum on it, could open up some nice Linux utilities and daemons.
Just having the package manager is not sufficient: all packages have dependencies and the only way you'll be able to run a package from a distro is to install all its dependencies as well, up to the libc. You could try to install Debian (I'm not aware of another distro that has pre-built packages for MIPS) in a chroot environment on the Zero, but it would be like installing two separate operating systems that share only the kernel.

There will not be a package manager in the traditional sense for OpenDingux. The mechanism we use now with a read-only rootfs image and self-contained applications is more reliable and a lot easier to support (but less flexible). We do want to have an application manager for installing, removing and updating applications that are packaged as OPK files.

lokkenjawnz (OP)

  • *
  • Posts: 6
Re: (S)FTP client for the Zero?
« Reply #4 on: December 16, 2013, 11:06:53 pm »
Well that's certainly a start, once USB-OTG is working that should be fairly workable, though still not ideal. I imagine there must already be a simple front end for it, hopefully one that'd be easy to port over, and work with only game controls. I'd lend my hand to it, but I really don't know anything about porting.
One possibility would be to add SFTP support in DinguxCommander, since that already has a GUI for manipulating files. Any volunteers?

As a workaround, it might be possible to use FUSE to mount a remote server as a local file system and then use DinguxCommander to transfer files. There is no FUSE support in the current kernel and rootfs if I recall correctly, but that's a matter of enabling it in the configs and rebuilding; it wouldn't require new code to be written.

This sounds very promising! I know there's SSHFS for FUSE, and that works pretty damn well, and I'm sure there are other better ways along the same lines. Just a simple interface for connecting to a networked drive would be great, it'd probably need an onscreen keyboard unfortunately, but including a favorite list could make it pretty slick. I wish I knew how to try something like that!

It'd also be nice to get a package manger like apt or yum on it, could open up some nice Linux utilities and daemons.
Just having the package manager is not sufficient: all packages have dependencies and the only way you'll be able to run a package from a distro is to install all its dependencies as well, up to the libc. You could try to install Debian (I'm not aware of another distro that has pre-built packages for MIPS) in a chroot environment on the Zero, but it would be like installing two separate operating systems that share only the kernel.

There will not be a package manager in the traditional sense for OpenDingux. The mechanism we use now with a read-only rootfs image and self-contained applications is more reliable and a lot easier to support (but less flexible). We do want to have an application manager for installing, removing and updating applications that are packaged as OPK files.


Ah, that makes sense. Given that Debian has MIPS support though, could it be doable to just port various things from that, or from a similarly MIPS supported distro. I mentioned it in another thread that didn't get much traction, but I think running MPD on the Zero could be pretty cool, have it act as a portable network jukebox of sort. I've got a similar setup running on a Raspberry Pi, but consolidating it to one device (with a built in battery to boot!) would be really nice.

pcercuei

  • ***
  • Posts: 1428
    • My devblog
Re: (S)FTP client for the Zero?
« Reply #5 on: December 17, 2013, 11:27:49 am »
Well you can compile MPD with the toolchain, it would be easier than trying to run Debian binaries.

lokkenjawnz (OP)

  • *
  • Posts: 6
Re: (S)FTP client for the Zero?
« Reply #6 on: December 18, 2013, 08:32:43 am »
Well you can compile MPD with the toolchain, it would be easier than trying to run Debian binaries.

Yeah I should really figure out how to do that...

That might make for a good weekend project!

 

Post a new topic
Post a new topic