View Single Post
Old 07-14-2025, 08:06 PM   #25
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,054
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I tested my FTP connection from a Windows command line and it connected, allowed me to login, etc. I used NickelMenu to toggle FTP on using port 1021.

Code:
C:\Users\dbowe>ftp
ftp> open 10.0.0.93 1021
Connected to 10.0.0.93.
220 Operation successful
530 Login with USER+PASS
User (10.0.0.93:(none)): root
331 Specify password
Password:

230 Operation successful
ftp> ls
200 Operation successful
150 Directory listing
.adds
.adobe-digital-editions
.kobo
.kobo-images
.reading-states
.thumbnail-previews
Ebooks
My Notebooks
System Volume Information
fonts
.fat32-epoch
.metadata.json
driveinfo.calibre
metadata.calibre
226 Operation successful
ftp: 219 bytes received in 0.00Seconds 54.75Kbytes/sec.
ftp>
Code:
#
menu_item :main :FTP (status) :cmd_output :500:quiet: /usr/bin/pgrep -f "^/usr/bin/tcpsvd -E 0.0.0.0 1021"  
  chain_success :dbg_toast  :FTP active on port 1021
  chain_failure :dbg_toast  :FTP inactive on port 1021
#
menu_item :main :FTP (toggle) :cmd_output :500:quiet: /usr/bin/pgrep -f "^/usr/bin/tcpsvd -E 0.0.0.0 1021"
  chain_success:skip:4
    chain_failure :cmd_spawn :quiet :exec /usr/bin/tcpsvd -E 0.0.0.0 1021 /usr/sbin/ftpd -w -t 30 /mnt/onboard
    chain_success :dbg_toast :Started FTP server for KOBOeReader partition on port 1021
    chain_failure :dbg_toast :Error starting FTP server on port 1021
    chain_always:skip:-1
  chain_success :cmd_spawn :quiet :/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1021"                  
  chain_always :dbg_toast :Stopped FTP server on port 1021
#
DNSB is offline   Reply With Quote