exporting Squeak's DISPLAY to another machine?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

exporting Squeak's DISPLAY to another machine?

Chris Muller-4
I am running Ubuntu Server 8.04 (no desktop).  I've installed the
3.10-4 VM via the included INSTALL script (after changing to root).

I am able to launch an image headless just fine:

  squeak -vm display=none myImage.image &

Now I want to run an image and display it on my remote laptop.  I ssh
-X into the Ubuntu server box, but when I try to launch the image:

  squeak myImage.image &
  squeak: could not find any display driver

Make sure it is not a permissions issue:

  sudo chmod -R 777 /usr/local/lib/squeak

Make sure it looks right:

  ls -l /usr/local/lib/squeak/3.10-4/vm-display-X11

"-rwxrwxrwx 1 chris chris 217882 2008-11-10 18:43
/usr/local/lib/squeak/3.10-4/vm-display-X11"

Ok, it's there now with open permissions.  Try again:

  squeak -vm display=X11 myImage.image &

Same result.  Try exporting my DISPLAY:

  export DISPLAY=192.168.0.4:0.0
  squeak -vm display=X11 vanilla.image &

Now I get a different message:

could not find display driver vm-display-X11; either:
  - check that /usr/local/lib/squeak/3.10-4/vm-display-X11.so exists, or
  - use the '-plugins <path>' option to tell me where it is, or
  - remove DISPLAY from your environment.

Ah ha, could the problem be it is looking for a .so extension on the
plugin?  Copy it to that name too:

  cp -p /usr/local/lib/squeak/3.10-4/vm-display-X11
/usr/local/lib/squeak/3.10-4/vm-display-X11.so

I still get the same result, but it's tellling me to remove DISPLAY
from my environment..?  Ok, done.

Shoot, back to the old message:

  squeak: could not find any display driver

Now I try the same thing against a different server, a Ubuntu 8.04 (desktop).

  xhost  myServer
  ssh -X chris@myServer
  squeak myImage.image &

It works just fine, the image displays and operates on my laptop!  So,
it would seem some installation problem on my Ubuntu *server* edition.

I'm starting to pull my hair, anyone have any ideas?

 - Chris

Reply | Threaded
Open this post in threaded view
|

Re: exporting Squeak's DISPLAY to another machine?

Franz Josef Konrad-2
Chris,

I don't know if this will help you but I could imagine you try to
connect a root server that has no graphic card?! I had to do this once
ago and used therefore the virtual X-Server xvfb which was then
connected via VNC with X11vnc.

I did this with VMware workstation but it should work also with Squeak.
E.g. to start a xterm this way I did
/usr/X11R6/bin/Xvfb :1 -screen 0 1024x786x24 -fbdir /tmp :1 export
DISPLAY=localhost:1; xterm &
x11vnc -display :1

and from remote connect with a VNC client my-ip-address:5900 to the
virtual X-Server.

Franz Josef

Am 03.01.2010 19:05, schrieb Chris Muller:

> I am running Ubuntu Server 8.04 (no desktop).  I've installed the
> 3.10-4 VM via the included INSTALL script (after changing to root).
>
> I am able to launch an image headless just fine:
>
>    squeak -vm display=none myImage.image&
>
> Now I want to run an image and display it on my remote laptop.  I ssh
> -X into the Ubuntu server box, but when I try to launch the image:
>
>    squeak myImage.image&
>    squeak: could not find any display driver
>
> Make sure it is not a permissions issue:
>
>    sudo chmod -R 777 /usr/local/lib/squeak
>
> Make sure it looks right:
>
>    ls -l /usr/local/lib/squeak/3.10-4/vm-display-X11
>
> "-rwxrwxrwx 1 chris chris 217882 2008-11-10 18:43
> /usr/local/lib/squeak/3.10-4/vm-display-X11"
>
> Ok, it's there now with open permissions.  Try again:
>
>    squeak -vm display=X11 myImage.image&
>
> Same result.  Try exporting my DISPLAY:
>
>    export DISPLAY=192.168.0.4:0.0
>    squeak -vm display=X11 vanilla.image&
>
> Now I get a different message:
>
> could not find display driver vm-display-X11; either:
>    - check that /usr/local/lib/squeak/3.10-4/vm-display-X11.so exists, or
>    - use the '-plugins<path>' option to tell me where it is, or
>    - remove DISPLAY from your environment.
>
> Ah ha, could the problem be it is looking for a .so extension on the
> plugin?  Copy it to that name too:
>
>    cp -p /usr/local/lib/squeak/3.10-4/vm-display-X11
> /usr/local/lib/squeak/3.10-4/vm-display-X11.so
>
> I still get the same result, but it's tellling me to remove DISPLAY
> from my environment..?  Ok, done.
>
> Shoot, back to the old message:
>
>    squeak: could not find any display driver
>
> Now I try the same thing against a different server, a Ubuntu 8.04 (desktop).
>
>    xhost  myServer
>    ssh -X chris@myServer
>    squeak myImage.image&
>
> It works just fine, the image displays and operates on my laptop!  So,
> it would seem some installation problem on my Ubuntu *server* edition.
>
> I'm starting to pull my hair, anyone have any ideas?
>
>   - Chris
>


Reply | Threaded
Open this post in threaded view
|

Re: exporting Squeak's DISPLAY to another machine?

Miguel Cobá
In reply to this post by Chris Muller-4
I have never exported manually the DISPLAY variable.

I install only the basic packages (no X11 or desktop environment).
Then I install
by connecting with ssh the package

aptitude install xbase-clients

and after that I connect with:

ssh -X user@server

and run the program

squeakvm my.image &

and is shown in my local laptop but running on the remote server.

Cheers,
Miguel Cobá

On Sun, Jan 3, 2010 at 12:05 PM, Chris Muller <[hidden email]> wrote:

> I am running Ubuntu Server 8.04 (no desktop).  I've installed the
> 3.10-4 VM via the included INSTALL script (after changing to root).
>
> I am able to launch an image headless just fine:
>
>  squeak -vm display=none myImage.image &
>
> Now I want to run an image and display it on my remote laptop.  I ssh
> -X into the Ubuntu server box, but when I try to launch the image:
>
>  squeak myImage.image &
>  squeak: could not find any display driver
>
> Make sure it is not a permissions issue:
>
>  sudo chmod -R 777 /usr/local/lib/squeak
>
> Make sure it looks right:
>
>  ls -l /usr/local/lib/squeak/3.10-4/vm-display-X11
>
> "-rwxrwxrwx 1 chris chris 217882 2008-11-10 18:43
> /usr/local/lib/squeak/3.10-4/vm-display-X11"
>
> Ok, it's there now with open permissions.  Try again:
>
>  squeak -vm display=X11 myImage.image &
>
> Same result.  Try exporting my DISPLAY:
>
>  export DISPLAY=192.168.0.4:0.0
>  squeak -vm display=X11 vanilla.image &
>
> Now I get a different message:
>
> could not find display driver vm-display-X11; either:
>  - check that /usr/local/lib/squeak/3.10-4/vm-display-X11.so exists, or
>  - use the '-plugins <path>' option to tell me where it is, or
>  - remove DISPLAY from your environment.
>
> Ah ha, could the problem be it is looking for a .so extension on the
> plugin?  Copy it to that name too:
>
>  cp -p /usr/local/lib/squeak/3.10-4/vm-display-X11
> /usr/local/lib/squeak/3.10-4/vm-display-X11.so
>
> I still get the same result, but it's tellling me to remove DISPLAY
> from my environment..?  Ok, done.
>
> Shoot, back to the old message:
>
>  squeak: could not find any display driver
>
> Now I try the same thing against a different server, a Ubuntu 8.04 (desktop).
>
>  xhost  myServer
>  ssh -X chris@myServer
>  squeak myImage.image &
>
> It works just fine, the image displays and operates on my laptop!  So,
> it would seem some installation problem on my Ubuntu *server* edition.
>
> I'm starting to pull my hair, anyone have any ideas?
>
>  - Chris
>
>

Reply | Threaded
Open this post in threaded view
|

Re: exporting Squeak's DISPLAY to another machine?

Markus Lampert
In reply to this post by Chris Muller-4
Hey Chris,

The last time I had that problem with vm-display-X11 I ran through a similar odyssey. I ended up running the squeak-vm through strace and it turned out to be libGL.so.1 (IIRC), the 32-bit version of it. Once I created a symbolic link in /usr/lib32/ everything was fine.

Hope this helps,
Markus



----- Original Message ----

> From: Chris Muller <[hidden email]>
> To: squeak dev <[hidden email]>
> Sent: Sun, January 3, 2010 10:05:36 AM
> Subject: [squeak-dev] exporting Squeak's DISPLAY to another machine?
>
> I am running Ubuntu Server 8.04 (no desktop).  I've installed the
> 3.10-4 VM via the included INSTALL script (after changing to root).
>
> I am able to launch an image headless just fine:
>
>   squeak -vm display=none myImage.image &
>
> Now I want to run an image and display it on my remote laptop.  I ssh
> -X into the Ubuntu server box, but when I try to launch the image:
>
>   squeak myImage.image &
>   squeak: could not find any display driver
>
> Make sure it is not a permissions issue:
>
>   sudo chmod -R 777 /usr/local/lib/squeak
>
> Make sure it looks right:
>
>   ls -l /usr/local/lib/squeak/3.10-4/vm-display-X11
>
> "-rwxrwxrwx 1 chris chris 217882 2008-11-10 18:43
> /usr/local/lib/squeak/3.10-4/vm-display-X11"
>
> Ok, it's there now with open permissions.  Try again:
>
>   squeak -vm display=X11 myImage.image &
>
> Same result.  Try exporting my DISPLAY:
>
>   export DISPLAY=192.168.0.4:0.0
>   squeak -vm display=X11 vanilla.image &
>
> Now I get a different message:
>
> could not find display driver vm-display-X11; either:
>   - check that /usr/local/lib/squeak/3.10-4/vm-display-X11.so exists, or
>   - use the '-plugins ' option to tell me where it is, or
>   - remove DISPLAY from your environment.
>
> Ah ha, could the problem be it is looking for a .so extension on the
> plugin?  Copy it to that name too:
>
>   cp -p /usr/local/lib/squeak/3.10-4/vm-display-X11
> /usr/local/lib/squeak/3.10-4/vm-display-X11.so
>
> I still get the same result, but it's tellling me to remove DISPLAY
> from my environment..?  Ok, done.
>
> Shoot, back to the old message:
>
>   squeak: could not find any display driver
>
> Now I try the same thing against a different server, a Ubuntu 8.04 (desktop).
>
>   xhost  myServer
>   ssh -X chris@myServer
>   squeak myImage.image &
>
> It works just fine, the image displays and operates on my laptop!  So,
> it would seem some installation problem on my Ubuntu *server* edition.
>
> I'm starting to pull my hair, anyone have any ideas?
>
> - Chris



      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.

Reply | Threaded
Open this post in threaded view
|

Re: exporting Squeak's DISPLAY to another machine?

Chris Muller-3
Turns out I had just needed to startx.