Related
Hi, I've googled and searched the forum for this and can't find anything that works for the Desire HD.
The phone comes with an option to use the PC's internet connection through the usb interface. When I enable this on the phone the usb0 interface pops up on the computer. I've tried various bridging and natting alternatives, but everything ends up with the phone complaining that htc sync isn't set up right. I've tried askimng HTC what the phone expects but they just say that they don't support Linux. Grrr!
Anybody succeeded in getting this working or can say exactly what the phone expects to see on the pc side?
I thought it was the other way around (PC using the phone's connection) ?
Edit: Link.
Both are possible. PC using phone's connection is called "Tethering" and Phone using PC's connection is called "Internet passthrough".
There are recipes for foolong a "Nexus One" into reversing the tethering solution so that it connects to the internet through the PC, but the HD seems to have blocked this.
We have a Wifi-Free home, so this really is the only way of connecting the phone to the internet without using valuable 3G data traffic.
Apologies, I didn't know.
I took a look around, maybe you've tried this already but here it is (scroll down to post #53). Good luck!
Thanks. Looks promising. From Post #53 it looks as if I should be able to do this from adb, although earlier posts in the thread mention busybox and root, neither of which I have on the phone. Have in any case not used adb to connect before so may ask for help here if I can't find out how to do it.
Thanks very much for the suggestion.
For root you can search for the app "Visionary" in the market, I'm not sure if it installs busybox too though (but you can find that in the market as well).
Also make sure you have USB Debugging enabled in the settings.
You're most probably going to need the ADB drivers as well, but i think they're shipped with HTC Sync. Anyone correct me if I'm wrong.
Thanks, now have adb access (with root . Next problem is that my linux box always assigns an APIPA (zeroconf) address to the usb interface. Can't remove it or specify a static IP for the next connection.
Unfortunately I can't help you or suggest anything else for the time being. I'll be switching to Archlinux tonight (for the 150th time) and will hopefully have my device within this week. So if you don't figure it out by then, I'll give it a shot.
I think it can be done quite easily using the Firestarter application. Too busy playing Black Ops to confirm that the method I have in mind works but I will try it out later and if I'm right I will post a how to.
I'd be very interested to hear how you get on phunkycow. The APIPA problem seems to be debian sid related. On my wife's Ubuntu laptop I can configure both interfaces and ping between the phone and the pc. Didn't have time to figure out routing and dns.
I now have this working on Ubuntu. Debian still gives me a zeroconf address on the pc's usb interface.
Next problem is that to script this as suggested in post #53 I think I need a different su or sudo on the phone as sudo and su -c both give me permission denied.
Any other ways of running remote commands as root using adb?
Working perfectly on Ubuntu when I run through the commands interactively. Next job is to script it. The only possible caveat is that I seem to have to run the adb commands as root, however a quick test indicates that this is probably doable just by piping each adb shell command to su.
Will post back with the findings and the script (when I'm happy with it).
Piping to su doesn't work unfortunately, so I need to think again.
Any tips on scripting adb shell commands to run as root?
Another problem (after setting this up interactively) is that only some apps even attempt to connect to the internet this way.
Web browser shows error about not being able to connect first time, but then connects anyway. Ditto Google earth.
Phone update refuses to connect and asks for wifi or mobile network to be turned on.
Skype can't sign in.
I'm wondering whether some apps look for a particular property to be set and refuse to connect if it's not there??
A hot candidate might be [init.svc.netsharing_pass]???
Any comments?
Hi,
I installed bash and su from su-2.3.2.1-ef-signed.zip, which I moved to /system/bin
which su shows that that's what's being used.
I was hoping that this would give me the possibility to run su with switches (ie su -c "command"), and only use adb to invoke a script on the phone with the rest of the commands. Unfortunately fails on both counts :-(
Does anyone know of other su utilities out there that are more like the Linux version?
Cheers!
The answer seems to be gscript.
Phone side commands can be scripted to run on the phone, requires manually finding and running the script from the phone's UI.
Now if there were a way to invoke it through adb ... !
hi Learnincurve,
can you please briefly post, what you did to use the internet-passthrough? i cant figure it out with my desire z...
thanks!
m1l4droid, you are using the internet passthrough with ubuntu just like that? what am I doing wrong...?
Hello everyone.. I can see that the thread hasn't been updated for some time.. but still, has anyone founded an easy way to use "internet pass-through" option on linux? I have read the thread, but I am not very familiar with the terms "adb" etc. I am using Desire HD rom (InsertCoin HD Port 1.8f), on an "small" Desire... And the linux edition is Ubuntu 10.10... Thanx in advance..
wouldnt you be able to access an ad-hoc wifi network with your custom rom? so the only thing for you to do was to setup the ad-hoc wifi at the pc and connect with your phone...
for the usb-passthrough I still dont have a solution, neither.
Hi,
Here is the fourth version. Its not upgradeable, so delete the old /sdcard/ubuntu before, except you know what you are doing and are able to fix upcoming problems by upgrading.
[Hints]
To remove the stupid overlay scrollbars, goto ubuntu shell and type
Code:
apt-get remove overlay-scrollbar liboverlay-scrollbar*
in the next version setupgnome will automatically do that, all which setup gnome befor, do that to get the normal scrollbars.
in gnome goto system -> preferences -> appearance. there to the fonts tab, and there to details. use a resolution of 120 dpi, so you it is a bit more touch friendly
[Requirements]
Archive from http://www.bisme.net/files/xda/ubuntu/ubuntu_b6.tar.gz
Optionall an VNC client like android-vnc
[step by step]
Install the kernel (without you'll not have full functionality, but it'll work)
Extract the ubuntu archive to /sdcard/ubuntu (in adb shell goto sdcard and type: "tar xzf ubuntu_b6.tar.gz")
cd to this dir and type
Code:
su
then
Code:
sh ubuntu install
you will be asked a few questions, if you have no plan just press always enter. after reboot open a terminal and type
Code:
su
then
Code:
ubuntu start
optional if you want gnome via vnc
Code:
ubuntu setupvnc
and
Code:
ubuntu setupgnome
this still takes long, you are installing here almost the complete ubuntu via internet. that are a few hundred megabytes of downloading and over one gigabyte of extracting and installing. leave with exit and on android shell type (first time it asks for a passwod)
Code:
ubuntu startvnc
then connect to it via: localhost:5901 using a vnc client and the password you set.
[what you got]
you start the ubuntu subsystem with ubuntu start (still chroot)
with ubuntu setupvnc you install vnc service
with ubuntu setupssh you install ssh service
with ubuntu setupgnome you install gnome
with ubuntu setupkde you install kde (if you do so, you need to modify inside ubuntu /usr/bin/vnc)
with ubuntu shell you open an bash session
with ubuntu screen you open an persistent bash session
with ubuntu startvnc you start the vnc service
with startssh inside ubuntu shell you the start the ssh service
with ubuntu stopvnc you stop the vnc service
with stopssh inside ubuntu shell you the stop the ssh service
with ubuntu stop you stop (is rebooting)
with ubuntu uninstall you uninstall the script from system(directory /sdcard/ubuntu stays)
in ubuntu you can access:
android's /dev bound to ubuntu's /dev (fdisk /dev/block/mmcblk0 is working fine(sdcard). don't touch /dev/block/mmcblk1 or you'll kill your android system, maybe your whole xoom )
android's /system bound to ubuntu's /android/system
android's /data bound to ubuntu's /android/data
android's /mnt/sdcard bound to ubuntu's /adnroid/sdcard
[working]
With android-vnc Gnome (bluetooth keyboard and mouse)
Firefox 4
Chromium Browser
LibreOffice
Gnome Terminal
SSH Daemon
"D" key needs to remove the gnome keyboardshortcut uses "D" (just open vnc, goto a textfield and type d then you know what I mean )
and a lot more
[not working]
Ubuntu Software Center (use Synaptic instead, find it in the system menu)
[the tecnical side]
Ubuntu Natty Narwhal (11.04) from http://elinux.org/BeagleBoardUbuntu
dd for creating an image (no size limit anymore)
image formatted with ext2
adb push /sdcard/ubuntu/img/ubuntu.img (android shell has gunzip)
chroot env
tightvnc, gnome-session
different kernel features which i'll list here later
[changelog]
Beta 6
small changes in the scripts to ensure compatibility with other roms and devices
you can choose now between UBuntu 11.04, 11.10 and 12.04 Beta2
[next]
providing preinstalled images for gnome, kde and xfce
app instead script
[ideas]
weirdx
wayland
Have Fun
Ralph
GhostOfTheNet said:
Hi folks,
Actually I'm poking around with the common "How to get ubuntu onto xoom", but with an own img file i created based on the maverick arm minimal archive. Now I'm installing unity, but in weekend I'll try to make the installation, configuration, ... more userfriendly. maybe I'll build a small app doing thinks like starting, stopping, starting a terminal with the chroot and so on. I've no plan at this moment what I'll do exact. But you can say me what you would like to have, so I know if there is a need for something. I think with the next ubuntu using something based on opengl as replacement for x and the promised touch support, it might be relly interesting to have in a chroot env and maybe write something like a wrapper for androids opengl es api. in this context maybe also a port of the android sdk to linux arm would be very interesting.
Regards
Ralph
Click to expand...
Click to collapse
I just posted in the general forum about this lol. I would love maverick meerkat on the xoom. I'm sure the software center wouldnt work, but if you could somehow incorporate compiz fuzion, along with all of the standard apps, that would be the sh*t. Good luck man!
Got it to run on gtab but not sure how to do it on xoom.
Sent from my Xoom using XDA Premium App
i have it already running, but I'm not getting the f*** unity running, because it needs opengl... a bit bad with tightvncserver
so i decided to jump over and try directly this out:
http://rcn-ee.net/deb/rootfs/natty/ubuntu-natty-alpha3-r0-minimal-armel.tar.xz
the omap4 is an arm cortex a9 processor, so it should be binary compatible.
wish me luck, if it will work you will have today a howto, otherwise i'll go back to 10.10 and search for another useful desktop.
edit: apt is working fine with maverick
regards
Ok, so far so good. Ubuntu 11.04 is basically running, all is working fine, but the repository is buggy, so apt is not letting me install unity.
Besause today i'll not google for a missing lib, let see further tomorow. Hopefully the repositories are fixed then.
I'm uploading now a file called ubuntu.zip
To install it do the steps i'll write now in the first post. (the setup is not tested, so you may still need your knowledge)
Regards
Sent from my Xoom using XDA App
Hey Ghost -- thanks for your great work on this!
One thing I was wondering -- would it be possible to break out your instructions on how to do this from scratch? I'm interesting in putting together my own version (probably a minmal Ubuntu 10.04 install), and would really appreciate the source "steps".
From what I've read, it looks like it's a matter of grabbing the right kernel (I thought I saw a recent one on the tegra development site), bootstrapping the right debian-based arm-compatible distro, and copying that over to the device with the right script to get it setup. I'd just love it if I could piggyback on your fine work
GhostOfTheNet said:
It's alpha, so nothing for you if you have no plan whats going on here.
Archive: http://www.bisme.net/ubuntu.zip
Needed:
Rooted xoom with busybox installed
Steps:
1.) Extract the zip to /sdcard/ubuntu
2.) Open a terminal su, cd to this dir and type
./setupubuntu (sh*** i forgot to change the file, all cp commands are not working for some reason, needs to be
cat filename > /system/bin/filename
3.) ... ehm fin
(always su before)
If you replaced the cp, you can directly type for example bootubuntu, if not you need to be in dir /sdcard/ubuntu and say ./bootubuntu
After ubuntu booted(real only mounted) you can start a bash shell with shellubuntu. Unmount it with shutubuntu(in most cases will fail, then you need to reboot before you can say bootubuntu again)
Ehm, yes... i love my xoom :-D most of the time i worked on that... my pc i almost didn't need. Small tipp, it is worth its 4 dollar, better android terminal. Without bash this would be the hell.
Regards
Ralph
Click to expand...
Click to collapse
Man you are the best. I really really want to get this up and running but i cant get through setup. idk how to install... this is not my area of expertise lol. help?!
edit: i guess for clarification, after i type in the cat command it tells me write: no space left on device
Is the touch screen working
Sent from my Evo 4G using Tapatalk Pro
Ok, first of all, this is not a rom. Thats not needed in this case, because with linux more installations can share the same kernel. Android has a linux kernel, ubuntu has one. Google for chroot
This is not an attemp to replace android, just to enhance it a bit
In this state it's just something like a technical preview. Give me a few days. For now only advanced linux users wich understands whats happening there can do something with it.
Concerning a minimal ubuntu, this is now a minimal installation.
Regards
Sent from my Xoom using XDA App
After unity 2d is not really working at this moment, I'm actually preparing a version with icewm and lxde. Post will come in a few hours.
Regards
Sent from my Xoom using XDA App
What about Enlightenment?
http://www.linuxuk.org/2010/02/the-new-ui-for-arm-based-ubuntu-devices/
i'm installing it. lets see.
the reason why it's still not posted, i have a problem with the xstartup file of tightvnc. for some reason it is not running the commands for the ui, so there is just an empty xserver in vnc until i start icewm lxde manually. i think it would be the same with efl, and i had until today to less time to check out whats wrong.
edit: netbook-launcher-efl + metacity + maximus is looking fine
Is there any way to not use VNC? Can you dual boot or otherwise get into X ?
or possibly something like freenx client on android maybe??? in hopes that it's faster than vnc. if we can't boot into ubuntu.
edit - scratch that, i read you need X to use freenx... kinda defeats the point there.
i thought there was something else though that fowards all the window data over like lightning fast.
I found until now two possibilities but both needs much work. First taking the wayland xserver client and port it to android, or port weirdx to android.
Sent from my Xoom using XDA App
Hmm... so back to the dual boot question... What about something like this guy did?
http://androidforums.com/samsung-i7500/81090-debian-dualboot.html
https://code.google.com/p/linux-on-android/wiki/BasicSteps
Would that also work on the XOOM?
Me personally, I'm not interested in another Linux Distri as main System
1. I would miss the android functionallity and feel, because of that I would never boot Ubuntu.
2. Only android has the needed touch support for a tablet. Maybe this changes i future ubuntu releases.
Because of that my primary target is a more seamless integration of a ubuntu subsystem in android, so we can use many beloved functions without much work. So there is the best of both worlds in the same time avaliable.
Sent from my Xoom using XDA App
Makes sense. My motivation for research and all this is that I want to do (light) web development and server administration on the tablet as well. Of course, buying that bluetooth keyboard makes it all feasible and I'm not looking to do heavy amounts of work on it, but I want to ditch my netbook. For starters, the tablet lasts longer in terms of battery life and the form factor is better.
Other than that, to me, tablets serve merely as an entertainment purpose (unless maybe you're using it to bill people or for a sales pitch/meeting) and I can't justify the cost. A $600 travel Scrabble is retarded. So I think tablets need something like Ubuntu running on them in order for them to be a more productive device that is a justifiable expense.
Right now the biggest thing that I'm thinking about is gedit and git. If I can get those two... Then I think I'd be pretty much set. I think there's actually two or three text editors for Android as is and I might be able to use those provided I could get git for Android.
The graphical user interface isn't the most important thing so I can even live w/o the VNC. Having a local webserver would be rad, but not a high priority since I can use git to update a server on the net.
If you have any ideas, and I know it's getting somewhat off topic, but your research is really the crux of my situation...I'd appreciate it. Thanks.
--edit ok, so i found www.cloud9ide.com which will cover me I guess. but still I want more power under the hood. I really appreciate your work efforts! Thanks.
updated useful for people which knows whats going on
deleted. got it. Thanks! this is awesome. great work!
Hi All,
This is my first guide on XDA and this might not be the right topic but it's related. (This is for Advanced users)
I want to start this thread to show how you can use Microsoft's Free Hyper-V Server for more than just "Hyper-V".
I have done tests with Hardware and VMWare Player (V5) with both Hyper-V 2008 R2 & Hyper-V 2012.
System Requirements;
http://en.wikipedia.org/wiki/Hyper-V#System_requirements_and_specifications
And more specifically;
http://en.wikipedia.org/wiki/Hyper-V#Microsoft_Hyper-V_Server
Download a Free copy of Hyper V Server; (It’s free, so no Install key required!)
http://www.microsoft.com/en-us/server-cloud/hyper-v-server/default.aspx (You might need to register)
I have successfully used VMWare Player 5, Version 4 works for Hyper-V 2008 R2 but not 2012.
If you are trying this on hardware directly, you’ll also need to download your system’s drivers (at a minimum the Network Card) and a web browser
. i.e. Chrome downloader from: https://www.google.com/intl/en/chrome/browser/ (Tested to work correctly in Hyper-V Environment) Save these to a USB stick.
Anything else can be downloaded once Hyper-V Server is up and running.
Follow the Hyper-V installation as usual (all defaults)
As a guide; Select Custom Installation, you'll need more than 10GB hard drive size after we add extras, so pick 20GB as a minimum. wait for the re-boot
At this point you'll be asked to set a password and you'll get a command prompt for a user interface.
That's right, Desktop, control panel, Start menu, Metro, Task Bar, System Tray, Internet Explorer are all User interface elements that are removed from this copy of windows.
This is where this [GUIDE] starts to provide non-standard information;
Let's start by Installing your Drivers. (I'm assuming you know how to use the command prompt to change drive letter of your USB drive and launch the driver installer program.)
OR in VMWare case, on the menu select Install VMWare tools. This will not launch automatically, hence you'll need to use the command prompt to change to your CD/DVD Drive and launch the "Setup.exe" for VMware tools.
Now start the installation for Chrome, similar to above.
Now Chrome is running, Close the prompt to select default browser (it's your only browser...)
Sometimes I have found Chrome to crash with a dinput8.dll error (no all websites), Chrome works with this prompt up, but it's nicer to avoid it prompting.
http://www.driverskit.com/dll/dinput8.dll/585.html * We'll get back to this later...
You'll need to be uncompressed the above file, so lets download 7Zip also
http://www.7-zip.org/download.html
Now we need a file manager, since there is no Windows Explorer (or now called explorer) Explorer2 (x2) fits the bill nicely.
http://www.zabkat.com/x2lite.htm * Free Light Version (There are issues with not displaying some files, That because it’s a 32bit application that is not 100% compatible with a 64bit environment), The Pro Version is US$29.95 and is available in 64bit. When you install this, select the option to replace Explorer (note: there is no explorer, so this option allows explorer2 to handle some calls to explorer)
Now download a Start menu, Taskbar “desktop” replacement http://www.emergedesktop.org/* Free and customizable.
- Lets customize the Emerge desktop,
- If not started run “C:\Program Files\Emerge Desktop\emergeCore.exe”
- Lets start by removing menu Items that are broken due to not having a full copy of windows.
-- Settings, Configure Core, Click on emergeLauncher.exe, the press the Cog.
--- Delete “Homepage”
--- Delete “Executable %AppletDIR%\documentation\...”
--- Delete “ Tutorial”
--- Add Type “Live Folder”, Folder “C:\Users\Public\Desktop” (Click Save)
-- Settings, Configure Core, Click on emergeTasks.exe, the press the Cog.
--- Change Icon Size to 16x16 (Click OK)
- Start menu (or right click any where on the desktop) select Desktop Display, right click, Delete.
Now any new program that puts a shortcut in this folder “C:\Users\Public\Desktop” will appear on the launch Task Bar.
For some "Control Panel" replacement options download a GUI for managing some windows features (These projects help to speed up initial configuration;
http://corefig.codeplex.com/ Corefig for Windows Server 2012 Core and Hyper-V Server 2012
https://coreconfig.codeplex.com/ for Windows Server 2008 R2 x64 Core edition
This together with Sconfig can do quite a bit of windows configurations without resorting to the command line.
Ok the dinput8.dll.zip you downloaded earlier, you can un-compress this and put the dll (not the zip) in to the C:\windows\system32 folder.
If you want to make re-starting faster and don't plan on using Hyper-V, lets remove it. (coreconfig I think has this option but the following will always work) In a command prompt window type the following;
start /w ocsetup microsoft-hyper-v /uninstall
(Windows will need to restart a couple of times to do this)
(Optional) Enable a network share (You can use this like a Network file Server now, I don't know if there is a limitation to the number of connections like in desktop versions of windows)
net share /Grant:Administrator,FULL system=c:\
Remote Desktop Concurrent Users limit: 2 (one console, one remote OR two remote) (1 UP on a windows workstation copy)
Enable with from the Sconfig utility..
If you want to run SQL Server (Tested with 2008 R2) you'll need DotNet3.5
In a command prompt window type the following;
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
I did this as a test a while ago and I think that is all I needed to do and it worked. (I have gotten it to work, so it would be interesting on how much it can be pushed on this platform)
Need Java? Download Java http://java.com/en/download/
Need to use Office Documents?; http://www.libreoffice.org/download
Need FTP Server?; https://filezilla-project.org/download.php?type=server
Need Web Server?; http://mirror.mel.bkb.net.au/pub/apache//httpd/binaries/win32/
Need QEMU support? http://qemu.weilnetz.de/w64/
I used the built in Windows Updates (option 6 on the Sconfig utility) but I also prefer to use: WSUS Offline http://wsusoffline.net/
WSUS will also quickly get you copies of Silver light & C++ run times (or you can find the URL's manually), I find it's best to use both, WSUS Offline for quick offline copies and windows updates for the latest Microsoft has to offer... (I did not say latest & greatest...)
Work in Progress (probably not going to happen without 3rd party work).
Need Sound? (Don’t know of a solution yet…) I saw someone working on this with Server 2012 Core but I did not find the solution or if it would work with hyper-V copy.
Need Direct X? (Don’t know of a solution yet…) I've tried downloading -redist copies, etc but Direct X has been integrated into windows for years and this is the copy it's removed from.
I'd also want to get VMWare Player working or similar for the USB Pass through feature and 3D client support but I'd probably have to use an alternative. (I heard of a USB Driver for windows to share over Ethernet to another copy of windows)
Okay, this is all I have got for now, your thoughts?
Hello there . I'm a bit in doubt as to what approach I should take when creating an application which should accomplish the following: use the USB connection between the device and the Windows-PC to display on the device's screen some information sent by an application residing on the PC. The phone should always operate in airplane mode but Android Debug Bridge works fine on it.
What I'd like to do is to write a Java Application (running on Windows) which reads from a text file and puts that information on the Android device's screen, but I don't know if there are any libraries I can use in a JDK application to achieve this.
Also, I'm not even sure if using ADB is the best option. Perhaps I could initiate communication via USB in a different way?
Please share with me your architectural advice. I would REALLY appreciate some examples or open source projects which achieve similar things. I'm a senior developer but I have very little experience with Java or Android (my background is C#/C++/ECMAScript).
Hello, i would like to ask is there any possibility to install Ubuntu/Arch/Debian with no root? Thanks!
No.
BTW: why are you willing to brick your phone ?
Not to brick, like install inside system, is saw lot of them use Limbo but it keep crashing on my A50
Try termux
Sent from my [device_name] using XDA-Developers Legacy app
Yea there are many ways to proot linux.
For termux, install it from playstore and google [insert distro] for termux, for automaticly entering your distro modify your .bash_profile
The easier way would be to install UserLAnd from play store as it sets up ssh / vnc automaticly for you to make it easier, to connect to it just ssh from any terminal emulator or vnc client of choice.
Im sure there are many other proot (simulated chroot) aswell, if those 2 arent what your looking for. search for linux.
Gl, should be easy to setup.