Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
jodue
Old
#11  
jodue's Avatar
Senior Member
Thanks Meter 35
Posts: 447
Join Date: Dec 2009
Location: vienna
seems to be a windows/putty problem because adb shell works wonderful on ubuntu with the default shell ...

btw. you can also easily get a sshd (dropbear) running. then you can ssh onto the device over wifi ... i can provide the binary+explanation if anybody is interested.
 
mathieumeuh
Old
#12  
Senior Member
Thanks Meter 5
Posts: 108
Join Date: Aug 2010
Location: Paris
I'm very interested in that !

Sent from my GT-I9000 using XDA App
 
quyrauxanh
Old
#13  
Member
Thanks Meter 1
Posts: 32
Join Date: Sep 2010
virus found
 
jodue
Old
#14  
jodue's Avatar
Senior Member
Thanks Meter 35
Posts: 447
Join Date: Dec 2009
Location: vienna
Quote:
Originally Posted by mathieumeuh View Post
I'm very interested in that !

Sent from my GT-I9000 using XDA App
here is the explanation how to set it up (cyanogenmod wiki):
http://wiki.cyanogenmod.com/index.ph...evice_with_SSH

basically you have to create the keys on your pc and copy them onto the device. then you can connect via key-auth. if you want dropbear to autostart @boot you could add it to playlogos1 ...

and here are the binary's you need (including the missing dropbear-keygen) and a bash binary:
http://www.multiupload.com/B0L9FDQHPB

bash is optional of course but it's very nice to have tab-completion and the other improvements bash offers over sh. to replace sh with bash do the following:

Code:
cp bash /system/bin/
chmod 0755 /system/bin/bash
mv /system/bin/sh /system/bin/sh_OLD
ln -s /system/bin/bash /system/bin/sh
the chmod is really important. i forgot it once and then was unable to get shell access even over adb. was a pain in the ass to fix it again
 
sztupy
Old
#15  
sztupy's Avatar
Recognized Developer - OP
Thanks Meter 814
Posts: 1,051
Join Date: Dec 2008
Location: London

 
DONATE TO ME
Quote:
Originally Posted by jodue View Post
seems to be a windows/putty problem because adb shell works wonderful on ubuntu with the default shell ...

btw. you can also easily get a sshd (dropbear) running. then you can ssh onto the device over wifi ... i can provide the binary+explanation if anybody is interested.
You seem to miss the point of this development. First, your method is mentioned as one of the possible workarounds in the first post. Second you need to have some kind of telnet/ssh server running on the phone, which you don't need, if using adb.

Meanwhile you don't even need a rooted phone or busybox or anything to get this thing working.

The main problem with adb shell under windows, that it uses the standard cmd.exe to run, and uses the standard cmd.exe's "readline" support, which only supports the up and down keys for history (and even that it only supports that within one session).

Putty is mainly the only good (xterm compatible) terminal emulator for windows (msys's or cygwin's rxvt is good too, but "adb shell" was programmed in a way that makes it kinda useless under rxvt too). There are two ways to fix this. One is to make adb.exe more comptible with rxvt, the other is to skip adb.exe entirelly and communicate with the adb server without it. This project utilises the latter.
 
DirkStorck
Old
#16  
DirkStorck's Avatar
Senior Member
Thanks Meter 176
Posts: 1,221
Join Date: Sep 2009
Location: Mainz
But what is the advantage compared to "normal" ABD
Device: Samsung SG 3 in blue
Recovery: PhilZ Touch v5.03.5
Kernel: Perseus alpha36.3
Rom: Omega v43.3
Mod: JKay Deluxe framework 14.95 (final )
Backup Phone: HTC Desire CM10 | Jelly Bean 4.1.2 - v3.0 + INT2EXT+

 
DirkStorck
Old
#17  
DirkStorck's Avatar
Senior Member
Thanks Meter 176
Posts: 1,221
Join Date: Sep 2009
Location: Mainz
But what is the advantage compared to "normal" ADB ?

Thank you!
Device: Samsung SG 3 in blue
Recovery: PhilZ Touch v5.03.5
Kernel: Perseus alpha36.3
Rom: Omega v43.3
Mod: JKay Deluxe framework 14.95 (final )
Backup Phone: HTC Desire CM10 | Jelly Bean 4.1.2 - v3.0 + INT2EXT+

 
sztupy
Old
#18  
sztupy's Avatar
Recognized Developer - OP
Thanks Meter 814
Posts: 1,051
Join Date: Dec 2008
Location: London

 
DONATE TO ME
Quote:
Originally Posted by DirkStorck View Post
But what is the advantage compared to "normal" ABD
It has a real xterm compatible terminal emulator. Is you use busybox >= 1.17.1 you've got coloring, tab completion, resize events, keyboard events (applicatios like vi is working), etc.
 
sargasso
Old
#19  
Senior Member
Thanks Meter 20
Posts: 173
Join Date: Sep 2010
This is the reason I recommend a faulty device: without the problems with the SGS the developments would go much slower Thank you for this putty, i have it connecting to the bash. Color coding and keys work perfectly.
 
RMonst3r
Old
#20  
RMonst3r's Avatar
Senior Member
Thanks Meter 17
Posts: 136
Join Date: Sep 2010
Thanks for this Sztupy!

I hated using windows cmd.exe to access a linux shell

 
Post Reply+
Tags
adb, command line, putty, shell
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...