Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtheall/ftpd
FTP Server for 3DS/Switch
https://github.com/mtheall/ftpd
Last synced: about 1 month ago
JSON representation
FTP Server for 3DS/Switch
- Host: GitHub
- URL: https://github.com/mtheall/ftpd
- Owner: mtheall
- License: gpl-3.0
- Created: 2014-11-23T22:40:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T21:24:08.000Z (8 months ago)
- Last Synced: 2024-05-01T23:55:54.621Z (7 months ago)
- Language: C++
- Homepage:
- Size: 2.94 MB
- Stars: 1,295
- Watchers: 67
- Forks: 131
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome - ftpd - FTP Server for 3DS/Switch (Nintendo Switch)
README
# ftpd
FTP Server for 3DS/Switch/Linux.
## Features
- Appears to work well with a variety of clients.
- Supports multiple simultaneous clients. The 3DS itself only appears to support enough sockets to perform 4-5 simultaneous data transfers, so it will help if you limit your FTP client to this many parallel requests.
- Cutting-edge [graphics](#dear-imgui).- Exit on NDS/3DS with START button
- Exit on Switch with PLUS button- Toggle backlight on NDS/3DS with SELECT button
- Toggle backlight on Switch with MINUS button- Emulation of a /dev/zero (/devZero) device for network performance testing
- Example retrieve `curl ftp://192.168.1.115:5000/devZero -o /dev/zero`
- Example send `curl -T /dev/zero ftp://192.168.1.115:5000/devZero`## Dear ImGui
ftpd uses [Dear ImGui](https://github.com/ocornut/imgui) as its graphical backend.
Standard Dear ImGui controller inputs are supported.
- A
- Activate/Open/Toggle
- Tweak value with D-Pad (+ L/R to tweak slower/faster)
- B
- Cancel/Close/Exit
- X
- Edit text / on-screen keyboard
- Y
- Tap: Toggle menu
- Hold + L/R: Focus windows
- Left Stick
- Scroll
- Move window (when holding Y)
- D-Pad
- Move
- Tweak values (when activated with A)
- Resize window (when holding Y)## Latest Builds
NDS: https://mtheall.com/~mtheall/ftpd.nds
CIA: https://mtheall.com/~mtheall/ftpd.cia
3DSX: https://mtheall.com/~mtheall/ftpd.3dsx
NRO: https://mtheall.com/~mtheall/ftpd.nro
CIA QR Code
![ftpd.cia](https://github.com/mtheall/ftpd/raw/master/ftpd-qr.png)
## Classic Builds
Classic builds use a console instead of Dear ImGui.
CIA: https://mtheall.com/~mtheall/ftpd-classic.cia
3DSX: https://mtheall.com/~mtheall/ftpd-classic.3dsx
NRO: https://mtheall.com/~mtheall/ftpd-classic.nro
CIA QR Code
![ftpd-classic.cia](https://github.com/mtheall/ftpd/raw/master/ftpd-classic-qr.png)
## Build and install
You must set up the [development environment](https://devkitpro.org/wiki/Getting_Started).
### NDS
The following pacman packages are required to build `nds/ftpd.nds`:
devkitARM
dswifi
libfat-nds
libndsThey are available as part of the `nds-dev` meta-package.
### 3DSX
The following pacman packages are required to build `3ds/ftpd.3dsx`:
3dstools
devkitARM
libctruThey are available as part of the `3ds-dev` meta-package.
Build `3ds/ftpd.3dsx`:
make 3dsx
### NRO
The following pacman packages are required to build `switch/ftpd.nro`:
devkitA64
libnx
switch-tools
switch-libzstdThe first three are available as part of the `switch-dev` meta-package. Additionally, ImageMagick is required for converting assets.
Build `switch/ftpd.nro`:
make nro
## Supported Commands
- ABOR
- ALLO (no-op)
- APPE
- CDUP
- CWD
- DELE
- FEAT
- HELP
- LIST
- MDTM
- MKD
- MLSD
- MLST
- MODE (no-op)
- NLST
- NOOP
- OPTS
- PASS (no-op)
- PASV
- PORT
- PWD
- QUIT
- REST
- RETR
- RMD
- RNFR
- RNTO
- SITE
- SIZE
- STAT
- STOR
- STRU (no-op)
- SYST
- TYPE (no-op)
- USER (no-op)
- XCUP
- XCWD
- XMKD
- XPWD
- XRMD## Planned Commands
- STOU
## SITE commands
- Show help: SITE HELP
- Set username: SITE USER
- Set password: SITE PASS
- Set port: SITE PORT
- Set getMTime*: SITE MTIME [0|1]
- Save config: SITE SAVE*getMTime only on 3DS. Enabling will give timestamps at the expense of slow listings.