Getting "error running xterm" using nano? - Android Q&A, Help & Troubleshooting

I'm working as root in an adb shell and I need to use nano to create a text file (services). But when I try to run the command nano /opt/etc/services I get an error "Error opening terminal: xterm." When I try to run xterm I get "xterm: not found". I've searched but can't find xterm. Can anyone suggest a fix for this dilemma?

Related

[Q] Linux distro binaries within Android?

I just extracted the Gentoo Stage3 package for ARM7A and I am playing around trying to get the binaries to run either through terminal emulator or adb shell on my Galaxy Tab running Gingerbread.
I am FULLY aware of how PATH works and all of the normal reasons you would get a "not found" error when trying to run a command, but this one has me stumped.
I tried setting my path to include a subdirectory of /system/bin as follows:
PATH=/system/bin/gentoo:$PATH and gentoo is where I put my gentoo binaries.
When I do which (command) it says:
/system/bin/gentoo/(command)
When I try to run it, it runs the same command from one of the other directories such as /system/xbin (from busybox) instead.
I tried renaming one of the binaries so it has a unique name mv ps wtf I can still do which wtf and get /system/bin/gentoo/wtf
THEN when I try to run it I get wtf: not found.
Obviously the file is there. Even if I go directly to /system/bin/gentoo and do ./wtf I get wtf: not found. If I copy one of the Android system binaries to /system/bin/gentoo/wtf it will run just fine.
Why would I get a not found error for a binary that is obviously there??
I would expect a different error if it wasn't an acceptable binary, so I am lost.
Any ideas?
rustyshack3 said:
I just extracted the Gentoo Stage3 package for ARM7A and I am playing around trying to get the binaries to run either through terminal emulator or adb shell on my Galaxy Tab running Gingerbread.
I am FULLY aware of how PATH works and all of the normal reasons you would get a "not found" error when trying to run a command, but this one has me stumped.
I tried setting my path to include a subdirectory of /system/bin as follows:
PATH=/system/bin/gentoo:$PATH and gentoo is where I put my gentoo binaries.
When I do which (command) it says:
/system/bin/gentoo/(command)
When I try to run it, it runs the same command from one of the other directories such as /system/xbin (from busybox) instead.
I tried renaming one of the binaries so it has a unique name mv ps wtf I can still do which wtf and get /system/bin/gentoo/wtf
THEN when I try to run it I get wtf: not found.
Obviously the file is there. Even if I go directly to /system/bin/gentoo and do ./wtf I get wtf: not found. If I copy one of the Android system binaries to /system/bin/gentoo/wtf it will run just fine.
Why would I get a not found error for a binary that is obviously there??
I would expect a different error if it wasn't an acceptable binary, so I am lost.
Any ideas?
Click to expand...
Click to collapse
Just a guess, but I'd bet that the linker path for the binary is having trouble finding a library.

Use adb from within android terminal

Hello.
I'm trying to install adb on my tablet so that I might issue adb/fastboot commands to my Android phone.I downloaded this file which is a zip of the platform-tools directory. I put it on my internal memory' but I also tried it from /data/. The problem is that when I enter that directory and enter "adb" I get a permission denied error. OK, so I enter a root shell and try again, only to get a not found error. "./adb" also returns a permission error even from a root shell.
Anyone have any ideas?
You are trying to run an Intel binary on an ARM processor.

[Q] making bootable usb with dd command

What i'm trying to do is making an ubuntu bootable USB using the terminal:
DD if=/mnt/sdcard/ubuntu.ISO of=/mnt/USB_storage/
When i do that the terminal says : "cannot open for write: is a directory"
what is the solution please?
You may wonder why am i doing this? believe me i have a reason i'm not just playing, i really need to do that
Thank you for your help.

Cant manually install app?

I have been trying to install a Apk to my devices but it always returns install failed, i've run a logcat and found that it says "failed to create secure container smdl2tmp1"? anyone know what this is?

Error when installing an APK with ADB, "cmd: Can't find service: package"

Good day,
I am trying to install XDA Labs, and I am encountering some issues.
When downloading the application package from the official website and then trying to install it using adb:
Code:
adb install [apk name].apk
The terminal is unable to do so and return me the following error:
Code:
cmd: Can't find service: package
.
So far, I have tried to install directly from my phone and granting storage permissions to Package Installer, but nothing has worked.
What should I do in order to have it installed properly?
I ran into the same problem after installing Magisk.

Categories

Resources