If you don't know what this is, then you don't need to know!
I successfully compiled Nano to run on Android!
http://android.modaco.com/content/software/291983/nano-editor-for-android/
It will run perfectly on any ROM that has terminfo set up, if your ROM doesn't, you may need to do this before running nano:
Code:
su
export TERMINFO=/etc/terminfo
export TERM=linux
Any problems, holler! I'll be putting this in my next Hero pack too...
P
Excellent work, I've been waiting a long time for this. Cheers!
vi is better
:wq
modaco said:
If you don't know what this is, then you don't need to know!
I successfully compiled Nano to run on Android!
http://android.modaco.com/content/software/291983/nano-editor-for-android/
It will run perfectly on any ROM that has terminfo set up, if your ROM doesn't, you may need to do this before running nano:
Code:
su
export TERMINFO=/etc/terminfo
export TERM=linux
Any problems, holler! I'll be putting this in my next Hero pack too...
P
Click to expand...
Click to collapse
I am getting an "Error opening terminal error" ANy ideas?
modaco said:
If you don't know what this is, then you don't need to know!
I successfully compiled Nano to run on Android!
http://android.modaco.com/content/software/291983/nano-editor-for-android/
It will run perfectly on any ROM that has terminfo set up, if your ROM doesn't, you may need to do this before running nano:
Code:
su
export TERMINFO=/etc/terminfo
export TERM=linux
Any problems, holler! I'll be putting this in my next Hero pack too...
P
Click to expand...
Click to collapse
what is nano.. =\ from the screenshots it looks like that its for mac and an equivalent to ADB on windows.
brian_v3ntura said:
what is nano.. =\ from the screenshots it looks like that its for mac and an equivalent to ADB on windows.
Click to expand...
Click to collapse
Nano is a command line based text editor for linux, like pico. Having it would make script editing w/in the command line feel a lot more comfortable to certain people
modaco said:
I successfully compiled Nano to run on Android!
Click to expand...
Click to collapse
What method did you use to compile it for ARM? I've had a look at several different options but nothing's worked well for me so far.
Diceman4 said:
I am getting an "Error opening terminal error" ANy ideas?
Click to expand...
Click to collapse
I'm guessing you don't have a /etc/terminfo directory?
P
modaco said:
I'm guessing you don't have a /etc/terminfo directory?
P
Click to expand...
Click to collapse
You are right I didn't. I created the directory and reran the export commands, but I still get the error...
I can run nano -help, but it won't let me actually open nano.
Put this in terminfo...
http://content.modaco.net/dropzone/terminfo.zip
P
brian_v3ntura said:
what is nano.. =\ from the screenshots it looks like that its for mac and an equivalent to ADB on windows.
Click to expand...
Click to collapse
Far from it, nano is a useable linux text editor, so the non-vi-gurus among us will finally be able to edit text without having to connect to a computer or exporting the file to /sdcard to be edited with a market program
Really cool news. Thank man
ok, nano is good
finally, all i need is vi
Good work,
anyway VI is fine for me but I love Joe's own editor (joe)
Hey -- there's a bug in this. When using nano via adb shell, you can't save files. The enter button doesn't seem to want to work correctly.
Working perfectly nice thanks
Woo!
That's so much better than vi.
ETA: .... Erm. I guess I spoke too soon. Normal keyboard arrows over adb are cycling through the command history. This appears to happen on sh, ash, and bash. I'm on the latest Cyanogen 4.1x and I have /etc/terminfo/l/linux (where /etc -> /system/etc) but $TERM was not set. Setting it to linux didn't seem to help in either of the three shells. However, the trackball does work as arrows from terminal emulator, so this is still much better than vi.
Thanks!
ETA2: derr, it's happening in vi too.... I swear that worked before.....I'll keep poking around
ETA3: nevermind, known issue with adb http://forum.xda-developers.com/showthread.php?p=4124148 maybe I'll see about getting dropbear setup.
after an entire day of hell trying to compile gnu nano 2.0.9 for myself, I finally managed. Another problem now is the keyboard layout mismatch. Any one fixed this yet? i.e arrows flip through history instead of navigating within nano.
I figured out how to move about in the nano screen, but only where there is text. if the screen is empty you wont be anble to move no where, BUT if you open a text file, and hold in SHIFT whilest moving aground with keyboard arrows, that will work
I guess thats not perfect, but its a start.
modaco said:
Put this in terminfo...
http://content.modaco.net/dropzone/terminfo.zip
P
Click to expand...
Click to collapse
did you made those terminfo files yourself? if so, care to explain further? i've compiled termcap libs for arm. but further than that I dont quite know which direction to take to start working on a better env terminal, which I suspect is most of the problem for certain misbehaviour of nano on android.
Related
I just stumbled upon an Android app which allow you tu send text messages from your Desktop.
That works both on Windows or OSX/Linux and you can use it over wifi or USB powered.
http://sites.google.com/site/desktopsmsforandroid/en
Hmmm sounds interesting. Not something I'd use though. I just wish we had a VNC server for android so you could control it (and type SMS's) from another room.
AdrianK said:
Hmmm sounds interesting. Not something I'd use though. I just wish we had a VNC server for android so you could control it (and type SMS's) from another room.
Click to expand...
Click to collapse
http://code.google.com/p/android-vnc/
I tried it on real device works fine but xvncviewer on linux can only view and I'm not able to send mouse events to the device.
Here is what I did :
Code:
# adb push fbvncserver /data/
# adb shell chmod 777 /data/fbvncserver
# adb shell /data/fbvncserver
Then to remote access the phone :
Code:
# xvncviewer PHONE_IP:5901 FullColor
how do u use this? im totally lost can i get a step by step please
sweet ima try this
steven178s said:
sweet ima try this
Click to expand...
Click to collapse
could u help me get started? wat do i do to use this? ive rooted my g1 before
i tried it but it sent out double sms's.
deadite66 said:
i tried it but it sent out double sms's.
Click to expand...
Click to collapse
I think It's related to cupcake bug with SMS encoding shown here :
http://code.google.com/p/android/issues/detail?id=2318
http://code.google.com/p/android/issues/detail?id=2600
Maybe could you post this issue here :
http://code.google.com/p/desktopsms/issues/list
please help
kyram04 said:
please help
Click to expand...
Click to collapse
here is the English translation of the full site, guess they aint know how to finish.
Google Translation
basically make sure your adb is working and that you have java 1.5 on your computer.. then go to the command prompt and enter this command after you set it all up: java -jar MainGUI.jar
so i need astro file manager to download this files on my comp? idk where to get astro
ok wait im just not sure how to download DesktopSms on my android phone. But i figured astro is for the phone..
wow i actually figured it out lol
Works great so far. The interface needs more polishing but it is functional. A nicer address book would be great.
I just use google voice, you can set a widget on Igoogle it is pretty sweet
works like a charm
thx
Ok so this started out as a small project to make my day to day phone functions easier and quicker but I thought I might share it incase anyone thought my AdbTool was helpful or just nice to have.
Functions so far:
1. Check for device
2. Push or Pull a File
3. Install .apk
4. Reboot
5. Root your Droid X
6. Change bootanimation
7. Push framework (specifically for framework)
8. issue whatever adb command you need to with out the extra typing
9. Set project
10. Error log
11. Clean up folder
There are more functions to come in the future so let me know if you like this script and what you wanna see added. There is no install just unzip and open the .bat file.
This sounds great! Though I'm on Linux machine, so I don't think ill be able to use it :/
Sent from my DROIDX using XDA App
No sorry, I should have specified. It is a Windows script... Just wait though, because Sunday I will be getting a desktop that is already running linux. If you really want I will take the time to make a script to run for linux?
Sent from my DROIDX using XDA App
rooting the dx doesnt work for me :/
Huh... what is happening when you enter that option? Sorry for the long time for me to post I missed the email alert.
Sent from my DROIDX using XDA App
I'm assuming this doesnt allow root for 2.3.3 ota correct?
since all I see is rageagainstthecage in the files
This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread
ljbaumer said:
This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread
Click to expand...
Click to collapse
Yeah, this thread is quite old (almost a year) and I am sure the program/script needs to be updated to work.
It is a good idea though (if it can be updated)
D.
I'd like to make a request for a Mount and UnMount command.
fyi....you spelled Folders wrong in the main menu "Floders"
.
I can make the program for yall. Yall just need something for shell or a gui for windows?
whatever's easier for you, either would be appreciated it
i have adb properly installed by doing adb devices in cmd it shows my dx
but when i use your tool it says it cannot find the path specific
Ok so here's this application that I made in Automator for myself and I figured that if anyone wants it, it's here. This is a Mac OS X only app. What does this app do? It wipes the data and dalvik cache on the phone twice. It is quite quick and easy. What will you need to do to your Mac before running this application? You simply need to add adb to the .bash_profile path settings. (This means that from anywhere in terminal, you can type adb and run adb.) Then just put your phone into recovery mode and run this app. This is an alpha build as I have not tried it on my own phone yet. However it should work as I've coded it and it has NO potential to brick the phone
Download Here!
EDIT: Currently the program is not working, I will make a new one and upload ASAP.
CPCookieMan said:
Ok so here's this application that I made in Automator for myself and I figured that if anyone wants it, it's here. This is a Mac OS X only app. What does this app do? It wipes the data and dalvik cache on the phone twice. It is quite quick and easy. What will you need to do to your Mac before running this application? You simply need to add adb to the .bash_profile path settings. (This means that from anywhere in terminal, you can type adb and run adb.) Then just put your phone into recovery mode and run this app. This is an alpha build as I have not tried it on my own phone yet. However it should work as I've coded it and it has NO potential to brick the phone
Download Here!
EDIT: Currently the program is not working, I will make a new one and upload ASAP.
Click to expand...
Click to collapse
Nice job CP... with a little editing, could I get this to work on Linux?
workshed said:
Nice job CP... with a little editing, could I get this to work on Linux?
Click to expand...
Click to collapse
Hmmm, thats a good question. (I'm just hopping in with what I know, so OP feel free to correct me if I'm wrong, which I probably am.)
From what I know, Automator is basically a workflow creation/utilization program. Do most Linux distros come packaged with anything like that, or does one exist?
This might be an alternative:
"GNU Xnee is a suite of programs that can record, replay and distribute user actions under the X11 environment. Think of it as a robot that can imitate the job you just did."
http://askubuntu.com/questions/343/alternative-for-mac-os-x-automator
Id love to replace sh with bash. sh is becoming a pain. What would I have to do to complete this process? Sorry, I'm a n00b to android in many aspects as I know plenty of linux, but I've never done any deving for arm or android.
I'd also like to add support for bash profiles and the best location would be /sdcard/Android/data. To be clear, I'm not looking to add bash, but to replace sh with bash.
A very easy way to have bash is the app "Better Terminal Emulator Pro", it's included there. The app is not free, but worth the few bucks.
I guess it would be quite easy to replace sh with the files included there, but I wouldn't recommend this. I change as little as possible of the system, and for me it was always enough to be able to call bash.
It's hard to predict what could happen after a replacement of sh ...
I agree with the warning, and with the recommendation. Better Terminal Emulator is great and the most well featured terminal that I have been able to find. It also puts the extra files it needs for the enhanced shell in /data/ instead of crowding up the system directory with extra binaries etc.
actually its not that bad if I can get bash built. you can rename sh to sh0 then create a symbolic link called sh to bash. instant replacement and bash will be called instead of sh.
I just need to know how to get to that point. I don't need a better terminal, I paid for sufbs and love it. it would just be better all around to have bash instead of sh.
Sent from my DROID3 using xda premium
So just do it.. It's your phone.
I told you where you can get a bash binary. Or you could compile it, shouldn't be very hard.
I just say I wouldn't, no way. You have no rescue CD.
(OK, thanks to a few people we now can re-install the system -- most likely)
rweb said:
So just do it.. It's your phone.
I told you where you can get a bash binary. Or you could compile it, shouldn't be very hard.
I just say I wouldn't, no way. You have no rescue CD.
(OK, thanks to a few people we now can re-install the system -- most likely)
Click to expand...
Click to collapse
I actually think I may have found a way. I've never cross-compiled software before so was hoping someone who has knew what I wanted and could tell me what I need to do. I've downloaded bash and am going to give it a try. I will test it before actually applying the replacement idea, but I think I can do this
I thought cross-compiling would be harder than this, but who knows? According to this source it isn't all that bad...
And of course it doesn't work
./configure --host=arm-linux --enable-static-link --without-bash-mollac
configure: WARNING: unrecognized options: --without-bash-mollac
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
Beginning configuration for bash-4.2-release for arm-unknown-linux-gnu
checking for arm-linux-gcc... arm-none-linux-gnueabi-gcc
checking for C compiler default output file name...
configure: error: in `/home/darksurf/Downloads/bash-4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details.
any ideas? I'm using a gentoo based system.
There is a binary in the link YOU posted above, this binary works on D3. What's wrong with this?
Frankly, I do not understand you. Maybe your real goal is to learn how to compile Android binaries, but then you give up way to early.
rweb said:
There is a binary in the link YOU posted above, this binary works on D3. What's wrong with this?
Frankly, I do not understand you. Maybe your real goal is to learn how to compile Android binaries, but then you give up way to early.
Click to expand...
Click to collapse
In addition to that link, I had compiled it for us about a month back: http://www.mediafire.com/?b71lcdpnqn07egj
I highly advise not modifying /system/bin. I've bricked my phone several times doing that. Best option is to put bash in /system/xbin and modify /etc/profile to set the PATH variable to /system/xbin:/system/bin:$PATH
Darksurf said:
And of course it doesn't work
./configure --host=arm-linux --enable-static-link --without-bash-mollac
configure: WARNING: unrecognized options: --without-bash-mollac
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
Beginning configuration for bash-4.2-release for arm-unknown-linux-gnu
checking for arm-linux-gcc... arm-none-linux-gnueabi-gcc
checking for C compiler default output file name...
configure: error: in `/home/darksurf/Downloads/bash-4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details.
any ideas? I'm using a gentoo based system.
Click to expand...
Click to collapse
I use gentoo myself, I recognize that error "C compiler cannot create executables" as one caused by gcc upgrades (changing gcc versions w/out updating environment variables etc but I've only seen it when not cross-compiling). Also, are you trying to use crossdev or Codesourcery? Codesourcery seems to generate less errors and there are many many guides for it available on google (I always get errors w/crossdev but the same code will compile error free w/codesourcery).
thanx, im using crossdev. ill give code sourcery a try. im asking because im not near my computer now, but is there an ebuild.
Sent from my DROID3 using xda premium
No, you have to grab the files off their website. Codesourcery.com or wget http://www.codesourcery.com/sgpp/li...-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 if you need a quick link, I think this is the version I have installed..
dude, u r my hero thanx.
Sent from my DROID3 using xda premium
Darksurf said:
dude, u r my hero thanx.
Sent from my DROID3 using xda premium
Click to expand...
Click to collapse
I assume it's compiling or your at least beyond your previous error. Glad to hear it.
Shenanigans?
I'm thinking... maybe you *don't* know a lot of Linux. But I admire your courage. We're here to help. And when you figure out how to push bash there, try ksh next.
--#
7April said:
I'm thinking... maybe you *don't* know a lot of Linux. But I admire your courage. We're here to help. And when you figure out how to push bash there, try ksh next.
--#
Click to expand...
Click to collapse
And ohh how helpful and informative that post was! Pretty sure pushing files to your phone has nothing to do with linux all. Pretty sure your not here to help at all but just to ridicule and also play the fool. When you figure out the difference between push and compile ....
Anyways, i just noticed that codesourcery is in portage now though i do know that some versions will cause compile errors where others wont not sure why, probably because i'm not a 31337 linux guru like april7, sigh someday
First thanks to the guys helping with this in a thread that was started for another problem.
But, I still can't get adb to work. I've installed jre,jdk, and sdk with a lot of packages ( all from the Android repo and a couple from the 3rd party one). My problem isn't having the right software. My problem is I don't know how to you're out the file path in Ubuntu. On my windows position, I know that it's C:/adb. But I don't know how to type my file location in Linux. Right now, the Android-sdk-linux_x86 folder is in my home folder. I can navigate there by pointing and clicking, but how do I type that in my terminal?
Cd /home/android adb location
Sent from my GT-I9000 using xda premium
Someone with more Linux experience will probably correct me, but I believe it's:
cd /home/(your username)/adb
(bulletproof caught the CD thing)
And/or you can add that to your path...or you can move adb to something like /usr/bin...
Sent from my GT-I9000 using xda premium
mrhaley30705 said:
First thanks to the guys helping with this in a thread that was started for another problem.
But, I still can't get adb to work. I've installed jre,jdk, and sdk with a lot of packages ( all from the Android repo and a couple from the 3rd party one). My problem isn't having the right software. My problem is I don't know how to you're out the file path in Ubuntu. On my windows position, I know that it's C:/adb. But I don't know how to type my file location in Linux. Right now, the Android-sdk-linux_x86 folder is in my home folder. I can navigate there by pointing and clicking, but how do I type that in my terminal?
Click to expand...
Click to collapse
As bulletproof said, you can add it to your path, which if you're going to be using it a lot is the best solution. Then you could type adb from anywhere you are and it would work. Otherwise, you cd ~/Android-sdk-linux_x86/platform-tools, then the first time you run it do sudo ./adb start-server. From there on, you can just do ./adb insertcommandhere if you don't add it to your path. If you do add it to your path, you don't need the ./
ok, tried that, and i keep getting no such file or directory.
mrhaley30705 said:
ok, tried that, and i keep getting no such file or directory.
Click to expand...
Click to collapse
first off.
rename your SDK folder
keep it simple. i just name mine sdk in my home directory
then i add it to my path
i want to point you to a thread that i have been pushing a lot lately. it is how to setup and configure your ubuntu machine to compile CM7. it is oriented to htc devices, and more specifically the Desire Z/G2
http://forum.xda-developers.com/showthread.php?t=915435
the key part to read and comprehend is the part where you configure your ADB. you dont HAVE to do all the other stuff, but its all good info to have for the future.
its not as complicated as you are making it out to be, you just need to take the few extra minutes to understand it.
~ represents your home folder
cd ~/sdk/platform-tools
takes me to my adb executable, although by following the guide i mentioned above, i can run adb commands from anywhere within my OS, and i dont have to use sudo.
That no such directory IS due to there being spaces in the file path
Sent from my I897 using xda premium
Ok, I think I understand. I will give ita shot tomorrow. Would hit both of you with another thanks, but i've ran out today.
Update:
Thanks Pirateghost, that got it for me. Between you and sixstring I have adb working. One more question, do I have to restart the adb server everytime I use adb?
mrhaley30705 said:
Update:
Thanks Pirateghost, that got it for me. Between you and sixstring I have adb working. One more question, do I have to restart the adb server everytime I use adb?
Click to expand...
Click to collapse
you shouldnt.
Bump........
You shouldn't have to restart the server. When I switch between my phone and tablet, I just type adb devices to make sure its seeing the new device.
Sent from my SGH-I897 using Tapatalk