Re: UBUNTU JAVA problem.
Sorry, but I don't get it: Why do they use the Gnu Java instead of the openJDK? Fedora installs OpenJDK by default.. Hetz On Tue, Oct 13, 2009 at 3:34 AM, geoffrey mendelson geoffreymendel...@gmail.com wrote: Ubuntu users: a random update tonight changed the link in /etc/alternatives from sun java (1.6) to a gnu java (1.5) breaking every Java app I had. /usr/bin/java is linked to /etc/alternatives/java which should be linked to /usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java This occurred on 9.0.4. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Skepticism is the lazy person's default position. my blog (hebrew): http://benhamo.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: UBUNTU JAVA problem.
On Tue, Oct 13, 2009 at 03:34:40AM +0200, geoffrey mendelson wrote: Ubuntu users: a random update tonight changed the link in /etc/ alternatives You should not update this link directly. Use update-alternatives. Some alternative links are grouped together. For instance: $ /usr/sbin/update-alternatives --display javah javah - status is auto. link currently points to /usr/lib/jvm/java-6-openjdk/bin/javah /usr/lib/jvm/java-gcj/bin/javah - priority 1042 slave javah.1.gz: /usr/lib/jvm/java-gcj/man/man1/javah.1.gz /usr/bin/gjavah-4.3 - priority 43 slave javah.1.gz: /usr/share/man/man1/gjavah-4.3.1.gz /usr/lib/jvm/java-6-openjdk/bin/javah - priority 1061 slave javah.1.gz: /usr/lib/jvm/java-6-openjdk/man/man1/javah.1.gz Current `best' version is /usr/lib/jvm/java-6-openjdk/bin/javah. If javah is updated, its man page should update as well. from sun java (1.6) to a gnu java (1.5) breaking every Java app I had. What do you mean by GNU Java? Do you mean openjdk (as opposed to Sun's JDK binary)? If so, OpenJDK is the thing included in Fedora as well (to answer Hetz) /usr/bin/java is linked to /etc/alternatives/java which should be linked to /usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java No. That's bypasing the alternatives mechanism, and may bite you the next time such a package is installed. update-alternatives --display java To select one explicitly: update-alternatives --config java -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: UBUNTU JAVA problem.
On Oct 13, 2009, at 11:56 AM, Hetz Ben Hamo wrote: Sorry, but I don't get it: Why do they use the Gnu Java instead of the openJDK? Fedora installs OpenJDK by default.. I did not get it either. One minute I'm happily running Sun's JRE at the 1.6 level and the next, a link was changed and I wasn't. I saved the old link. Running the old link (as in after their change last night): /etc/ alternatives/java.old -version java version 1.5.0 gij (GNU libgcj) version 4.3.3 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Running the link I fixed: /etc/alternatives/java -version java version 1.6.0_16 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing) Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: UBUNTU JAVA problem.
On Tue, Oct 13, 2009 at 01:35:44PM +0200, geoffrey mendelson wrote: On Oct 13, 2009, at 11:56 AM, Hetz Ben Hamo wrote: Sorry, but I don't get it: Why do they use the Gnu Java instead of the openJDK? Fedora installs OpenJDK by default.. I did not get it either. One minute I'm happily running Sun's JRE at the 1.6 level and the next, a link was changed and I wasn't. I saved the old link. Running the old link (as in after their change last night): /etc/ alternatives/java.old -version java version 1.5.0 gij (GNU libgcj) version 4.3.3 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Running the link I fixed: /etc/alternatives/java -version java version 1.6.0_16 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing) Short answer: aptitude install openjdk-6-jre Long answer: Here's what I have here (Debian Lenny) $ /usr/sbin/update-alternatives --display java java - status is auto. link currently points to /usr/lib/jvm/java-6-openjdk/jre/bin/java /usr/lib/jvm/java-gcj/jre/bin/java - priority 1042 /usr/bin/gij-4.3 - priority 43 /usr/lib/jvm/java-6-openjdk/jre/bin/java - priority 1061 slave java.1.gz: /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz Current `best' version is /usr/lib/jvm/java-6-openjdk/jre/bin/java. As you can see, I happen to have gij installed. It has a priority of 43. However I also have openjdk's jre installed, with a somewhat higher priority (1061). There are also non-free package with sun's JDK and JRE. I suspect they have somewhat higher priority (if you bothered installing them you probably want them). OpenJDK and Sun's JDK are not the only ones around. Some might never have existed if Java would have been free to start with (I guess gij may be one), but others perform better in some important use cases (e.g. embedded systems). tzaf...@sweetmorn:~$ aptitude search '~Pjava-virtual-machine' p gij - The GNU Java bytecode interpreter p gij-4.2 - The GNU Java bytecode interpreter i A gij-4.3 - The GNU Java bytecode interpreter p jamvm - virtual machine which conforms to JVM spec i A java-gcj-compat - Java runtime environment using GIJ i A java-gcj-compat-headless- Java runtime environment using GIJ (headle p kaffe-jthreads - A green threads enabled version of the Kaf p kaffe-pthreads - A POSIX threads enabled version of the Kaf i A openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (h If a program works well with jamvm, which only takes 628kb of disk spaces once installed, why bother with the whole big bad OpenJDK? (66,784 kb, not including dependencies. I ommited the Classpath dependency for both). -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: jffs2 q
Hi Erez, Erez D wrote: i am compiling a new jffs2 image for an embedded device, and i get an error saying my erase size is wrong. how do i determine what is my erase size ? (so i can compare to a jffs2 file that works) is there a utility that can give info on jffs2 images, like what is their erase size ? Not that I know of, but assuming you can boot that working jffs2 image you can ask the Linux kernel what is the erase block size. target$ cat /proc/mtd dev:size erasesize name mtd0: 0002 0001 bootloader mtd1: 0002 0001 params mtd2: 0040 0001 kernel mtd3: 00bc 0001 filesystem Note the erasesize column. Hope this helps, Gilad -- Gilad Ben-Yossef Chief Coffee Drinker CTO Codefidence Ltd. Web: http://codefidence.com Cell: +972-52-8260388 Skype: gilad_codefidence Tel: +972-8-9316883 ext. 201 Fax: +972-8-9316884 Email: gi...@codefidence.com Check out our Open Source technology and training blog - http://tuxology.net Sorry cannot parse this, its too long to be true :) -- Eric Dumazet on netdev mailing list ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: jffs2 q
The exact size depends on the actual device being used. Look at the device data sheet to see what is it's block size. -- Ori Idan 2009/10/13 Gilad Ben-Yossef gi...@codefidence.com Hi Erez, Erez D wrote: i am compiling a new jffs2 image for an embedded device, and i get an error saying my erase size is wrong. how do i determine what is my erase size ? (so i can compare to a jffs2 file that works) is there a utility that can give info on jffs2 images, like what is their erase size ? Not that I know of, but assuming you can boot that working jffs2 image you can ask the Linux kernel what is the erase block size. target$ cat /proc/mtd dev:size erasesize name mtd0: 0002 0001 bootloader mtd1: 0002 0001 params mtd2: 0040 0001 kernel mtd3: 00bc 0001 filesystem Note the erasesize column. Hope this helps, Gilad -- Gilad Ben-Yossef Chief Coffee Drinker CTO Codefidence Ltd. Web: http://codefidence.com Cell: +972-52-8260388 Skype: gilad_codefidence Tel: +972-8-9316883 ext. 201 Fax: +972-8-9316884 Email: gi...@codefidence.com Check out our Open Source technology and training blog - http://tuxology.net Sorry cannot parse this, its too long to be true :) -- Eric Dumazet on netdev mailing list ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: jffs2 q
Ori Idan wrote: The exact size depends on the actual device being used. Look at the device data sheet to see what is it's block size. Of course, but assuming he has a target board that works with a specific JFFS2 image, he can find out the erase block size using the procedure I outlined *for that board*. Gilad -- Gilad Ben-Yossef Chief Coffee Drinker CTO Codefidence Ltd. Web: http://codefidence.com Cell: +972-52-8260388 Skype: gilad_codefidence Tel: +972-8-9316883 ext. 201 Fax: +972-8-9316884 Email: gi...@codefidence.com Check out our Open Source technology and training blog - http://tuxology.net Sorry cannot parse this, its too long to be true :) -- Eric Dumazet on netdev mailing list ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: jffs2 q
i do not have mtd, only image thanks, erez. On Tue, Oct 13, 2009 at 3:41 PM, Gilad Ben-Yossef gi...@codefidence.comwrote: Hi Erez, Erez D wrote: i am compiling a new jffs2 image for an embedded device, and i get an error saying my erase size is wrong. how do i determine what is my erase size ? (so i can compare to a jffs2 file that works) is there a utility that can give info on jffs2 images, like what is their erase size ? Not that I know of, but assuming you can boot that working jffs2 image you can ask the Linux kernel what is the erase block size. target$ cat /proc/mtd dev:size erasesize name mtd0: 0002 0001 bootloader mtd1: 0002 0001 params mtd2: 0040 0001 kernel mtd3: 00bc 0001 filesystem Note the erasesize column. Hope this helps, Gilad -- Gilad Ben-Yossef Chief Coffee Drinker CTO Codefidence Ltd. Web: http://codefidence.com Cell: +972-52-8260388 Skype: gilad_codefidence Tel: +972-8-9316883 ext. 201 Fax: +972-8-9316884 Email: gi...@codefidence.com Check out our Open Source technology and training blog - http://tuxology.net Sorry cannot parse this, its too long to be true :) -- Eric Dumazet on netdev mailing list ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Desktop effects stopped working on Ubuntu 9.04
I have an Ubuntu 9.04 laptop with Intel 945 graphics adapter. Desktop effects worked until this morning when I connected it to an external monitor. After disconnecting the external monitor and restarting the laptop, desktop effects stopped working. Does someone have an idea how to reenable them? -- Ori Idan ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Desktop effects stopped working on Ubuntu 9.04
what happens if you run ' compiz --replace ' from the terminal? 2009/10/13 Ori Idan o...@helicontech.co.il: I have an Ubuntu 9.04 laptop with Intel 945 graphics adapter. Desktop effects worked until this morning when I connected it to an external monitor. After disconnecting the external monitor and restarting the laptop, desktop effects stopped working. Does someone have an idea how to reenable them? -- Ori Idan ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Desktop effects stopped working on Ubuntu 9.04
I get the following output: Checking for Xgl: not present. xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.0.log Detected PCI ID for VGA: Checking for texture_from_pixmap: not present. Trying again with indirect rendering: Checking for texture_from_pixmap: present. Checking for non power of two support: present. Checking for Composite extension: present. Checking screen 1Comparing resolution (1024x600) to maximum 3D texture size (2048): Passed. Checking for Software Rasterizer: present. Software rasterizer detected, abortingaborting and using fallback: /usr/bin/metacity -- Ori Idan On Tue, Oct 13, 2009 at 7:11 PM, Shay Ohayon s...@shayohayon.net wrote: what happens if you run ' compiz --replace ' from the terminal? 2009/10/13 Ori Idan o...@helicontech.co.il: I have an Ubuntu 9.04 laptop with Intel 945 graphics adapter. Desktop effects worked until this morning when I connected it to an external monitor. After disconnecting the external monitor and restarting the laptop, desktop effects stopped working. Does someone have an idea how to reenable them? -- Ori Idan ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Desktop effects stopped working on Ubuntu 9.04
Ori Idan wrote: I have an Ubuntu 9.04 laptop with Intel 945 graphics adapter. Desktop effects worked until this morning when I connected it to an external monitor. After disconnecting the external monitor and restarting the laptop, desktop effects stopped working. Does someone have an idea how to reenable them? It's a known bug in the Intel driver: You placed the external screen to the left/right of the laptop screen, causing the effective screen width to be one that the Intel Driver does not support 3D acceleration for, thereby causing compiz to turn off effects. If effects won't turn on, check /etc/X11.conf under section Screen subsection Display to see it doesn't still list a too-wide screen (your laptop is probably 1024 or 1280 pixels wide). When this happened to me, I deleted the Display altogether and let Ubuntu re-figure it out itself, but a sudo dpkg-reconfigure xserver-xorg might be helpful. And from now on, when you connect an external monitor, just be sure to place the screen above/below the laptop screen rather than to the left/right of it. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Desktop effects stopped working on Ubuntu 9.04
Thank you very much. I had to delete the display section and restart X -- Ori Idan On Tue, Oct 13, 2009 at 7:37 PM, Ori Berger linux...@orib.net wrote: Ori Idan wrote: I have an Ubuntu 9.04 laptop with Intel 945 graphics adapter. Desktop effects worked until this morning when I connected it to an external monitor. After disconnecting the external monitor and restarting the laptop, desktop effects stopped working. Does someone have an idea how to reenable them? It's a known bug in the Intel driver: You placed the external screen to the left/right of the laptop screen, causing the effective screen width to be one that the Intel Driver does not support 3D acceleration for, thereby causing compiz to turn off effects. If effects won't turn on, check /etc/X11.conf under section Screen subsection Display to see it doesn't still list a too-wide screen (your laptop is probably 1024 or 1280 pixels wide). When this happened to me, I deleted the Display altogether and let Ubuntu re-figure it out itself, but a sudo dpkg-reconfigure xserver-xorg might be helpful. And from now on, when you connect an external monitor, just be sure to place the screen above/below the laptop screen rather than to the left/right of it. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Desktop effects stopped working on Ubuntu 9.04
On Tuesday, 13 בOctober 2009 20:29:07 Ori Idan wrote: Thank you very much. I had to delete the display section and restart X Generally speaking, the Xorg developers recommend working without an /etc/X11/xorg.conf at all (assuming your distribution package a recent Xorg version + drivers). On Tue, Oct 13, 2009 at 7:37 PM, Ori Berger linux...@orib.net wrote: Ori Idan wrote: I have an Ubuntu 9.04 laptop with Intel 945 graphics adapter. Desktop effects worked until this morning when I connected it to an external monitor. After disconnecting the external monitor and restarting the laptop, desktop effects stopped working. Does someone have an idea how to reenable them? It's a known bug in the Intel driver: You placed the external screen to the left/right of the laptop screen, causing the effective screen width to be one that the Intel Driver does not support 3D acceleration for, thereby causing compiz to turn off effects. If effects won't turn on, check /etc/X11.conf under section Screen subsection Display to see it doesn't still list a too-wide screen (your laptop is probably 1024 or 1280 pixels wide). When this happened to me, I deleted the Display altogether and let Ubuntu re-figure it out itself, but a sudo dpkg-reconfigure xserver-xorg might be helpful. And from now on, when you connect an external monitor, just be sure to place the screen above/below the laptop screen rather than to the left/right of it. -- Oron Peled Voice: +972-4-8228492 o...@actcom.co.il http://users.actcom.co.il/~oron The Micro$oft principle: Make bugs, not war ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Desktop effects stopped working on Ubuntu 9.04
On Oct 13, 2009, at 9:09 PM, Oron Peled wrote: On Tuesday, 13 בOctober 2009 20:29:07 Ori Idan wrote: Thank you very much. I had to delete the display section and restart X Generally speaking, the Xorg developers recommend working without an /etc/X11/xorg.conf at all (assuming your distribution package a recent Xorg version + drivers). That only works if you have a relatively new graphics card and a relatively new LCD monitor. Or if you want the default settings for various options. If you want to change the defaults, or you have a CRT (especially and old one) you need a conf file. A really bad combination is a relatively modern display card such as an NVIDIA or ATI with 128m of RAM or more and and an old CRT. I don't know if it is an UBUNTU thing or the real default, but control- alt-plus and control-alt-minus (switch resolution) and control-alt- backspace (kill X) are disabled. So you can't keep switching until you get one that works and then set it permanently, or keep killing X until you get a text screen. Geoff. -- geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il