Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Mobile Terminal alpha version!
08-02-2007, 01:30 AM #1
Mobile Terminal alpha version!
- Join Date
- Jul 2007
- Thanked 2 Times in 1 Post
Hey, we have a full MobileTerminal GUI app for the iPhone for those of you with the unix binaries on there, it wraps them, you can use ssh, etc straight from your phone...
check it out at
help us out on irc.osx86.hu in #iphone-uikit
08-02-2007, 07:18 AM #2
08-02-2007, 10:09 AM #3
Freakin sweet man.
08-02-2007, 12:59 PM #4
Nice! Now I have a reason to get those ssh binaries on the phone, these 2 together = ssh out on the iphone. I know what I'll be doing tonight
08-05-2007, 09:05 PM #5
i'm getting a tcp error when i try that.....
08-05-2007, 09:10 PM #6
Anyone have this working using Windows machine?
08-05-2007, 09:56 PM #7
Yep . Just follow the instructions.
08-06-2007, 12:44 AM #8
I downloaded an copied over the files for the ssh binkit 06 , i was wondering if anyone got ping to work. when i type ping in, it acts like the program doesnt exist. Also someone mentioned SSH out? can anyone confirm this?
08-07-2007, 08:20 PM #9
how can i ssh out from iphone?
08-07-2007, 09:03 PM #10
can somebody explain how I can use this app? Looks so cool...
08-07-2007, 11:44 PM #11
Oh yes, ssh out from the iphone is confirmed working by me
It isn't perfect, but what a leap forward, three cheers for all the developers/modders out there putting all their effort into this!
A quick run down of what I did to get it setup...
1. Of course jailbreak first and foremost...
2. Get ssh onto the phone: http://cre.ations.net/blog/post/howt...on-your-iphone
The script tries to copy your iTunesMobileDevice.dll into the working directory, and it comes with its own iphoneinterface.exe. I was getting errors trying to use those versions, to fix I copied my old (from iphone v1.0.0) iTunesMobileDevice.dll, and my existing working iphoneinterface.exe into the sshkit directory. Problems went away and I was off and running.
Once those errors were resolved this was very easy to do since I'm using windows. If you are on a mac and know how to read a batch file, just open it up and do all the steps manually, will take a little time but there's nothing there that requires a windows box (I think there's a mac version of that easy install somewhere, just don't have the link handy).
3. Install Terminal.app: http://code.google.com/p/mobileterminal/
Again very easy, just follow their instructions.
4. Install ssh2: http://iphone.natetrue.com/ssh_3.2.9...o_acorn.tar.gz
I only copied the client binaries onto my phone (nothing with 'd' in the filename, i.e. 'sshd2', those are the server binaries).
Follow the instructions in the README.
5. Anything you've uploaded to the phone that you need to execute you'll need to "chmod +x" the binary, i.e. "chmod +x ssh2".
6. Reboot iphone, a pretty new 'Terminal' application is on the home screen, open it up, then ssh out like you would from any *nix box "ssh2 [email protected]"
Last edited by copland007; 08-07-2007 at 11:53 PM. Reason: Automerged Doublepost
The Following User Says Thank You to copland007 For This Useful Post:
Kyle Matthews (08-08-2007)
08-08-2007, 12:28 AM #12
Awesome, copland. Great info..
↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
08-08-2007, 01:26 AM #13
Here's a hint to help those looking to create shortcuts for common things...
Upload/create the file /var/root/.profile with these contents:Code:
# Aliases alias pico='pico -w' alias rm='rm -i' alias ssh='ssh2' alias myssh='ssh2 [email protected]' # User specific environment PATH=$PATH:/sbin:/usr/sbin TERM=vt100 export PATH TERM
If you are a *nix user no explanation is needed, you know what that file does and why... for those who don't read on:
The .profile file will get 'sourced' when you login/start a 'sh' shell. By default the preferred shell for the root user is '/bin/sh'. If you want to use this file for a different shell you need to rename and possibly change the contents, all depends on the shell. For bash shells just change the filename to .bash_profile, the same content works for both /bin/sh and /bin/bash.
These profile files let you configure your environment the way you like. I've included some sample common settings that you can remove or alter to your liking. Here's what each line does:
The aliases are shortcuts, typing the first part of the alias will execute what's in the quotes.
The pico alias will execute pico with the '-w' flag, prevents long lines from wrapping.
The rm alias will execute rm with the '-i' flag, prompts you to confirm everything you try to delete (you can override this by doing rm -f).
The ssh alias is just for those who don't want to type ssh2.
The myssh is an example for you to setup a shorter way of ssh'ing into a common host with a username so you don't have to type/touch it all out everytime on the iphone.
"PATH=$PATH:/sbin" -> This guy adds directories to be searched when you type a command to execute. You can add more paths by adding ":/path/to/add" to the end of that line.
"TERM=vt100" -> If you want to use full screen goodies like pico on the iphone you need to install vt100, and you need to set the TERM environment variable to be 'vt100'. That's what this line is doing. If you don't have vt100 installed remove or comment this line!
The final 'export' command injects the specified variables into your environment, in this case our updated 'PATH' and 'TERM' will get injected into our environment.
Last edited by copland007; 08-08-2007 at 02:15 AM. Reason: added /usr/sbin to PATH
The Following User Says Thank You to copland007 For This Useful Post:
08-08-2007, 01:55 AM #14
I tried doing the .profile file (I'm familiar with a unix base)
But I was unable to get it to take. Did I miss something?
08-08-2007, 02:39 AM #15
If you have 'printenv' and 'alias' available they can help troubleshooting to see if your .profile changes take affect. Open up the terminal app and execute 'alias', it should return the list of all currently defined aliases.
Executing 'printenv' should show any changes to anything that is 'exported' from your .profile, like the updated PATH and TERM settings.
Should look something like the attached screenshot...
08-08-2007, 02:41 AM #16
I should also make note that I am using Terminal v85 if that makes a difference, it's possible earlier versions don't behave the same way.
08-08-2007, 10:10 AM #17
I'm still having an issue. For some reason it wont take the aliases. I'm using v85. I put the file in the right location. But it's just not working.
IDK if this helps, but I'm unable to execute the file. I get "permission denied". Even after chmod 777.
So out of curiosity I made another file in the same location. With just one alias string in it. But that two gets permission denied. Am I missing a step somewhere?
08-08-2007, 11:03 AM #18
Permissions only need to be 600, .profile isn't executed, it's sourced. To force it to re-source execute this "source .profile"
08-08-2007, 11:51 AM #19
hmm when I re-source it, It works great.
So you're saying it isn't being sourced correctly in the first place?
08-08-2007, 11:49 PM #20
What enhancements do you get with installing ssh2 instead of the regular ssh?