yashsingh1/xdaforums huggingface dataset:
[HD2 Ubuntu Development] payamspot:
I hard-reseted my phone and it was OK. Today, again the same problem (without rinning Ubuntu!). Unfotunately I don't have any Registry Editor installed. I found this:

http://handheld.softpedia.com/progDownload/Mobile-Registry-Editor-Download-10636.html

and istalled, and I found the registry is

HKEY_LOCAL_MACHINE\Security\Policies\Policies

which should be set to 1, but "Access Denied"! :(
[HD2 Ubuntu Development] payamspot:
No, the default ROM.

P.S. Is there any way to get notified when there is a reply to my post?
[HD2 Ubuntu Development] Tokl:
I use Pocket Controller Pro (of course you have it to be installed before this happens... :rolleyes:)

Then you are able to remote edit the Registry of WM via an PC (with Admin Rights ;) ).

Default ROM = Stock ROM ;)

Click on Tread Tools (above in this Tread), then on Subscribe Tread :)

Greetz Tokl
[HD2 Ubuntu Development] corry16vturbo:
Is it possible to set the WIFI in Monitor Mode ??

T.
[HD2 Ubuntu Development] sivashsay:
hi all ,

please say how can we run USB mouse or keyboard in ubuntu 0.3 ( this versio )!

this is hard to run , i can not run mouse in this version !

thx all !
[HD2 Ubuntu Development] Tokl:
Its in the included Readme ;)

3 USB MODI
##########

There are 3 USB modi avilable: Ethernet and adb - both excellent for diagnostics
and file transfers with a host computer - and there is usb host mode.
Each usb mode requires a different kernel image. Thast's what the three
included zImages are for.
Please see startup.txt for further information on switching them.

*USB ETHERNET
In usb ethernet mode you will be able to establish a network connection
with your linux based host computer and ssh in.
If you are using the usb-ether zImage you will have the hd2 ready
to connect on boot. If you have been using 3G Mode or Wifi Mode after boot,
you can get back to USB Mode by tapping the according icon in the home menu.
On your host computer you can do the following to connect after plugging in the cable:

ifconfig usb0 up 192.168.0.200
ssh -Y htc-linux@192.168.0.206

*ADB
ADB (Anroid Debug Bridge) is weak. ssh is better. But it is useful when you
only have a windows PC handy.
To get the adb program for your windows or linux based host pc google for
anroid sdk and have a look inside the tools folder.
After booting with the adb zImage, adbd should be ready to accept connections.
Connect the USB cable with your host pc and try:

adb shell

*USB HOST MODE
This release comes with the requirements to attach all kinds of peripheral devices
via USB including but not limited to:
-keyboards
-mice
-printers
-flash disks and HDDs
-audio devices
-network devices (wifi, wired, bluetooth)
-display devices
-secret gps devices

You will have to supply power from an external source.
See below link for instructions on how to do this.
http://htc-linux.org/wiki/index.php?title=Msm_Usb_Host

Greetz Tokl
[HD2 Ubuntu Development] dcordes:
no afair the driver doesn't support it. you can review it in kernel source (see post #q1).

But you are free to connect any USB WLAN device ;)
[HD2 Ubuntu Development] sivashsay:
its mean i must have wifi or 3g ?

my english in not good , i have 2g !

i have a HUB USB , please say it easy to me !

wha can i do by USB HUB ? :(
[HD2 Ubuntu Development] plopper:
you can iether run airomap on winmo or like dcordes suggested a usb wifi adaptor.

you can get a atheros on ebay for around 5 euro's, those are garenteed to work.

when i searched for a netbook to buy the atheros and a double battery were the 2 features that made me decide to go for the samsung nc10.

read the bottum of this post for more info on how to get it to work.

click here for magloader info.

thats why i asked for the info about the script you use.

there are 3 methods to get notified, 1 is already explained.

the 2 others are:

set it to default in your profile or set it when you post a new question.

that depends on what sort of usb hub you have.

a computer supply's 5 volt with 0.5 amps on the usb port, and as your phone is a usb device it doesn't supply this.

your phone is a usb device, it uses the power from the computer to charge it's battery.

so you need a usb hub which supply's this for the phone, the cheap standard usb hub's do not supply this.

and then you can either replace the standard usb connector on the hub for a micro usb plug, or use a converter cable to do the same.

plopper
[HD2 Ubuntu Development] sivashsay:
thx dear plopper !

but i test a way !

1-connect my USB HUB to charger !

2-Connec Mouse and HD2 Cable to Hub USB

and run ubuntu but not worked !

in this way i give power from charger no Computer !

but dont work !

whas ur Idea ?!
[HD2 Ubuntu Development] dcordes:
Do you supply the +5V externally with sufficient power? EDIT: It might not be sufficient to connect USB HUB to power...

=> http://htc-linux.org/wiki/index.php?title=Msm_Usb_Host

Do you use the correct (usbhost) zImage?

=> startup.txt
[HD2 Ubuntu Development] sivashsay:
i have usb hub 4 port mini standard , i dont know what can i do !

i must download anything ?

please tell it with a FILM in youtube !

:( thx
[HD2 Ubuntu Development] plopper:
no movie but maby you understand this picture.

notiche that the usb hub has it's own powersupply.

the top of the picture shows how the usb hub normaly is used when attached to a computer.

the lower half is how it should be attached to the hd2.

notiche that the phone was moved to the location (cable) the computer was on.

(no charging of the phone is possible like this. for that you need to modify the hub's wirering).

plopper
[HD2 Ubuntu Development] sivashsay:
thx dear plopper ,

but i tested this 2 way ,

but not worked , you mean my usb hub is cheap and dont work true ?

now i must buy a better usb hub ?!
[HD2 Ubuntu Development] sivashsay:
this picture is my do !

but not worked !

Whats ur Idea , i must Donwload any File ? or i must Buy a better Hub Usb ?
[HD2 Ubuntu Development] Tokl:
Did you changed the startup.txt like i and dcordes mentioned?
[HD2 Ubuntu Development] sivashsay:
no , what changes ?

an u tell me full changes with pic or film ?
[HD2 Ubuntu Development] sivashsay:
Yes i tested it !

i removed # from usb host , and just Enable usb host , but i have this error :

usbhost does not support reading read-only switch. assuming write-enable.

and in ubuntu my LED CHARGE is off and don work , No charging and no Usb reading !

Whats the Matter ?!
[HD2 Ubuntu Development] plopper:
you shouldn't connect it to the normal ports of the hub, but to the cable which normaly goes to the computer.

now that cable normaly gets power from the computer, the phone does not supply that power, it uses power as it's a usb device.

on the hub only the ports get power, and then only when the hub gets power from an adaptor (aka a cable which plugs into the wall).

so you got 2 options.

1) modify the hub internaly, add the power to that cable.

2) use a so called Y cable and connect it to both the cable and a normal port (the better external harddrives come with a cable like that).

Y meaning that it has 3 plugs instead of just 2.

option 2 is the easiest, but do not try this without getting some help from a technician.

we don't want you to blow up your phone.

plopper
[HD2 Ubuntu Development] dcordes:
That error can be ignored.

Use usb host zImage in startup.txt and software is ok.

Regarding hardware:

Everything is documented at http://htc-linux.org/wiki/index.php?title=Msm_Usb_Host

Please use google translator or anything.

EDIT: Can somebody shoot a video or take pictures with HD2 Ubuntu USB host mode in action? Then we can show it off in first post :-)
[HD2 Ubuntu Development] phoenixtraveller:
How can I get it to work in MAGLDR?

Can you please make a clockwork update.zip?

Or back up as SD-CARD single Zimage and Initrd.gz (not cpio) to use with MagldrSD?

Or better yet as boot.img and system.img containing above (zimage and initrd AND the rootfs.ext2 partition) to use with daf.exe and flash to NAND?

Thanks.

WILL make donation $.
[HD2 Ubuntu Development] plopper:
do you know how much trouble i had to not buy a usb hub to modify?

trouble is i'm on holiday in hungary and all my tools are back at home in the netherlands.

i'm also a member of a computer club of which 95% of the members are running linux.

and due to issue's with the building we were using, were gone join up with another club which is 100% windows.

this would be so cool to show off to them that linux is far supiriour then windows. lol

i allready been to 1 of there meetings about 5 years back and they still remember me from then, brought a 33% overclocked water (pure coolant) cooled system.

but this is far better.

plopper
[HD2 Ubuntu Development] phoenixtraveller:
ubuntu/magldr/clockwork/hspl...

And - How to mount rootfs.ext2 to YAFFS2/Nand? or even data.img? or sdcard partition ? GpartedLive?

Please: just want a simple boot.img+system.img combo that will allow daf.exe to install (correct parts etc) Ubuntu to NAND - and if this not possible then at least cut down version (resize rootfs.ext2 and mount to sd???) for AD SD BOOT.

Can anyone please help?

Thankyou.
[HD2 Ubuntu Development] Tokl:
For me this worked :)

and for Linux Noobs (like me:p) here some howto Screenshots:

(important is the first click have to be right between the icons)

Now it Starts everytime :D

Gretz Tokl
[HD2 Ubuntu Development] Tokl:
Hmmm,

my USB Stick wont start...

Anyone an idea?

Maybe is it because its ntfs 512 ?

Greetz Tokl
[HD2 Ubuntu Development] Tokl:
Sorry, i cant resist :D

Even the Shift is looking BIG compared to the HD2 :p
[HD2 Ubuntu Development] plopper:
look at the last line of the error msg (excepting that you are running the usbhost kernel allready).

if that doesn't help you need to build the fuse module, then the stick will come.

very cool screenshot, like a famely.

plopper
[HD2 Ubuntu Development] plopper:
look up the thread of magldr and read the future work/todo section.

it doesn't support ubuntu yet.

so nand isn't an option yet either.

yaffs is an filesystem just like ext, just specialized for nand.

you should be able to resize the image with parted.

plopper
[HD2 Ubuntu Development] Tokl:
Terminal says: Fatal: Module fuse not found.

So how to build this fuse module?

(tried some things i found on google, but did not really understand what i did - as i said before, im not familiar with Linux :o, so i am sorry if this is basic knowledge)

But i found out how to install Programs with ubuntu-software-center, i always get the error with cannot install untrusted package ... (and i read some people here had the same problem too, but no solution).

sudo apt-get update && sudo apt-get upgrade

Maybe add this to first post, so people are able to install Software and additional Language files.

Greetz Tokl
[HD2 Ubuntu Development] plopper:
this should do the trick

sudo apt-get install fuse-utils

you can use "apt-cache search <keyword>" to search for these things.

i think i did post a possible solution earlier in the tread, but no problem.

changing the sources of the ports seems to help in many cases, it did on my ubuntu virtual machine (i'm a fedora user, not ubuntu).

for example some programs aren't allowed in every country, so the port server for those countries don't store those.

setting the main ports server won't be the fastest solution but seems to contain the most packages.

a nice way of learning is to run ubuntu in a virtual machine (virtualbox/vmware) on your pc.

after the install you make a snapshot.

from that moment you can go wild and try everything.

if the system crashes you put the snapshot back and your back on track to try again.

i do the same as packages and the package manager on fedora are different (also the layout of the system is different).

for example on fefore you should do "sudo yum install fuse".

i tryed it in the vm and seemed fuse utils was allready installed there and modprobe fuse worked fine.

i'm learning to as you can see.

plopper
[HD2 Ubuntu Development] dcordes:
try to mount it manually in the root terminal program type:

dmesg

#now check what device node the usb stick partition is assigned e.g. /dev/sdb1

mkdir /media/toklusb

mount /dev/sdb1 /media/toklusb

I can compile in any extra drivers as requested in 0.4 release
[HD2 Ubuntu Development] sivashsay:
how can connect to a VPN in ubuntu ?

or get flash player for firefox?
[HD2 Ubuntu Development] sivashsay:
adobe flash plugin for firefox or adobe air in ubuntu software center is not availabe and dont install !

how can install adobe flash player for firefox ?!
[HD2 Ubuntu Development] Jaxbot:
You can't, since Flash isn't designed for ARM processors. Hence the fact it's not available.
[HD2 Ubuntu Development] sivashsay:
Wow, This is very bad , So how can surf web or youtube ?

not anyway to fix this problem ?
[HD2 Ubuntu Development] sivashsay:
this is my idea : run Google chrome and then copy flash player plugins in chrome plugins folder !

but i want know how we can run chrome in ubuntu hd2 or can we install WINE in hd2 ubuntu ?
[HD2 Ubuntu Development] plopper:
let me try to explain things a bit with a very simplefied example.

your desktop pc is a diesel engine.

your phone is a small gasoline engine (a scooter).

now your idea would be to take a diesel power program and run it on gasoline, you think that's gone work?

wine is even worse, it needs a really big diesel engine of a truck.

programs are designed for a certain type of engine, and some are designed in multiple types.

if the program isn't available for your engine you either have to make 1 yourself or convert the engine.

this last can be extremly time consuming to even imposible without designing a totaly new engine, wine is 1 of those programs.

hope you understand now what you are asking.

(this example is way over simplefied so don't start flaming guy's, just trying to make it clear in a simple way).

plopper
[HD2 Ubuntu Development] sivashsay:
yes, you right !

but we must have a way o run flash player or air in this version !

you mean its not ?
[HD2 Ubuntu Development] phoenixtraveller:
It does boot to keyboard and mouse and desktop though !

So what do I do then ?

Sent from 4050-quadrant score HD2 with Super-Nand-Darkstone-ROM/MAGLDR.
[HD2 Ubuntu Development] dertester123:
I build me a powerd USB Cable and using this with mouse and keyboard is really amazing.

I never thought that it could be so fast!

Maby it will work with jdownloader or apache and other little server tools, would be great.

Somehow it did not find my own wifi hotspot, only the neighbours^^

I dont know why, maby the refresh time is to short? But i tried atleast 20-30 times... I dont have any special letters in my ap name :/
[HD2 Ubuntu Development] nmambre:
Ad Hoc wifi; QEMU on PC Windows

Downloaded and started to test this build yesterday. I'm new to Linux in general, but have been wanting to have a desktop-like environment on my HD2 (like has been achieved with Win98 in Qemu, with limitations).

Wifi works for me at home, with a router, but at the office I have an access point with AdHoc Wifi, and I can't connect (the same happens with Android, and it is a known issue.) So, can Ubuntu for HD2 use adhoc wifi?

@plopper:

If I remember right, I saw in a previous post that you use the Ubuntu image in Qemu on your PC first to test thing. Is it a special version of Qemu? Can I use it on WinXP? Or do I need to run Ubuntu on my laptop? I would like to try and install a (few) software on Ubuntu for HD2 and then transfer the image to the SDCard.
[HD2 Ubuntu Development] pantizol:
I really appreciate Ubuntu on the hd2 because it lets me do things that can neither be done in winmo nor in android: Reading usb flash drives on the go (I use a solar usb hub from dtech with built in lipo cell, which can power usb host for about 50min), annotating pdfs (with program called Xournal) and having a complete desktop office suite with open office (for some reason you cannot install the open office suite in the ubuntu software center, which will give you an error, but it works if you install the single open office programs (writer, spreadsheet ...) one after another).

I wanted to use ubuntu for holding presentations and bought a DisplayLink usb2vga device from Kensington called "Universal Multi-Display Adapter". It should work with this ubuntu because the driver for "all DisplayLink devices to date (all DL1xx devices) is in the staging tree of the Linux 2.6.32 kernel" according to their website. However when I connect it to my leo I do not get the green screen that I am supposed to get before xorg configuration. But if I connect it to my ubuntu notebook I will get the green screen without installing anything. Has someone an idea how to get this working on leo?
[HD2 Ubuntu Development] Tokl:
Thanks for your replies, but i didn't get it to work...

(no big problem, as everything else works wonderfully, and i have all my data i use on SD Card :D)

I get the message that fuse-utils already has the latest version.

I only have the files SDA and SDA1 inside /dev/ folder

tried them both to mount, but on sda1 it says Fatal: Module fuse not found, and at sda it says i have to specify the filesystem, so i tried "mount -t ntfs /dev/sda /media/toklusb" but with error "failed to access /dev/sda (i assume this is the SD card?)...
[HD2 Ubuntu Development] dertester123:
I had this problem, trying ndiswrapper. Installed in software center, always wants to update and if i try via console it says its installed, but does not finde the programm :/

Im not good with linux but maby there is a problem, that the programms are installed but not listed as run-able programms... i remember something like linking the programms to a specific folder and mark them runable to use them properly..

(sory if this is wrong or a completly different thing)
[HD2 Ubuntu Development] tallmantim:
Hi

I am interested in this for my son to try play a regular Java game (JAR file) called minecraft on the phone.

Is it possible to compile a JVM for the platform, or is that side closed from the Sun/Oracle side? Or does this build already come with a JVM?

Thanks
[HD2 Ubuntu Development] dertester123:
Look in the startup file of the package. Im not home atm but you have to select the right kernel to load. This is what is meant by the 3 methods in the first post here.

Just exclude the actual one (i think it was usb theter) and activate the usb host mode.

You need the right cable of course, but its easy to build one yourself.

/EDIT

Im home now and here is what to change in the startup.txt in linux folder of the package you downloaded:

...

# USBETH allows for conventional usb ethernet connectivity
# ADB will provide android debug bridge conectivity
# USBHOST will allow connection of peripheral usb devices
# when supplying +5V externally.

set kernel zImage_htcleo_adb_2.6.32.9-38182-g6ad7e77
[COLOR="Red"]#[/COLOR] set kernel zImage_htcleo_usbhost_2.6.32.9-38182-g6ad7e77
# set kernel zImage_htcleo_usbeth_2.6.32.9-38182-g6ad7e77

...

to

...

# USBETH allows for conventional usb ethernet connectivity
# ADB will provide android debug bridge conectivity
# USBHOST will allow connection of peripheral usb devices
# when supplying +5V externally.

[COLOR="Red"]#[/COLOR] set kernel zImage_htcleo_adb_2.6.32.9-38182-g6ad7e77
set kernel zImage_htcleo_usbhost_2.6.32.9-38182-g6ad7e77
# set kernel zImage_htcleo_usbeth_2.6.32.9-38182-g6ad7e77

...

---------

The ndiswrapper thing was just a test. I dont know enough to get this to work or to understand why some programms behave strange.
[HD2 Ubuntu Development] dcordes:
Can you drop dmesg shortly after connecting u2bvga devices and paste it ?

nice.

hm maybe wicd client program is too hectic and your AP beacon interval is too small?

You can get flashlite plugin that will work. But it's difficult legal situation because adobe will only license it for certain manufacturers so I can't help with it.

There is an included greasemonkey script in firefox in ubuntu 0.3 for hd2. It will let you download youtube videos in various quality levels and then you can view them with mplayer (see below field where yt video should show. It's a drop down menu). Read the readme!

http://wiki.ubuntu.com on the vpn

for basic flash use you can install gnash or swfdec packages and for youtube etc use downloader (See above)

sda is the full device sda1 is the partition which you wanna mount.

I can compile the fuse module with the next kernel. You might as well want to check the option to do it yourself. See first post and readme for kernel info.

It will be easier to reformat your usb stick with fat32 or so. You can even do it on your hd2 :cool:: install and use gparted program
[HD2 Ubuntu Development] sivashsay:
gnash installed on this version but i want flash player or shokwave player 10

some Chat website need to shockwave or flashplayer 10 !

what can i do ?!
[HD2 Ubuntu Development] nmambre:
What I meant is I want to be able to use this exact same image for the HD2 in a virtual machine. I'll try Virtualbox on Win, and see if it handles ARM. I've downloaded Ubuntu 10.10 to install on another laptop, but my 1st need now is to be able to use the HD2 image to test some stuff (for example, install/use python). I would like to be able to run stuff like this on the HD2:

http://mblogic.sourceforge.net/

http://pvbrowser.de/pvbrowser/index.php

Regarding the ad hoc problem, there are workarounds for android, but I haven't tested them. If I can get the software I want working on the HD2, next step would be solving ad hoc problem.
[HD2 Ubuntu Development] dcordes:
thanks, could you post 'lsusb' output with connected hub and usb2vga device as well ?
[HD2 Ubuntu Development] plopper:
@dertester: sorry had you mixed up.

thought you found an alternative for using haret to boot linux.

maby dcordes can help us with the right command line for qemu to boot the image correctly.

could be that i forgot a couple settings on booting it, and it has a realy big load of options you can set.

plopper
[HD2 Ubuntu Development] plopper:
hardcore usb hub mod

i just finished making a bit more hardcore modification to get a usb hub for the hd2.

unlike the manual which talks about making a special cable, i modified the usb hub internaly.

i managed to find a usb hub which didn't come with a power supply, but had the necessary plug to connect 1 tho.

and i found a nice universal powersupply capable of 5V with a nice 2250mA.

and offcourse a standard nokia micro usb to usb cable.

i removed the standard cable which had the standard size usb plug and replaced it for a nokia cable, so it now has a micro usb plug in that place.

now i didn't do that in a standard fashion, i placed the data cables on the normal location they used to be.

but i attached the power cables to the output usb ports, that way the cable also gets power delivered to it.

my hub, and i expect that this could be pretty standard, has a loop on the print, delivering the power to everything around the board, so it doesn't even mather which port you use.

but were not there yet, this way it is not gone work.

if you look closely at the last picture from the attachments, you can see that the original usb cable still has the 2 power cables connected.

this was just to test, using my netbook to see if it all worked.

the last step which i'm sorry to say, forgot to make a picture of, is now also connected to the power ring, just used another usb port for that.

for the people who have notiched that the board is broken.

yes i was a bit to eager to start the mod and broke the print on opening the usb hub.

i have replaced this board for a new 1 and it all fits nicely inside.

it looks now like the hub was produced like this.

plopper
[HD2 Ubuntu Development] pantizol:
Here:

Bus 001 Device 009: ID 17e9:0036 Newnham Research

Bus 001 Device 008: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub