DEV Community

How To Code On Your Smartphone (With A Terminal)

Khauri on May 03, 2020

Overview In this article I'm going to show you how to use Termux to install nodejs, set up a react app with create-react-app, and edit t...
Collapse
 
josiasaurel profile image
Josias Aurel

Unfortunately the above command didn't work for me :

No command tcpsvd found, did you mean:
 Command pcscd in package pcscd from the root-repo repository
 Command tclsh in package tcl
 Command tcsh in package tcsh

Can you help ?

Collapse
 
khauri profile image
Khauri

Interesting. I might be misremembering, but I thought tcpsvd came pre-installed with termux.

I believe you can also get it from busybox by using pkg install busybox.

You could also use other (and probably better) means of starting the ftp server, such as the one listed here: wiki.termux.com/wiki/Remote_Access

Let me know if you're able to figure it out. I'll try and do some more investigating and get back to you.

Collapse
 
josiasaurel profile image
Josias Aurel

I already have it installed . It won't work

Thread Thread
 
khauri profile image
Khauri

Hey I did some testing and can confirm that tcpsvd doesn't seem to come with newer installations of termux, but it is still available form busybox.

After installing busybox you're meant to run tcpsvd (and any of its other commands) by putting busybox in front of it.

busybox tcpsvd [...options]

If you prefer you can also run this command

ln -s busybox $PREFIX/bin/tcpsvd

Which will allow you to run tcpsvd without prefixing it with busybox like normal.

Thread Thread
 
josiasaurel profile image
Josias Aurel

Thanks for your help anyway

Collapse
 
villarroelcelis profile image
Alejandro V.

Good stuff, thanks. I tried doing this a while back, but gave up when termux didn't see the files I created with the code editor I was using.

Collapse
 
eedris profile image
Idris Abdul-Lateef

Finally got the ftp server up. But it doesn't show any files on Acode when I connect it to the server; it's just blank. I can't create a file or folder on the "blank" server either. This happened in another ftp client I connected to the server.

But I connected Google Chrome and it worked! Folders and files were displayed and all. What's up with that?

Collapse
 
eedris profile image
Idris Abdul-Lateef • Edited

After a lot of hassle, I installed the react app. (I really don't know; termux closes by itself when the installation is complete)

However, when I go into the my-app folder and run "npm start", this is what it shows:

npm ERR! missing script: "start"

Collapse
 
harshg775 profile image
harshG775

It's can be because you are running "npm start"
outside of termux folder

Collapse
 
elayeche profile image
BELearn

Hello if you have error connection Ftp between trimux and acode do this :

Warning: plain FTP is deprecated and insecure anyway. Termux FTP server supports only anonymous login, there no any authentication and everyone on your network can access files on your device. Use SFTP (OpenSSH) instead!

Termux FTP server is based on busybox and service is managed by [Termux-services]. If you decided to use FTP server, install these packages:

pkg install busybox termux-services
After installation you need to restart session or source this file:

source $PREFIX/etc/profile.d/start-services.sh
Now you ready to enable and start the FTP daemon service:

sv-enable ftpd
sv up ftpd
FTP server will run on port 8021 in read-only mode.

If you need to stop server, run sv down ftpd.

Collapse
 
uwemisrael profile image
Uwem

Thanks for the article. For me

busybox tcpsvd -vE 0.0.0.0 1024 busybox ftpd -w ~
Enter fullscreen mode Exit fullscreen mode

Worked after granting Termux file storage permission

Collapse
 
shahidharith profile image
Shahid • Edited

Didn't work. This is the response.

Collapse
 
spyda247 profile image
Babajide Ibiayo

Could not get ftp server up. Did some research and this helped get the ftpd up. wiki.termux.com/wiki/Remote_Access

Collapse
 
amalaj5025 profile image
Amalaj5025

Cant get the ftp up