yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] MarvinFS:
(c) by m0narx

Moscow,Russia

Small console extension for rooted ROMs:

What you get:

- bash

- samba - complete CIFS server, discover you Desire as windows share from the box

- sshd - SSH server

- mc - Midnight Commander

- htop - process manager

- tree - directory tree

- screen

- cpulimit

- zip

- colored bash prompt /sdcard/data/root/.bashrc

and more (iftop, opkg, pppd)

!!!UPDATE 09/06/10!!!

D/L smallupdate.zip below -before setup you should have latest console.zip already installed

!add - nano editor

!fix - usbnet minor fixes

!!!UPDATE 08/06/10!!!

!fix - bash grep incorrect option bug fixed

!add - SCP enabled, still no SFTP yet...

!add - root, var and tmp are moved to EXT partition to mount during boot time(works only with app2sd)

!add - you may put your personal init scripts to /system/sd/init.d

they will be launched just the same manner as from /system/etc/init.d

!add - to autostart samba and sshd - just run "samba auto" or "sshd auto"

to turn autorun off just run "samba auto" or "sshd auto" again

!add - usbnet command (it's not necessary to connect in internet sharing mode any more), run in console:

"usbnet on" - turn on with IP: 192.168.100.1

"usbnet off" - self describing

"usbnet auto" - turn on IP and run samba & sshd

How to:

1. D/l console.zip ( 10.19 MB ) below

!!!UPDATE!!! 08/06/10

http://files.mail.ru/X44YRN

http://rapidshare.com/files/396639709/console_new.zip.html

MD5: 27636042F84D55A813C14AD1063E88B7

2. Reboot your phone in FASTBOOT connected by USB to PC

3. launch update-eng.cmd or update-rus.cmd

4. Phone will reboot in recovery - wait 'till windows will recognize it and then press any button.

5. Wait for the update to come and after that it'll reboot in normal mode

6. You're good to go

Can some one develop an APP or widget to control those daemons with current status?!

after reboot to start SSH server:

1. launch terminal from your phone (ConnectBot или BetterTerminal)

or ADB shell from PC

2. type

su

bash

sshd start

Connect phone to PC in Shared Internet mode

or

get a IP address by WIFI from your LAN

launch Putty (included in archive)

in HOST type in your IP

click open

on "Login as:" prompt enter root, and "root's password" is also root

type bash and ENTER

now you have complete console with MC and even mouse working

you may also start smbd daemon by

samba start

after that you may access you Desire by entering it's shared folders:

\\192.168.100.254(your Desire's IP)

shares can be changed in /data/etc/samba/smb.conf

normal colored ADB FIX for WINDOWS:

1. copy *.* from winupdate folder to your C:\Windows\system32\

2. open CMD and launch

ansicon -i

3. now you have colored ADB
[Desire Android Development] sruon:
Sounds pretty interesting
[Desire Android Development] manks:
This works brilliantly - thanks. Can you confirm whether I need to run the commands each time the phone reboots. It would be nice if we could get it to start samba automatically on reboot if not. Great work, thanks.
[Desire Android Development] mercianary:
Restart your phone and find out.

If it doesn't there's a free app on the marker called 'autostarts(root)' that does exactly what is says on the tin.
[Desire Android Development] MarvinFS:
for now it isnt! i wonder if we could use this autostarts app mercianary mentioned! i'll try it later today.

also i wonder if additional system services will eat more juice?!

Also other suggestions are appreciated...
[Desire Android Development] miyu-hitori:
do your update.cmd in fastboot usb in my win7 notebook,it tell me device not found。could you provide a zip file that I could flash in the recovery?
[Desire Android Development] manks:
Same Happened to me. If You put your phone in recovery first then run it it should work.
[Desire Android Development] d3sm0nd:
Awesome... thanks!!! Will try it out.

Hope you can update the scripts and apply everything automatically on each boot.. will be awesome :)

EDIT:

Tested and everything works... Samba is OK, I can copy files... but I only get speeds like 500kb/s over wireless... should be more!

Also I can't delete files... but permissions seems fine?

Conf:

[SDCARD]

comment = Internal micro secure digital card

path = /sdcard

browseable = yes

available = yes

public = yes

writable = yes

read only = no

create mask = 0777

directory mask = 0777

create mode = 0777

guest ok = yes

guest only = yes

2ND EDIT:

Tested ssh, works fine, but how can we enable SCP/SFTP? :P
[Desire Android Development] jayshah:
How are the load averages and IO stats while the transfer is in progress?
[Desire Android Development] emontes:
Just tested and it's really great but it's really really slow for me when I connect via ssh or use samba.

Anyone having the same issue?
[Desire Android Development] StrongOneX:
yes it is slow but it works!
[Desire Android Development] StrongOneX:
I cant figure how to make samba and ssh start at boot.

I downloaded autostart from market and it told me to make an executable file named autostart.sh at /data/opt/

I created file autostart.txt and put some commands in there and renamed it to autostart.sh (changed extension, not just changed name) and chmod-ed it in ssh putty (bash mc) and so on.

but it still doesnt work...

maybe kernel needs to be tweaked??
[Desire Android Development] d3sm0nd:
Re: extended Desire console with bash,sshd,samba,mc and more...

Do you guys use apps2sd? I think it might be slow because of it...

------------------------------------

Sent via the XDA Tapatalk App
[Desire Android Development] sruon:
Actually, this doesn't work at all for me, maybe because I'm using Defrost that doesn't really work with any networking app I know (Swift, quicksshd for instance)

Can't access samba / can't even start ssh
[Desire Android Development] m0narx:
Above SCP / SFTP, I still did not work (((In the nearest future to get to work NMBD.

If you want to run SSHD automatically on boot, you must create a file "98sshd" in the folder /system/etc/init.d with the following content:

#!/system/bin/sh
/data/xbin/sshd start

If you want to run SMBD automatically on boot, you must create a file "97samba" in the folder /system/etc/init.d with the following contents:

#!/system/bin/sh
/Data/xbin/samba start

P.S. download these files to the phone can only help RECOVERY console, using "adb push"

Don't forget chmod +x on /system/etc/init.d/97samba and /system/etc/init.d/98sshd

Sorry for my english
[Desire Android Development] MarvinFS:
Wow! the developer himself finally appeared! :)

We'll work together to fix stuff, he'll make changes - i'll translate 'em and collect suggestions - so bad english is not a prob. desire - that's what counts! :)) (i sense play on words here! :) )
[Desire Android Development] emontes:
Didn't say it doesn't work did I? :)

M0narx,

Great one, mate. Really useful one.

Keep up the good work :)
[Desire Android Development] emontes:
Hey M0narx,

Tried to do an auto restart but it didn't work.

Went in recovery, pushed the files to init.d, chmod`ed 777 but no joy.

Even trying with autostart from Market Place but don't know why, it doesn't autostart for me :(

Any hint?

Cheers.
[Desire Android Development] MarvinFS:
i'm not sure whether it works or not...

chmoded to 777, samba sshd mods are 777 also.

may be it's forbidden to run from /data/xbin on boot?

i think samba does not start at boot cause there are no IP addresses during boot time.

but still sshd is running due to ps:

ps w | grep ssh
128 root 528 S /system/xbin/dropbear -A root -N root -C root -U 0 -G 0 -a -P /sdcard/data/var/run/sshd.pid -b /data/etc/

i'm not sure what does dropbear process mean either.

and also there are .pid files in /sdcard/data/var/run/ for sshd and samba with nonexistent PIDs

# sshd start
sshd start
Starting SSH server... /system/xbin/dropbear is already running

also netstat:

# netstat -na
netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:16650 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN
tcp 0 0 :::7890 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN

and ifconfig

# ifconfig
ifconfig
eth0 Link encap:Ethernet HWaddr 00:23:76:D8:94:52
inet6 addr: fe80::223:76ff:fed8:9452/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:87 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5046 (4.9 KiB) TX bytes:492 (492.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1832 (1.7 KiB) TX bytes:1832 (1.7 KiB)

EDIT:

i found out that grep in not working in bash any more complaining about unrecognized option (it's for colored grep output)

[04:23:28 /data/local]# ps w | grep sshd
/system/xbin/grep: unrecognized option `--color=auto'
BusyBox v1.16.0 (2010-01-29 22:31:34 CET) multi-call binary.

Usage: grep [-HhrilLnqvsoeFEABC] PATTERN [FILE]...

Search for PATTERN in each FILE or standard input

Options:
-H Prefix output lines with filename where match was found
-h Suppress the prefixing filename on output
-r Recurse
-i Ignore case distinctions
-l List names of files that match
-L List names of files that don't match
-n Print line number with output lines
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress file open/read error messages
-c Only print count of matching lines
-o Show only the part of a line that matches PATTERN
-m N Match up to N times per file
-F PATTERN is a set of newline-separated strings
-E PATTERN is an extended regular expression
-e PTRN Pattern to match
-f FILE Read pattern from file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Print N lines of output context
[Desire Android Development] erpalma:
Can I use pubkey auth with this sshd?
[EVO 4G General] mrono:
What's the first thought that went through your head, not a series, just the first thing upon holding it in your hand.

mine was 'HOLY **** THAT'S HUGE!'
[EVO 4G General] cirehawk:
Same here. It's a BIG phone. Almost too big.
[EVO 4G General] liquidkernel:
Ditto. The sheer size of it was what shocked me. The screen size alone is the same size as my whole Hero.
[EVO 4G General] SPENONE:
I wasnt shocked due to the fact that i had an HD2 for a while....its pretty much the same dimensions. I was more impressed with Android (my 1st Android device :cool: ).

My only gripe is that, where i rest my ear while on the phone is uncomfortable,....trying to figure a solution to it now.
[EVO 4G General] cirehawk:
Yeah, I like a smart PHONE, the operative word being phone. I love extra capabilities, but in the end it is a phone. The Hero fits nicely on my hip (with the seidio case and holster). The EVO may feel huge on my hip. It's more like a multi-function device. Hoever, the sheer power of it may make me consider upgrading at some point.
[EVO 4G General] david279:
I tell you this. This phone is stretching my pockets.
[EVO 4G General] mrmomoman:
Are many of you oompa loompas? It's not that much bigger than the Iphone. Taller but not that much wider.
[EVO 4G General] bobdude5:
ya seriously its really not that big..its the same height as my nexus one and quarter inch wider fits perfectly in my pocket
[EVO 4G General] cirehawk:
No, are you a giant? :) For my personal taste even the iPhone is a little big. So saying it's not much bigger than the iPhone doesn't change my opinion. :)
[EVO 4G General] MrDSL:
It fits just fine in my jean pocket also. After seeing the seido innocase + belt clip on a evo at BB when I got mine I had to get it. On my belt it really wasnt that much more then my current HTC Hermes that I've had before.

I was concerned about the size of the phone also but its all good now..The only issue i have really is the width of the phone sometimes makes it difficult for one hand operation. Man I love this screen! I couldn't see myself going any bigger screen wise though.
[Hero CDMA Themes and Apps] uuddlrlrbabastrt:
hello everyone,

just curious if there is a vpn client with the ability to connect to nortel networks

i searched for it and found vpnc, but it seems there are some issues with it

anyone know of anything?

thanks much

./tom
[HD2 General] bonez537:
with the EVo coming out and it being a droid phone..

what are the chances of some one cooking up a fully droid HD2??
[HD2 General] kntdookoo:
Dude please search prior to starting a new thread..There are plenty already discussing this.

http://xdaforums.com/showthread.php?t=651632

and here http://xdaforums.com/showthread.php?t=656514

The evo uses a different touch sensor and other different hardware so the ROM which we already have shouldn't help much if any. But check out that linux project first link.
[HD2 General] crisisinthecity:
2.13 ROM and Cookies Home Tab makes the HD2 have everything that Android has and more... I'm still trying to understand why everyone is on Android's nuts. It get's unstable, it crashes and most of the 50000 apps are garbage.

So what is the point really? Winmo is way more versatile. You just have to be somewhat intelligent to tweak it to it's full potential and maintain. I love window's mobile.
[HD2 General] rickyoon.vegas:
because Android is the new iPhone.
[HD2 General] crisisinthecity:
My grandma has an iphone and my grandpa has an android phone... WinMo FTW.
[HD2 General] atlaswing:
overheard in the office:

"Oh no, it's not a G1, it's a Google G3"

"No it doesn't use SIMs, it's an Apple phone"

you don't you dare correct them either... ;)
[HD2 General] serialtoon:
You guys have not used an Android phone before, and it shows ;-) Android is flat out EPIC.
[HD2 General] frankd14321:
Thats were you are wrong, why would you assume that? I myself got the G1 2 weeks before it came out, had a mytouch 3g, GSM hero, nexus 1... blah blah blah.. and all the phones had the same headachs and got old quick. Used to flash custom roms every day on all the phones. I do love my hd2 more than any android phone ever! Running UNIQ black 2.3 rom and it never ever crashes or freezes. Android is not "epic" it's a good OS that is highly overrated and now people act like it's new and awesome when i've been with it since Day 1.. I personally feel every single OS has it's up's and downs but they are right, android is turning into the iphone as far as the people it attracts.
[HD2 General] ryan562:
i love android and i'm starting to love win mo 6.5. both have their stability issues (freezing issues with my older dash and some here with the hd2 vs. the force closing issues with two of my rooted android htc phones).

i'm not gonna hate on either one but android is the future right now since it's continuing to update and get better as the years go by while windows will move on to a more closed platform in win mo 7. however, thanks to guys here at xda for keeping win mo alive. love the tweakability and customization options. i can already do stuff with a stock win mo 6.5 device as i can a rooted android phone e.g., playing flash vids, saving apps to sd card, overclocking, etc. however, stock android OS is beginning to add such customizations with the Froyo update and forthcoming Gingerbread update.
[HD2 General] bonez537:
First of all i figured it would be a newer conversation seeing that the EVO just came out and is running on droid...

im sure that there are other conversations about it.. but i wanted to start one relevant to yesterday.. not several months ago..

THANKS
[HD2 General] k20a1:
idc, i just want live wallpapers like the nexus one, that would be the only reason why i want the android platform :D
[HD2 General] Jamison904:
It drives me nuts when people do this. It is Android! The "droid" is the Motorola phone that Verizon has advertised like crazy and now anytime someone that doesn't know what they are really talking about always reference the Android OS as "droid." Either do just a little more research on the subject or quit being lazy and call it what it is. Just sounds ignorant.
[HD2 General] Paten:
If you had done a search, you would have seen that the same subject was posted a couple of weeks ago when Google handed the Evo out at Google I/O to 5000 developers. Is that relevant enough for you?
[HD2 General] crisisinthecity:
I've got a G1 dude... It's cool, but it's nothing special... It's for people who are only smart enough to install programs and remove programs... Which is fine. Whatever. I didn't say Android wasn't a good operating system.
[HD2 General] Jamison904:
I have to disagree with you on this. Even the rooting process for the G1 is 10x more complex then hacking the HD2. Don't get me wrong I love my HD2 for the hardware... the software on the other hand is 3rd rate. I mean there isn't even a halfway descent photo editor, and don't even get me stated on the lack of any fully functional email app. I have use the browser for everything. Guess you have to take the good with the bad. But back on topic. My sister-in-law got the EVO yesterday and I helped her set it up. I have to say that I am really impressed with it. But I am not giving up on the HD2 quite yet.
[HD2 General] rysky007:
Flash player for HD2? how do i get that, that i really need.
[HD2 General] kntdookoo:
I really like both. Had 2x G1's a MyTouch and now have as my work phone a HTC Incredible.

I just upgraded my personal phone to the HD2 and quite skeptic at first as I havent had a winmo phone since the TMO Dash. With Sense, I like winmo now. Running energy ROM and its running great so far. Yea, its a little more deep in regards to the file systems and such. May confuse the everyday user. But, they both are great OS's. I think the android is a little easier to use for the non-tech savy person.

I like having both. The incredible is a FAST android phone with sense running flawlessly...Finally. Im just looking forward to win7 phone OS though and the hopeful port to the HD2.

With all the current hardware; snapdragons, large screens, and mem. I think performance and spped is no longer the issue. Its a matter of opinion on which OS is right for you ;)

Oh, and risky i have flash on both the incredible and HD2...Incredible runs flash way better.
[HD2 General] Jamison904:
Get this:

http://www.opera.com/mobile/download/

Or read this:

http://xdaforums.com/showthread.php?t=544770
[HD2 General] hazard99:
What it really boils down to is that t-mobile needs to get some decent phones other than the mytouch 3g slide or the nexus 1. I believe the next thing close to the hd2 is the touch pro2 .

A lot of people got bargins on Hd2's and thats why they have them.

I for one bought the hd2 in hopes that Android could be ported.

Difference is I have not once asked if it could be done. I have only searched the forums and read the millions of post asking could it be done based on the incredible or the evo .

I like parts of winmo.It really just doesnt seem like the app development is as explosive as android.

I will not give up my 4.3 inch screen!

And for those of you suggesting that someone just randomly switch.. remember this, not everyone can just up and switch.

As far as t-mobile is concerned,

The g1 is old and dated and the mytouch 3g was almost the same hardware.

the mytouch 3g slide isnt much better and the nexus 1 cant be gotten on contract .
[HD2 General] crisisinthecity:
I would love to check out an EVO and am no way hating on Android... I think it's cool. it's just not as fun as Winmo...
[Nexus One General] Blueman101:
Im not sure about everyone else but I believe in Froyo. I beleive that when the official versions of Froyo and Flash are released that they will shoot Android to heights never before conceived. But all this negative publicity and "froyo is slow" threads on the UNofficial version of 2.2 is making me rather angry. Because people are stupid, (especially non tech savy people) I have bad feeling that anything negative said about this unofficial Froyo may taint the views of the official Froyo before it i even released.

So my fine friends here at XDA, what do we say about calling it somthing else help distinguish if from the official fixed version of froyo. Perhaps we could call it "Yoplait" because as we all know frozen yogurt is always better then regular yogurt. Except to Micheal Weston.
[Nexus One General] tengtou:
fool.......
[Nexus One General] RogerPodacter:
just about every blog, article, or coverage of the newest 2.2 update calls it lightening fast. i dont think anybody out there is under the false assumption that froyo is slow.
[Nexus One General] OrganizedFellow:
how many "non tech savy people" do you know running Froyoy0YO???
[Nexus One General] logger:
On the one hand

shuld be saved for the official release - if it turns out to be applicable.

On the other hand, identifying "issues" now, may be beneficial in allowing Google to see and fix them. Preventing them from being in OS2.2 when it is released.

Fear Not - people will judge the end product, whenever it actually eventuates.

Even though what is out there is not actually a hacked version, I have taken to calling it froyohack as a way to remind myself that it is not the real deal.
[Nexus One General] Blueman101:
Wow, really? What dignified that?

Not many tech-savy people are running Froyo, but how many people look up things and if they stumble upon XDA and see 10 or 20 "froyo is slow" threads they may get a bad taste in their mouth.

froyohack sounds good
[Nexus One General] SBERG117:
How bout Froyo-lite?

The Unfroyo

suto-froyo

I cant believe its not froyo!!!!!!!

skim-froyo

diet-froyo

The froyo your mother warned you about

almost froyo
[Nexus One General] temperbad:
Regardless whatever ya want ta call it. I love this froyo rom. No bad things about it from me. I couldn't be happier with it. Froyo ftw.
[Nexus One General] Mi|enko:
Haha! Nice! Especially the "I can't believe it's not FroYo".

My opinion, it's still a Froyo build, so there's nothing wrong with referring to it as such. Windows 7 beta was still windows 7. People still called it Windows 7. Tech savvy people called it by it's build number. We could just call this build off Froyo FRF50. . .many already are.
[Nexus One General] codesplice:
100% agreed.
[Nexus One General] Makaijin:
Actually I'm sure people will stop calling it Froyo and just call it 2.2 when it's officially released. People soon dropped the name Donut when 1.6 was officially out. Similar thing happened with Eclair. I'm fairly certain the Froyo name will be dropped soon enough in favour for 2.2 after official release.
[Nexus One General] jz9833:
All I know is that right when this test build was released I flashed it to my phone and haven't looked back once.
[Nexus One General] Raymond77:
Same here, I love it.
[Nexus One General] MrCDWJR:
being on xda DOES NOT make someone tech savy. So im sure there ARE more than few NON tech savy people running the pre release.
[Nexus One General] Paul22000:
Uh, why?

Whether Google adds more features or changes anything in the official 2.2 update or not, you can be guaranteed that the leaked version *IS* at least 90-95% (or even 100% of what the real version will be.

Are you expecting that the official version will be dramatically different or something?
[Nexus One General] diversificationied:
It is froyo, FRF50 build. It's just an early build.
[Nexus One General] Blueman101:
In the world of programming and engineering small code changes can make dramatic differences in either good or bad direction.

It will not be build FRF50, most are expecting FRF80 or something. It will be an entire different version.
[Nexus One General] Paul22000:
Yes, but you'd have to be delusional if you think that Google will somehow completely overhaul Android from 2.2 leak to 2.2 official.
[Nexus One General] Blueman101:
Right, I think (or hope) that there will be enough difference from 2.2 leak vs 2.2 official that it will be very distinguishable, but still similar to where its not 3.0 yet.