installing looking glass on Debian Lenny/Sid amd64 machine...

View: New views
3 Messages — Rating Filter:   Alert me  

installing looking glass on Debian Lenny/Sid amd64 machine...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Folks,

I successfully installed looking glass on an AMD64 machine with an AMD3200 Sempron chip in it plus an Nvidia 8500GT graphics card.

I have installed and configured nvidia drivers using the Debian Nvidia Howto instructions.

When I first tried to install looking glass I used the debian testing repository for it.

I got an error running apt-get install lg3d-core which is a known error.

I found a web site http://www.go2linux.org/Looking-glass-on-debian-Etch

which was very helpful because it discussed the same error on it and gave a way to fix the error that I used that worked:

**************************************

This is what i get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
lg3d-core is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up lg3d-core (1.0.0) ...
/usr/share/lg3d/bin/postinstall: line 10: /bin/arch: No such file or directory
/usr/share/lg3d/bin/../bin/add-lg-to-gdm: line 28: /bin/arch: No such file or directory
Success. LG has been added as a gdm session.
/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)

any help!?

    * reply

A solution would be ...
Submitted by mtakabon33 (not verified) on Sun, 01/13/2008 - 20:32.

A solution would be ... .
The script '/usr/share/lg3d/bin/postinstall' is called from the Postinst script file '/var/lib/dpkg/info/lg3d-core.postinst'.
The 10-th line of the file "/usr/share/lg3d/bin/postinstall" is
ARCH=`/bin/arch`.
The error messages indicates the command '/bin/arch' not existing
in your machine. Note the line
/usr/share/lg3d/bin/../lib/linux-/lg3d-x11/programs/Xserver
where 'linux-' comes from linux-${ARCH}.
It shoud be 'linux-i686' and so on.
So far, the arch command had been supplied from the (Debian)
package 'util-linux'. But now this command is not included. See
http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=446023
In the above report, it is suggested that
using 'uname -m' instead of 'arch' is much better.
So, an easiest way is the following.

With root permission
$ cd /bin; echo 'uname -m' > /bin/arch; chmod 755 /bin/arch

After doing this, you would be able to install the package lg3d-core.
$ apt-get install lg3d-core


*******************************

I called up a root terminal window and typed in this command

$ cd /bin; echo 'uname -m' > /bin/arch; chmod 755 /bin/arch

as advised and then aptitude successfully installed the program.

I am able to run looking glass on that machine.

Since then I have bought another amd64 box.  This one is a dual core machine with an Nvidia 8600GT graphics card in it.

I installed Debian Lenny/Sid etc on it and the long winded nonsense required to install the nvidia drivers......

I then installed looking glass on this machine but it won't fire up.

I think I have done exactly the same things as I did with the other amd64 box.

Here is the /var/tmp/lgserver.log file output when I try to fire up the lg session:

debian:/var/tmp# more lgserver.log

LG3D Dir         : /usr/share/lg3d/
LGCONFIG         : file:////etc//lg3d/lgconfig_1p_x.xml
LG_SETTINGS      :  -Dlg.etcdir=/etc/ -Dlg.resourcedir=/usr/share/lg3d/resources/ -Dlg.use3dtoolkit=true -Dlg.fws.mode=app -Dlg.lgserverdisplay=:1 -Dawt.toolkit=org.jdesktop.lg3d.awt.xlg3dtoolkit  -Dlg
.fws.x11.interfaceRequired=5.0
LGX11HOME        : /usr/share/lg3d//lib/linux-i686/lg3d-x11
X Server Version : dev-0-9-0-3
JAVA_HOME        : /usr/share/lg3d-jdk
CLASSPATH        : /usr/share/lg3d//lib/lg3d-core.jar:/usr/share/lg3d//lib/lg3d-demo-apps.jar:/usr/share/lg3d//ext/j3d-contrib-utils.jar:/usr/share/lg3d//ext/escher-0.2.2.lg.jar:/usr/share/lg3d//ext/sa
tin-v2.3.jar:/usr/share/lg3d//ext/app/bgmanager.jar:
PATH             : /usr/share/lg3d-jdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/share/lg3d//lib/i386
LD_LIBRARY_PATH  : /usr/share/lg3d//lib/linux-i686/lg3d-x11/exports/lib:/usr/share/lg3d//lib/linux-i686::/usr/share/lg3d//lib/linux-i686/lg3d-x11/exports/lib:/usr/share/lg3d//lib:/usr/share/lg3d//ext/e
scher/platform/linux/i686/lib
JAVACMD          : /usr/share/lg3d-jdk/bin/java -client -XX:CompilerThreadPriority=4 -Xms128m -Xmx256m -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -Dlg.appcodebase=file:///usr/share/lg3d//ext/app  -
Dj3d.useFreeLists=false -Xbootclasspath/a:/usr/share/lg3d//lib/lg3d-awt-toolkit.jar:/usr/share/lg3d//lib/fws-x11-kbd-utils.jar    -Dj3d.sortShape3DBounds=true -Dlg.configurl=file:////etc//lg3d/lgconfig
_1p_x.xml -Dlg.displayconfigurl=file:////etc//lg3d/displayconfig/j3d1x1-nbfs  -Dlg.etcdir=/etc/ -Dlg.resourcedir=/usr/share/lg3d/resources/ -Dlg.use3dtoolkit=true -Dlg.fws.mode=app -Dlg.lgserverdisplay
=:1 -Dawt.toolkit=org.jdesktop.lg3d.awt.xlg3dtoolkit  -Dlg.fws.x11.interfaceRequired=5.0 org.jdesktop.lg3d.displayserver.Main
30-May-2008 09:25:04 org.jdesktop.lg3d.displayserver.Main main
INFO:
        LG3D Version              : 1-0-0
        LG3D Build Time           : 13:07 PST 14 Dec 2006(0612141307)
        LG3D Build Type           : rc1
        LG3D Java Version         : 1.6.0-rc

        Java Version              : 1.6.0-rc
        Java Vendor               : Sun Microsystems Inc.
        Java Class Version        : 50.0
        Java Class Path           : /usr/share/lg3d//lib/lg3d-core.jar:/usr/share/lg3d//lib/lg3d-demo-apps.jar:/usr/share/lg3d//ext/j3d-contrib-utils.jar:/usr/share/lg3d//ext/escher-0.2.2.lg.jar:/usr/s
hare/lg3d//ext/satin-v2.3.jar:/usr/share/lg3d//ext/app/bgmanager.jar:
        App Codebase              : file:///usr/share/lg3d//ext/app

        OS Name                   : Linux
        OS Arch                   : i386
        OS Version                : 2.6.24-1-amd64

        Def. Locale Language Code : en
        Def. Locale Country Code  : GB

30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig loadConfig
INFO: Loading config file:////etc//lg3d/lgconfig_1p_x.xml
30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig loadConfig
INFO: Config file contents:
        <?xml version="1.0" encoding="UTF-8"?>
        <java version="1.4.2_04" class="java.beans.XMLDecoder">
         <object class="org.jdesktop.lg3d.displayserver.LgConfig">
          <void property="x11IntegrationEnabled">
           <boolean>true</boolean>
          </void>
          <void property="clientServer">
           <boolean>false</boolean>
          </void>
          <void property="foundationWinSys">
           <string>org.jdesktop.lg3d.displayserver.fws.x11.WinSysX11</string>
          </void>
         </object>
        </java>

30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig loadConfig
INFO: Finished loading config
30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig logConfig
CONFIG: SceneManager org.jdesktop.lg3d.scenemanager.glassy.GlassySceneManager
30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig logConfig
CONFIG: FoundationWinSys org.jdesktop.lg3d.displayserver.fws.x11.WinSysX11
30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig logConfig
CONFIG: NativeWinIntegration org.jdesktop.lg3d.displayserver.nativewindow.x11.X11IntegrationModule
30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig logConfig
CONFIG: NativeWinLookAndFeel org.jdesktop.lg3d.scenemanager.utils.decoration.GlassyNativeWindowLookAndFeel
30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig logConfig
CONFIG: ClientServer false
30-May-2008 09:25:05 org.jdesktop.lg3d.displayserver.LgConfig logConfig
CONFIG: X11IntegrationEnabled true
30-May-2008 09:25:07 org.jdesktop.lg3d.displayserver.DisplayServerControl initialize
CONFIG: Display configuration overridden by lg.displayconfigurl property to file:////etc//lg3d/displayconfig/j3d1x1-nbfs
30-May-2008 09:25:07 org.jdesktop.lg3d.displayserver.DisplayServerControl initialize
CONFIG: Using DefaultUniverseFactory
30-May-2008 09:25:08 org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler <init>
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.<clinit>(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.<init>(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.<init>(ConfigContainer.java:235)
        at com.sun.j3d.utils.universe.ConfigContainer.<init>(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.<init>(Unknown Source)
        at org.jdesktop.lg3d.displayserver.Main.main(Unknown Source)
X connection to :0 host broken (explicit kill or server shutdown)
debian:/var/tmp#

*********************************

I noticed some gripes in there concerning i386 stuff and this made me worry that somehow I had inadvertently installed the i386 lg3d deb file and not the amd64 one...

My apt.sources file contains the following entry:

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

to help apt find the looking glass deb files I need and install them on my machine.

If you look in the respository you see that if you go into the contrib directory you eventually get a choice between a binary-amd4 directory and a binary-i386 one as I recall.

Should I put

binary-amd64 after the entries I have in the apt/sources.list file to make sure I get the amd64 deb file or is apt smart enough to have found all the right deb files and installed them and the reason for lg not working is an entirely different one than this?

i.e. do I need this in my apt/sources.list file?

deb http://javadesktop.org/lg3d/debian testing contrib binary-amd64

Your comments are appreciated.

Regards

Michael Fothergill
[Message sent by forum member 'mikef20000' (mikef20000)]

http://forums.java.net/jive/thread.jspa?messageID=277482

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: installing looking glass on Debian Lenny/Sid amd64 machine...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Folks,

I used aptitude to remove the looking glass and then reinstalled it.

The output shows that it is installing the amd64 deb files.

debian:/etc/apt# apt-remove lg3d-core
bash: apt-remove: command not found
debian:/etc/apt# aptitude remove lg3d-core
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
Building tag database... Done    
The following packages have been kept back:
  aptitude capplets-data{a} evolution{a} evolution-common{a} evolution-data-server{a} evolution-data-server-common{a} evolution-exchange evolution-plugins foomatic-db-gutenprint gnome-applets{a}
  gnome-control-center{a} gnome-screensaver gnome-session{a} grub gs-common{a} gs-esp{a} hpijs ijsgutenprint{a} libedataserverui1.2-8{a} libgnome-window-settings1{a} libgnomekbd-common{a}
  libldap-2.4-2 libopal-2.2{a} libsemanage1 pciutils policycoreutils python-semanage selinux-policy-refpolicy-targeted vbetool xbase-clients{a} xorg xserver-xorg{a} xutils{a}
The following packages will be REMOVED:
  lg3d-core
0 packages upgraded, 0 newly installed, 1 to remove and 33 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
(Reading database ... 108471 files and directories currently installed.)
Removing lg3d-core ...
Success. LG has been removed as a gdm session.
Reading package lists... Done            
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done        
Building tag database... Done

   
debian:/etc/apt# aptitude install lg3d-core
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
Building tag database... Done    
The following packages have been kept back:
  aptitude capplets-data{a} evolution{a} evolution-common{a} evolution-data-server{a} evolution-data-server-common{a} evolution-exchange evolution-plugins foomatic-db-gutenprint gnome-applets{a}
  gnome-control-center{a} gnome-screensaver gnome-session{a} grub gs-common{a} gs-esp{a} hpijs ijsgutenprint{a} libedataserverui1.2-8{a} libgnome-window-settings1{a} libgnomekbd-common{a}
  libldap-2.4-2 libopal-2.2{a} libsemanage1 pciutils policycoreutils python-semanage selinux-policy-refpolicy-targeted vbetool xbase-clients{a} xorg xserver-xorg{a} xutils{a}
The following NEW packages will be installed:
  lg3d-core
0 packages upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Need to get 0B/63.7MB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package lg3d-core.
(Reading database ... 106603 files and directories currently installed.)
Unpacking lg3d-core (from .../lg3d-core_1.0.0+rc1_amd64.deb) ...
Setting up lg3d-core (1.0.0+rc1) ...
Success. LG has been added as a gdm session.
Reading package lists... Done            
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done        
Building tag database... Done    

I will check and see if it runs now.

It probably won't.

Michael Fothergill
[Message sent by forum member 'mikef20000' (mikef20000)]

http://forums.java.net/jive/thread.jspa?messageID=277827

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: installing looking glass on Debian Lenny/Sid amd64 machine...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Folks,

I checked it again and it still doesn't work.

Regards

Michael Fothergill
[Message sent by forum member 'mikef20000' (mikef20000)]

http://forums.java.net/jive/thread.jspa?messageID=277829

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...