News for hackers. Stuff that matters.
Re:Show HN: Terminal, a sandboxed command-line interface for... by louisdh on Saturday January 06, 2018 @02:43PM (#16087038)
This project is open source: https://github.com/louisdh/terminal
Re:Show HN: Terminal, a sandboxed command-line interface for... by basdp on Saturday January 06, 2018 @04:50PM (#16087669)
This is just a very simple frontend to this library: https://github.com/holzschu/ios_system

That library is just a simple implementation of some basic commands. It does not do any executable execution, it does not use the real system utilities. Nor does it has anything to do with Bash, or shell scripts. It’s just basically one big ‘switch’ for all commands, which are implemented in the app itself.

Re:Show HN: Terminal, a sandboxed command-line interface for... by bradknowles on Sunday January 07, 2018 @12:33AM (#16089414)
So, kinda like BusyBox?
Re:Show HN: Terminal, a sandboxed command-line interface for... by basdp on Tuesday January 09, 2018 @04:33PM (#16110323)
Except busybox allows execution of external binaries. And BB is much (MUCH) more complete. Let that sink in.
Re:Show HN: Terminal, a sandboxed command-line interface for... by judge2020 on Saturday January 06, 2018 @04:19PM (#16087518)
Glad to see the developer who reserved the name was able to put it to good use. Almost all built-in MacoS app names have been taken on the iOS store [1].

[1] https://judge2020.me/rmTqJ5XV.png

Re:Show HN: Terminal, a sandboxed command-line interface for... by renchap on Saturday January 06, 2018 @03:59PM (#16087422)
Seems great! Any plans to include ssh and/or mosh?
Re:Show HN: Terminal, a sandboxed command-line interface for... by alsetmusic on Saturday January 06, 2018 @04:23PM (#16087537)
> Any plans to include ssh and/or mosh?

I saw this mentioned on a blog that I read only last night:

Blink Shell: Mosh & SSH by Carlos Cabanero

https://itunes.apple.com/us/app/blink-shell-mosh-ssh/id11567...

It’s $20, so I haven’t tried it yet. UI looks good and reviews seem positive. I am not affiliated with the app or dev.

Re:Show HN: Terminal, a sandboxed command-line interface for... by bradknowles on Sunday January 07, 2018 @12:44AM (#16089460)
It is expensive, but it looked really good so I was willing to give it a try. We'll see how it works out.
Re:Show HN: Terminal, a sandboxed command-line interface for... by julien_c on Saturday January 06, 2018 @04:51PM (#16087673)
Blink is awesome.

It's also open source and pretty easy to build yourself if you have Xcode around.

Re:Show HN: Terminal, a sandboxed command-line interface for... by avtar on Saturday January 06, 2018 @04:11PM (#16087479)
Getting access to SSH private keys might be an issue.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:18PM (#16087512)
There's Blink (blink.sh) already for that use case
Re:Show HN: Terminal, a sandboxed command-line interface for... by nailer on Saturday January 06, 2018 @05:27PM (#16087823)
Clickable: http://www.blink.sh/ - interesting as it's designed for mobile responsiveness and uses it's own protocol.
Re:Show HN: Terminal, a sandboxed command-line interface for... by avtar on Saturday January 06, 2018 @04:22PM (#16087529)
Ah keychain, of course :) Thanks for pointing that out.
Re:Show HN: Terminal, a sandboxed command-line interface for... by vaughngh on Saturday January 06, 2018 @06:21PM (#16088058)
I've had luck with Termius (and it's free)
Re:Show HN: Terminal, a sandboxed command-line interface for... by kennethfriedman on Saturday January 06, 2018 @04:40PM (#16087616)
In the past, it was against App Store Guidelines to have interpreters in an app. Is that no longer the case?

Could there be an app that has a Python interpreter built into it, so that the logic of the app used Python, with just a Swift/ObjC UI on top of it?

Re:Show HN: Terminal, a sandboxed command-line interface for... by julien_c on Saturday January 06, 2018 @04:48PM (#16087661)
Yes, there are multiple apps built around a Python interpreter (Quik by GoPro is one that I know of).

I think that policy changed around 2011.

Re:Show HN: Terminal, a sandboxed command-line interface for... by hprotagonist on Saturday January 06, 2018 @05:12PM (#16087757)
The app in question is Pythonista. it’s kind of wonderful.
Re:Show HN: Terminal, a sandboxed command-line interface for... by mr_toad on Saturday January 06, 2018 @08:14PM (#16088492)
I think the guidelines still disallow JIT compilation.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @03:56PM (#16087409)
Very nice so far! Could this run an actual shell (bash), with support for a .bashrc (aliases!) and readline?

Could there be compatiblity wrappers for rsync/scp, falling back to curl?

I'm also not that into green on black. Any plans for themes?

Re:Show HN: Terminal, a sandboxed command-line interface for... by Spooky23 on Saturday January 06, 2018 @04:20PM (#16087522)
Check out pythonista. It can do many of the things you are talking about, except in Python!
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:39PM (#16087612)
Yeah, my point exactly! If Pythonista can be on the app store, then why not a full shell?
Re:Show HN: Terminal, a sandboxed command-line interface for... by glhaynes on Saturday January 06, 2018 @04:45PM (#16087640)
You can't fork() in App Store apps. Which is why all of the commands on the linked Terminal app are built-ins. So a bash-like of sorts could be made to work, but it would be very different and quite limited.
Re:Show HN: Terminal, a sandboxed command-line interface for... by brians on Saturday January 06, 2018 @06:39PM (#16088129)
You can’t fork a kernel thread. The hard part, and the value, of such an app would be a userspace fork() to a simulated thread.
Re:Show HN: Terminal, a sandboxed command-line interface for... by glhaynes on Saturday January 06, 2018 @11:25PM (#16089152)
I'm not sure what you mean - what's the relevance of a kernel thread (or threads in general) here?
Re:Show HN: Terminal, a sandboxed command-line interface for... by Gaelan on Saturday January 06, 2018 @04:42PM (#16087626)
Curl exists, so you could run bash if you can figure out some way to give it an executable bit (chmod doesn't exist), unless iOS refuses to run executables at all unless they're signed?
Re:Show HN: Terminal, a sandboxed command-line interface for... by 0x0 on Saturday January 06, 2018 @04:58PM (#16087710)
iOS refuses to run executable at all if unsigned. In fact, iOS restricts regular apps from calling fork() and exec() so you won't even have a chance to try.
Re:Show HN: Terminal, a sandboxed command-line interface for... by seba_dos1 on Saturday January 06, 2018 @04:06PM (#16087455)
That would probably get removed from the walled garden.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:14PM (#16087491)
I thought Apple significantly relaxed the rules on running external code inside an app. Pythonista is pretty powerful these days. So I'd be hopeful a full shell with scripting support could make it into the store (still sandboxed, of course)
Re:Show HN: Terminal, a sandboxed command-line interface for... by miles on Saturday January 06, 2018 @03:12PM (#16087186)
This is awesome - thank you! Love being able to download files via curl and search with grep under iOS. Any chance of adding a basic text editor (vi, pico, or even ed) and maintaining history across launches?
Re:Show HN: Terminal, a sandboxed command-line interface for... by louisdh on Saturday January 06, 2018 @03:18PM (#16087218)
I think having a separate app for editing files makes more sense on iOS. There's iVim, for example (https://itunes.apple.com/us/app/ivim/id1266544660?mt=8). Maintaining history sounds like a neat feature, thanks for your feedback!
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @03:58PM (#16087417)
Would it be possible to have an 'open' command that opens any file in their respective app? Maybe even configurable aliases like 'vim' to open files in a specific app (iVim) -- hence my other comment about support for a .bashrc
Re:Show HN: Terminal, a sandboxed command-line interface for... by Spooky23 on Saturday January 06, 2018 @04:13PM (#16087487)
I think you can use curl to accomplish that for many apps. That’s the secret sauce of Workflow.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:22PM (#16087530)
Great idea! Definitely calls for aliases, though.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:05PM (#16087454)
Another idea: would it be possible to mount cloud providers (Dropbox, iCloud, etc)?
Re:Show HN: Terminal, a sandboxed command-line interface for... by Bud on Saturday January 06, 2018 @04:07PM (#16087465)
Can't see how. Like all iOS apps, it's sandboxed.
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:11PM (#16087481)
Any app can access e.g. Dropbox directly, no? It'd just have to "display" it as a filesystem. Probably too much work..
Re:Show HN: Terminal, a sandboxed command-line interface for... by Bud on Saturday January 06, 2018 @06:36PM (#16088111)
You said "mount". I took you literally. (Got downvoted for it too; no idea why.)
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @08:45PM (#16088604)
What I had in mind was basically FUSE (like https://github.com/joe42/CloudFusion). I don't think it would violate sandboxing, but it's probably very non-trivial to implement in this kind of app
Re:Show HN: Terminal, a sandboxed command-line interface for... by DRW_ on Saturday January 06, 2018 @04:12PM (#16087485)
iOS apps can access third party services..
Re:Show HN: Terminal, a sandboxed command-line interface for... by 7ewis on Saturday January 06, 2018 @04:14PM (#16087490)
It's cool, but are there any practical uses for this?
Re:Show HN: Terminal, a sandboxed command-line interface for... by goerz on Saturday January 06, 2018 @04:17PM (#16087509)
My person impression is: not really at this time. But it's a pretty amazing proof of concept, and could grow into something immensely useful (a full local shell). I'm really glad this is open source, so there is the potential for people to contribute more substantial functionality.
Re:Show HN: Terminal, a sandboxed command-line interface for... by bocklund on Saturday January 06, 2018 @04:32PM (#16087577)
Looks like it requires iOS 11
Re:Show HN: Terminal, a sandboxed command-line interface for... by nextstep on Saturday January 06, 2018 @04:13PM (#16087488)
Why is it rated “age 17+”?
Re:Show HN: Terminal, a sandboxed command-line interface for... by ken on Saturday January 06, 2018 @04:19PM (#16087517)
It says on the next line: "Unrestricted Web Access". The App Store rules say if you can use it to download arbitrary web content, it's gotta be 17+. Otherwise, age restrictions would be pretty much meaningless.
Re:Show HN: Terminal, a sandboxed command-line interface for... by 5_minutes on Saturday January 06, 2018 @03:55PM (#16087400)
With the (apple.com) it looks like an official release
Re:Show HN: Terminal, a sandboxed command-line interface for... by ben174 on Saturday January 06, 2018 @04:13PM (#16087489)
Yea. And the name is very similar to MacOS’s Terminal.app which is developed by Apple. Might want to update the title to reflect that it’s third party.
Re:Show HN: Terminal, a sandboxed command-line interface for... by dang on Saturday January 06, 2018 @05:27PM (#16087822)
OK, we've changed to the project page on Github. Submitted URL was https://itunes.apple.com/app/terminal/id1323205755?mt=8&at=1....