Related
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
That's cool!
Definitely will give it a try. Use nano every day on my ubuntu system. It would be nice to see that familiar item on my phone . Screen would be pretty wild as well. Screen's another one of those utilities that is hard to explain but easy to show
I'd like to get rsync working on my phone as well since I use it for backups all the time on my desktop now. Think it would be really handy to have a gnu-utils package that people could add.
What owner permissions should I set for it? I get a Permission Denied error on CyanogenMod 4.0.4.
EDIT: Nevermind, forgot to run chmod +x on it.
sweet! I was looking for this about a week ago. glad someone did it. THANKS!
I've mailed you concerning this. I've been through hell trying to compile that *****, hope you are willing to help out. So far I've compiled bash4.0 and busybox 1.15.1 with no problems, but im stuck on nano2.0.9. Anyway check the mail, hope you can help! And congrats for pulling it off hehe.
wops, doublepost.
guys, i wanna learn abt nano for ndroid. how to make it run in android mobile?
i'm using ra-ion1.6.1 donut. already push nano into /system/xbin and /system/bin. but how to make it run? and how to use command in ms-dos?
su
export TERMINFO=/etc/terminfo
export TERM=linux
i dun understand this.
i'm currently using vista.
do i need linux os to do anythg?
how to enable syntax highlighting???
I am currently using nano taken from here http://android.modaco.com/content/software/291983/nano-editor-for-android/ on my G1 (SuperD 1.9.3).
I really want to enable syntax highlighting, and I went through this guide:
http://www.technotizie.it/frame/74510/nano-syntax-highlighting-how-to-enable-syntax-highlighting-in-nano-text-editor
I installed nano binary into /system/xbin and gave it executable permissions.
I created a /system/home dir and created a .nanorc file as stated here:
http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting#Alt_C.2FC.2B.2B.2Fh
I also set up a $HOME var, with value = /system/home
nano starts up but doesn't highlight my .cpp syntax.
what am I missing???
Thanks,
Genesio
Anyone have the terminfo directory saved off by chance? Seems to be missing from my htc evo stock 2.2 rom.
Edit: And naturally five seconds after posting I find it. See androidforums.com/evo-4g-all-things-root/124506-guide-full-bash-shell-nano-tab-completion-color-over-ssh.html
Hi all,
i've got a problem with my nano...
The "enter" button just do an LF, so I do not know how to give the "ok" for saving file,exiting, etc ... any help ?
mpmilestogo said:
Screen would be pretty wild as well. Screen's another one of those utilities that is hard to explain but easy to show
Click to expand...
Click to collapse
I second this... I even have screen on my .bash_rc. It is pretty convenient!
I made it run, but in another note, I have always thought the terms' screen size is quite small.
Nevertheless, nice utility!
Hi, I have a problem with nano..
when I try execute them, it writes
Code:
Error opening terminal: linux.
What can i do?
(miui 2.8.31) (4.0.4)
SEmp91 said:
Hi, I have a problem with nano..
when I try execute them, it writes
Code:
Error opening terminal: linux.
What can i do?
(miui 2.8.31) (4.0.4)
Click to expand...
Click to collapse
I have the same problem.
The link you seek. terminfo should be in /etc
paulobrien 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've just got this :
oad $ bash
[localhost /mnt/sdcard/Download]$ nano
Error opening terminal: screen.
EDIT : [SOLVED!]
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 !!!
Hello,
I was interested in getting Hamachi to work on my newly-acquired G1. After applying Cyanogen's Mod and rooting the thing, installing Debian (yay!) and setting up all the nifty scripts to make it semi-permanent, I focused on getting Hamachi to work.
First I tried the Linux tgz but it failed ("wrong architecture, teabag!" it told me.) ..so I looked around some more, and came across a build for the Nokia N770 (Maemo something-or-other) and decided to give it a try, and holy **** if it didn't work (after some tweaking.)
NOTE: YMMV.
Make sure your phone is r00ted. Can't do it without the r00ty-juice. Also, a Debian distro is required. See here for how: http://www.saurik.com/id/10
**EDIT** I just reflashed my G1, so I had the opportunity to try again and figure out the exact steps! Here they are, as they worked for me:
01) Download the N770 Hamachi tarball: http://files.hamachi.cc/linux/nokia-770/hamachi-0.9.9.9-20-lnx-n770.tar.gz .
02) Untar/ungzip it, it will extract to hamachi-n770-0.9.9.9-20.
03) cd into there, and run sh ./install.
04) mkdir /dev/net to create the node directory in /dev.
05) mknod /dev/net/tun c 10 200 to create the tunnel device.
06) apt-get install sudo if you don't already have it.
07) apt-get install libcrypto++7 if you don't already have it.
08) ln -s /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0.9.7
09) sudo tuncfg to get the tunnel driver started.
10) hamachi-init to set up the initial configuration and RSA keys.
11) hamachi start to start up Hamachi.
12) hamachi login to login to the Hamachi network.
13) hamachi set-nick nickname if desired.
14) hamachi join network password if desired.
Success!! Got my G1 online and logged into my Hamachi network! I did apply this Linux fix (to make it stay online within my Hamachi2 network -- this is Hamachi 0.9.9):
echo KeepAlive 10 >/root/.hamachi/config
Maybe overkill, as it's gonna send a ping every 10 seconds over the air, which I'm sure will eat up my battery after a while.
--Weasel5i2
nice! been waiting for something like this for quite some time ;D having some problems though... it won't compile... when i run make install, just keeps on giving me a "Nothing to do for target "install"" Tried removing tuncfg folder and hamachi executable too (which doesn't work btw, says libcrypto is missing), still didn't work... any ideas?
Oh, thanks for reminding me! I also did an apt-get install libcrypto++7 when it gave a linker error.
As far as Make goes, it doesn't really compile (it is precompiled) as much as just copy the binaries to the proper places in the path.. Try doing the install of libcrypto++7 and see if it works for you.
--W5i2
alright... so ive tried installing libcypto 0.9.8 and renamed it to 09.9.7.... however it still says i need to run hamachi-init which doesn"t work!
Edit: alright, got it... i had to do sh install
Thanks, seems to work!
tip: the libcrypto.so.0.9.8 wich you have to rename to libcrypto.so.0.9.7 is located in /usr/lib
Can any of you two (Fish & Zero) whom have gotten this to work confirm what you did, and if "Debian" is needed ?
TheUriel said:
Can any of you two (Fish & Zero) whom have gotten this to work confirm what you did, and if "Debian" is needed ?
Click to expand...
Click to collapse
it does work, it only works on debian at the moment, since the binaries are not designed for android. however, the network connection should work with android too, since debian and android share their connections...
all you need to do is follow the instructions, but also run
apt-get install libcrypto0.9.8 and
mv /usr/lib/libcrypto0.9.8.so /usr/lib/libcrypto0.9.7.so (something like that check ls /usr/lib)
Alright so im still breaking my neck to get this to work but i dont get it.
This guy says "4) Untar/ungzip the file, run 'make install' and it should install without errors/warnings, IIRC.. (I did this last night)". What is he talking about ? Do i download the zip file, extract the folder in it to the root of my SD ? because thats what i have done so far. And if yes after then what comes next ? I cant put his puzzle together. -.- So lost, and i really want this.
You need a working debian on your android for this to work.
and even then its helluva lot of doing magic until it so much as tells you that it's started.
My Problem for example is that when i do: "hamachi start" it tells me that it can'T access the tun device (no such device) but it's there...
Dont worry about it, i went back to Hero after getting Debian working.
Updated PP
I reflashed my phone, so I had a chance to install Hamachi and document it again. As such, I updated the parent post with the correct instructions.
Enjoy, and please let me know if anything doesn't work and I'll happily try and help with troubleshooting.
--W5i2
Hmm almost eberything works except 'hamachi start' wich throws bad response from tuncfg (/dev/net/tun no such device)
Prolly a problem with my debian installation but you got an idea without reinstalling the whole thing?
You need to make the tun device first:
# mkdir /dev/net
# mknod /dev/net/tun c 10 200
I have since rewritten the original post to have more detailed (and proper) instructions.
^_^
-W-
Tried that after it was posted here in a reply (i think)
But to no avail (tried sudo tuncfg too but nothing changed)
Can't wait to go try this.
Does anyone have any VNC viewers (preferably free) that they recommend for use with this? My computer is behind a NAT router so I need to use Hamachi to access it.
Spica
Hi all,
Am I able to install this Debian into my rooted Eclair 2.1 Samsung Spica?
Thanks in advance.
SadaT5700 said:
Hi all,
Am I able to install this Debian into my rooted Eclair 2.1 Samsung Spica?
Thanks in advance.
Click to expand...
Click to collapse
Or my Evo 4G?
I have ubuntu running on my Evo 4G per the instructions here: http://forum.xda-developers.com/showthread.php?t=720622
I've followed the hamachi install instructions in this thread, but when I try running "hamachi start" I receive the following:
07 04:33:56.732 [ 0] [6315] tap: connect() failed 111 (connection refused)
Does anyone out there have any idea on how to fix this and get hamachi running?
This would be AMAZING on the Evo. Just imagine the possibilities of remote administration.
I have it working however I can only mount linux shares I cant mount windows drives
and what sucks is the ubuntu image wont let you paste files to filesystem ,root, home, or anywere. only from terminal.
Can anybody help me set up ADB, SDK, and Emulator. I've tried all of the guides but I just don;t understand any of it. I really want Emulator too so f anyone can help, that'd be greatly appriciated. Thanks =D
I have a black G1 with Danger SPL and the latest Radio. I use a Windows Vista laptop and have the SDK downloaded in the C:/ folder but it's the zipped file. Should it be extracted in there? I've tried to do the whole SDK Setup process but for some odd reason it always downloads everything except for like, the firmwares like 1.0,1.1,1.5,1.6,2.0,2.0.1,2.1 or anything.
G1BRICKED said:
Can anybody help me set up ADB, SDK, and Emulator. I've tried all of the guides but I just don;t understand any of it. I really want Emulator too so f anyone can help, that'd be greatly appriciated. Thanks =D
I have a black G1 with Danger SPL and the latest Radio. I use a Windows Vista laptop and have the SDK downloaded in the C:/ folder but it's the zipped file. Should it be extracted in there? I've tried to do the whole SDK Setup process but for some odd reason it always downloads everything except for like, the firmwares like 1.0,1.1,1.5,1.6,2.0,2.0.1,2.1 or anything.
Click to expand...
Click to collapse
Make sure that you have the usb drivers installed as well.
What i've done is exacted it to C:\sdk\ It makes navigating to it in CMD a lot easier. Once you have that done open CMD and type the following
Code:
cd C:\sdk\tools
adb shell
This will find your device (make sure it's not mounted and USB Debugging is enabled (default in most roms) and put you into an ADB environment.
this is a really good tool too:
nephron said:
Droid Explorer by Camalot
Droid Explorer is a Windows software that will download, install, and setup the android SDK for you all in under a minute so you are ready to go. I use this on a daily basis. This amazing piece of software has tons of plugins and a built in file explorer for all your files on your phone! All you gotta do is download, install, and go!
Download Droid Explorer - here
Install the program, and let it setup the SDK files for you
Connect your phone
Enjoy!
Click to expand...
Click to collapse
Also at what point are you having issues with setting this up?
nolimit78 said:
Make sure that you have the usb drivers installed as well.
What i've done is exacted it to C:\sdk\ It makes navigating to it in CMD a lot easier. Once you have that done open CMD and type the following
Code:
cd C:\sdk\tools
adb shell
This will find your device (make sure it's not mounted and USB Debugging is enabled (default in most roms) and put you into an ADB environment.
this is a really good tool too:
Click to expand...
Click to collapse
Ok so I have it setup as C:\android-sdk-windows and then all of the files. When I type in the first command it says
Code:
The system cannot find the path specified.
And I have the Droid Explorer Installed and everything but it doesn't have the Emulator and that's all I really want. That and FastBoot.
nolimit78 said:
Make sure that you have the usb drivers installed as well.
What i've done is exacted it to C:\sdk\ It makes navigating to it in CMD a lot easier. Once you have that done open CMD and type the following
Code:
cd [B]C:\sdk\tools[/B]
adb shell
This will find your device (make sure it's not mounted and USB Debugging is enabled (default in most roms) and put you into an ADB environment.
this is a really good tool too:
Click to expand...
Click to collapse
If you noticed it extracted it to C:\sdk\tools, you did yours to C:\android-sdk-windows. So you'll need to adapt to the changes..
Code:
cd C:\android-sdk-windows\tools
adb shell
Now it says,
Code:
Error: device not found
G1 is in Debugging mode and all.
G1BRICKED said:
Now it says,
Code:
Error: device not found
G1 is in Debugging mode and all.
Click to expand...
Click to collapse
A friend of mine had the same problem. Make sure the device is plugged into the back of your computer, reboot the PC and the Phone. See if that helps. And which ROM are you running?
Well see I'm on VegaMans Beta Legend Port, and my phone won't show up on my laptop at all not to mount or anything all that appears is the notification in my bar saying;
Code:
USB Debugging Connected
Select to disable USB Debugging
G1BRICKED said:
Well see I'm on VegaMans Beta Legend Port, and my phone won't show up on my laptop at all not to mount or anything all that appears is the notification in my bar saying;
Code:
USB Debugging Connected
Select to disable USB Debugging
Click to expand...
Click to collapse
I saw that, It could be that USB Debug is broken on the ROM (it is in early beta) Try using a different rom.
nolimit78 said:
I saw that, It could be that USB Debug is broken on the ROM (it is in early beta) Try using a different rom.
Click to expand...
Click to collapse
Well man, I tried it on FastTest and now I have a Custom Splash1 Image and now I'm not afraid of holding the Back button with the Red one. I think I'm going to throw Sense UI off to the side for now until it supports ADB and all. So thanks man, after all these monthes I finally have ADB Access. One more thing though, how can I get Emulator to work?
Now, when I try to go into Emulator through CMD, I se this;
Code:
C:\android-sdk-windows\tools>emulator
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
Otherwise, follow the instructions in -help-disk-images to start the emulator
Then, I navigate to C:/Windows-SDK-Windows/SDK Setup and I allow it to run. I get two windows, one that says
Code:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.
I close that window and go to the one that says Choose Package To Install, but the white box on the side is blank. I close that and go to Android SDK And AVD Manager. From there I go to Virtual Devices and it's blank and grey-ed out. I click new and see
Code:
Name - [I]Here I can write[/I]
Target - [I]Here I can't write[/I]
SD Card: Size [I]Here I can write[/I] MiB or KiB
File: [I]Here I can't write[/I] Browse [COLOR="DarkRed"]Dulled out[/COLOR]
Screw skins and Hardware I can do that on my own, but how can I set a Target if it is grey-ed out?
G1BRICKED said:
how can I get Emulator to work?
Click to expand...
Click to collapse
that is something I can't help you with. I am at work and it won't allow me to download what I need for that. But I am glad you got ADB workin!
Lol thanks =D
Hi Everyone!
I was trying to change the sales code using remount command by rotohammer but at terminal emulator and ADB I get remount: not found.
ROM: Overcome 1.4.2 with 2.1.2 kernel
Terminal Emulator
ROOTED.
Regards.
Dear DarkPal ,
if u only want to actually change your product code, u can use SGS csc selector
after that when it reboot u , it will see yellow words show
"installing multicsc-XXX" XXX is the product code.
For the overcome rom, there have 7 product code for u to choose, but I don't exactly know which is for your country.
To verify , u can connect it to KIES and it will show your product code.
For the ADB issue, which kind of flashing process u use? hemediall or odlin?
I sometimes can't have ==> adb devices as I have 2 I9000 and 1 TAB, always flash TAB and I9000 for my friends. So the usb driver sometime can't work. as too many device have being connected. If this happened, I will try step by step in the following until the driver work again.
re-install device driver by KIES
adb kill-server and than reboot the computer
control pannel=>system manager=>device manager=>uninstall samsung usb driver and than connect the phone and window will reinstall the driver.
regedit user-local-key =>samsung=>kies=>deviceDB=>clear all things and then reboot
usually these steps will let me redetect the device
But in some older rom of I9000 , it never be connected as the rom fault in USB connection app. But this will not the case for overcome rom itself as I tried it before and have no issue,it work fine..
hope this help
p.s. if u just want to hack KIES, use spoofFW, it have some preset product code for the western country, after hack you can update through KIES to the newest official firmware of your own country.
p.s. use this command in adb shell or terminal emulator on your tab to get in to csc selection section:
am start -a android.intent.action.MAIN -n com.android.Preconfig/com.android.Preconfig.Preconfig
ADB does detect the device my friend and gives it a number. The issue is that some commands in adb are not working. Remount command being one of them.
I flash through ODIN.
Thanks for SGS selector
bump.
I still get the remount: not found which is rendering ADB not usable for me. Any help would be appreciated.
I asked the same question a few weeks ago, using same odlin.
I was hoping rotohammer would chime in and state the issue.
Went to Android SDK and downloaded all they said to get, and still no remount.
I am on CM9 RC1 with the Mi410. Earlier when I used to plug in the USB I could see the a CD Rom drive being detected and it had contents.
Now when I plug it in, I can see the CD-Rom drive but Windows throws me an error "Windows can't access this disc - The disc might be corrupt. Make sure that the disc uses a format that Windows recognizes. If the disc is unformatted, you need to format it before using it."
Any clue on what happened to the CD Rom ? The "Android SCSI CD-Rom V001" drives are loaded when I see the properties.
How can I restore it?
manish_bhaumik said:
I am on CM9 RC1 with the Mi410. Earlier when I used to plug in the USB I could see the a CD Rom drive being detected and it had contents.
Now when I plug it in, I can see the CD-Rom drive but Windows throws me an error "Windows can't access this disc - The disc might be corrupt. Make sure that the disc uses a format that Windows recognizes. If the disc is unformatted, you need to format it before using it."
Any clue on what happened to the CD Rom ? The "Android SCSI CD-Rom V001" drives are loaded when I see the properties.
How can I restore it?
Click to expand...
Click to collapse
Looks like nobody who read this had this problem. Can anyone at least confirm that their CD rom is working fine on CM9 RC1 ?
yes this is normal with all custom roms. I faced this problem and didn't bother too much...
I think if we install stock rom we can get back the CD rom.
reversegear said:
yes this is normal with all custom roms. I faced this problem and didn't bother too much...
I think if we install stock rom we can get back the CD rom.
Click to expand...
Click to collapse
I see. Thanks for the info
Will keep an eye out the next time I put in a stock rom.