[Q] Ctrl key and SSH - Eee Pad Transformer Q&A, Help & Troubleshooting

Hi all !
First of, a big thanks to everyone involved with this forum. You guys are doing a great job.
Now to my concerns:
as system administrator, I spend half of my day working on some hosts via ssh. When I got my TF101 I was so psyked to see that there were android ssh clients, thinking that I could also use my tablet + dock as a backup working station.
But after trying all the (free) ssh clients, it seems that none of them can use the Ctrl key on the dock's keyboard. I mean, what the point of an ssh client that doesn't understand the Ctrl key.
After rooting my TF101 I flashed Prime1.5 on it. I though that the terminal emulator in it would help a bit but I ended up finding out that there is no ssh binaries on android so far.
I might give a shot at the native ubuntu installation to see if i could work with it, but I kinda like android so I would prefer to stay on it.
Does anyone have the same problem as me ?
Does any dev around here know of a solution ?
Could it be possible to compile for android the openssh client from the GNU sources ?
Thanks in advance.

This might works. (will take some reading)

makec3rt's link does work. This is the APK:
https://github.com/downloads/lorantkurthy/connectbot/ConnectBot1.apk
This is a different branch with similar features:
https://github.com/downloads/tcoxon/connectbot/connectbot-transformer.apk
The first one has right-alt support and more tablet features, while the second one has right-shift+numbers for functions and a more phone-like interface.

I ended up buying Better Terminal Emulator Pro (can't have external links cause I'm too new). It supports Tab, Ctrl, and even lets you remap Back to Esc. It seems to solve all the problems I had with it.

Not sure if this adds any insight, but I used Connectbot which works with Hackers keyboard. I paired my TF with a bluetooth keyboard and the ctrl key did not work.
I haven't dug into it yet, but I'm hoping it's just a key mapping issue.
sent from my cyanogen(mod) vision

Just use Hacker's keyboard.
It works great with the original ConnectBot or the HoneyComb update that is floating around.
Edit: I misread and thought you were talking about the virtual keyboard. The modified APKs ldrn linked to should work nicely. Note that by default they will not act any differently, you must change a setting to set it for the "Asus Transformer Keyboard"
sassafras

There is a modified version of ConnectBot that is designed to use the Transformer's keyboard correctly.
APK
Github
EDIT :: Oops, same links as post 3. My bad

Thanks for your replies.
So I've tried the modified ConnectBot App and it indeed make the ctrl-key .... well kindof work.
It seems that only some combinaisons are mapped, for example: Ctrl+c and Ctrl+d wor fine but neither ctrl+a nor ctrl+e are recognized. Also the key combos used in 'screen' like ctrl+a,n don't work which is still a big problem for me.
I don't think that modifying a software made for phone in the case of a ssh client. They have no real line editor. it's like typing an sms and send it to the terminal.
In my opinion the best, most proper and probably not too hard solution, would be to find a way to compile a real (from the linux/bsd world) ssh binary that can be used through the terminal emulator on the TF101.
I'll give try to Ubuntu on the TF and see for myself if it can b worth a shot...
thx again.

Hacker's keyboard.

bibifuk said:
I don't think that modifying a software made for phone in the case of a ssh client. They have no real line editor. it's like typing an sms and send it to the terminal.
In my opinion the best, most proper and probably not too hard solution, would be to find a way to compile a real (from the linux/bsd world) ssh binary that can be used through the terminal emulator on the TF101.
Click to expand...
Click to collapse
That's exactly what Better Terminal Emulaor Pro does. It's a terminal emulator with an ssh binary.

Related

Terminal/Console App

Any suggestions on what terminal/console (depending on the world you come from) app is a good choice for the evo? I would like to be able to drop down to the terminal from the evo without using adb/a computer when I need to do so for quick things.
MikeBrWade said:
Any suggestions on what terminal/console (depending on the world you come from) app is a good choice for the evo? I would like to be able to drop down to the terminal from the evo without using adb/a computer when I need to do so for quick things.
Click to expand...
Click to collapse
this type of question is best for the Q&A board.
i use connectbot and have had good luck with it! its free in the market and allows terminal connections via ssh in addition to the localhost connection!
joeykrim said:
this type of question is best for the Q&A board.
i use connectbot and have had good luck with it! its free in the market and allows terminal connections via ssh in addition to the localhost connection!
Click to expand...
Click to collapse
the 'terminal emulator' app rules. drops to a root shell if you're rooted. otherwise a regular user shell.
joeykrim said:
this type of question is best for the Q&A board.
i use connectbot and have had good luck with it! its free in the market and allows terminal connections via ssh in addition to the localhost connection!
Click to expand...
Click to collapse
Well, those lines are always blurry since it is a "development" specific question concerning something that most people on the Q&A board might not care about. However that being said thanks for the suggestion I will give that a shot.
Though we need a better soft keyboard. It's hard to do anything that requires ctrl, alt, escape keys. I've been thinking about writing a soft keyboard that looks a lot like the G1's hard keyboard was. I could do just about everything with the G1 keyboard.
I dig connectbot so far. simple interface to use for local access, or for ssh. The keyboard is the downside as ChrisDos said. However when you search the market for connectbot, you will also get a keyboard in the search results that is free, and designed for console use. I think called Total Keyboard or Full Keyboard or something, and it is free. Not very good, but it allows arrow keys, and ctrl-key combos.
Connectbot on a G1 was part of what convinced me to give up my iPhone, with the ability to both hit tab, esc, and ctrl-combos, all without digging through menus.
When I started on my quest to land a good Android phone, keyboard was pretty high up on the list, but something about the EVO made me give up on that.
I am really hopeing we get a pretty full-proof method for keyboard support either through bluetooth, or usb host (like the N1) in the near future.

[Q] Keyboard Dock meta keys via ssh+GNUScreen/Vim?

Hello. So looking at potential use cases for this tablet; I do most of my work in a terminal in a screen session; with vim or similar. Looking at screen shots of the keyboard; I see Ctrl/Alt keys; Can I expect those to work in ConnectBot or similar?
ctrl-a-c, ctrl-r,ctrl-p, alt-. for bash/vim/etc shortcuts being the idea. Any thoughts?
If not; I'll probably end up tethering in bestbuy and remoting into one of my servers to test...
Interested, too...
I'm also interested in whether Ctrl or Meta / Alt works in any terminal applications on the Transformer. Anyone care to share their experience?
Thanks!
Just now trying connectbot.
It appears that ctrl isn't working for me.
Tab isn't working as a tab, but the right shift works as both a shift and tab.
Alt operates as '/'
When I get a chance, I'll spend a little time investigating more
In Better Terminal Emulator Pro, the Ctrl key works extremely well.
I'm also kind of able to remap the Back key and Search keys to ESC by ^[ and ^[1, but it doesn't quite work out the way I want it to. At least I can access VI by hitting ^[1 (Back key).
Any more updates/ first hand experiences?
Sent from my Nexus One using XDA App
Hacker's Keyboard

[DEV] Developing on the Transformer

I just wanted to kick off a discussion, and possibly start the ball rolling for a project to port some development tools to honeycomb.
Ideally it would be cool to be able to set up a whole Android development environment that runs on the tablet itself. If the project is just too massive in scope, I'd settle for porting GNU GCC and some native development tools. I'm imagining either way it will only be possible to run these things on a rooted device.
Another project I'm interested in is a way to run apps that are not optimized for tablet, blown up to full screen. The way they run right now, if you put the proper flags in AndroidManifest.xml to say that you don't support high dpi or tablet- the UI shows up in a small section of the screen and looks pretty bad. Not as bad as an app that is not designed to blow up to tablet size and is missing the tags though. I'm thinking this will require honeycomb sources though, which are not yet available- but still i'm very interested in working on such a project and would like to hear anyone else's ideas about it.
It would be awesome to do some Android development directly on the Transformer. Subscribing for updates.
On my Nook Color running CM7 there is an option to "Disable Compatibility Mode" which blows apps up to full screen. I think it's a standard Android function but it's usually hidden. Might be available in Spare Parts or something. I'll check when I get a chance.
I think it might be possible since it is java based. I think someone already got the java compiler working.
Sent from my GT-P1000 using Tapatalk
elnoxvie said:
I think it might be possible since it is java based. I think someone already got the java compiler working.
Sent from my GT-P1000 using Tapatalk
Click to expand...
Click to collapse
Nice, your saying this prompted me to search for "android java compiler ported to android" and I found this project, which looks to be very far along. http://code.google.com/p/java-ide-droid/
I haven't installed it yet, but it seems very promising.
0TheRain0 said:
Nice, your saying this prompted me to search for "android java compiler ported to android" and I found this project, which looks to be very far along. http://code.google.com/p/java-ide-droid/
I haven't installed it yet, but it seems very promising.
Click to expand...
Click to collapse
Eeek, well- at least a lot of the important tools are already ported and working. The UI is pretty bad as it is though. Seems like some good work to start with.
I was just thinking about this today. With the dock it would be great to get write some code on this and just have a compiler to make sure everything is syntactically correct maybe with some mavin support to merge some code.
I'd settle for a VI like IDE that would allow you to just browse a remote computer and do the editing that way...
Basically have it run over SSH. You can view the contents of a dir on the remote computer, edit the file, save/upload it back, then execute a command to have the remote computer do the compiling and then push the APK back to the device.
SSH is already ported. I feel like that's pretty much all you really NEED asides from the java front end for the IDE.
Thoughts?
EDIT: Other advantages are that you could develop for ANY platform with this as long as your remote computer was set up to compile it.
ViViDboarder said:
I'd settle for a VI like IDE that would allow you to just browse a remote computer and do the editing that way...
Basically have it run over SSH. You can view the contents of a dir on the remote computer, edit the file, save/upload it back, then execute a command to have the remote computer do the compiling and then push the APK back to the device.
SSH is already ported. I feel like that's pretty much all you really NEED asides from the java front end for the IDE.
Thoughts?
EDIT: Other advantages are that you could develop for ANY platform with this as long as your remote computer was set up to compile it.
Click to expand...
Click to collapse
That's an interesting thought. Personally I kind of want to be able to build completely on the transformer itself. But if creating a good IDE/Project editor is a major focus of this project it certainly wouldn't be difficult to add the ability to execute some arbitrary command/call in to a script that would allow you to do a remote build on your other system and easily retrieve the result.
0TheRain0 said:
That's an interesting thought. Personally I kind of want to be able to build completely on the transformer itself. But if creating a good IDE/Project editor is a major focus of this project it certainly wouldn't be difficult to add the ability to execute some arbitrary command/call in to a script that would allow you to do a remote build on your other system and easily retrieve the result.
Click to expand...
Click to collapse
But i guess that defeats the purpose. his idea is probably to do a direct compiling from the Transformer and i think it's possible, provided we have the compiler ready. Let me know, if you are interested, i can help with the IDE and UI coding. Maybe .. we can code a VI functionality in. and that would be straight awesome. ^^
main problem is in my eyes that if you screw up and crash your tab you lose allot of data.
and can be quite annoying
ViViDboarder said:
I'd settle for a VI like IDE that would allow you to just browse a remote computer and do the editing that way...
Basically have it run over SSH. You can view the contents of a dir on the remote computer, edit the file, save/upload it back, then execute a command to have the remote computer do the compiling and then push the APK back to the device.
SSH is already ported. I feel like that's pretty much all you really NEED asides from the java front end for the IDE.
Thoughts?
EDIT: Other advantages are that you could develop for ANY platform with this as long as your remote computer was set up to compile it.
Click to expand...
Click to collapse
This is one of the things I'm hoping to get out of the TF. Connectbot runs pretty well in dock mode, except there's no ESC key! Is there any way to remap the top row to ESC and F1-12 and require FN for their Android functions?
pokey9000 said:
This is one of the things I'm hoping to get out of the TF. Connectbot runs pretty well in dock mode, except there's no ESC key! Is there any way to remap the top row to ESC and F1-12 and require FN for their Android functions?
Click to expand...
Click to collapse
I found out that if you click with the mouse on the screen you'll see the escape button pop up and you can click that. It's a connectbot feature. I wish he would implement something like Search key sends escape...
But on another note, it looks like someone already did my idea! https://market.android.com/details?id=com.touchqode.editor&feature=search_result
Doesn't work quite as well as I hoped on the TF, but I'm going to email the dev some suggestions.
Hey pokey! Looks like you're moving on from your NC! I just got a TF, and I'm loving it so far.
I'm just about to try installing a chroot Ubuntu image. I'm hoping that will give me emacs and bash, etc. Let's see how far we can push this thing!
Sent from my Transformer TF101 using Tapatalk
Chroot Ubuntu works like a champ, emacs and all!
Not having an escape key is going to be a problem, though. As soon as I brought up emacs I hit the back arrow key by reflex, and closed out the terminal!
Instructions here:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
Forgot to mention, make sure you install busybox first (needs losetup).
Sent from my Transformer TF101 using Tapatalk
SmokeMasta said:
main problem is in my eyes that if you screw up and crash your tab you lose allot of data.
and can be quite annoying
Click to expand...
Click to collapse
Maybe the ability to auto-sync your working directory with dropbox might help.
axe2 said:
Chroot Ubuntu works like a champ, emacs and all!
Not having an escape key is going to be a problem, though. As soon as I brought up emacs I hit the back arrow key by reflex, and closed out the terminal!
Instructions here:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
Forgot to mention, make sure you install busybox first (needs losetup).
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
How's the responsiveness of using a VNC client? Is there one that maybe maps Search to Esc? Or an Open Source one we could maybe modify?
ViViDboarder said:
How's the responsiveness of using a VNC client? Is there one that maybe maps Search to Esc? Or an Open Source one we could maybe modify?
Click to expand...
Click to collapse
I didn't plan on installing any GUI components, just using text text mode, so I haven't tried a VNC serever. Text mode would only require a modified terminal server.
Unfortunately, I'm not sure I can get used to anything short of mapping back array to escape, which could be a problem.
Sent from my Transformer TF101 using Tapatalk
axe2 said:
I didn't plan on installing any GUI components, just using text text mode, so I haven't tried a VNC serever. Text mode would only require a modified terminal server.
Unfortunately, I'm not sure I can get used to anything short of mapping back array to escape, which could be a problem.
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
Well I forked ConnectBot (ssh client) with an option to map Search to ESC.
Works pretty well. It's in a easily available location too. The issue is I can't really map over Back because you need that to exit windows. I could try to "move" the back button maybe... I'll see if I can do something like Back = Esc and Ctrl + Back = Back.
Also I noticed on GitHub someone did some enhancements for Honeycomb so I'll try to merge those too.
ViViDboarder said:
Well I forked ConnectBot (ssh client) with an option to map Search to ESC.
Works pretty well. It's in a easily available location too. The issue is I can't really map over Back because you need that to exit windows. I could try to "move" the back button maybe... I'll see if I can do something like Back = Esc and Ctrl + Back = Back.
Also I noticed on GitHub someone did some enhancements for Honeycomb so I'll try to merge those too.
Click to expand...
Click to collapse
I've had better luck with Android Terminal, and I have been able to map back to escape, which is great! I also mapped caps-lock to control, but that only worked half way (it still does a caps lock).
Anyhoo, the point is that we apparently can remap the keys however we want in an app, which is good news.
I think my ideal mapping would be:
Back = Escape
Caps Lock = Ctrl
Ctrl = Back
I would just lose Caps Lock. How often is is really necessary anyway.
On an unrelated note, is there a way to turn down the sensitivity of the touchpad? I keep getting random clicks, and I think it's coming from me hitting the touchpad.
axe2 said:
I've had better luck with Android Terminal, and I have been able to map back to escape, which is great! I also mapped caps-lock to control, but that only worked half way (it still does a caps lock).
Anyhoo, the point is that we apparently can remap the keys however we want in an app, which is good news.
I think my ideal mapping would be:
Back = Escape
Caps Lock = Ctrl
Ctrl = Back
I would just lose Caps Lock. How often is is really necessary anyway.
On an unrelated note, is there a way to turn down the sensitivity of the touchpad? I keep getting random clicks, and I think it's coming from me hitting the touchpad.
Click to expand...
Click to collapse
That sounds cool. I'll check it out.
As for the touchpad, i always hate tap to click on touchpads. I wish this was a ag to turn that off, but i haven't seen it yet.
Sent from my Transformer TF101 using XDA Premium App

Any way to disable ALT+TAB/WIN+TAB on Bluetooth keyboard in ICS?

I'm trying out the Touchpad as an RDP client for my work Windows machine. With a Bluetooth keyboard and iTap RDP, it works very well, but one thing that's annoying is that Android/ICS traps certain key combinations instead of sending them through to Windows, e.g., ALT+TAB (Symbol+Tab on the HP Touchpad BT keyboard) and WIN+TAB (Home+Tab on the HP keyboard). Another one that gets trapped is WIN+E which should open an Explorer window but instead tries to launch the Android email client. Does anyone know if these Android keys can be disabled, ideally just while the RDP client is running, but worst case scenario, across the board?
Try the app called External Keyboard Helper pro
help
Sebz4n said:
Try the app called External Keyboard Helper pro
Click to expand...
Click to collapse
Did it help ?
javabear1 said:
Did it help ?
Click to expand...
Click to collapse
I tired this and could not get it to work.. If you have got it working please post.. I have a TF101 and with the local keyboard I really want a way to use the alt tab / windows key tab options.. but both go to Android local... If anyone has a way of getting around this I would love to hear it!
ALT TAB locally really is not required when you have the nice button for recent apps
go to /system/usr/keylayout/ and see which .kl needs to be changed and where. theres a few to look at but you should find one that matches your input device.
haxin said:
go to /system/usr/keylayout/ and see which .kl needs to be changed and where. theres a few to look at but you should find one that matches your input device.
Click to expand...
Click to collapse
As far as I can tell, it's not a keylayout but rather a CyanogenMod-specific enhancement to make Android work more like a desktop OS when used with an external keyboard. The problem is that it acts as a system-level override for those keybindings so that they're not passed to applications such as remote desktop clients. I've considered trying AOKP to see if it does the same thing.
I'm interested in getting a Nexus 10, especially if someone releases a keyboard cover similar to the one for Surface, as a lightweight laptop replacement, especially when used to access a Windows machine via remote desktop, but I have such a heavy dependency on ALT+TAB in my day-to-day habits that it would be pretty annoying to have that key take me to another Android app instead of switching Windows apps. Not a show-stopper, but definitely an annoyance. Hopefully standard Android 4.2 doesn't do this...
I coincided installing Linux on my tf101 as I was so upset about it.. however there is not a easy way... it would be nice to see a option to disable it for in custom roms..
I don't think 4.2 will change the behavior at all.. sadly
Sent from my GT-I9305 using xda app-developers app
DjDill said:
I coincided installing Linux on my tf101 as I was so upset about it.. however there is not a easy way... it would be nice to see a option to disable it for in custom roms..
I don't think 4.2 will change the behavior at all.. sadly
Sent from my GT-I9305 using xda app-developers app
Click to expand...
Click to collapse
I know this doesn't help many folks here, but the kind folks at Jump Desktop somehow figured out how to circumvent Apple's restrictions on key events in iOS and got full keyboard support going when accessing Windows and Mac machines via RDP and VNC, so that's what I'm using very happily now from my iPad 3.
I have created exactly what you need
Hey, all, I don't know if you'll see this, but I figured out where in the android code it intercepts this and fixed it with an xposed module, which you can grab here. http://forum.xda-developers.com/xposed/modules/keyboard-utilities-t2872579/post55350032
---------- Post added at 10:23 PM ---------- Previous post was at 09:51 PM ----------
Also, as far as win-E and related shortcuts being consumed, that's handled by an android setting called quicklaunch, which is present in the settings app, but there's no easy way to access it. To get to it, grab nova launcher or tasker or anything else that can launch app's activities directly, then find the quicklaunch activity under the settings app. This is where you register and unregister shortcuts with the windows key and the search key. Long press on the shortcut to clear it. By default, Win-E and a few others are put in for you.
Workaround
A bit old question, but i was looking for an answer today, and did not found anything that matches my needs. Not sure if it will satisfy You, but i got a little workaround. Actually you don't need to do anything with your android device, the only thing you need for this is AutoHotkey software on your windows machine + one little script running.
How it works? It remap left ctrl+tab to act like alt+tab. That way you can use ctrl+tab(or any other combination you want) and android has no problem with it.
Script content:
LControl & Tab::AltTab
Hope it helps, it worked for me.
Kuuubach said:
Workaround
A bit old question, but i was looking for an answer today, and did not found anything that matches my needs. Not sure if it will satisfy You, but i got a little workaround. Actually you don't need to do anything with your android device, the only thing you need for this is AutoHotkey software on your windows machine + one little script running.
How it works? It remap left ctrl+tab to act like alt+tab. That way you can use ctrl+tab(or any other combination you want) and android has no problem with it.
Script content:
LControl & Tab::AltTab
Hope it helps, it worked for me.
Click to expand...
Click to collapse
so this might be turnoff to some but you are on xda. we need a magisk module or something that can do this for us.
if you can disable system wide keyboard shortcuts, it would be great. and by shortcuts here is what i mean (look at the attached screenshot). in my case. i have my rog phone 3 connected to a usb c hub that has usb, hdmi, etc. (please do not tell me about the rog phone 3 and how it might have this built in because i have a custom rom installed and im sure you can do this in almost any android version there as well because its a stock rom)
my case is i use shadow (cloud gaming/computing) and so i remote control into a windows machine. i would love to disable those shortcuts so that my keyboard inputs are not interrupted by androids shortcuts.
if i alt tab or press the windows button. i dont want the android shortcuts to trigger.
please let me know if you found a solution but this most likely is achieved through adb or root. lets do actual investigation.

[REQ] Modified Irssi ConnectBot

I am not a programmer nor anything like that, but i have seen other Areas where they have successfully modded this program to bind keys to ctrl, alt, etc..
If any one has any ideas on how to do this and would do it, It would be appreciated.
Yeah...ummmm...what????
The only thing simple is the belief in simplicity.
Irssi Connect Bot is an SSH terminal program, and from other device forums I have seen that trough either compiling the source, Which I do believe is freely available from the Dev, or modifying the APK it is possible to bind the standard control (ctrl), Alternate? (alt) and Escape Keys to Hardware buttons on the device, as in say Map ctrl to the OK button, to make CTRL+C or what have you easier instead of using the on screen shortcut.
Like I said I am not a Dev, nor know how to do this which is why I requested it only based on what I had seen prior.
Ahhh OK I am sorry clueless on that one.
The only thing simple is the belief in simplicity.
Try using vx connectbot you can get it from the play store. I havent tried ctrl+c yet but the rest of the keys that werent working with connectbot like tab and SYM work perfect.

Categories

Resources