meteor icon indicating copy to clipboard operation
meteor copied to clipboard

Run meteor on Android (Termux)

Open TomFreudenberg opened this issue 10 years ago • 5 comments

From Joe ( @trusktr ) at: forums.meteor.com

Hello Tom, I'm using Termux for Android2 which provides a sandboxed linux environment (as in it runs everything in it's app-specific filesystem, not on the user's sdcard and not in root (my phone isn't rooted)) with Debian's apt-get for package management (I've installed NeoVim, which works great in the terminal!). I was trying to get your universal Meteor fork (that you mentioned on GitHub) running inside this environment but came across a small problem: the beginning of the (JavaScript) Meteor scripts all start with

#!/usr/bin/env node

but /usr doesn't exist on the phone, which errors out. As a workaround, I can start to fix the problem by editing each file so it has

#!/data/data/com.termux/files/usr/bin/env node

and same for bash scripts, etc. What might be a good way to solve this so that we don't have to manually change the beginning of these files (without needing to root a phone)? Maybe a script that converts all #!/usr/bin/env to #!/data/data/com.termux/files/usr/bin/env would do the trick, and we can host a branch for Termux users to clone?

TomFreudenberg avatar Jan 26 '16 16:01 TomFreudenberg

Hi Joe ( @trusktr )

I like the idea and will start a thread on that. I do not like to run a special fork, currently I get everything in this ARM fork and make some system depend changes. So I will check how it could be possible to provide Termux as well.

Cheers Tom

TomFreudenberg avatar Jan 26 '16 16:01 TomFreudenberg

Sounds great!! It will be so nice to be able to develop on a phone while on the go!

trusktr avatar Jan 27 '16 22:01 trusktr

Joseph, on what device and Android release are you running Termux?

TomFreudenberg avatar Dec 15 '16 02:12 TomFreudenberg

@trusktr Joseph - I just mentioned you here to be sure you get my comments

TomFreudenberg avatar Dec 15 '16 14:12 TomFreudenberg

@trusktr does termux-fix-shebang of termux help to make it work?

luweigen avatar Apr 24 '19 15:04 luweigen