User:Rezza/Qtopia/X

From Openmoko

< User:Rezza | Qtopia(Difference between revisions)
Jump to: navigation, search
(Issues)
(Brainstorming)
 
(8 intermediate revisions by one user not shown)
Line 18: Line 18:
  
 
Install Keypebble VNC client with Software Packages app.
 
Install Keypebble VNC client with Software Packages app.
 +
 +
==NaeX==
 +
Mercurial repository can be found here: http://www.bitbucket.org/jreznik/naex/
  
 
==Running==
 
==Running==
 
<pre>
 
<pre>
Xfake :1 --screen 480x640 &
+
Xfake :1 -screen 480x600 &
 
export DISPLAY=:1
 
export DISPLAY=:1
 
x11vnc &
 
x11vnc &
 
</pre>
 
</pre>
  
Now run some X application - you can install for example openmoko-calculator2. And it's time to select VNC from applications list, let default settings and voila we have our X11 application running in Qtopia.
+
Now run some X application - you can install for example openmoko-calculator2. Run NaeX and voila we have our X11 application running in Qtopia.
  
 
==Issues==
 
==Issues==
 
Keypebble is really old piece of code. It's based on KDE 2.0's VNC client and now we have KDE 4 ;-) It's horribly slow and hangs after few seconds. But nothing's lost!!! Now I can build current version of Krdc. There is Qt only versions and with minor tweaks it is running. It is really fast and not hanging. Now I'm rewriting it to look like Qtopia application and I hope in few days I will have running solution for using X11 apps in Qtopia :-)
 
Keypebble is really old piece of code. It's based on KDE 2.0's VNC client and now we have KDE 4 ;-) It's horribly slow and hangs after few seconds. But nothing's lost!!! Now I can build current version of Krdc. There is Qt only versions and with minor tweaks it is running. It is really fast and not hanging. Now I'm rewriting it to look like Qtopia application and I hope in few days I will have running solution for using X11 apps in Qtopia :-)
 +
 +
==Applications==
 +
===Browser===
 +
Browser is most wanted software for Qtopia. Links-X11 can be downloaded from Angstrom repository.
 +
 +
<pre>
 +
opkg install links-x11
 +
links -g -mode 480x600 url
 +
</pre>
  
 
==Screenshots==
 
==Screenshots==
 +
===Links X11===
 
[[Image:sc-links.png]]
 
[[Image:sc-links.png]]
 +
 +
==Brainstorming==
 +
 +
run X11 application, get $PID <br>
 +
pidwinid $PID, get $WINDOW_ID <br>
 +
x11vnc -sid $WINDOW_ID -autoport n <br>
 +
retrieve $PORT value and connect to localhost:$PORT

Latest revision as of 08:20, 22 September 2008

Contents

[edit] Hack to run X apps on Qtopia

WARNING: DO NOT TRY THIS! Unless you want to destroy your Qtopia installation ;-) And it's still really unusable...


[edit] Description

Qtopia is really very nice piece of software but there is one big issue - there are no more applications than these ones in default installation + some few more other (and mostly old) apps around Internet. But for official OpenMoko distribution (which is running on X11) there are many applications - it's really easy to port them from desktop version to phone version (often only cross compilation is sufficient). Currently we are missing browser, IM etc...

[edit] The idea

The idea is to run fake X11 server, then export this session by VNC and use some Qtopia-able VNC client to display it. Around this hack we should provide some scripts to automatize it and do small hacks to VNC client.

[edit] Preparations

FSO testing repository (see Repositories#FSO)

[edit] Installation

opkg install x11vnc xserver-kdrive-xfake

Now your Qtopia installation is dead ;-) Reinstall with Nokia provided updater.

Install Keypebble VNC client with Software Packages app.

[edit] NaeX

Mercurial repository can be found here: http://www.bitbucket.org/jreznik/naex/

[edit] Running

Xfake :1 -screen 480x600 &
export DISPLAY=:1
x11vnc &

Now run some X application - you can install for example openmoko-calculator2. Run NaeX and voila we have our X11 application running in Qtopia.

[edit] Issues

Keypebble is really old piece of code. It's based on KDE 2.0's VNC client and now we have KDE 4 ;-) It's horribly slow and hangs after few seconds. But nothing's lost!!! Now I can build current version of Krdc. There is Qt only versions and with minor tweaks it is running. It is really fast and not hanging. Now I'm rewriting it to look like Qtopia application and I hope in few days I will have running solution for using X11 apps in Qtopia :-)

[edit] Applications

[edit] Browser

Browser is most wanted software for Qtopia. Links-X11 can be downloaded from Angstrom repository.

opkg install links-x11
links -g -mode 480x600 url

[edit] Screenshots

[edit] Links X11

Sc-links.png

[edit] Brainstorming

run X11 application, get $PID
pidwinid $PID, get $WINDOW_ID
x11vnc -sid $WINDOW_ID -autoport n
retrieve $PORT value and connect to localhost:$PORT

Personal tools

Hack to run X apps on Qtopia

WARNING: DO NOT TRY THIS! Unless you want to destroy your Qtopia installation ;-) And it's still really unusable...


Description

Qtopia is really very nice piece of software but there is one big issue - there are no more applications than these ones in default installation + some few more other (and mostly old) apps around Internet. But for official OpenMoko distribution (which is running on X11) there are many applications - it's really easy to port them from desktop version to phone version (often only cross compilation is sufficient). Currently we are missing browser, IM etc...

The idea

The idea is to run fake X11 server, then export this session by VNC and use some Qtopia-able VNC client to display it. Around this hack we should provide some scripts to automatize it and do small hacks to VNC client.

Preparations

FSO testing repository (see Repositories#FSO)

Installation

opkg install x11vnc xserver-kdrive-xfake

Now your Qtopia installation is dead ;-) Reinstall with Nokia provided updater.

Install Keypebble VNC client with Software Packages app.

Running

Xfake :1 --screen 480x640 &
export DISPLAY=:1
x11vnc &

Now run some X application - you can install for example openmoko-calculator2. And it's time to select VNC from applications list, let default settings and voila we have our X11 application running in Qtopia.

Issues

Keypebble is really old piece of code. It's based on KDE 2.0's VNC client and now we have KDE 4 ;-) It's horribly slow and hangs after few seconds. But nothing's lost!!! Now I can build current version of Krdc. There is Qt only versions and with minor tweaks it is running. It is really fast and not hanging. Now I'm rewriting it to look like Qtopia application and I hope in few days I will have running solution for using X11 apps in Qtopia :-)

Screenshots

Sc-links.png