Related
I'm trying to get a window manager running under Debian. I'm using Xvfb and x11vnc. So far I've gotten the server up and running but I get a socket error on my vnc viewer after negotiating protocol. Anyone want to help?
Well, the clean way to display a X client on the phone would be IMHO to implement an x server in a windows. kind of like xming or xephyr. Too bad I don't know java
Anyway, using vnc looks like a smart idea. I worry about the performance, though.
I'll give it a try once I have re-installed debian on my ADP1 (trying to install it in a dedicated partition on the sd)
jusplainmike said:
I'm trying to get a window manager running under Debian. I'm using Xvfb and x11vnc. So far I've gotten the server up and running but I get a socket error on my vnc viewer after negotiating protocol. Anyone want to help?
Click to expand...
Click to collapse
Use X over SSH. Man I'll just write up a post.
I think he's trying to achieve X display on the phone, not on his computer.
Yes, I'm trying to get the display on the phone, not having to really on tunneling x11 over ssh.
I'm running a similar setup on my phone, in order to run X apps like xpdf. Works fine. Here's what you need:
In your debian chroot, apt-get install tightvncserver, and run it.
On the android side, run the android VNC viewer and connect to localhost:1 (or whatever display tightvncserver started). You'll get X on your screen.
You can apt-get and run a small window manager like twm if you need one. I generally use it without a window manager, with apps running in full-screen mode. For example, "xpdf -g 1024x768+0+0 some-file.pdf" to view a PDF. (at least until there's a decent PDF viewer for android).
Don't bother trying OpenOffice on it though. Too heavy - I actually tried it.
mod1 said:
I'm running a similar setup on my phone, in order to run X apps like xpdf. Works fine. Here's what you need:
In your debian chroot, apt-get install tightvncserver, and run it.
On the android side, run the android VNC viewer and connect to localhost:1 (or whatever display tightvncserver started). You'll get X on your screen.
You can apt-get and run a small window manager like twm if you need one. I generally use it without a window manager, with apps running in full-screen mode. For example, "xpdf -g 1024x768+0+0 some-file.pdf" to view a PDF. (at least until there's a decent PDF viewer for android).
Don't bother trying OpenOffice on it though. Too heavy - I actually tried it.
Click to expand...
Click to collapse
Are you telling me you got to run x app on the phone?
Yep, that's what I wrote. It was one of the first things I installed on the phone when I bought it. And performance is not as bad as I expected, as long as you don't try to run animation. Reasonable for reading a pdf.
Has anyone else tried this?
I cannot connect with android vnc viewer from my phone and tightvnc server running on debian showing "localhost:/#".
I am not using a password. I am trying to log in on vnc-viewer at 127.0.0.1 and have tried several ports including the default and 23.
mod1 said:
Yep, that's what I wrote. It was one of the first things I installed on the phone when I bought it. And performance is not as bad as I expected, as long as you don't try to run animation. Reasonable for reading a pdf.
Click to expand...
Click to collapse
Will i be abkle to run pidgin?
when i try to run vncserver it tells me that the USER envirioment variable i snot set
For the user variable error.Type su Again by itself before you start vnc. It has to do with now having set user in the enviroment set. I have an image that give you 2 gigs more of free space (uses up storage card) the current one only has 300megs free which limits you drastically and also a fixed script that you won't have to go into su again....
For the guys that can't get vnc working type localhost in the server field only and as for port use 5901... Use a password upon initial setup of vnc. Sorry about spekking errors but I'm half drunk and typing on g1
Okay I set up the password and stuff but when I go to the vnc viewer on the phone it does nto conect and the crash
When I go to vnc-viewer, I can log in but the window I get says--
Xsession:unable to start x session ---- no "/root/.xsession" ...no session managers,
Can someone please help me get this runing, my messenger is [email protected]
Okay I finally got it to run and get a grey screen, when i go t back to termina it is on android terminal not debian so I log back.
Now how to I run pidgin after I install it? just type pidgin?
I finally got pidgin runing!!!!
Rafase282 said:
I finally got pidgin runing!!!!
Click to expand...
Click to collapse
Now *that* would be a good reason to do this
JesusFreke said:
Now *that* would be a good reason to do this
Click to expand...
Click to collapse
I warn you it will be slow and still cant use the sub functions of the buttons form the keyboard to at least I don't know how. I'm trying to take a screenshot with the program from the windows manager, and i use twm
Okay I have tried with twm, vtwm, and icewm
So far I like icewm the most but still have vtwm for back up. It runs fine not as slow as before with twm. I have pidgin runing but still cant figure out how to run the screenshot program that comes with debian.
Can anyone tell me a way to get a screenshot in command line so I can show you the screen and prove that it works?
Using these instructions you will be able to run your phone as an X11 client.
Terminology:
X Server: An X "server" is the display server. It shows the screen that you would see on a remote client.
Basically, this will allow you to run applications on your phone and use your computer monitor and keyboard as the screen/input. This is very useful if you do any development on your phone.
Install Debian on your phone. http://forum.xda-developers.com/forumdisplay.php?f=448
Install Xming Mesa and Xming Portable Putty. http://www.straightrunning.com/XmingNotes/
Start up xming.
Install openssh-server on your phone under Debian: "apt-get install openssh-server".
Set up a Putty connection to your phone. Make sure you have X11 forwarding enabled. Save the settings.
On your phone enable X11Forwarding in your /etc/ssh/sshd_config
Restart your SSH server: "/etc/initd/ssh restart"
Disconnect from Putty and reconnect to your phone with the saved settings.
X should now be working.
I've attached an image of me running emacs, xclock, and xterm on my phone.
That's really neat, though it almost seems like a waste. I mean is there really enough space to get full gtk/qt enviroment? Wouldn't it make more sense to just use screen and vim, or in your case emacs? Though perhaps my thinking is to limited, I guess things accomplished here would translate over to the next android phone. Anyways, I likey. Keep up the work, it is appreciated.
dissonance said:
That's really neat, though it almost seems like a waste. I mean is there really enough space to get full gtk/qt enviroment? Wouldn't it make more sense to just use screen and vim, or in your case emacs? Though perhaps my thinking is to limited, I guess things accomplished here would translate over to the next android phone. Anyways, I likey. Keep up the work, it is appreciated.
Click to expand...
Click to collapse
I have a 16GB sd card. There is plenty of space.
Depending on the speed of the phone, i'd do it. I know ts limited to 300 something mhz if the full 500 was used itd make a good server of some kind. saw a g1 for £185 as much as a small linux pc and it could use 3g as a backup internet connection or something. either way its a great proof of concept. ill try it out when i get home!
Please confirm i uderstand right. This is method to run X applications on phone but viewing their GUI on PC? Right?
hmepas said:
Please confirm i uderstand right. This is method to run X applications on phone but viewing their GUI on PC? Right?
Click to expand...
Click to collapse
That's correct
So it's helpful if you are on a computer with adb and the USB driver for Android installed but you want to use X apps on it, but its not helpful for using X apps directly on your phone and being able to use them on the go...
native android xserver using opengl / gles ?
What about running an XServer on the device, do you know about some opengl / gles X server that can be ported to NDK ? any other tracks are welcome too
Regards
This is easier than making a cup of coffee.
Pictures below as attachment couldnt figure how to put the pic here edit figured it out now im just lazy.
you dont have to do it the hard way
Everyone (edit: i thought so at the time)will want this "Fully" (note below) funtioning Ubuntu system
or you can make your own here: http://forum.xda-developers.com/showthread.php?t=913622
I will be maintaning and updating as time permits
Phone has to be rooted: http://forum.xda-developers.com/wiki/index.php?title=HTC_Supersonic/Guides_&_Tutorials
NEW IMAGE 3.5 gigibyte
Lucid base image (only added: lxde and tightvncserver): Zip http://www.megaupload.com/?d=GLMYVCMN User: "dad" Passwd:ffffffff
Remove app2sd and settings- applications- manage applications- sdcard "move all apps to phone" or it will not work!
I suggest you install gnome-panel
I use it and i find no speed differance!
trying to get :upstart services" to work im looking into compiling a kernel with "CONFIG_TMPFS enabled, to initiate a workaround, because "upstart" services wont work in a chroot.
Stock Maverick : http://www.megaupload.com/?d=56AT71WD
Karmic Sucks programs stop opening after some short time, so i gave up.
Tested with: CM7 http://mirror.teamdouche.net/get/supersonic/update-cm-7.0.0-RC1-Supersonic-signed.zip
CM6: http://mirror.teamdouche.net/get/supersonic/update-cm-6.1.2-Supersonic-signed.zip
myn-WarmTwoPointTwo-11-05-2010-RLS-3
Unzip
Copy the "ubuntu" folder to your sd card
Go to market download "Terminal" and android VNC Viewer
Open terminal and type: (without the quotes), "su" then "cd /sdcard/ubuntu"
then "sh ./ubuntu.sh"
then "bootubuntu"
then "vncserver :0 -geometry 1024x800"
Thats it, go to android VNC Viewer and use dad for nickname, "ffffffff" for the password, "localhost", for address, 5900 for the port, Use 24bit veiwing settings, then go.
to shutdown you will have to power off phone and power back on.
Enter in your :"Initial Command",in the settings of Android Terminal:
su
cd /sdcard/ubuntu
sh ./ubuntu.sh
bootubuntu
So everytime you want to start ubuntu just open terminal
to start VNC SERVER automaticly you will have to add to the bottom of your /home/.bashrc file this:
cd /
rm -r -f /tmp
mkdir /tmp
vncserver :0 -geometry 1024x800
Thats it, your off ENJOY
Notes: Its as fully funtioning for myself, cant speak for everyone
This is in Beta stages I am an old Visual Basic dabbler as a hobby, and am not very fluent in the lenux operating system. However this "ubuntu on mobile device" has rekindled a lost desire to program.
I will update changes as i get the time
If anyone would like to contribute their lenux expertese to iron out the bugs, i and so many others would appreciate it
Issues to work on:
:no sound
NOTE: A big kernel level problem is the lack of sound. Most of the kernels we use as a base for our ports are designed for Google Android. Android doesn't use the standard Linux sound System ALSA. An ALSA wrapper for the EVO DSP kernel system must be written.
:Setting up users and groups (used kusers but seemed to slow system a bit, needs kde-common) But is very tolorable, I actually use dolphin. (cant get nautilus to create folders or files (destination read only? u got me)).
:hacked /root/.bashrc for easy login help (when using terminal runs .bashrc. dont know anotherway to start hamachi on login and also vncserver tries to restart)
:keyboard mapping (mapping arrow keys to the abc keyboard it has arrow keys, esc,etc...)
: No way to exit or turn off ubuntu. You have to turn off phone, to turn off ubuntu.
nce in a while the programs refuse to open, it has somthing to do with ?. you have to restart ubuntu again.
I suppose a fluent ubuntu/lenux person could help change usernames and such, using the terminal,set proper permissions and such
Im using CyanogenMod Rom its the only one that works with Hamachi
your rom will most likely work, however networking wont!
Tips:
ownload VNC for your computer and modify your ubuntu desktop on your computer screen (that way i dont need my glasses) (use "ifconfig" to find ip address)
:You can even use VNC to view the build while in qemu emulation, after installing lxde and tightvncserver in the emulation. (watch out for seg faults)
:In terminal, preferances-initial command, enter the "cd /sdcard/ubuntu ...etc ," that way its a one click to login .
:Get "abc keyboard" from market it has the esc, arrow keys etc... ( extra keys only good outside chroot, the "terminal", on your android desktop)
:If your not familiar with ubuntu, you use synaptic package manager to install programs
:When u share over himachi or start smbd, programs will stop opening.
.
Trust me everything i want it use it for seems to be pretty zippy, but just give a little xtra time for programs to load the first time. (Firefox may take 90 sec. to load the first time. After that its a snap)
I Would like to check into this
The no sound issue is getting to me, I may wait for that as that is an essential to my all in one device.
THANKS FOR THE HARD WORK. I LOVE UBUNTU
you really have to try it and tell everyone about it cant believe its not one of the hottest topics
I Would like to check into this
any way to delete this post....didn't mean to submit, came back to send like i didn't send it but ending up sending twice
apologies
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Is it still uploading? I really want to try this!
corybucher said:
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Click to expand...
Click to collapse
This will sit on your sdcard and ride side by side with your android system (you can use your phone at the same time)
IT DOES NOT EFFECT YOUR PHONE IN ANY WAY
wasnt shouting just wanted everyone to see
ioos said:
Is it still uploading? I really want to try this!
Click to expand...
Click to collapse
Download away!
This is awesome! I can't wait to get home and give it a try.
This is gonna be a great weekend. Between this and the flashable ROMs that are starting to roll out for my nook color, I might be sprouting antennae by Monday.
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
wuclan48 said:
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
Click to expand...
Click to collapse
How would one go about this "wep cracking thing"
please explain further
Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)
**most wpa specifications are not crackable yet and those that are often have a very stringent set of requirements (off the top of my head: most require someone to be legitimately connected to the access point and very simple passwords with low encryption.
On topic, though, this is sweet. Hope I can get something like this on my galaxy tab too!
EDIT: If you really need to know this (please only for testing... not to mooch people's internet) Google "wep cracking on backtrack"
The short simple answer is you sniff packets that the wireless access points send out and manipulate them to decrypt the key.
EDIT 2: I just realized you are also the guy who made this. Let me answer a few questions.
1) For audio you probably need to find a way to register the hardware with a Linux Audio Mixer. I'm guessing Ubuntu uses ALSA? I'd have to look that up
2) For users, kusers is part of the KDE desktop system. Ubuntu uses GNOME. People generally only use one or the other (unless they're trying to show off). That's probably why it either a) won't work or b) not work well and take up lots of extra space
3) It's Linux, not Lenux (but that's fine I can sense English isn't your first language... it's not mine either, but that's fine ^^)
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Sorry i just used the wizard and made a zip file with winzip 12.1
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
shame on me .
Your right im a noob and really know too much about it yet i just like having ubuntu on my phone.
Ill do better next time
People talking about cracking WEP and stuff, this probably doesn't have a driver to put the wireless card to put the card in monitor mode.
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Homefix said:
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
Click to expand...
Click to collapse
AFAIK, WEP can be easily cracked. WPA or WPA2 though, will require bruteforcing, there is no way around it.
corybucher said:
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Click to expand...
Click to collapse
I will repackage it, but it might take 3-4 hrs to upload, sorry.
ill get right on it
Hi,
I was wondering if I could use my android phone as a PC webcam. It has been asked many times and there are solutions. But I found an alternative way to do it.
The goal was not to install anything on the PC. But that was impossible.
What you need:
- an app that does IP webcam (like https://market.android.com/details?id=com.pas.webcam)
- a PC driver that can convert IP Camera to local webcam (IPCameraDS.exe)
- and a batch script that redirects ports 8080 and 8081 to your PC (localhost or 127.0.0.1)
Code:
adb -d forward tcp:8080 tcp:8080
adb -d forward tcp:8081 tcp:8081
- adb.exe and drivers for your phone (don't forget to turn on "USB error tracking" on your phone for adb)
On your phone start the IP webcam app ("Start server")
On your PC start the cmd/batch file that redirects the ports 8080/8081.
Now you need to configure the IP Camera driver on your pc.
Start the PC program you want to use the camera with (Skype/Messenger).
Find the menu to select a camera. Select "IP Camera [JPEG/MJPEG]" and then click "Device Settings"
Select "Raw URL mode" and type "http://127.0.0.1:8080/videofeed". Then select "MJPEG mode". Now click Save and OK (don't forget to Save first!!!)
You should now have a picture of your phones camera on your PC.
Cheers
how do i make the script
With notepad? It is for on the PC and uses adb to link the ports from the phone to the PC. And save it as for example ipcam_ports.cmd
Cheers
Same for any others camera applications?
Thanks for the info, tweakradje.
Is it possible to use a similar trick for accesing the webcam using another Windows programs? For example MSPaint, or the embedded Wizard for Cameras. I have not found a way .
THANKS!!
Thank you! That driver didn't work for me on Win10 but I found this instead: http://alax.info
Hopefully no one will be traumatized by awakening this old thread
Not at all. Just surprised that it is still found. Happy cam-ing
tweakradje said:
Not at all. Just surprised that it is still found. Happy cam-ing
Click to expand...
Click to collapse
Ah there you are
Do you know if such a filter virtual driver thing can also support audio?
The IP Cam app shows the option for sending audio also, but that did not seem to work when I was testing earlier.
I tried searching for this, but it's a difficult one to find, if there is anything to find that is.
Thanks!!
Hello friends,
I am trying to connect my mobile phone as a web camera but I can not connect correctly. I downloaded an application called Droidcam but it is not compatible with my PC. I followed the steps you have written here but I can not connect my camera as a webcam on the computer either.
Can someone give me another advice?
Just got my nexus player today. I gave a snes emulator a try and it worked pretty well. I have the controller and did button mappings within the app. It was clunky, though this shows at least what is to come for the nexus player. Sorry for the shotty video.
https://www.youtube.com/watch?v=Unij0rcbBrg&list=UULfnIgAd27Z_kupDy4tLofw
Stuff I used to get it all setup, basic stuff, but I'll provide these links for those that need them:
USB Driver support:
http://forum.xda-developers.com/nexus-player/general/usb-driver-nexus-player-t2935873
Enable Developer mode:
Goto About, then click on the build number a bunch of times.
Then go back and you will have a developer options icon.
Click that and enable debug and allow unknown apps.
Once you have ADB working, this is the command to side load.
adb install filename.apk
You will also want to push a SNES rom over to the nexus player. Use this command:
adb push c:\path to snes rom\ /sdcard/Download/
To launch the app since it doesn't show up in the normal app list.
Side Load Launcher from Play Store or side load the APK:
http://forum.xda-developers.com/android/apps-games/app-sideload-launcher-android-tv-t2914962
maamdroid said:
Just got my nexus player today. I gave a snes emulator a try and it worked pretty well. I have the controller and did button mappings within the app. It was clunky, though this shows at least what is to come for the nexus player. Sorry for the shotty video.
https://www.youtube.com/watch?v=Unij0rcbBrg&list=UULfnIgAd27Z_kupDy4tLofw
Stuff I used to get it all setup, basic stuff, but I'll provide these links for those that need them:
USB Driver support:
http://forum.xda-developers.com/nexus-player/general/usb-driver-nexus-player-t2935873
Enable Developer mode:
Goto About, then click on the build number a bunch of times.
Then go back and you will have a developer options icon.
Click that and enable debug and allow unknown apps.
Once you have ADB working, this is the command to side load.
adb install filename.apk
You will also want to push a SNES rom over to the nexus player. Use this command:
adb push c:\path to snes rom\ /sdcard/Download/
To launch the app since it doesn't show up in the normal app list.
Side Load Launcher from Play Store or side load the APK:
http://forum.xda-developers.com/android/apps-games/app-sideload-launcher-android-tv-t2914962
Click to expand...
Click to collapse
Nice... But I think the easier way would be to download the the Snes9x EX+ Emulator from the Play Store https://play.google.com/store/apps/details?id=com.explusalpha.Snes9xPlus
And use Chainfire's Sideload Launcher to launch https://play.google.com/store/apps/details?id=eu.chainfire.tv.sideloadlauncher
Then put some Roms on and USB card (using a OTG Cable) or just downoad ES File Explorer File Manager https://play.google.com/store/apps/details?id=com.estrongs.android.pop
And browse for the Roms from your network drive...