Archive for the 'Linux' Category

history meme

On my workstation, which is one of two machines I use:

[muks@jurassic ~]$ uname -a
Linux jurassic 2.6.24.4-64.fc8 #1 SMP Sat Mar 29 09:15:49 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[muks@jurassic ~]$ history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
326 ls
168 cd
92 git
74 clear
66 joe
30 grep
28 svn
15 ssh
15 cat
13 cp

I seem to use clear a lot!

GIMP 2.4 is out!

GIMP 2.4 has been released! It is the culmination of many man-years of real effort by several developers from around the world. There are many new things to expect in the new version, with more features, better usability and less bugs. Uncork your champagne and enjoy by upgrading to it.

Cool utilities

  • The next time you find yourself staring at a CD/DVD with a read-error (and your cp on that file terminates half-way), check out dvdisaster. It’s probably a good idea to check it out before you find yourself staring at a CD/DVD with a read-error, but it does a great job even when you haven’t created any error recovery data (the stuff that’s gone is gone, but at least the stuff that’s recoverable is available).
  • nomis wrote a cool utility called woof for that next time when you want to woof a file across the LAN to a co-worker.
  • Revelation is a nice lil’ program to keep track of those passwords which forget you.

FC6 and eye candy

I installed Fedora Core 6 yesterday, after wanting a more mordern set of libraries (than FC5). FC6 has gtk+ 2.10.x and now that Red Hat is going to ship even RHEL5 with gtk+ 2.10.x, I’m considering making use of GtkStatusIcon mandatory and yanking older gtk+ support for Gum. Extras also has the newer (than FC5 Extras) gtkmm libs I want to try.

I’m extremely pleased with the use of the compiz extension and the various performance enhancements thanks to all the free software projects’ work. There are ext3 and DSO performance enhancements for example, and then this is GNOME 2.16 now. It feels like I have a newer computer. Opening files in EOG, Evince, etc. were really snappy. Dunno who are to blame for this ;) . It may be that my machine was too new for an older distro and the hardware is only now fully supported. The desktop is snappy. Apps are snappy. And finally I got the AIGLX eye candy (Desktop Effects) working for the first time. Of course, it wasn’t without its set of problems, one of which was the dreaded “nobody cared about IRQ ###“. This is also the first time I’m using a 64-bit distro.. Enigmail didn’t work on x86_64 Thunderbird (this isn’t Fedora’s fault), and there were some other 64-bit woes to deal with (again not Fedora’s fault).

HOWTO: Someone in #fedora said I should write about this. In case anyone wants to enable Desktop Effects on Fedora Core 6 with an NVIDIA binary driver, here’s how you do it. It doesn’t work out of the box and a little simple setup is needed. Note that if this fries your computer, steals your puppies, or does other bad things, I am not responsible.

  1. Install FC6 (including the kernel-devel package; note that certain i386 users may have a mis-matched kernel-devel package installed and can fix/workaround it easily). Install development tools such as GCC too.
  2. Install the latest stable binary driver from NVIDIA’s website. When the driver finishes installation, it will ask you if it should update the X configuration. Answer yes.
  3. Edit /etc/X11/xorg.conf and do the following:
    1. Add a section called “Extensions” at the end of xorg.conf:
      Section "Extensions"
          Option "Composite" "Enable"
      EndSection
    2. Add the line with extmod below to the “Module” section:
      Section "Module"
          Load           "glx"
          Load           "extmod"
      EndSection
    3. Add the line with the “AddARGBGLXVisuals” option below to the “Screen” section:
      Section "Screen"
          Identifier     "Screen0"
          Device         "Videocard0"
          Monitor        "Monitor0"
          ....
      
          Option "AddARGBGLXVisuals" "True"
      #    Option "DisableGLXRootClipping" "True"
      
          SubSection     "Display"
          ....
          EndSubSection
      EndSection
  4. Restart X.
  5. Pray to some gods. If you don’t believe in gods, then break a coconut in front of your computer instead.
  6. Log in and enable Desktop Effects in System→Preferences→Desktop Effects. Hopefully everything should work. If things don’t work, you may want to try the “DisableGLXRootClipping” option above too.
  7. For further configuration of effects, you can try looking up compiz’s settings in gconf-editor.

AIGLX screenshot 1

AIGLX screenshot 2

Firefox and SSL

I am a Firefox user. One feature I want in Firefox is the display of the Organization (O) field of an X.509 certificate when SSL is used. Firefox currently shows a yellow location bar with a lock icon to indicate that an authenticated SSL session is in use. Hovering the mouse cursor over the lock icon shows the signing certificate authority who issued the certificate. I think that people would care to see the name of organization it was issued to, more than the certificate authority’s name (as we already have a trusted list of CAs [hopefully] in our browser).

Opera has this feature and the following screenshots compare Firefox 2 Beta 2 (BonEcho) to Opera:

Firefox:
Screenshot of Firefox SSL information

Opera:
Screenshot of Opera SSL information

See my name there in the Opera screenshot? Basically what it means is that the certificate which the server has was authenticated by the issuing CA to belong to a person/organization with that name, and the browser has verified it.

OpenSPARC

If the GPL’d source code of the OpenSPARC chip design, Open Boot PROM, hypervisor and other architecture tools wasn’t good enough to make you drool, a company called Simple RISC has made a derived single core design which you can simulate and synthesize using Icarus Verilog and other supporting free software tools on Linux. A great day for freedom!

Simple RISC says in the simulation docs that Icarus Verilog is much slower than other commercial software for simulation. However, there are other free software alternatives like Verilator (which claims that it’s about 100 times faster than Icarus Verilog) that one can try using.

Sun: Not being your apologist, but I know you’ve been getting some bad press in the freedom industry ;) lately. What you have done with OpenSPARC rocks. I hope you think and make a right choice for the proposed open source JDK license.

Nautilus thumbnails

Following Germán’s post, I have the following Nautilus thumbnail wishlist (as observed in GNOME 2.14):

  • Nautilus displays EXIF data in the properties of a photograph. It would be a good feature to rotate the thumbnail image (orientation) as required before caching it in ~/.thumbnails/. Same for Eye of GNOME too.. shows the EXIF info, but doesn’t use it to orient the image appropriately before displaying it. If you don’t understand what I mean, download a “portrait” sample photo (which appears rotated by 90 degrees in Firefox) from a digital camera website, and try opening it in GIMP 2.3.x or CVS and see what it does with it.
  • Some Nautilus thumbnails have a border around them while others don’t. It seems like apps which create their own thumbnails for their image data (GIMP for XCF for example) save the raw thumbnail, where as Nautilus adds the border for thumbnails it creates. The end result is not consistent. A better approach would be to store thumbnails as-is and add the border before drawing it to the screen (would take slightly longer to display).

Various bits

  • Still suffering from the jumpy mouse pointer problem on the older Thinkpad laptops, when the battery status is read? Turn off APM, use ACPI and pass i8042.nomux=1 to the kernel cmdline (in grub.conf/lilo.conf); you’ll obviously also pass apm=off
  • Luis: I read your blog about the X problem you mentioned yesterday. I myself am a Fedora user, but recommend either Fedora or Ubuntu to newbies. But I have yet one more recommendation if you want that darn stable platform. It’s not Ubuntu or Fedora, but Red Hat Enterprise Linux. If you can’t afford a subscription license or don’t care about the Red Hat badge, you can go with CentOS, which is a recompile of the source code RPMs which Red Hat releases for its enterprise operating system and from my experience, matches it 1:1, and more importantly is not some new project but has been serving the community well for years. The versions of packages on both are slightly old (having been stabilized) for development purposes and Fedora serves very well here in providing a relatively stable distribution based on the newest versions of packages. I guess Ubuntu is getting its act together and learning lessons about testing updates before they release them, etc. and it’ll only make it better for the future.
  • Tim Gerla: Congratulations on giving up your freedom :) . Those photographs of Costa Rica are wonderful.. it looks like paradise. It’s like that island in The Incredibles. I have a few questions:
    1. Do they have good broadband there?
    2. Do they have good electricity there?
    3. Is it too expensive to live there?
    4. Are there any mermaids there?
    5. This is not just your magic with GIMP, is it?

Quick vote

Free software projects are ideal candidates to be run as co-operative societies. In fact, many free software projects are already run using such principles. While projects gear up with project management tools like bug trackers, source code repositories, etc. to tackle the development process, we are very poor in managing people. From personal experience, members of projects which have a large number of people involved need to be managed as people don’t always see eye-to-eye. So there’s the chance of conflict and if these are not resolved properly, and people carry grudges, it may hurt the project in the long term. Some projects however spend a LOT of time in “politics” and eventually lose focus and followers.

Usually people agree to democratic systems. If they’re aware that not one person made a particular decision, but a majority of the team believes that such a decision is best, then they’re likely to accept it and not carry grudges. Now that projects have directories of member users (typically for CVS/Subversion access and posting news articles on websites, etc.), it’s not an unusual request for members to be asked to check a “portal” atleast once a week. A quick-vote section can be created on the portal, where any member (committer?) can ask for an issue to be voted on. It should be painless and quick. Voting should not take more than a few seconds of time. Think Enemy Territory.
You login, you see that there’s an outstanding vote (or you’re mailed that there’s an outstanding vote). You vote by submitting a simple form. That’s it. All members can see the results of the vote and it expires in a few days time.. so if you didn’t vote, you lost an opportunity there.

Here are some examples of things which can be voted on:

  • Do we replace the Karate parser with the Kung-fu parser, if Kung-fu breaks compatibility with Karate scripts in this version?
  • Which new splash screen do we pick for this version of SeventeenOranges?
  • Should we add the WoundingBrush feature (now that a patch is available) before version 2.4 stable of TacoSauce or should we wait for 2.6?
  • Should GIMP be renamed to PIMP or not?
  • Sholb shouldn’t hold control of finances of this project. I don’t like him! Do you agree (with the first statement)?

Once the issues have been answered quickly, we can carry on with real work and not have complaining about them anymore. If someone disagrees, point a finger to the vote—not to a person. This can even be a panel applet.

Various bits

  • First, hello to all the Planet GNOME people :) .
  • Jeff, I wish you luck in doing great things in the future. Follow your dreams and realise them. You will be happy when you do what you want to.
  • I tried to use Seahorse for the GPG agent facility. I wanted it to cache my password, but although the respective option was checked in the preferences, it was prompting me again for the password. I am using 0.8 and I see that a new version is available.. hopefully it’s fixed in that one.
  • Gaim could do with some sort of SSL certificate verification for Jabber and other protocols. There’s no point in using SSL when authentication is not guaranteed to be secure. I am not going to write it, so please don’t say submit a patch :) .