ImageJ on ACER Aspire One

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

ImageJ on ACER Aspire One

Jon Harman-3
Hi,

I'm trying to get ImageJ working on my new ACER Aspire One.
Has anyone been able to do this?

This is what I have tried:

I have downloaded ij140-x86.tgz

unzipped the archive

in /etc/profile I added the line:
export LIBXCB_ALLOW_SLOPPY_LOCK=1

(I did this before the line:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
I am not sure if the position makes any difference.)

I edited the run file to use 256 instead of 512 megs.

opened a terminal and cd'ed into ImageJ

then typed ./run

But I get the error:
xcb_xlib_unlock: Assertion `c->xlib.lock` failed.

Any help would be appreciated.

Jon
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ on ACER Aspire One

Gabriel Landini
On Saturday 23 August 2008, Jon Harman wrote:
> I'm trying to get ImageJ working on my new ACER Aspire One.

Running what version of linux? I used to get this in suse 10.3, but not in 11.

> But I get the error:
> xcb_xlib_unlock: Assertion `c->xlib.lock` failed.

> in /etc/profile I added the line:
> export LIBXCB_ALLOW_SLOPPY_LOCK=1

according to what I found this should be:

export LIBXCB_ALLOW_SLOPPY_LOCK=true

Are you sure "1" == "true"?

> (I did this before the line:
> export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
> I am not sure if the position makes any difference.)

I read that this should be at the end of the file, not sure if it is critical.

> I edited the run file to use 256 instead of 512 megs.
>
> opened a terminal and cd'ed into ImageJ
>
> then typed ./run


Please post your run file to see where it points to.

Cheers

G.
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ on ACER Aspire One

Jon Harman-3
Hi,

The Linux version is Linpus Linux Lite.
I have tried changing the /etc/profile export to "true".  Still get the
error.

So it is a mystery.

Jon

Here is the /proc/version info:
Linux version 2.6.23.9lw ([hidden email]) (gcc version 4.1.2
20070925 (Red Hat 4.1.2-33)) #104 SMP PREEMPT Sat Jun 21 19:53:40 EDT 2008

Here is my env.  Note the line LIBXCB_ALLOW_SLOPPY_LOCK=true.

HOSTNAME=localhost
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
WINDOWID=56623136
USER=user
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
LD_LIBRARY_PATH=:/usr/acer/lib:/usr/acer/lib
GNOME_KEYRING_SOCKET=/tmp/keyring-MFhGvf/socket
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/736,unix/unix:/tmp/.ICE-unix/736
MAIL=/var/spool/mail/user
PATH=/usr/local/bin:/bin:/usr/bin:/usr/acer/bin:/sbin/:/usr/sbin/:/home/user/bin:/usr/acer/bin
QT_IM_MODULE=xim
INPUTRC=/etc/inputrc
PWD=/home/user
LIBXCB_ALLOW_SLOPPY_LOCK=true
XMODIFIERS=@im=SCIM
LANG=en_US.UTF-8
GNOME_KEYRING_PID=734
KDE_IS_PRELINKED=1
KDEDIRS=/usr
SHLVL=5
HOME=/home/user
LANGUAGE=en_US.UTF-8
LOGNAME=user
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6E7wxaa8y0,guid=8438f662b2377a119b1c310048afde68
XDG_DATA_DIRS=/usr/share
GST_PLUGIN_PATH=/usr/acer/lib/gstreamer-0.10
PKG_CONFIG_PATH=/usr/acer/lib/pkgconfig
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
GTK_IM_MODULE=scim-bridge
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
_=/bin/env




Gabriel Landini wrote:

> On Saturday 23 August 2008, Jon Harman wrote:
>> I'm trying to get ImageJ working on my new ACER Aspire One.
>
> Running what version of linux? I used to get this in suse 10.3, but not in 11.
>
>> But I get the error:
>> xcb_xlib_unlock: Assertion `c->xlib.lock` failed.
>
>> in /etc/profile I added the line:
>> export LIBXCB_ALLOW_SLOPPY_LOCK=1
>
> according to what I found this should be:
>
> export LIBXCB_ALLOW_SLOPPY_LOCK=true
>
> Are you sure "1" == "true"?
>
>> (I did this before the line:
>> export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
>> I am not sure if the position makes any difference.)
>
> I read that this should be at the end of the file, not sure if it is critical.
>
>> I edited the run file to use 256 instead of 512 megs.
>>
>> opened a terminal and cd'ed into ImageJ
>>
>> then typed ./run
>
>
> Please post your run file to see where it points to.
>
> Cheers
>
> G.
>
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ on ACER Aspire One

Jon Harman-3
Hi,

Surprising I found out that the Aspire One already has java installed!
(when I tried to install it)  When I used the java from that
installation ImageJ works just fine.  In fact this is a relatively fast
machine.

Jon


Jon Harman wrote:

> Hi,
>
> The Linux version is Linpus Linux Lite.
> I have tried changing the /etc/profile export to "true".  Still get the
> error.
>
> So it is a mystery.
>
> Jon
>
> Here is the /proc/version info:
> Linux version 2.6.23.9lw ([hidden email]) (gcc version 4.1.2
> 20070925 (Red Hat 4.1.2-33)) #104 SMP PREEMPT Sat Jun 21 19:53:40 EDT 2008
>
> Here is my env.  Note the line LIBXCB_ALLOW_SLOPPY_LOCK=true.
>
> HOSTNAME=localhost
> SHELL=/bin/bash
> TERM=xterm
> HISTSIZE=1000
> WINDOWID=56623136
> USER=user
> LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
>
> LD_LIBRARY_PATH=:/usr/acer/lib:/usr/acer/lib
> GNOME_KEYRING_SOCKET=/tmp/keyring-MFhGvf/socket
> SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/736,unix/unix:/tmp/.ICE-unix/736
> MAIL=/var/spool/mail/user
> PATH=/usr/local/bin:/bin:/usr/bin:/usr/acer/bin:/sbin/:/usr/sbin/:/home/user/bin:/usr/acer/bin
>
> QT_IM_MODULE=xim
> INPUTRC=/etc/inputrc
> PWD=/home/user
> LIBXCB_ALLOW_SLOPPY_LOCK=true
> XMODIFIERS=@im=SCIM
> LANG=en_US.UTF-8
> GNOME_KEYRING_PID=734
> KDE_IS_PRELINKED=1
> KDEDIRS=/usr
> SHLVL=5
> HOME=/home/user
> LANGUAGE=en_US.UTF-8
> LOGNAME=user
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6E7wxaa8y0,guid=8438f662b2377a119b1c310048afde68
>
> XDG_DATA_DIRS=/usr/share
> GST_PLUGIN_PATH=/usr/acer/lib/gstreamer-0.10
> PKG_CONFIG_PATH=/usr/acer/lib/pkgconfig
> LESSOPEN=|/usr/bin/lesspipe.sh %s
> DISPLAY=:0.0
> GTK_IM_MODULE=scim-bridge
> G_BROKEN_FILENAMES=1
> COLORTERM=Terminal
> _=/bin/env
>
>
>
>
> Gabriel Landini wrote:
>> On Saturday 23 August 2008, Jon Harman wrote:
>>> I'm trying to get ImageJ working on my new ACER Aspire One.
>>
>> Running what version of linux? I used to get this in suse 10.3, but
>> not in 11.
>>
>>> But I get the error:
>>> xcb_xlib_unlock: Assertion `c->xlib.lock` failed.
>>
>>> in /etc/profile I added the line:
>>> export LIBXCB_ALLOW_SLOPPY_LOCK=1
>>
>> according to what I found this should be:
>>
>> export LIBXCB_ALLOW_SLOPPY_LOCK=true
>>
>> Are you sure "1" == "true"?
>>
>>> (I did this before the line:
>>> export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
>>> I am not sure if the position makes any difference.)
>>
>> I read that this should be at the end of the file, not sure if it is
>> critical.
>>
>>> I edited the run file to use 256 instead of 512 megs.
>>>
>>> opened a terminal and cd'ed into ImageJ
>>>
>>> then typed ./run
>>
>>
>> Please post your run file to see where it points to.
>>
>> Cheers
>>
>> G.
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ on ACER Aspire One

Jon Harman-3
In reply to this post by Jon Harman-3
Hi,

Now that I have ImageJ on my AA1 I want the world!  Or at any rate it
would be nice to be able to use the right click context menu to open
ImageJ on an image file.  There is an "open with custom application
option" but when I point that to the "run" script it only opens ImageJ,
without the file.  Is there any way in Linux that I can pass the image
file name to ImageJ?

By the way the benchmark for ImageJ on the AA1 is 3.116 seconds.  Not
bad, better than my HP laptop bought a few years ago.

Jon

My run file:
cd /home/user/ImageJ
/usr/java/jre1.6.0_07/bin/java -Xmx256m -cp ij.jar:tools.jar ij.ImageJ


Jon Harman wrote:

> Hi,
>
> The Linux version is Linpus Linux Lite.
> I have tried changing the /etc/profile export to "true".  Still get the
> error.
>
> So it is a mystery.
>
> Jon
>
> Here is the /proc/version info:
> Linux version 2.6.23.9lw ([hidden email]) (gcc version 4.1.2
> 20070925 (Red Hat 4.1.2-33)) #104 SMP PREEMPT Sat Jun 21 19:53:40 EDT 2008
>
> Here is my env.  Note the line LIBXCB_ALLOW_SLOPPY_LOCK=true.
>
> HOSTNAME=localhost
> SHELL=/bin/bash
> TERM=xterm
> HISTSIZE=1000
> WINDOWID=56623136
> USER=user
> LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
>
> LD_LIBRARY_PATH=:/usr/acer/lib:/usr/acer/lib
> GNOME_KEYRING_SOCKET=/tmp/keyring-MFhGvf/socket
> SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/736,unix/unix:/tmp/.ICE-unix/736
> MAIL=/var/spool/mail/user
> PATH=/usr/local/bin:/bin:/usr/bin:/usr/acer/bin:/sbin/:/usr/sbin/:/home/user/bin:/usr/acer/bin
>
> QT_IM_MODULE=xim
> INPUTRC=/etc/inputrc
> PWD=/home/user
> LIBXCB_ALLOW_SLOPPY_LOCK=true
> XMODIFIERS=@im=SCIM
> LANG=en_US.UTF-8
> GNOME_KEYRING_PID=734
> KDE_IS_PRELINKED=1
> KDEDIRS=/usr
> SHLVL=5
> HOME=/home/user
> LANGUAGE=en_US.UTF-8
> LOGNAME=user
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6E7wxaa8y0,guid=8438f662b2377a119b1c310048afde68
>
> XDG_DATA_DIRS=/usr/share
> GST_PLUGIN_PATH=/usr/acer/lib/gstreamer-0.10
> PKG_CONFIG_PATH=/usr/acer/lib/pkgconfig
> LESSOPEN=|/usr/bin/lesspipe.sh %s
> DISPLAY=:0.0
> GTK_IM_MODULE=scim-bridge
> G_BROKEN_FILENAMES=1
> COLORTERM=Terminal
> _=/bin/env
>
>
>
>
> Gabriel Landini wrote:
>> On Saturday 23 August 2008, Jon Harman wrote:
>>> I'm trying to get ImageJ working on my new ACER Aspire One.
>>
>> Running what version of linux? I used to get this in suse 10.3, but
>> not in 11.
>>
>>> But I get the error:
>>> xcb_xlib_unlock: Assertion `c->xlib.lock` failed.
>>
>>> in /etc/profile I added the line:
>>> export LIBXCB_ALLOW_SLOPPY_LOCK=1
>>
>> according to what I found this should be:
>>
>> export LIBXCB_ALLOW_SLOPPY_LOCK=true
>>
>> Are you sure "1" == "true"?
>>
>>> (I did this before the line:
>>> export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
>>> I am not sure if the position makes any difference.)
>>
>> I read that this should be at the end of the file, not sure if it is
>> critical.
>>
>>> I edited the run file to use 256 instead of 512 megs.
>>>
>>> opened a terminal and cd'ed into ImageJ
>>>
>>> then typed ./run
>>
>>
>> Please post your run file to see where it points to.
>>
>> Cheers
>>
>> G.
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ on ACER Aspire One

Gabriel Landini
On Monday 25 August 2008, Jon Harman wrote:

> Now that I have ImageJ on my AA1 I want the world!  Or at any rate it
> would be nice to be able to use the right click context menu to open
> ImageJ on an image file.  There is an "open with custom application
> option" but when I point that to the "run" script it only opens ImageJ,
> without the file.  Is there any way in Linux that I can pass the image
> file name to ImageJ?
>
> By the way the benchmark for ImageJ on the AA1 is 3.116 seconds.  Not
> bad, better than my HP laptop bought a few years ago.
>
> Jon
>
> My run file:
> cd /home/user/ImageJ
> /usr/java/jre1.6.0_07/bin/java -Xmx256m -cp ij.jar:tools.jar ij.ImageJ


My run file can open images from the right click:

cd ~/ImageJ
/usr/lib/jvm/java-1.6.0/bin/java -Xmx900m -cp  
ij.jar:jimi.jar:/usr/lib/jvm/java-1.6.0/lib/tools.jar ij.ImageJ $*


(mind the line breaks) so just add a $* at the end of your 2nd line.

In my case the java-1.6.0 is a link to the real folder where java is
installed. That way, when you update java, you do not have to update your
script, only the link where java-1.6.0 is pointing to.

Cheers

G.