*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1] 2 3
Print
Author Topic: VNC-type server on OLPC?  (Read 15367 times)

VNC-type server on OLPC?

unrequited
Senior Contributor
**
Posts: 120



January 04, 2008, 01:13:28 PM

**EDIT** 02/05/08 **EDIT**
Everything works now thanks to one poster, please read for more information:
http://olpcnews.com/forum/index.php?topic=1116.msg15289;topicseen#msg15289
**EDIT** 02/05/08 **EDIT**


I'm new to this whole linux environment, but I remember from university using programs such as Xwin or xming to run programs off of the mainframes.

I've already set up xming and it works, and I even played a slide-show version of prboom over the network. I'm just wondering if somehow I can connect to the sugar that's already running on the laptop?

Forgive me if I'm not using the correct terminology, I've used VNC for years on the windows-side, but haven't done much *nix work since school.
« Last Edit: February 05, 2008, 11:49:59 PM by unrequited » Logged

-Unrequited

#1 Re: VNC-type server on OLPC?

tomhannen
New

Posts: 3


January 04, 2008, 02:06:02 PM

Hi,
Try this:
http://wiki.laptop.org/go/Vnc

I've got it to work before, but it is quite sluggish.... Not much use for Doom, but OK for demoing Sugar...
Logged

#2 Re: VNC-type server on OLPC?

unrequited
Senior Contributor
**
Posts: 120



January 04, 2008, 02:38:32 PM

Thanks... I'll have to go the VNC route I guess. Just figured something was built-in, and I don't want to run any more servers on the XO.
Logged

-Unrequited

#3 Re: VNC-type server on OLPC?

unrequited
Senior Contributor
**
Posts: 120



January 04, 2008, 04:48:54 PM

VNC'ing works as a display only. Even after taking out the no input commands in your tutorial, I can't get any input from my computer to work on the XO. The error I've been able to trace it down to is that there's no XTest extension in Sugar for security purposes of specifically not allowing any other program to spy and/or hijack the keyboard/mouse. Anybody have any other suggestions or workarounds?
Logged

-Unrequited

#4 Re: VNC-type server on OLPC?

kcdistiller
New

Posts: 4


January 05, 2008, 05:35:22 PM

Is there a way to use a Mac (on 10.4) as a server and connect from an OLPC? I know that there are several programs available (Vine VLC, Chicken of the VLC, etc.), but I am looking for a tutorial on how to see my mac from my kid's OLPC. I have searched, but cannot find a straight forward way to have the two comuters interact. We have many educational CD's that are abailable on the eMac, but not directly on the OLPC since it does not have a CD drive.
Logged

#5 Re: VNC-type server on OLPC?

ktrout153
Commenter

Posts: 25


January 05, 2008, 05:50:55 PM

A VNC server/client is the same regardless of the host OS.  If you have a VNC server on your Mac, like the ones you listed, you should be connect to them via a VNC client on the XO.  The GUI may be different, but the process is the same.

I'd recommend that you hunt down a tutorial on VNC in general and go from there.  Typically VNC is as simple as turning on the server, typing in the server IP on the client and setting one or two other options before hitting the connect button. 


Kilgore Trout
Logged

#6 Re: VNC-type server on OLPC?

unrequited
Senior Contributor
**
Posts: 120



January 05, 2008, 06:03:54 PM

...yup, unless they version of X that you're running disables the hooks as a security measure heh.

I guess it's still good to use when I want to "dock" my XO next to my desktop, I'll just have to use a keyboard/mouse directly connected to the XO and view the display on my 22" LCD. > ) Not a complete loss.
Logged

-Unrequited

#7 Re: VNC-type server on OLPC?

ktrout153
Commenter

Posts: 25


January 05, 2008, 06:33:57 PM

If you install vnc-server from the yum repositories, you can get a VNC server running on the XO that lets you control it. It creates a ~/.vnc directory with a xstartup file.  Replace this file with whatever X startup you want.  In my case it was my .xinitrc with startxfce4.  Then you start the server and connect to it from any VNC client. 

And it works.  I am on my powerbook (Chicken o' VNC), connected to the XO via VNC writing this in Opera.  Also, using a Vino VNC server, I was able to connect to my powerbook using the XO.

Evidently the one that came with it was a view-only server.  Great for presentations, bad for geeks.


Good Luck.

Kilgore Trout
Logged

#8 Re: VNC-type server on OLPC?

Mike Lee
Global Moderator
Master Contributor
****
Posts: 348


I'm curious about everything.


WWW
January 05, 2008, 07:43:42 PM

Thanks for verifying the yum method for installing a VNC server on the XO. I have been using wget as described on the OLPC wiki. Would you mind listing out the steps of a basic install and launch for those not using xfce?
« Last Edit: January 05, 2008, 07:48:23 PM by Mike Lee » Logged

Member of the OLPC Learning Club - Washington, D.C., and a sponsor of the Simplicity Research Consortium at the MIT Media Lab.

#9 Re: VNC-type server on OLPC?

unrequited
Senior Contributor
**
Posts: 120



January 05, 2008, 08:03:28 PM

If you install vnc-server from the yum repositories, you can get a VNC server running on the XO that lets you control it.
Unfortunately I want to run this under Sugar... and Sugar's locked out. : (

I haven't worked up enough courage to get a different X on here yet.
Logged

-Unrequited

#10 Re: VNC-type server on OLPC?

Mike Lee
Global Moderator
Master Contributor
****
Posts: 348


I'm curious about everything.


WWW
January 05, 2008, 08:12:07 PM

Oh, I misunderstood. I was the install from the yum repositories would work with Sugar. Oh well.
Logged

Member of the OLPC Learning Club - Washington, D.C., and a sponsor of the Simplicity Research Consortium at the MIT Media Lab.

#11 Re: VNC-type server on OLPC?

ktrout153
Commenter

Posts: 25


January 06, 2008, 06:04:29 AM

I ran sugar via VNC this morning.  Make sure you installed "vnc-server" from the repositories.  The standard "vnc" is the same one that is installed by default.

Install it and make sure the ~/.vnc/xstartup file contains "sugar" and then run vncserver.  It should start up the server and you should be able to connect to it.  For some reason, I was not able to connect to display 0, so I just connected to display 1 instead.

Don't give up quite yet...

Kilgore Trout
Logged

#12 Re: VNC-type server on OLPC?

kcdistiller
New

Posts: 4


January 07, 2008, 06:24:04 PM

i'm still a bit lost with this topic. I'd like to run vncviewer on the XO and something like Vine Server on the Mac. Others have connected these two type of computers, but I cannot  seem to get the computers to "see" each other. What port should be used on the Mac side? It currntly has 5901 open. Can the port on the XO be changed? Or, does it even need to be changed? Thanks everyone for all of the help that I've found in this forum!
Logged

#13 Re: VNC-type server on OLPC?

unrequited
Senior Contributor
**
Posts: 120



January 07, 2008, 11:06:07 PM

Interesting workaround ktrout153... you're just connecting to a different instance of sugar though right? Or does one instance of sugar have multiple displays? (I'm still learning)

I can't test it out right now becuase I don't have access to a second computer, but I'll play with it once I get a chance.
Logged

-Unrequited

#14 Re: VNC-type server on OLPC?

ktrout153
Commenter

Posts: 25


January 08, 2008, 10:02:30 AM

I think that the VNC server does create extra instances of the X server.  I can log out of the VNC client and when I log back in, my desktop is up and running still just like I left it.  Also, I noticed that the VNC server created 5 or 6 lockfiles in the ~/.vnc directory.  I presume that this is because it created 6 different instances that you can connect to.  I'd bet that this can be changed via some settings file.

I used the Vine server's defaults on my Mac and was able to connect directly from the XO.  Don't rely on the VNC client "seeing" the Mac VNC server.  Tell it what the server IP is and you should be good.

If you are having trouble still, be more specific about the problems and I'll see if I can decipher them.

Kilgore
Logged
Pages: [1] 2 3
Print
Jump to:  

Members
Total Members: 2405
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 27
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 11
Total: 11