[Q] Teminal issues - Android Software/Hacking General [Developers Only]

Hello i just bought android phone htc desire,
so far i got root, s-off, clockwork, busybox 1.17.2, mc, bash, debian image
got hw keyboard - ipaq foldable bluetooth keyboard
i have tried following terminals:
better terminal, android terminal emulator, connectbot
problem:
1.) neither of terminal is able to refresh nano properly, if i add new line everything under it aint getting refreshed, tried several mods, version of busybox, bash.. any ideas?
2.) is there any full xterm terminal client for basic shell? f keys aint working ctrl aint working from hw keyboard, most of terminal apps are impossible to control ??
ty

Related

[PROGRAM] nano editor for android

For the vi haters!!!
Attached you will find a static compiled version of the nano editor (http://www.nano-editor.org/).
To install:
Code:
adb remount
adb push nano /system/bin/
adb shell
chmod 755 /system/bin/nano
chown root.shell /system/bin/nano
That's it.
Works fine in androids terminal (tested in CM-mod 4.0.4).
Seems not to work in adb shell due to the Ctrl key not working correctly.
Should work over SSH or telnet (untested).
Enjoy.
Thanks for this, I never liked vi much.
awesome
This is awesome ... Ima gonna test ...
maybe throw it in my ROM's.
Sweet. Thanks a ton!
~enom~
I am not that familiar with linux and other unix operating systems and have ran into vi on different shells and whatnot and don't like it. I posted in the apps section about a decent text editor but never found one.
Basically, I have used vi and don't like it. I am just not familiar enough with linux to have used nano, how do I go about using this?
I assume I would be safe to google it and they way it is normally ran via linux would work, if not though, what is different?
It's a lot like Dos edit but better, just look at the GUI.
Well to me anything is better then vi, I will surely give it a try.
Thanks for your time and effort.
bash-3.2# vi /www/forum/post/dream/dream-android-devel/post4482405/reply7.txt
i Finally, a decent, usable commandline text editor for the android.
I really was getting tired of the old shell, now we have BASH. I was getting tired of vi, now we have nano. :wq!
bash-3.2# cat ~/.signature
Doesn't work on Milestone; it needs a terminfo file, fails to find it in /etc, bails out.
Elsewhere people suggested setting TERMINFO and TERM environmental vars before running nano, but that won't help, as "find / -name terminfo" shows there's no such file in Milestone userland.
Hm. A little thinking helps:
Code:
adb push /etc/terminfo/l/linux /data/local/etc/terminfo/l/linux
and then, nano happily starts after
Code:
export TERMINFO=/data/local/etc/terminfo
export TERM=linux
(I recommend installing busybox first, if you haven't done that yet.)
Cant use it.
Keeps saying:
Error opening terminal: unknown
I tried this program a while back ago (hefty for android, but still) since I like it better than vi (I'm not THAT spartan). However, if I remember right, I couldn't figure out how to (^X) or (^anything), and that is pretty important, right?
Do we have a sort of list of commands that were modified for the Dream's keyboard?
jubeh said:
I tried this program a while back ago (hefty for android, but still) since I like it better than vi (I'm not THAT spartan). However, if I remember right, I couldn't figure out how to (^X) or (^anything), and that is pretty important, right?
Do we have a sort of list of commands that were modified for the Dream's keyboard?
Click to expand...
Click to collapse
Depends on your terminal emulator. In ConnectBot, press the trackball once for CTRL (twice for ESC). The key is sticky, so you don't have to hold it down.
Guess it doesnt work for wg kernel.
tried to make it work but doesnt =/
Macrophage001 said:
Cant use it.
Keeps saying:
Error opening terminal: unknown
Click to expand...
Click to collapse
Use the export commands in the post above yours. Update the terminfo one to wherever you have terminfo files. On SuperD they are already in /etc/terminfo. I think Cyanogen has them there as well. If you don't have them, you might have to put some in /system/sd from a Linux system.
As I use bash 99% of the time, I just put the commands in my bash_profile so they are already setup when I start the shell. Thanks to the OP. I was thinking I wanted nano just the other day. vi is powerful, but cryptic as hell and sometimes I just don't need the extra power.
If you are a termux user and want to install a nano or vi or any other binaries of termux in Andriod su mode. Here is the link to Termux superuser.
Give it a star if it was helpful !!!

Some problems with rooting EVO with unrEVOked

Hello,
First off, let me say, this is my first android device. I have some experience with linux and previously owned a rooted Palm Pre.
I have an HTC EVO, and have rooted it (at least I think it's rooted), with a program called unrEVOked. It flashed a NAND called ClockworkMod Recovery (2.5.0.1), and I can get to the shell using the adb shell command when it is in recovery mode.
However, even with the SuperUser app installed, I'm having trouble running sudo or any command at the terminal (on the phone), and the apps appear to also be having trouble executing any commands that are within /sbin/ (such as killall for the Shark capture packet sniffer). This is persistent while in USB Debugging Mode and running adb shell.
I didn't have to interact with the system at all during unrEVOked, including creating a user, which struck me as odd. Also, never set up an SSH server daemon, but that's okay. I'd be a happy guy if 1) I could actually use commands in /sbin/ and programs could also do this. Note that at a terminal, when I run aname, it tells me that I don't have permission. sudo su does the same.
Alright... I can get su root via the adb shell and terminal emulator.
androidpolice com/2010/05/24/that-was-quick-evo-4gs-already-been-rooted/
It still doesn't appear that apps like a file manager, and Shark packet sniffer can get root though; even with granting them SuperUser access. Any ideas?
Any help is appreciated.
Thanks,
Matt

[XDAndroid 2.2] V keyboard in terminal emulator

Hi,
I successfully installed XDAndroid 2.2 OS on my Diamond (DIAM100), but I have 1 problem so far. I need to use terminal/console emulator, but virtual keyboard doesn't work!
It works in every part of system (SMS, configuration, etc.), but when I run terminal emulator VK doesn't react. Hardware buttons works - I can go to new line (enter) by pressing circle. I try also ConnectBot and other version of terminal emulator and it's the same - I'm not able to write in command line.
Plz help!
defik665 said:
Hi,
I successfully installed XDAndroid 2.2 OS on my Diamond (DIAM100), but I have 1 problem so far. I need to use terminal/console emulator, but virtual keyboard doesn't work!
It works in every part of system (SMS, configuration, etc.), but when I run terminal emulator VK doesn't react. Hardware buttons works - I can go to new line (enter) by pressing circle. I try also ConnectBot and other version of terminal emulator and it's the same - I'm not able to write in command line.
Plz help!
Click to expand...
Click to collapse
I have the same problem, also got a D100. I have not tried other versions of Termina Emulator but installed the latest ROM (also reinstalled android 2.2 multiple times).
Any more have this problem?
I have the same problem with my Diamond Touch 2 (TOPAZ)
I tried everything but I can't type in the terminal emulator. Did you found a solution ?
Or anybody else an idea ?
Thanks

sendevent input path

Hello
Im using Android 4.0.4 samsung GT I9100 in Bluestacks
what should i do to solve the issue im having
basically i cant do sendevents for mouse clicks. I followed some guides to do a getevent for touch emulation
I was able to install an emulator terminal for bluestacks adb and watch the getevents i needed to send a touch. However, whenever i use the commands, either in Taskker command shell or in the terminal. Nothing happens
it returns the error that the path could not be found even though i used a root file explorer to find the input directory and it was in fact there!
what should i try next?
-DM123:cyclops:

[Q] How to use Terminal Emulator just for practice?

Hi,
I want to practice bash commands on my phone.
I am trying to learn Linux.
I got Terminal Emulator for Android by Jack Palevich from the Play Store to load on my phone and get me to the command prompt, so I can run some commands in there.
But I don't want to mess up my phone as I practice.
Are there some settings I can do to config it so it doesn't actually run anything for real but just acts as a practice terminal?
Or is there a better app / method just to practice bash commands?
I know how to practice on my PC ( Google coding ground bash!) but I am looking for Android methods now.
Thanks for any help!
Well android usually doesn't have bash(some custom rom do have bash).
Android have a built-in shell with a few basic commands. That's why busybox used because it has more basic command.
I would suggest trying commands on pc since it's easier and command's have man pages and help and usage built into the commands.
If you try it on your android you can't really make too much damage(maybe delete data on sd-card) unless you use root(# marks root before your commands).
Android uses standard unix tools so most commands will work like on a linux pc.(If it doesn't you can always use busybox).

Categories

Resources