webOS Nation Forums >  Homebrew >  WebOS Internals > XServer &XTerm
XServer &XTerm

  Reply
 
LinkBack Thread Tools Display Modes
Old 04/02/2010, 03:44 AM   #1 (permalink)
R_E
Member
 
Join Date: Jul 2009
Posts: 329
Likes Received: 5
Thanks: 29
Thanked 49 Times in 34 Posts
Default XServer &XTerm

So I installed Xterm and xserver from the internals testing feed, but i'm not 100% sure how to use these. Does this mean we can somehow install and run graphic linux programs like firefox or emacs? And if so, how? There is very little info on webosinternals.org.
R_E is offline   Reply With Quote
Old 04/02/2010, 05:39 AM   #2 (permalink)
Member
 
Join Date: Aug 2008
Location: Oregon, USA
Posts: 310
Likes Received: 3
Thanks: 3
Thanked 62 Times in 43 Posts
Default

I'm not familier with xterm and xserver from the internals feed myself. I have however setup a debian chroot, installed a vnc server and hooked to it with sdlvnc and ran x apps that way. You can read more on how to do that at this thread: http://forums.precentral.net/web-os-...nc-client.html

- Phil -
BoraWare is offline   Reply With Quote
Old 04/02/2010, 10:22 AM   #3 (permalink)
Member
 
chadking's Avatar
 
Join Date: Nov 2009
Location: davenport iowa
Posts: 179
Likes Received: 6
Thanks: 26
Thanked 14 Times in 12 Posts
Default

I use xterm when rooting my pre I put on and take off the 800mhz patch this way it's a hell of alot eaiser
chadking is offline   Reply With Quote
Old 04/03/2010, 01:00 AM   #4 (permalink)
Homebrew Developer
 
Join Date: Jul 2009
Posts: 351
Likes Received: 11
Thanks: 20
Thanked 418 Times in 90 Posts
Default

Quote:
Originally Posted by R_E View Post
So I installed Xterm and xserver from the internals testing feed, but i'm not 100% sure how to use these. Does this mean we can somehow install and run graphic linux programs like firefox or emacs? And if so, how? There is very little info on webosinternals.org.
Hi,

You absolutely can run graphical linux programs! Right now only xterm was packaged (both as a proof of concept and because it's useful), but we have some more coming and on the way Some keybinding information is available here

The x-server is a functional X server (if you want to ssh x-forward apps you can). Things like 3D games aren't possible because we don't support GLX etc, but most apps should work great . Things like firefox, pidgin, etc, are all possible (and work already but we have to finish packaging them).

We have big plans for getting apps out to you all, but for now the best and easiest way to run X apps is through a debian chroot. Similar to the sdlvnc setup, you can find the debian chroot instructions on the wiki.

Unlike "normal", your DISPLAY environment variable will have to be DISPLAY=localhost:0.0 (as opposed to DISPLAY=:0.0 per 'normal')

Anyway you can see examples of using the chroot here:




etc.

This is using icewm and various applications.

In the not-too-distance future we do hope to bring you lots of goodies so stay tuned.

I apologize that for now I don't have time to put together a tutorial--I'll try to help as I can if people have questions.

Be aware that this is on the testing feed for a reason, which is why things like public announcement/documentation isn't in place yet. And because it's not done yet .

Let me know if you have any issues or questions and I'll answer them as I can.
__________________
Quake
thread
VisualBoyAdvance
thread App Cat
X11/XServer/Xterm
thread
SuperNES
thread App Cat


If you like my work, please consider donating or buying VBA!
dtzWill is offline   Reply With Quote
Old 04/03/2010, 03:44 AM   #5 (permalink)
R_E
Member
 
Join Date: Jul 2009
Posts: 329
Likes Received: 5
Thanks: 29
Thanked 49 Times in 34 Posts
Default

Thanks for your reply dtzWill. My knowledge of all this is very basic. If I have a computer running ubuntu, can i somehow run programs on it on my pre with this?

If you could post a tutorial whenever you get a chance, that would be great. thanks.
R_E is offline   Reply With Quote
Old 04/03/2010, 08:41 AM   #6 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

forgive me if this is a stupid question but are the above screen shots from a Pre?
mamouton is offline   Reply With Quote
Old 04/03/2010, 09:30 AM   #7 (permalink)
Member
 
Join Date: Apr 2004
Posts: 187
Likes Received: 2
Thanks: 6
Thanked 57 Times in 25 Posts
Default

Very cool indeed! Thanks!
zonyl is offline   Reply With Quote
Old 04/03/2010, 09:47 AM   #8 (permalink)
Member
 
Join Date: Jul 2009
Posts: 127
Likes Received: 1
Thanks: 5
Thanked 430 Times in 44 Posts
Default

Quote:
Originally Posted by mamouton View Post
forgive me if this is a stupid question but are the above screen shots from a Pre?
Yes, those are running on his Pre.

For anyone who wonders what we do all day in Webos Internals (besides drink beer), it pretty much is something like "do as many crazy things as you can with your Pre".

Unfortunately, every once and awhile, something _useful_ or at least generally interesting pops up and we have to actually package it for general consumption. Believe it or not, this is the boring and time consuming part for most of us. Well, except rwhitby, he /loves/ packaging things.

In this particular case, tho, it helps that dtzWill is pretty much awesome.
__________________
Bringing you the first video recorder (Precorder), the first SDL application/game (DOOM), the first "make my magicjack/corporate voicemail play on my webos phone thingy" (gsm codec package), and now, webos's first opensource media recorder (voice and stream!) -> zcorder
Prenosicator is offline   Reply With Quote
Thanked by Arthur Thornton, jakelaw
Old 04/03/2010, 10:26 AM   #9 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

WOW!!! I am now subscribing to this thread interested in the progress. I look forward to this on the Pre!!

@Prenosicator thanks for Precorder I was an early donater.
__________________
My contributions to customizing the Palm Pre.

Browser Mega Mix|Email Mega Mix|Additional Sync Days|
Disable Various Phone Sounds|Priority Discard Buttons|

Sign up for SugarSync Get 500MB extra space
Sign up for Dropbox Get 250MB extra space
mamouton is offline   Reply With Quote
Thanked By: Arthur Thornton
Old 04/04/2010, 04:38 PM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 784
Likes Received: 13
Thanks: 26
Thanked 96 Times in 76 Posts
Default

w...t...h..?

Seriously thats on the pre?!? Is there like touchscreen and keyboard support? That... would.. be... unreal. All in a card tooo? I must be dreamin.
Klownicle is offline   Reply With Quote
Old 04/04/2010, 04:45 PM   #11 (permalink)
Member
 
mrloserpunk's Avatar
 
Join Date: Jul 2008
Location: Syracuse
Posts: 2,564
Likes Received: 0
Thanks: 740
Thanked 442 Times in 327 Posts
Default

Subscribed.... But I'm guessing a Windows compatible version is still light years away eh?

edit, doing some research here, isnt VNC good on windows already?
__________________
"When there is no more room in hell, the dead will walk the earth"


PM me your questions, If I cant find an answer, I'll show you who can.

Last edited by mrloserpunk; 04/04/2010 at 04:52 PM.
mrloserpunk is offline   Reply With Quote
Old 04/04/2010, 05:11 PM   #12 (permalink)
Member
 
Join Date: Jun 2009
Posts: 784
Likes Received: 13
Thanks: 26
Thanked 96 Times in 76 Posts
Default

Quote:
Originally Posted by mrloserpunk View Post
Subscribed.... But I'm guessing a Windows compatible version is still light years away eh?

edit, doing some research here, isnt VNC good on windows already?
By that if you mean VNC Server and a VNC Client... yes there are multiple tasty varities available, TightVNC, RealVNC, UltraVNC, etc.
Klownicle is offline   Reply With Quote
Old 04/05/2010, 01:53 AM   #13 (permalink)
Member
 
mrloserpunk's Avatar
 
Join Date: Jul 2008
Location: Syracuse
Posts: 2,564
Likes Received: 0
Thanks: 740
Thanked 442 Times in 327 Posts
Default

Quote:
Originally Posted by Klownicle View Post
By that if you mean VNC Server and a VNC Client... yes there are multiple tasty varities available, TightVNC, RealVNC, UltraVNC, etc.
so i can use x-server to connect to any of those clients for windows, thus giving me the ability to run some apps???? I must be reading this wrong....
__________________
"When there is no more room in hell, the dead will walk the earth"


PM me your questions, If I cant find an answer, I'll show you who can.
mrloserpunk is offline   Reply With Quote
Old 04/05/2010, 02:04 PM   #14 (permalink)
Member
 
Join Date: Jun 2009
Posts: 784
Likes Received: 13
Thanks: 26
Thanked 96 Times in 76 Posts
Default

Quote:
Originally Posted by mrloserpunk View Post
so i can use x-server to connect to any of those clients for windows, thus giving me the ability to run some apps???? I must be reading this wrong....
Depending on what your talking about;

You could run a vnc server on xserver and connect to it from your windows pc and control the xserver from your pc.

Or...

You could run a vnc server on your windows pc and be on your xserver and run a vnc client to control your windows pc from your phone.

You could be confused what xserver is, xserver is the gui enviroment of a linux root if im not mistaken. Basically what somthing like this would allow is running linux gui applications on the palm pre, I think described as a OS inside a card view? Least thats what im dreamin off.

Don't shoot the messenger.

Last edited by Klownicle; 04/05/2010 at 02:17 PM.
Klownicle is offline   Reply With Quote
Old 04/07/2010, 08:16 PM   #15 (permalink)
Member
 
Join Date: Oct 2007
Posts: 534
Likes Received: 0
Thanks: 18
Thanked 16 Times in 11 Posts
Default

wow i can't wait to see some of these apps packaged and released to the public. hopefully a tutorial on how to do it yourself will be provided too. since this runs in a card it could open up possibilities like crazy. can't wait to get icewm running on my pre
__________________
http://phwelo.mobi
for any questions or to send a donation: phwelo@gmail.com
phwelo is offline   Reply With Quote
Old 04/07/2010, 09:39 PM   #16 (permalink)
Member
 
Join Date: Aug 2009
Posts: 134
Likes Received: 1
Thanks: 17
Thanked 42 Times in 22 Posts
Default

I'm very impressed that there is an X server running on the Pre.

Given the questions in this thread, I thought it would be useful to provide a brief overview of X windows. X is a client/server based graphical system. Unlike most graphics interfaces such as GDI for Windows, an X client (application) and the X server (where the graphics are displayed) do not have to reside on the same machine.

The X server is where all the graphics rendering and displaying is done. In other words, when the X server receives a request from a client to perform a graphic operation like to draw a line, it will process that request and invoke the display driver code (the software that interacts with the display hardware) to render the line on the screen. A VNC server on Linux is a special X server that instead of rendering graphics on a real display device, it renders to a virtual screen that can be viewed from anywhere using a VNC client.

The software that requests the X server to draw a line is called a client. Applications such as xterm or even Firefox on Linux are considered clients. As I mentioned, the client does not have to run on the same machine as the server. This allows one to run an application like xterm on your Pre and have it connect to an X server running on your desktop Linux box to get a nice Pre terminal window displayed on your desktop's monitor.

The screen shots in an earlier post seem to be demonstrating an X server running locally on the Pre with the X client applications also running on the Pre (very cool). If you wanted, you could even run an application on your Linux desktop and have it displayed on the Pre by connecting to the Pre's X server.
meandmypre is offline   Reply With Quote
Thanked By: Jive Turkey
Old 04/09/2010, 12:55 AM   #17 (permalink)
Homebrew Developer
 
Join Date: Jul 2009
Posts: 351
Likes Received: 11
Thanks: 20
Thanked 418 Times in 90 Posts
Default

I've started a new thread, with a video (thanks phil_bw!), where I'll be posting future updates.

Linky
__________________
Quake
thread
VisualBoyAdvance
thread App Cat
X11/XServer/Xterm
thread
SuperNES
thread App Cat


If you like my work, please consider donating or buying VBA!
dtzWill is offline   Reply With Quote
Thanked By: huberthickey
Old 04/09/2010, 01:42 AM   #18 (permalink)
Member
 
Join Date: Aug 2008
Location: Oregon, USA
Posts: 310
Likes Received: 3
Thanks: 3
Thanked 62 Times in 43 Posts
Default

Was it really only 5 days ago that I didn't even know an SDL X server even existed. 5 days later I post a video of me running openoffice in that very server. One more reason I love the Pre, WebOS, and everyone "working on it".

- phil_bw -
BoraWare is offline   Reply With Quote
Thanked By: amateurhack
Old 05/13/2010, 12:30 AM   #19 (permalink)
Member
 
Join Date: Aug 2009
Posts: 6
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
Default

that is looking amazing!! I am going to install it from the testing feed now. how is the performance though?
fiftyclick is offline   Reply With Quote
Old 05/19/2010, 12:56 AM   #20 (permalink)
Member
 
Join Date: Nov 2009
Posts: 9
Likes Received: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Default

how windows, can be install xterm and ... in Pre via windows ?
vuxy is offline   Reply With Quote
Reply

 

Tags
xterm

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0