Playing with the GIMP

For some reason or the other, people always seem to be complaining about the GIMP. For some its the ‘absurd’ name, for others, it’ll never reach Photoshop’s levels. I for one think the acronym for the GNU Image Manipulation Program is a perfectly sensible name. And since I’m not a professional artist or something, the (possibly) legitimate drawbacks it has doesn’t affect me the least bit, the few times I happen to use it.

I personally think its a fantastic tool, and I’ve had no problems whatever in getting acquainted with it. Alright, there’s always going to be criticism for any project I guess, as long as its constuctive its fine. Anyways here’s a picture I made today using only the GIMP. Its hopelessly bad but it was fun doing it :)

Animal Farm

My current favourite windowmanager: Ion3

I haven’t got the fastest of machines, so Desktop Environments like Enlightenment & KDE, although incredibly cool, are out of the question for my day to day use. In my quest for a lightweight WM, I have tried Fluxbox, WindowMaker, Fvwm, and a few others. All of these are really neat in their own ways, but the one I finally ended up settling with is Ion3.

Here’s a screenshot of my desktop running Ion3:

Ion3 screenshot

That’s all it looks like! Some things that make it stand apart from most other WMs are:

  • The keyboard is king here. The whole WM centers around minimizing mouse usage as much as possible. Once you’ve configured the keybindings to your liking you won’t believe how fast and productive you’ve become!
  • There are no pretty much no overlapping windows: Every application gets the whole screen all for itself. You can have more than one app in different tabs of the same workspace, and also add as many workspaces as you want.

The nice thing about it is that it doesn’t stubbornly stick to its principles at the cost of usability: if you want floating windows for certain apps (Gaim and the Gimp come to mind), you can do that too. It’s only the default behaviour that uses tabbed windows. One of the first things I did was to change the keybindings: the defaults are F1, F2, etc which conflict with Midnight Commander’s keys. So everything on my Ion is Mod4+F1, Mod4+F2, etc (where Mod4 is the Windows key).

Ion uses a scripting language called Lua for a lot of things (forgive me for being hazy here, I’m kinda blank in these areas). So the point is that you don’t even need to such things to get comfortable with it. Install with it, fiddle around (F1 throws the man page by default), just give this window manager a try: its worth the minimal effort!

Comparing Slackware 11.0 with Fedora Core 6

I’ve been a loyal Slackware user for well over a year, and I recently had to install Fedora Core 6 at my office (no more windows at work, hooray!). So here’s a brief comparison of the two distributions (don’t expect it to be unbiased :)):

Installation: Slackware has a very neat CLI-based installation that I’ve got quite comfortable with. All you need is a copy of Slackbook lying around, and the whole process is very smooth. It does throw you in a shell at startup though, so people might like to do some tweaking to start with X by default.

Fedora’s Anaconda installer is much prettier, and the GUIs for time-zone selection and partitioning might be far more appealing to new users (Slackware, in comparison, requires cfdisk or fdisk to be run first for the partitioning). One minor gripe is that the upgrade process was terrible in its lack of options: it just did a default upgrade with no package selection options.

Packages: I’ll stick with Slackware on this one. I’ve had hardly any dependency problems, and I personally find it very comfortable to download and install its .tgz packages.

Fedora is another story. Some of the people here at work didn’t check the Eclipse package in the custom install, and it was a nightmare trying to install it later. yum works incredibly slow out here, so downloading several 100 MBs was impossible. Installing the rpm from the DVD threw up dozens of dependencies. And as I mentioned, the upgrade option during install didn’t allow package selection either. The easiest way seemed to be a quick reinstall of the / partition.

I admit my unfamiliarity with FC6 might be a problem here, for example, try as I might, I couldn’t get yum to read the DVD as a repository. Anyways I’ll learn all that soon I guess. On the good side, yum was very smooth in smaller installations (like Fluxbox), I had absolutely no problems there.

Administration: Again, I might sound biased, but Slackware’s way is seriously nice: no GUIs, just open an xterm and jump into the config files yourself. Minor tweaks that I usually do post-install are: Mouse wheel enabling, other xorg.conf fine tuning, startx, poweroff enabling, lilo setup, sound volume storing, etc. That does sound like a lot, I admit!

Fedora is better in this sense because all those things mentioned above are configured automatically. Just login after installation and you have a perfectly working environment. There are a bunch of GUIs starting with system-config-* for the most common administration tasks. As I’ve mentioned, I’m more comfortable with handling the files directly instead of through GUIs (I’ve faced problems in earlier distros having poorly configured wrappers). But in this case the Fedora team has done a really job, and I found that the GUI tools were neat, simple and never corrupted any of the files. Good job here too.

Desktop: Slack defaults to KDE, Fedora to Gnome. Frankly I don’t know how anyone in the world can stand Gnome once they see KDE, but to each his own *shrug*. The first thing I do in both cases is switch to a minimal window manager. Here Slackware has many options, as the installation set comes with really neat ones like Fluxbox, WindowMaker, Fvwm and Xfce. I’ve comfortably settled with Ion3 at home, though.

At work, I chose to put in Fluxbox. The general desktop environment for both cases is faultless, as they come with all the common software that you’ll need for development, Office or just plain browsing.

Well there you have it. There’s probably nothing that’ll ever convert me from Slackware, but other distros have their good points too. FC6 is a very nice one that is very friendly and usable. I know there a lot of things in it that I haven’t covered here, such as SELinux, which looks very interesting, and Compiz, which looks very pretty. But I haven’t tried those enough to comment about them, so maybe some other time..

Quick shell script to randomly change wallpapers

For no particular reason, I was trying to figure a way to make my wallpaper switch randomly on each startup. After some brief googling around and some experimentation, I came up with this brief script that does the work just nice. (Alright, it may not be the neatest, fastest, or easiest way of doing it, but its the first thing that came in my mind. Hope it helps.)

Well before that here’s the list of assumptions: I use bsetbg for setting the wallpaper. You might want to use fbsetbg, fbsetroot or whatever. Also, I’m picking up the images from a folder in ~/pictures/recent. You might want to change that one too if you want to use the same script. And finally, I use Fluxbox, so I just need to mention this script in Fluxbox’s startup file to make it run each time. You’ll have to do similar stuff depending on your Window Manager, or just run a cron job or something.. So alright, here’s the file:

#!/usr/bin/bash
#randwall.sh: Randomly sets wallpaper each time it’s run

#Count how many images are there in my folder..
WCOUNT=`ls -1 ~/pictures/recent/* | wc -l`;

#Generate a random number within that range..
num=$[ ( $RANDOM % $WCOUNT ) + 1 ];

#Pick up that particular image..
MYPIC=`ls ~/pictures/recent/* |sed -n ‘ ‘$num’p ‘`;

#and set it as the wallpaper!
bsetbg $MYPIC;

Update: I know, I know, I’m a real idiot. I just found out you can do the exact same thing using fbsetbg -r folder-name. Oh well, at least it was useful learning about $RANDOM and all..

My favourite CLI apps

My machine isn’t the fastest, so I’m always on the look out for simple and powerful CLI tools instead of the prettier, GUI driven ones. Having said that, I like these so much that I don’t intend to really switch, even if I get the hardware eventually. Here’s a short list of my favourite ones:

centericq: This neat little IM client is what I use for Google Talk. It also supports Yahoo, MSN, IRC, and some other protocols. This is an ideal example of how a good CLI app should be.

orpheus: From the creator of centericq comes this nice little mp3 player for the shell. Apart from mild problems in playlist loading/saving, this one is pretty comfortable to use too. Another nice player I’ve tried is mp3blaster.

snownews: I’ve mentioned this already, and its worth a look. Nice pleasant feedreader, allows opening the news with any browser and stuff like that.

lynx: This is a pretty popular shell browser and probably needs no introduction.. I use it with snownews, it even opens sites like gmail, and I like the purty colours.

mc: The GNU midnight commander filemanager doesn’t really need any introduction either. I used to use ROX Filer before, but I fell in love with mc once I got used to it. This one is a must have. I just love the sensible function key mappings, directory hotlists & emacs-style bindings.

Well these are the most common ones I use. Emacs might count in the list, but I usually run the GUI version. If you like tools like these, and know other similar ones that I might like, let me know!

P.S. Things like mutt and irssi didn’t make this list because I like gmail and don’t use IRC respectively, so my experience with them is limited.

Giving back to the community

After more than a year of eagerly devouring Free & open source software, I’ve always felt a little uncomfortable about my lack of contribution back to the community. I’m not smart enough to contribute useful code, and the only thing I can claim to have done to date is a decent bit of Linux advocacy.

Anyway, it was high time I started, which I did today with my favourite distro: Slackware. Apart from a fairly humble donation, I also ordered some stuff from their store, including a copy of the Slackbook, a slackware penguin & a few other little things.

Now that I’ve started, I thought I might as well make a habit of this. Upcoming cool people I really want to donate to include the FSF and the Linux From Scratch projects (I probably shouldn’t be talking about it like this, but I guess I’m just happy for finally making a start (and for the Slackware Tux that’s gonna get delivered soon!)).