advert

Fanatics Login

We have 100 guests online
Gnome, KDE, IceWM or LXDE Desktop on your Android! (4 viewing) (4) Guests
Go to bottom Post Reply Favoured: 1
TOPIC: Gnome, KDE, IceWM or LXDE Desktop on your Android!
#1615
ghostwalker (Admin)
Admin
Posts: 93
graph
User Offline Click here to see the profile of this user
Gnome, KDE, IceWM or LXDE Desktop on your Android! 11 Months, 3 Weeks ago Karma: 9  


IMPORTANT UPDATE: Many comments on sites that have blogged this post seem to be getting the wrong end of the stick. This is not connecting to a remote desktop on another machine! This is x11 and LXDE Desktop running LOCALLY on the G1 device, the reason I had to connect back to LOCALHOST using VNCViewer (also running LOCALLY on the device) is because there are no drivers available. This circumnavigates the need for any special drivers.

Now back to business!


It's official you can run X-Windows and your choice of GUI (Gnome, KDE, IceWM etc on an Android device!

Screenshots are below!!


Here are instructions about running X-Windows and more specifically the LXDE Desktop GUI on the G-1.

LXDE is an energy saving and extremely fast and performing desktop solution. It works well with computers on the low end of the performance spectrum such as new generation netbooks and other small mobile computers

While IceWM, performance-wise runs the fastest - LXDE is also pretty good, and just plain 'prettier!

I have included options for either Desktop in the instructions below.

Prerequistes; Debian Shell instructions here: http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=2248 (UPDATED)

Also if your 'debian.img' file is a little small you may want to resize it - instructions here:

http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=1610


You need three basic packages:

From the Android OS:
Download VNCviewer for Android from our repo here:

http://www.androidfanatic.com/cms/unofficial-app-repo.html?func=fileinfo&id=16

or from google here:

http://code.google.com/p/android-vnc-viewer/

Now copy the .apk file to your sdcard and then run 'Apps installer' from the Market to install that.

From the terminal, boot your debian shell and then type:

apt-get install tightvncserver (return)

apt-get install lxde (return)

or if you want a really basic desktop use IceWM:

apt-get install icewm (return)

Now you need to setup your vncserver

at the prompt type:

export USER=root
(return)
vncserver -geometry 480x320 (return)

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.

go to /root/.vnc

type

nano xstartup



comment out the line for xsession:

#/etc/X11/xsession


add these two lines:

icewm &
lxsession


or if you decided to go for IceWM instead:

icewm &
xterm


save the file (trackball then 'o', and exit nano (trackball then 'x'.

Then restart an x windows session by vncserver ( you should kill it after you are done with x-windows later on).

This next bit does some housekeeping and sets up the VNC service each time you boot your debian shell - saves messing about everytime!

Now back inside your debian prompt you need to edit your /root/.bashrc file

cd /root
nano .bashrc


Add the following near the top of the file:

export USER=root
cd /
rm -r -f tmp
mkdir tmp
cd /
vncserver -geometry 480x320


(this sets your resolution - you can change this if you will be connecting via your computer).

save the file (trackball then 'o', and exit nano (trackball then 'x'.

Type 'exit' to exit the Debian shell.

reboot the phone.

Once rebooted go into Terminal and boot yor Debian shell.

Press the HOME button to revert back to the Android OS while leaving your Debian shell running.

Open androidVNC from your android programs menu.

Connect to 'localhost' port '5901' and enter your password.

Viola, you now have XWindows running on your phone. Obviously you can connect to your phone's new desktop GUI with a VNC viewer from your computer too jsut enter it's ip address instead of localhost.

To make the cursor work with your finger:

Press the MENU button on your device and select 1:1 then just press the trackball ONCE!

Now whenever you want a proper x-windows Desktop GUI right there on your phone, just run the debian shell with 'bootdeb' and it sets up your vncserver. Then just press home to leave it running and get back to your android menu, where you can choose to VNC directly onto it.

Cool eh?

When you are finished just exit androidVNC, if you want to get back to your Debian shell, HOLD DOWN the home key to bring up your running processes and switch to it.

What the heck, you could even install GNOME or KDE but it may be a little slow! I can't be arsed to try it, but if you can, be sure to let us know how it goes.

Your videos and photos of your device running X are welcomed. As usual if you like this, use the SHARE button below.






 
Report to moderator   Logged Logged  
 
Last Edit: 2009/03/13 18:06 By ghostwalker.
  The administrator has disabled public write access.
#1620
Bear (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:Gnome, KDE, IceWM or LXDE Desktop on your Android! 11 Months, 2 Weeks ago Karma: 0  
have try e17?



 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1626
chris_debian (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Gnome, KDE, IceWM or LXDE Desktop on your Android! 11 Months, 2 Weeks ago Karma: 0  
Wow, nice work!

Personally, I'd go for Openbox as the WM.

Chris.
www.getgnulinux.org/



 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1627
chris_debian (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Gnome, KDE, IceWM or LXDE Desktop on your Android! 11 Months, 2 Weeks ago Karma: 0  
Great. Does this mean that we'll be able to use Navit, to replace AndNav2 as a mapping/ satnav app?

I announced the possibility here:
http://www.andnav.org/index.php/en/community-forum?task=viewtopic&id=262

Cheers,

Chris.



 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1628
ghostwalker (Admin)
Admin
Posts: 93
graph
User Offline Click here to see the profile of this user
Re:Gnome, KDE, IceWM or LXDE Desktop on your Andro 11 Months, 2 Weeks ago Karma: 9  
Bear wrote:
QUOTE:
have try e17?


e17 will also run just install that instead of IceWM or LXDE or whatever.

You choose which desktop environment you want. personally I would stick with the lightweight stuff.

Let me know how it goes.





 
Report to moderator   Logged Logged  
 
Last Edit: 2009/02/23 17:51 By ghostwalker.
  The administrator has disabled public write access.
#1660
danraaka (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Gnome, KDE, IceWM or LXDE Desktop on your Android! 11 Months, 2 Weeks ago Karma: 0  
750Mb debian.img is just not sufficient to have tightvncserver and lxde installed. So I have resize and use a 2Gb microsd card.
I wansn't sure which one to select for the keymap for the configuration of console-data. I am guessing, I chose the wrong one among the options.
I have attached the screenshot of the last screen from the lxde installation.
any tricks on how to proceed forward ?





 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop