[XDAndroid 2.2] V keyboard in terminal emulator - Android Software/Hacking General [Developers Only]

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

Related

[Q] Teminal issues

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

[DEV] Boot Ubuntu on your HTC Desire HD - WIP

Ububtu for you HTC Desire HD
In June 2010, XDA zedomax got Ubuntu 9.04 running on Nexus One, tutorial is available at this thread:
http://forum.xda-developers.com/showthread.php?t=718952
[email protected] then continued studying the tutorial and worked out a way to make Ubuntu 9.04 running better, smoother and cause less errors, here's hes post:
http://forum.xda-developers.com/showthread.php?t=815532
Recently HTC_Linux team has released version 0.3 of their Ubuntu image, compare to the original guide provided by zedomax, the v0.3 release is based on the latest Ubuntu 10.10 and is a WIP, V0.4 is currently undergiong testing.​
What benefits will you get from running Ubuntu 10.10 on your DHD (at least):
1. Fully functional Linux terminal, with all standard Linux command line utilities
2. Fully functional desktop browser Firefox 3.6.13
3. Ability to compile and run native Linux applications
4. Bunch of graphical Internet and utility applications as shown in the screenshots
As promised, here is a little guide to get Ubuntu Desktop running on you DHD, The image used is a WIP and has been built for use with the HTC HD2. the scripts, from the above threads modified by my self to work with the DHD
Credits:
Thanks to the great XDA-developers community.
Thanks to Zedomax for providing the original tutorial of running Ubuntu on Nexus One.
Thanks to HTC_Linux team for creating the optimised Ubuntu 10.10 image file.
Basic requirements
A Rooted HTC Desire HD (Ace)
A MicroSD with minimum 3GB free space
A Custom kernel wit LoopBack support (I have attatched mine )
The Below Ubuntu.rar which contains ubuntu.img & the required scripts (modified by my self)
An android terminal emulator -from the market
Android VNC - from the market
If you're using Froyo App2SD, move all your applications which are on SD card back to Internal Storage and ensure FroYo A2SD install location is set to internal(1) by typing #"pm setInstallLocation 1" into your android terminal. If you fail to do so, you won't be able to enter Ubuntu.
LeeDrOiD V2.0.6 custom Kernel - 21/02/11 5:25pm GMT(MultiUpload)(2.46mb)
MD5# ba511a40ef17352b9a8a35013eb16674
Ubuntu.rar (Torrent)​
How to​
1. Extract the Ubuntu.rar that you have just downloaded to an "ubuntu" folder on the root of your SD card.
2. Open your Android Terminal Emulator
3. Type “cd sdcard/ubuntu” (enter)
4. Type su to go to superuser mode
3. Type “sh ubuntu.sh
4. If you see “Type 'bootubuntu' to boot Ubuntu”, then you're almost there!
5. Type “bootubuntu” (enter)
6. You should now see “"[email protected]:/#"” Congratulations! Now you're running Ubuntu 10.10
Whenever you want to enter Ubuntu again, simply cd to the ubuntu directory and type “bootubuntu” (enter) in your Android Terminal.
To properly exit Ubuntu, you must type exit from the Ubuntu terminal.
If your Android terminal application gets killed by Android system (i.e. you lost Ubuntu terminal), you need to go back to Android terminal, type “exit” (enter), that will properly unmount Ubuntu.
Very often you can get “loop device busy” error when exiting from Ubuntu, in that case, type “exit” (enter) multiple times (it's harmless to run the“exit” script multiple times, don't worry). If still you get “loop device busy”error, don't worry, just ignore it.
Loading the GUI (Gnome desktop) ​1. Install “android-vnc-viewer” from Market (free)
2. Enter Ubuntu terminal
3. Make sure that you have network connection (Wi-fi recommended)
4. type “apt-get update” (enter), and wait till it finishes
5. type “apt-get install tightvncserver” (enter) and answer “y” to the question
6. After you have installed tightvncserver, type “cd /bin” (enter)
7. Type the following commands (all are case-sensitive!):
“cat > x” (enter)
“rm -r -f /tmp” (enter)
“mkdir /tmp” (enter)
“chmod 777 /tmp” (enter)
“export USER=root” (enter)
“export XKL_XMODMAP_DISABLE=1” (enter)
“vncserver -geometry 1024x800” (enter)
(enter)
(At this point you will need to configure "vol-" as Ctrl in Android terminal emulator preferences)
(Now hold volume down and press D on your keypad)
“chmod 777 x” (enter)
8. The above procedure makes a script named “x”, whenever you want to start GUI, you need to type “x” (enter).
Notice that the first time (only the first time) you run “x” script you'll be prompt to enter a password for VNC connection, then you'll be asked whether to create a “view-only” password, since it is not necessary, answer “n” to the question.
9. Start “android-vnc-viewer”, create a new connection with the following settings:
Nickname: (anything you like to identify the connection)
Password: the VNC connection password that you created when ran the “x”script
Address: localhost
Port: 5901
Color format: 24-bit color (4 bpp)
Click “Connect” button, and in about a minute, you'll see your Ubuntu 10.10 desktop!
10. We still need to create one final script called “s”, now go back to your Ubuntu terminal and type:
“cd /bin” (enter)
“cat > s” (enter)
“export USER=root” (enter)
“vncserver -kill :1” (enter)
“vncserver -kill :2” (enter)
“sudo reboot” (enter)
“sudo halt” (enter)
(enter)
(press and hold Vol- & click “D” on keyboard)
“chmod 777 s” (enter)
11. If you have GUI running, you * MUST * type “s” (enter) to stop VNC server before you exit from Ubuntu terminal!
In case that your Android kills your Android Terminal application and you still have VNC server running, do the following steps:
a. Start Android Terminal
b. type “bootubuntu” (enter) to bring back Ubuntu terminal
c. type “s” (enter) to stop VNC server
d. type “exit” (enter) to exit from Ubuntu terminal
Fail to do so you will have problem with VNC connection next time you use it.
What's not currently working in Ubuntu:
1. Sound
2. Some applications may not run (I guess, due to Android memory management mechanism)
A little trick to access SD card from your Ubuntu:
1. Install “SwiFTP” from Market (freeware)
2. Set up FTP server using SwiFTP
3. In Ubuntu, “Places → Connect to Server” then:
Service type: FTP (with login)
Server: localhost
Port: (port number specified in SwiFTP, default is 2121)
Folder: /
User Name: (user name specified in SwiFTP)
Then press “Connect” and enter your password specified in SwiFTP. Now feel free to access your phone's file system!
This is a rough guide for the time being, I will hopefully continue work on this in the future (time permitting of course)
ENJOY!! ​
Thank you Lee!
I'll try this ASAP.
we needed a DHD specific guide written by a reliable and trusted member.
YEAH Lee! THANKS!
Downloading atm, but only one seed, guess its you? But 2.0kb/s and 3 days...hm...
Looking good so far, hoepfully this works, running linux is far better than android!!!
Yeah man this looks pretty cool!
It's cool, but a little fiddly..
Would recommend grabbing virtual tracked from the market, makes it a little easier.. I'm egarly awaiting the new .4 image, ill keep yall posted if I hear anything
P s... please help seed the torrent
Sent from my LeeDrOiD loaded HTC Desire HD
Il be playing with the honeycomb Rom next
Sent from my LeeDrOiD loaded HTC Desire HD
LeeDroid said:
Il be playing with the honeycomb Rom next
Sent from my LeeDrOiD loaded HTC Desire HD
Click to expand...
Click to collapse
That'll be great!! greater than great.
your awesome mate!
Nice. Was just downloading something like this from Demonoid.
LeeDroid said:
Il be playing with the honeycomb Rom next
Sent from my LeeDrOiD loaded HTC Desire HD
Click to expand...
Click to collapse
THAT... would be totally awesome.
awesome lee i really wanted to try this but i dont have 3gb free need to save for a 16gb damn
downloading now will seed as soon as it has
finished downloading now seeding not to fast though 5kb/s
A5J4DX said:
awesome lee i really wanted to try this but i dont have 3gb free need to save for a 16gb damn
Click to expand...
Click to collapse
same here.. bummer.
Yes! Downloading using swarm on my phone now
Hm, weird...everything is fine until i write bootubuntu after i get a wall of text with many errors consisting of "Device or resource busy" for example "mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: device or resource busy"
or
mounting sysfs on /data/local/ubuntu/sys failed: no such file or directory
any ideea?
You have apps installed to the fat 32 partition as per FroYo A2SD.
Go to settings - applications - manage applications - select the sd tab, and move them to internal
Sent from my LeeDrOiD loaded HTC Desire HD
Damn you are right, my bad for not reading everything, was too excited , thanks.
robE9 said:
Damn you are right, my bad for not reading everything, was too excited , thanks.
Click to expand...
Click to collapse
ordered a 16micro sd card today and i see this
now the delivery date seems very far i really want to try ubuntu this is another sucker punch to the iphone user
sounds like fun downloading just now will seed with my seedbox
"exit" wont work. Your file is named "exitu"
one other question...i had ubuntu launched, but then i messed up with the CTRL and so on, tried to "exit" ubuntu, rebootet phone, but now i cant "bootubuntu" gives me the error " cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent" and two other directories

Linux Working on Android

(I'm reposting this under a different title so web searches will bring it up)
I can get Ubuntu 11.04, 11.10 & Debian 6 to mount repeatedly in all sorts of ui updatable configurations using this information:
http://www.nerd65536.com/2011/07/ins...version-2.html
It's a friggin Christmas Miracle! Can't tell you how much time I've wasted working this out, and it all boils down to the sh and run scripts.
So, without further ado, here goes.
!!Make sure you're rooted!!
!!The quotes just tell you what to type. Don't type them!!
1.
Download one of the three builds on the website listed above (or build your own, it should work fine). Extract it from tar.bz2, they should all extract to a linux file, this includes the necessary scripts. Put it on the sd-card on your phone.
2.
Download the new scripts that (Nerd) listed found here: http://ohm.nerd65536.com/android-lin...latest.tar.bz2
And extract them. You'll have another file that says linux. Open it, take the three files inside (install.sh, root-scripts & scripts) and paste them in the linux folder you moved to your sd-card. They will overwrite the ones currently there. These scripts work for sgs4g, the originals did not.
3.
Install the latest BusyBox in both xbin and .bin if it's not already installed (must be rooted), Latest is 1.19.3. Make sure Outside Sources and USB debugging are both enabled in your settings menu. Open your Superuser App and update binaries.
4.
Download a terminal client, like Better Terminal Emulator or Android Terminal Emulator. I use the first. The terminal needs to run the commands as root, especially the linux vnc command as it didn't want to work for me no matter if I started by typing su. Better Terminal Emulator has a check box to always start in root.
5.
Open up your terminal emulator and type su if you are not rooted there. Then change directory to the linux file on the sd-card. run the sh file there.
Like this:
"su"
"cd /sdcard/linux"
"sh install.sh"
If it works, the resulting dialog in terminal won't throw up any problems.
6.
Get back to / on sd by typing in terminal:
"cd /"
You should then have a: / # prompt, which means you are still rooted.
Enter:
"linux"
Which should result in a: [email protected]:/#
This means Linux is running. Congratulations. It should continue to run unless you shut down your phone.
7.
Download a VNC client, like Android VNC Viewer (free) or Remote VNC Pro, which I use. Add a new entry in it, with the following settings:
Host: localhost
Port: 5901
Password: cheesecake
Color: 24-bit
Name: Linux
When that's done save if you can or back out if you can't, and go back to your terminal emulator.
8.
It should still say: [email protected]:/#
If it doesn't, fine, if it does, just go back to root prompt by typing:
"exit"
Which should get you: / #. Then type:
"linux vnc"
Which should run itself and mount the chroot environment. It should tell you your new 'X' desktop is localhost:1, and have a: / # prompt again.
It might also ask you for a password, if so then put whatever password you'll remember in that's longer than 6 characters and verify it. This only happens once.
9.
Go back to your VNC client and if you entered a password in step 8. then edit your listing to your password instead of cheesecake, if not then don't.
Click on the Linux link and BAM! (shameless Emerilism), you're at your Linux desktop which should be running a iceWM desktop interface, which is fast. The LXDE desktop is nicer and if you want that then go into you're terminal and get into the linux shell by typing:
"linux"
And then switch to LXDE by typing:
"apt-get autoremove icewm- lxde+"
Which will run through the removal/ installation, and verify you want to download the <400mb files. Type:
"y"
And give it time to finish. When finished, just go back to your VNC client and hit Linux again, and you will have a nice looking functional desktop, with a cpu load graph on the bottom. I tried using Gnome desktop and Unity 2d, but both of these would install and not fully run with all options. They are heavier and slower, but cool non-the-less. Let me know if anyone has luck with these on Android.
Notes-
You only have to type "linux vnc" once in terminal to start linux every time you boot your phone. Otherwise, just open your VNC client and click on Linux to use it. Easy!
You will want to update and upgrade your linux after install, do so by typing in terminal:
"apt-get update"
"apt-get upgrade"
Also, you might run across a problem if you try to add-apt-repository, that's because that python command is not present. To use it, enable by typing:
"apt-get install python-software-properties"
Also of note, the downloadable linux builds are sized to about 2.15gig on your sd, which is big enough for most. There is a way to resize them which I tried but it gave me trouble in loading. I will try again and see if I can get it to work.
Here's the link from Dangermouse:
http://www.androidfanatic.com/commun...atid=9&id=1610
Thanks to Nerd65536 for the info, write-up and files. He fixed my problem.
You might want to put quote or code tags around all the commands to make them easier to see and read, but good guide! I'll try it out soon since I haven't gotten any linux build to run on my phone in a good while.
Thanks for the post!
I wrote the post noob-style to make it easy for beginners to follow, as I've had to search and test forever to find information that works.
Let me know if you have any problems, I'd be happy to assist. Don't expect you'll have any issues with your knowledge of the os. It works pretty well on the Android system, fun to use.
wasn't this posted ages ago?
No, it's a bleed over from a question post I made under Q&A a week or so ago. I threaded this because I had such a hard time finding a thread with working steps for the Galaxy S under google search. There's not that much new from this post http://www.nerd65536.com/2011/07/in...showComment=1323566336074#c553594301247543088 by Nerd65536 (which took me forever to find and was the only one that worked). Other than that, just a few of my own thoughts and hints on the process.
krylon360 said:
wasn't this posted ages ago?
Click to expand...
Click to collapse
meant to quote not thanks, but anyways, to answer.
There has been a few times this has been posted, but its been many months and this seems like the first the issues have been sorted.
Sent from my SGH-T959V using Tapatalk
Ok, a little more use of Linux builds on my phone and I'm starting to understand why it does or does not work.
Certain kernel builds seem to work well, others not at all. Most of the kernel's I've tried have been problematic, and trying to install the .sh file will fail.
When you install your new kernel (or on your existing one) you need to open your Superuser app which should be there if your phone is rooted. There is a button to update binaries, and they need to be updated. Some builds don't seem to let this work easily and give failure notifications.
Make sure Outside Sources is enabled and USB debugging is too, both are in the settings menu.
Use BusyBox installer to install in both the .bin and .xbin directories, this will not cause any conflicts (or hasn't yet . If this gives you an error, and it will if Superuser did, then either usb debugging has not been selected or the kernel is not playing nice.
Ok, so this kernel by RaverX3X will work for linux, I'm on it now:
http://forum.xda-developers.com/showthread.php?t=1305145
(Thanks for this)
Oh yeah, and Back|Track5 Linux is working too
Fixing the packet injection for the Broadcom now.
sconsylman said:
Oh yeah, and Back|Track5 Linux is working too
Fixing the packet injection for the Broadcom now.
Click to expand...
Click to collapse
. Keep us posted on that. Should be pretty handy.
Wait. why do we need LInux to run on our phone?
Can someone explain?
Android doesn't come with most of what this has:
http://www.backtrack-linux.org/
I know, but why do we need it?
Enlighten me
airfluip1 said:
Wait. why do we need LInux to run on our phone?
Can someone explain?
Click to expand...
Click to collapse
I've seen this comment on every single thread online regarding Linux on Android. It's a joke right?

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:

stack corruption detected

I´m runnig a Moto G5+ (potter) 7.0 stock rom, rooted with magisk 16.
Since a few days I recognize an error when opening a terminal emulator or using adb from a windows PC and just typing the command
Code:
getprop
from terminal emulator or
Code:
adb shell getprop
from PC the output is
Code:
stack corruption detected
.
I´m not new to android and know how to flash roms or kernels and stuff like this but I´m not so good in terminal commands. I googled for it but the answers I found were a bit above my level of knowledge. Can someone help me out a bit and explain what this message means exactly and how to debug and solve it?
I was able to run this command a few weeks ago without problems, also rooted with magisk. Could it be any third party app or a setting?
Any help much appreciated.
edit: attached a log when typing getprop into the terminal emulator.
get same error

Categories

Resources