Install Sun Looking glass Desktop environment in Ubuntu

Sponsored Link
Sun Microsystems is contributing Project Looking Glass, based on Java™ technology, to the open source community.
Project Looking Glass is an exploratory project to bring innovative 3D features to the desktop environment. The desktop interface will offer an intuitive, new 3D environment to interact with desktop applications featuring window transparency, rotation, zoom, multiple desktop workspaces, and miniaturization. Project Looking Glass offers a platform to realize a far richer and more entertaining user experience for existing and new applications in 2D or 3D. The technology enables developers to build highly visual 3D desktops and applications that will run on Linux systems such as Sun's Java Desktop System. The Solaris™ environment will be supported in the near future.

Install Looking glass in Ubuntu

There are 3 LG3D repositories. The stable repository has the latest stable releases (0.8.1, 1.0 etc.). The testing repository has the pre-release builds (alpha, beta etc.) for the latest version and the unstable repsoitory has the nightly builds.

Edit the /etc/apt/sources.list file

sudo vi /etc/apt/sources.list

and add the following line which is suitable for you save the file and exit.

# LG3D repsoitories

For stable

deb http://javadesktop.org/lg3d/debian stable contrib

For testing

# deb http://javadesktop.org/lg3d/debian testing contrib

For Unstable

# deb http://javadesktop.org/lg3d/debian unstable contrib

Suggested one is stable one

Now you need to update the repositories using the following command

sudo apt-get update

Install looking glass using the following command

sudo apt-get install lg3d-core

This will install all the required packages for looking glass desktop environment.

If you want to access the Looking glass Desktop environment logout from the existing session and now you are on ubuntu
login screen in this you need to select options—> selectsession

You should see the following screen here you have to select looking glass and click on change session


Now it will disply the following screen in this you want to change to looking glass just for this session or if you want to make looking glass your default desktop environment.

Now it will load the looking glass desktop and looks like the following screen

One more nice screenshots of Ubuntu Looking Glass Desktop

Sponsored Link

You may also like...

27 Responses

  1. Martins says:

    Stabel, testing and unstable sources are not working. Is there any other?

  2. Martins says:

    Sorry, I mean stable.

  3. admin says:

    may be you can try after some time there might be some problem with web site

  4. What are Project Looking Glass’ recommended system requirements?

    An will it not run awfully slow since it is built upon Java?

  5. No, you will be amazed as fast Java 3D and Looking Glass are running 🙂

  6. Viper says:

    I used the stable repository with Edgy and I get the following error:

    E: /var/cache/apt/archives/lg3d-jdk_1.6.0+b104_i386.deb: subprocess pre-installation script returned error exit status 1

  7. Balachmar says:

    I have the same problem as stated by Viper.
    I am also using Edgy eft. And the repos.

  8. Brad says:

    Add these lines in sources.list

    # LG3D repositories
    deb http://javadesktop.org/lg3d/debian stable contrib

    Run apt-get update

    If it did not work…try adding this line in addition under LG3D repositories,
    deb http://javadesktop.org/lg3d/debian dists stable contrib

    Then run apt-get update again, then run apt-get install and everything should start downloading, the file sizes a quite large so I hope you have a high-speed connection.

    B-Rad

  9. stimpy says:

    the demo runs fine (slow, of course) from an usb device but for ubuntu, java3d ask for glx 1.3 (i dont have a good graphic card)

    could be that only the ubuntu drivers of my card don’t support glx 1.3?
    strange that a mini linux has better drivers than the other o_O

    the glx 1.3 needed by j3d can be bypassed?

    aaah… too many questions XD

    thanks and sorry for my bad english

  10. Jester says:

    How about a tutorial on how the key commands for LG?

  11. marko says:

    During installation he did not find XORG directory… Something X11 missing. HELP??????????

  12. bhanu says:

    hey its downloaded fully while installing it shows this error

    E: lg3d-core: subprocess post-installation script returned error exit status 1

    help??

  13. Kat says:

    Hi…my bf and I are running Gutsy. and we came up with the same

    error:

    E: /var/cache/apt/archives/lg3d-jdk_1.6.0+b104_i386.deb: subprocess pre-installation script returned error exit status 1

    We tried reinstalling, but still got the same error. Plus, there was a warning before we first installed saying that one of the packages was “unsigned.” I’d be more worried about security issues re: the unauthenticated stuff if we were using Microsoft Windows, but do you think that the error has to do with the unsigned package?

    Also, my bf tried to download MySQL last week and had some issues, therefore there are some packages from the Synaptic Manager that won’t install correctly as a result. Not sure why.

    Might there be a connection between the faulty installation of Looking Glass and the faulty installation of MySQL?

    Sorry if my message wasn’t more clear…the S. Other and I are still relatively new to Linux (we’ve only used it about 2 yrs).

    What’s been other people’s experience? Got any hints for a noob?

  14. admin says:

    but do you think that the error has to do with the unsigned package?

    No

    faulty installation of Looking Glass and the faulty installation of MySQL?

    I believe fault installation of looking glass

  15. Jeff Martens says:

    My experiences were similar to the above. I went ahead with the install against my better judgment when I saw the authentication failure. The install bombed fro me much as for the others above, and I went ahead and tried to start it, and LG crashed right away as well. Uninstalling and removing the site from my apt config.

  16. Jeff says:

    /usr/share/lg3d/bin/postinstall: line 43: cd: /usr/share/lg3d/bin/../lib/linux-/lg3d-x11/programs/Xserver: No such file or directory
    chown: cannot access `Xorg’: No such file or directory
    chgrp: cannot access `Xorg’: No such file or directory
    chmod: cannot access `Xorg’: No such file or directory
    dpkg: error processing lg3d-core (–configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    lg3d-core
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  17. deez says:

    i got the same error as jeff.. any help?

  18. Prakash says:

    Even I have the same error as Jeff. Any known fix for the same ?

  19. Andrew says:

    I got the same error… there’s issues with the installation scripts, found here:

    sudo gedit /usr/share/lg3d/bin/postinstall
    /usr/share/lg3d/bin/setup

    since it gives you line errors, open these files with gedit (sudo gedit /path/i/gave/above) and scroll down to the lines that it lists. for the postinstall error, it’s failing to properly detect the architecture, and therefore getting an invalid file existence. you can eliminate this by going into the script and changing the ‘detected path’ on line 43 to the absolute path that you need… for me i changed it to this:

    cd /usr/share/lg3d/lib/linux-i686/lg3d-x11/programs/Xserver

    though note that i have a 64 bit architecture, so if you have a 32 bit, then you will need 386 instead of 686, i believe. alternatively, you can just navigate to the
    folder “/usr/share/lg3d/lib/linux-i686/lg3d-x11/programs/Xserver” and run the chown, chgrp, and chmod listed in the script yourself, and save yourself the trouble.

    for the ‘setup’ script error, it starts on line 68. assuming you’re using ubuntu, you can comment out that big nested if/else statement there, leaving only 1 “export OS=”linux” ” and ” export ARCH=”i686″ “(for 64 bit) uncommented, and the script should then work.

    im still having an issue with getting it to start, but i think it’s just because it’s assuming my screen is display0, rather than display1. heres to hopin, cause this desktop is freakin sweet!

    Andrew

  20. ON3i1 says:

    Thanks for the introduction to Looking Glass– but I, like many others, apparently, had some difficulty with the install. The problem seems to be due to the lack of the deprecated UNIX command ‘arch.’ We’ve got to work around this.

    1) Not sure if it’s necessary, but made sure the Java runtime environment is installed (Java 6 and OpenJDK in applications->Add/Remove)

    2) We need to create an executable file in /bin named ‘arch’. So at the command line, do the following:
    2b) sudo echo ‘uname -m’> /bin/arch
    2c) sudo chmod 755 /bin/arch

    3) Carry out the install described at the top of this page. Now that you’ve got ‘arch’ the install will be able to automatically identify your architecture– saving the trouble of having to change a bunch of files.

    4) I’d also test this install procedure in a VirtualBox virtual machine before proceeding to your actual system.

    I hope that’s helpful– Looking Glass is really a lot of fun.

  21. ethnopunk says:

    Same problem with the binaries I downloaded from Sun. Can’t find the path to Xorg, and not sure how doing this manually will help. What are the operands for each of the commands? Is there a way around this bug?

  22. ethnopunk says:

    Problem in Ubuntu.

    No /bin/arch command

    solution?

    cd /bin
    vi arch
    then type inside the file
    uname -m
    then save it
    then
    chmod +x arch

    success
    success

  23. Ethnopunk says:

    Which gave way to another problem when logging into the session.

    CONFIG: Using DefaultUniverseFactory
    2009/07/19 11:29:02 org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler
    SEVERE: Unhandled error, see /var/tmp/lgserver.log for details.
    java.lang.UnsatisfiedLinkError: /usr/share/lg3d-jdk/jre/lib/i386/libj3dcore-ogl.so: libGL.so.1: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:138)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:135)
    at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:95)
    at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:785)
    at javax.media.j3d.VirtualUniverse.(VirtualUniverse.java:259)
    at javax.media.j3d.GraphicsConfigTemplate3D.getBestConfiguration(GraphicsConfigTemplate3D.java:302)
    at java.awt.GraphicsDevice.getBestConfiguration(GraphicsDevice.java:158)
    at com.sun.j3d.utils.universe.Viewer.(Viewer.java:543)
    at com.sun.j3d.utils.universe.ConfigView.createViewer(ConfigView.java:466)
    at com.sun.j3d.utils.universe.ConfigContainer.processViews(ConfigContainer.java:726)
    at com.sun.j3d.utils.universe.ConfigContainer.processConfig(ConfigContainer.java:675)
    at com.sun.j3d.utils.universe.ConfigContainer.(ConfigContainer.java:235)
    at com.sun.j3d.utils.universe.ConfigContainer.(ConfigContainer.java:171)
    at org.jdesktop.lg3d.displayserver.DefaultUniverseFactory.createUniverse(Unknown Source)
    at org.jdesktop.lg3d.displayserver.DisplayServerControl.initialize(Unknown Source)
    at org.jdesktop.lg3d.displayserver.AppConnectorPrivate.getAppConnector(Unknown Source)
    at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.(Unknown Source)
    at org.jdesktop.lg3d.displayserver.Main.main(Unknown Source)

  24. nitrofurano says:

    i can’t install Looking Glass on Ubuntu Karmic.
    when doing ‘sudo dpkg -i lg3d-core_1.0.1_dev_i686.deb it shows in the terminal:

    dpkg-deb (subprocess): short read in buffer_copy (failed to write to pipe in copy)
    dpkg-deb: subprocess paste returned error exit status 2
    dpkg: error processing lg3d-core1.0.1_dev_i686.deb (–install):
    short read in buffer_copy (backend dpkg-deb during ‘./usr/share/lg3d/lib/linux-i686/lg3d-x11/exports/lib/modules/dri/i915_dri.so’)
    Errors were encountered while processing:
    lg3d-core1.0.1_dev_i686.deb

  25. twitch says:

    When running sudo apt-get install lg3d…. I get this error. I have tested with stable, testing and unstable, none work. I’m assuming the site is having trouble because I tried to download the .deb files manually, but the links don’t work either.

    Ign http://javadesktop.org stable/contrib Packages
    Err http://javadesktop.org stable/contrib Packages
    404 Not Found
    98% [Waiting for headers]

  26. K.Riyaz says:

    can i get the .deb file directly from net (ie) may get it downloaded from other os and install in ubuntu??

  27. do first this person says ubuntu not debian these sources are for debian second theirs no such web link 404 means it can’t read it or its not their etc..
    10.04 uses lucid and 10.10 uses a newer name in source.list and 11.04 also uses newer name in source.list not useable with debian source.list web address to make it simple anuff for sure
    second thing the sources.list uses like lucid or newer version of ubuntu , it’s not in the correct format for a ubuntu source.list is different then the debian source you can’t use debian source.list files on a ubuntu system it works differently that would be like trying to use gentoo commands on a debian or ubuntu you can’t because the command does not exist or was never their in the first place

Leave a Reply

Your email address will not be published. Required fields are marked *