x11 via Xvfb and x11vnc - G1 Android Development

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?

Related

Installing Debian on the G1

This was already mentioned by alansj here, but I though it was important enough to have it's own thread
Saurik has created a Debian image you can install onto your sd card. Once installed, you have the full power of debian on your phone. No more puny little busybox
Instructions and such are here.
Thanks Saurik!
I was actually looking into this earlier... let me know how it runs
cant download a few things
can not open ext2.ko......when i type insmod $kit/ext2.ko ...i get "insmod: can't open ' /sdcard/kit/ext2.ko'...some one please help me out
What graphical interface does this install, or is there one?
cbrunner said:
What graphical interface does this install, or is there one?
Click to expand...
Click to collapse
That was my question when I heard about this... I just went for it though because when I read through the instructions, I realized that everything is stored in the MicroSD card and in RAM (which is reset when the phone is rebooted)
It turns out that there is no GUI - just a good old text-based Debian install! I'm sure that someone will get one working... or maybe just port the entire BSD Subsystem along with apt so we can just forget the Market...
amgupt01 said:
That was my question when I heard about this... I just went for it though because when I read through the instructions, I realized that everything is stored in the MicroSD card and in RAM (which is reset when the phone is rebooted)
It turns out that there is no GUI - just a good old text-based Debian install! I'm sure that someone will get one working... or maybe just port the entire BSD Subsystem along with apt so we can just forget the Market...
Click to expand...
Click to collapse
This awesome article has answered tons of my questions and also seems to imply otherwise:
"This does not replace Android. This also gives you access to the full plethora of programs available in Debian and let's you continue using your phone as it was intended to be: as an Android device with all the capabilities thereof."​
In addition, this IRC channel is where the author of that article idles.
cbrunner said:
This awesome article has answered tons of my questions and also seems to imply otherwise:
"This does not replace Android. This also gives you access to the full plethora of programs available in Debian and let's you continue using your phone as it was intended to be: as an Android device with all the capabilities thereof."​
In addition, this IRC channel is where the author of that article idles.
Click to expand...
Click to collapse
Right. No gui, but you have a full working linux distro on your phone. You can apt-get just about any of the normal stuff.. You could probably even get a x-windows installation to working, although you would have to connect to it remotely - it would probably be "difficult" to get it to display a gui on the phone itself (although that would be sweet).
I've installed Saurik's image on my phone, it works great. Although if you do the "unionfs.sh" step, the wifi settings don't quite work right anymore. It won't let you enable or disable wifi.
But I was able to get an ssh server (with real user and password management) and even a samba server running on my phone quite easily with this . I've also got gcc installed, and will start playing around with developing directly on the phone (instead of having to cross compile).
Sorry for not being hip to the game, but what the heck is Debian?
donutman said:
Sorry for not being hip to the game, but what the heck is Debian?
Click to expand...
Click to collapse
Arguably the most influential distribution of Linux ever. Its package management system, apt, is awesome, and it is what Ubuntu and tons of other distros were started from.
Why would you not use Google before asking here?
can anyone help with my above mentioned problem
i want this baby to run
Is your phone connected to your computer? You lose access to the storage card when it is, I think (you can't cd to it when it's plugged in) and unplugging my phone allowed me to install the module.
/a
Installing Debian errors?
Here is what I get:
insmod $kit/ext2.ko
insmod: init_module '/sdcard/kit/ext2.ko' failed (Operation not permitted)
i've been through this, i'm not gonna explain what happens and why, but imo, the only way to get a real root is the following:
-Install telnet client to your device (from android market).
-Reboot your phone to be sure no telnet-daemons/shells are running.
-When you are on the desktop, just type "enter", "telnetd", "enter". (If you do it from the terminal app it will run under the uid of the terminal app which is not root).
-Then run the telnet client app, and connect to local host. (Or skip this step + the first one if you wanna connect from another pc)
I know it's weird, but when you run something from the terminal app it runs under the terminal app's uid, even if you run a new shell, you still are eg. "app_33", not root. and btw you will have to set the environment variables all from the same shell, that means you can't have a script cause it will run under another shell, with another uid. I'm so confused... maybe I'm wrong but android is not the most friendly environment.
aggtrfrad said:
i've been through this, i'm not gonna explain what happens and why, but imo, the only way to get a real root is the following:
-Install telnet client to your device (from android market).
-Reboot your phone to be sure no telnet-daemons/shells are running.
-When you are on the desktop, just type "enter", "telnetd", "enter". (If you do it from the terminal app it will run under the uid of the terminal app which is not root).
-Then run the telnet client app, and connect to local host. (Or skip this step + the first one if you wanna connect from another pc)
I know it's weird, but when you run something from the terminal app it runs under the terminal app's uid, even if you run a new shell, you still are eg. "app_33", not root. and btw you will have to set the environment variables all from the same shell, that means you can't have a script cause it will run under another shell, with another uid. I'm so confused... maybe I'm wrong but android is not the most friendly environment.
Click to expand...
Click to collapse
Haha I feel you. Now the thing is when I am at the home screen on my G1 i push "Enter" on the keyboard and then type "telnetd" and then push enter again it doesnt do anything. When I open up telnet client on my PC it wont connect with wifi on.
So I then go to Telnet client on myG1 and go to connect to "localhost:23" and it says "Error while connecting to server: localhost/127.0.0.1:23 - Connection refused" the thing is that my local host for my wifi is not 127.0.0.1:23
And when I "netstat" from inside Terminal Emulator there is no address with port "23"
ballaholyk84 said:
Haha I feel you. Now the thing is when I am at the home screen on my G1 i push "Enter" on the keyboard and then type "telnetd" and then push enter again it doesnt do anything. When I open up telnet client on my PC it wont connect with wifi on.
So I then go to Telnet client on myG1 and go to connect to "localhost:23" and it says "Error while connecting to server: localhost/127.0.0.1:23 - Connection refused" the thing is that my local host for my wifi is not 127.0.0.1:23
And when I "netstat" from inside Terminal Emulator there is no address with port "23"
Click to expand...
Click to collapse
Are you already running RC30?
SplasPood said:
Are you already running RC30?
Click to expand...
Click to collapse
Yes, I am running the Modified RC30 posted by JesusFreke
cbrunner said:
Why would you not use Google before asking here?
Click to expand...
Click to collapse
Because I wanted you to tell me baby. That is what a wife is suppose to do.
JesusFreke said:
Right. No gui, but you have a full working linux distro on your phone. You can apt-get just about any of the normal stuff.. You could probably even get a x-windows installation to working, although you would have to connect to it remotely - it would probably be "difficult" to get it to display a gui on the phone itself (although that would be sweet).
I've installed Saurik's image on my phone, it works great. Although if you do the "unionfs.sh" step, the wifi settings don't quite work right anymore. It won't let you enable or disable wifi.
But I was able to get an ssh server (with real user and password management) and even a samba server running on my phone quite easily with this . I've also got gcc installed, and will start playing around with developing directly on the phone (instead of having to cross compile).
Click to expand...
Click to collapse
What command did you use to get the SSH to install? Every time I do the one in the tut by saurik it errors and wont install all the way. I get an error after x11-common and it wont finish.
ballaholyk84 said:
So I then go to Telnet client on myG1 and go to connect to "localhost:23" and it says "Error while connecting to server: localhost/127.0.0.1:23 - Connection refused" the thing is that my local host for my wifi is not 127.0.0.1:23
Click to expand...
Click to collapse
localhost usually refers to the loopback interface which on most devices will be 127.0.0.1.
I'm getting the same thing here... I think there's something wrong with apt-get having to write to /tmp which does not exist (and is mounted read-only).

Share your list of apps for android debian

Hey everybody. I am not really a linux guy. I can get around and do a few things but thats it. I know however that installing a wm into debian for android is senseless. I do however want to know what everybody has gotten up and running on their debian. I dont really have anything. I tried installing dosbox but then it needed sdl. After installing sdl it said it couldnt find dev/fb0. Framebuffer. Ok. Well I assume that means it needs a vid driver so whatever. Anyway, what else are we running on this? Need some new ideas for apps to install. And if anyone can figure out how to get a dosbox type app running please let me know. Or even zork. That shouldnt be too hard right?
Chuck
First thign I did was:
apt-get update
apt-get upgrade
apt-get install python
That's all I have used it for so far. python for my coming college classes. I don't know what else I would use it for without the Xs
Rafase282 said:
First thign I did was:
apt-get update
apt-get upgrade
apt-get install python
That's all I have used it for so far. python for my coming college classes. I don't know what else I would use it for without the Xs
Click to expand...
Click to collapse
You can install X on your phone. I have a Windows PC running Xming and run emacs xterm and other such stuff to manage my phone. It's very handy.
The annoying part is that DISPLAY is defaulted to localhost:10.0. The phone can't resolve localhost to 127.0.0.1. So you need to do "export DISPLAY=127.0.0.1:10.0" to make X work.
I installed python,vlc,w3m,x,emacs, and of course openssh.
Vlc of course does not work currently of course
Koush said:
You can install X on your phone. I have a Windows PC running Xming and run emacs xterm and other such stuff to manage my phone. It's very handy.
The annoying part is that DISPLAY is defaulted to localhost:10.0. The phone can't resolve localhost to 127.0.0.1. So you need to do "export DISPLAY=127.0.0.1:10.0" to make X work.
Click to expand...
Click to collapse
Do you have both the server and client on the phone itself?
Help Plz
I got Debian running and installed couple apps, But i don't know how to make it runs. What command do i need? or what do i need to do to run apps ? Thanks
im in the same boat as the op. i tried apache2, caused a hard reset
how about an easy text editor like nano with sytax highlighting? i do not have the time to learn vi.
I run a webserver (lighttpd)
I wrote some perl cgi stuff a while back for local train scheduling, and now I can just access my schedules from the browser on the phone.
And git, vim, python, obv. If I need a development environment, it's there
Rafase282 said:
apt-get update
apt-get upgrade
apt-get install python
Click to expand...
Click to collapse
Seconded.
Although, I've been trying to get Aircrack-ng to work for a bit... it's pre-installed but I'm still not very linux-savvy so it's new to me.
I've found that rtorrent works without any messing about. Not sure why you'd want to use it on a phone but it does.
can anybody else recommend apps to get for debian on android??...
Proxin said:
Seconded.
Although, I've been trying to get Aircrack-ng to work for a bit... it's pre-installed but I'm still not very linux-savvy so it's new to me.
Click to expand...
Click to collapse
I would like to see aircrack working on Debian. That would be handy if your not in a 3G network with a bunch of WEP secured WiFi networks laying around.
Binary100100 said:
I would like to see aircrack working on Debian. That would be handy if your not in a 3G network with a bunch of WEP secured WiFi networks laying around.
Click to expand...
Click to collapse
It would probably be not only handy, but quite illegal as well
Here is a link where I found a bit of information about testing packet injection/sniffing scripts from Aircrack:
http://www.androidfanatic.com/cms/community-forums.html?func=view&id=1578&catid=9
It's a bit complex but also very informative. What this means is that we have the ability to inject/sniff packets with HTC G1, but so far there is not a driver that has been written to take this anywhere beyond testing.
Or that's how I understand it...
Proxin said:
It would probably be not only handy, but quite illegal as well
Here is a link where I found a bit of information about testing packet injection/sniffing scripts from Aircrack:
http://www.androidfanatic.com/cms/community-forums.html?func=view&id=1578&catid=9
It's a bit complex but also very informative. What this means is that we have the ability to inject/sniff packets with HTC G1, but so far there is not a driver that has been written to take this anywhere beyond testing.
Or that's how I understand it...
Click to expand...
Click to collapse
Give it time. It took me a while to get it working with windows... android shouldn't be too much more of a challenge.
efbenson said:
im in the same boat as the op. i tried apache2, caused a hard reset
how about an easy text editor like nano with sytax highlighting? i do not have the time to learn vi.
Click to expand...
Click to collapse
vi is easy actually, :q quitsm :wq writes and quit, :wq! the ! is to force over write.
but i preffer pico or nano
on topic:
i installed locate and updatedb to search for files on the phone
apt-get locate
apt-get nss-updatedb
i had to install G++ and Javac
then i did vncserver and a gui...
well i have aircrack-ng in debian on my G1
only issue is ifconfig lists tiwlan0 as Ethernet, not a wireless controller
im pretty sure thanks to the Wifi-Tether app we can assume we have full control over the wifi module (it uses the system driver, does not load its own in, checked the code) and you can ifconfig into promisc mode, however i am having unionfs issues (R33-Lite + Debian due to Buuf theme, seems fine bar this bug, everything else runs)
anybody else got ifconfig displaying the wireless settings correctly while chrooted in debian with the mounts done (not unionfs, just sys proc and /dev/pts)
also aircrack-ng is not illegal, getting caught using it on systems that are not yours where the cop understands what your doing on your phone is illegal
this guy claims his aircrack-ng works... hmmmm http://blog.0x82.com/2009/2/15/first-thoughts-on-android-dev-phone-1
unfortunately promiscuous only shows frames received on the currently associated network, regardless of destination mac address.
in order for air-crack to work, you need the to be able to put the device into monitor mode (as opposed to AP, ad-hoc), which currently can't be done.
Out of interest has snyone got X windows running on the 700mb debian image? I cant find any links to any images bigger than the 700mb and i keep getting restrictions saying there is no space... can anyone hook me up?
crackmunky said:
Out of interest has snyone got X windows running on the 700mb debian image? I cant find any links to any images bigger than the 700mb and i keep getting restrictions saying there is no space... can anyone hook me up?
Click to expand...
Click to collapse
No...you'll probably need to resize the ext2 filesystem, which fortunately isn't too big of a problem. Likely if you were able to install Debian on the G1, you can resize without a problem.
Check out the links on resizing for more space for Debian....that should fix you up.

How To Set up X11 on your G1 and computer

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

X-Windows on Debian from phone to phone -- how to

Here are instructions about running X-Windows of the G-1.
You need three basic packages: Android VNC Viewer: http://code.google.com/p/android-vnc-viewer/ , Tightvncserver (apt-get install tightvncserver), and icewm (apt-get install icewm).
When you get these installed (Android vnc viewer goes on the phone -- install from the browser), become su in Debian and run the command "vncserver". This will create an x-windows session and a startup file
in the /root/.vnc/ directory. Vncserver will also ask you to set up two passwrds. You will need the first password to log in, but just say no to the second password.
The next thing to do is to kill the session you just started: "vncserver -kill :1"
This is so you can edit the startup file to set it up correctly. cd to root/.vnc and run "nano xstartup".
comment out the line for xsession:
#/etc/X11/xsession
add these two lines:
icewm &
xterm
save the file (trackball "o" --this is control o), and exit nano (trackball x -- control x).
Then restart an x windows session by "vncserver" ( you should kill it after you are done with x-windows later on).
Next, go back to the phone and start Android-VNC-Viewr. You will get a log-in screen. You will need to enter your password you created and the address (localhost)and the port (5901).
Then press connect, and you are in an x-windows session, with a Debian icon in the lower seft corner of the screen. Click it and you are in business. There are instructions on running Android-VNC-Viewr
on their website.
You may want more room to install programs then you get on Saurik's image file. I created an image using his method at http://www.saurik.com/id/10.
The image is 3.7 gigabytes, and I have kde-core and LDXE installed and still have 2.4 gibytes free.
You have to add two lines to the bootdeb script after the lines loading the image. These lines are to get the image unpacked and configured. You can take them out after that.
Here they are:
busybox chroot $mnt /debootstrap/debootstrap --second-stage
echo 'deb http://ftp.de.debian.org/debian lenny main' >$mnt/etc/apt/sources.list
Thats it!
This works great! Thanks!
I did this long ago. Have you found a way to use the kayboard? I had to use a virtual one for some characters.
The keyboard works with the latest vnc-viewer, but capital letters don't work.
Great Dude
Hey i got it running, I also apt-get install LXDE. Do i need to add LXDE in vncserver like xterm and icewm?
will try this, when i get my new micro sd card thank you.
I did all the step and work great. Now im installing LXDE, do i have to add anything to run LXDE?
LXDE has a windows manager and a session manager, but it seems to take more resources than my setup. You do get a neat file manager and a nice editor (Leafpad). You also ge firefox, which runs -- but very slowly. These aps show up in the menus without changing the set-up I described.
man my 2 gig SD card has been working well for me so far but with all these new things to try I'm going to have to splurge for an 8 or a 16 soon...will be trying this within a week.
Fantastic - Slight issue tho!
Hi Guys,
Damn fine work, I have followed your instructions and it seems to be working.
Only thing is, I go into the VNC session using AndroidVNC, it brings up the ICEWM gui, perfect.
But, the cursor wont move and is there a way to make the resolution the same as the screen at 320 x 480????
Again nice work.
daftpunk6592 said:
Hi Guys,
Damn fine work, I have followed your instructions and it seems to be working.
Only thing is, I go into the VNC session using AndroidVNC, it brings up the ICEWM gui, perfect.
But, the cursor wont move and is there a way to make the resolution the same as the screen at 320 x 480????
Again nice work.
Click to expand...
Click to collapse
You need to read the user's guide on the Android-VNC-Viewer website. Click on "Menu" on the G-1 and then push 1:1 mode. Then select a mouse pointer mode.
You can set a screen geometry when you invoke vncserver from Debian: vncserver -geometry 320x480.
i cant seem to run vncserver from debian "command not found" why would this be? i did the apt-get for the other 2 packages first then installed vncserver from the browser
So if I do this to my phone, can I install something like open office or MS office?
lxde
okay thanks, sorted the issues, one final question before I play, I have IceWM working no problem, I have also installed LXDE.
How do I change xstartup to make it show LXDE when I vnc into localhost instead of iceWM?
TY in advance.
Hey have you type "SU" and then type "VNCSERVER"?
Ok i got it i did adp-get update and the tried again and it worked. there must have been some missing files or something.
Just incase someone dosnt know to make the screen readable as in its too small . hit menu and set "scaling" to 1:1 then change inputmode to touch pan , trackball mouse. now you can drag the desktop around with the touch screen and use the trackball as a mouse.
demonfriend1 said:
Hey have you type "SU" and then type "VNCSERVER"?
Click to expand...
Click to collapse
Yep I do that, but still IceWM
I think it's something specified in the /root/.vnc/xstartup file
Maybe the 'icewm &' line needs to be something else for LXDE??/
Heeeelllp!!
daftpunk6592 said:
Yep I do that, but still IceWM
I think it's something specified in the /root/.vnc/xstartup file
Maybe the 'icewm &' line needs to be something else for LXDE??/
Heeeelllp!!
Click to expand...
Click to collapse
Just replace "xterm" with "lxsession"
trouble with vnc server
when i enter in "vncserver" it brings up this...
Code:
Warning: localhost:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server localhost:1
Warning: localhost:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server localhost:2
Warning: localhost:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server localhost:3
Warning: localhost:4 is taken because of /tmp/.X4-lock
Remove this file if there is no X server localhost
Warning: localhost:5 is taken because of /tmp/.X5-lock
Remove this file if there is no X server localhost:5
it does this until localhost:10 then...
Code:
New 'X' desktop is localhost:11
starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:11.log
ive gotten x windows to work before but now im stuck
any help is much appreciated
-thanks
You are not properly killing your xsessions when you are done. When you are finiseed with an xsession, exit from vnc-viewr, go to terminal and type "vncserver -kill :1" or whatever number you wer logged into.
Now you need to ch to /tmp/ and rm ./*lock
I think there will be similar warning messages for other temporary files for you next time also, which you will have to delete in a similar fashion.

chroot ubuntu

Hi,
I followed this thread Chroot Ubuntu and installed ubuntu
As other guys, some application won't launch or crash under gnome
On the OP, people talk about memory limit of 32M per app on android, but for example the system monitor is a small app that consumes less than 4M and it won't launch...
Unfortunately, i cannot post on the OP (too few posts for me, cannot post on dev section), so i give what i found here (maybe a gentle admin will move the thread )
So
I installed lxde from terminal, and switched to lxde :
# apt-get install lxde
# update-alternatives --config x-session-manager
(i chose "start lxde")
Click to expand...
Click to collapse
reboot the TF, restart chroot ubuntu, vncserver, then connect, i got the lxde x env, and guess what ?
system monitor works, update manager, synaptic package manager, etc...
Don't know if it's because it's a lighter interface, but it does the trick !
@+
Some things still don't seem to load properly even on lxde , such as chromium, but it seems to be an improvement.
Probably should check for issues involving shared memory and X extensions. Remember, it is not quite the current X.Org you're running.
Sent from my Transformer TF101 using Tapatalk
Thanks for that trick!, but I can run more than 4-5 apps in chroot Ubuntu (not at the same time). I open Firefox, close it, open OpenOffice Writer, close it, open Gedit, close it, open LXTerminal and closeit. After doing this, I'm unable to start other app
tisi1988 said:
Thanks for that trick!, but I can run more than 4-5 apps in chroot Ubuntu (not at the same time). I open Firefox, close it, open OpenOffice Writer, close it, open Gedit, close it, open LXTerminal and closeit. After doing this, I'm unable to start other app
Click to expand...
Click to collapse
That's pretty strange, i made a few tests on mine
I can run at the same time Firefox, LXterminal, Gedit, Synaptic package manager, system monitor, movie player...
Close them, reopen Firefox etc
But Zoho web applis don't start at all for example.
Spidey01 said:
Probably should check for issues involving shared memory and X extensions. Remember, it is not quite the current X.Org you're running.
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
Thanks for the info
I wonder if we can run another distro, ubuntu 11.10 for example, via chroot ?
I noticed that the swap is disabled in the kernel used in the root.fs image, which could maybe help the memory management
Depending on how much work you want to do you can run any distro that supports the processor architecture. I use Debian stable because it seems to have a lot more debs available than Ubuntu, when you have ARM instead of x86 crud .
From talk I believe Ubuntu will eventually be a great choice, perhaps even as a total replacement or dual boot, but the TF101 may look like a G1 or original Droid by then.
Sent from my Transformer TF101 using Tapatalk
ID6548437 said:
That's pretty strange, i made a few tests on mine
I can run at the same time Firefox, LXterminal, Gedit, Synaptic package manager, system monitor, movie player...
Close them, reopen Firefox etc
But Zoho web applis don't start at all for example.
Click to expand...
Click to collapse
I was not so lucky. I can only run one app at a time as well. Maybe there's a difference in how we're set up?
Spidey01 said:
Depending on how much work you want to do you can run any distro that supports the processor architecture. I use Debian stable because it seems to have a lot more debs available than Ubuntu, when you have ARM instead of x86 crud .
From talk I believe Ubuntu will eventually be a great choice, perhaps even as a total replacement or dual boot, but the TF101 may look like a G1 or original Droid by then.
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
I just want to run p2p client to download tv series
Not a lot of stuff
I will take a look at Debian
Thanks
livinsacrfice said:
I was not so lucky. I can only run one app at a time as well. Maybe there's a difference in how we're set up?
Click to expand...
Click to collapse
I made very minor changes to the initial config, i just removed a few app from the menu "Preferences > Desktop session settings"
I just left :
Wicd network manager tray
SSH key agent
Certificate and key storage
Secret storage device
I unchecked all others
And that's all i did, i believe
But i run UltraVNC client from my win xp, what about you ?
oh, I was using the VNC client on the TF101. When I connected from a different machine, I was able to load multiple apps at a time.
Nvidia is pretty good about releasing drivers for their x86 graphics hardware. Have they not released drivers for the transformer geforce that we still have to use vnc servers instead of x.org?
Is there really no way to run x.org on the transformer? That would totally take away the need to use nvflash and deal with partitioning etc....
If we could just chroot and startx right from there and at the same time kill the apk stuff

Categories

Resources