Trying Debian Lenny

Debian’s latest stable release Lenny arrived on Valentine’s day. Previously, I installed Debian using the net-install CD. This time Debian has made it easier, now you can download a single CD and install a fully functional Debian GNU linux with Gnome Desktop Environment. This CD or DVD is the first CD or DVD in the set. Debian Lenny is very easy to install in both text mode or a Graphical installer. The disk partition portion of the graphical installer was a little difficult for me to get familiar with but after a little difficulty I finally got it working. After that installation went smooth, it automatically detected all hardware and Internet settings and I logged into the same old Gnome desktop.

But the system you log on after the installation is very basic. It has two web browsers Epiphany and IceWeasel but it does not have Synaptic package manager. I am comfortable using apt but I prefer synaptic because I am lazy. This single CD install method does not install Open Office and Gimp. I decided to download the software I needed. But when I tried to install them from root terminal I got errors. After some troubleshooting I found that Lenny’s graphical installer installs packages not from the latest stable release but from debian-volatile. What is Volatile?

Some packages aim at fast moving targets, such as spam filtering and virus scanning, and even when using updated data patterns, they do not really work for the full time of a stable release. The main goal of volatile is allowing system administrators to update their systems in a nice, consistent way, without getting the drawbacks of using unstable, even without getting the drawbacks for the selected packages. So debian-volatile will only contain changes to stable programs that are necessary to keep them functional.

After changing the sources.list I installed Synaptic package manager and after that I will make a list of software I need to install. I will be downloading VLC media player, Urdu fonts, Pidgin, Gimp and Open Office. I am also thinking about installing Firefox but I am not too sure about it. I feel that Firefox is no more a lightweight web browser. It is heavy, slow and does not match the Desktop environment. I am forcing myself to like Epiphany web browser.

If you are an Ubuntu user trying Lenny, then remember that Debian uses a package called locales for dealing with National or native language support. If you did not add your language during the installation then you can run dpkg-reconfigure locales from root terminal to reconfigure locales.

If you are trying to write in Urdu language on Debian lenny and characters do not join correctly then you should replace the default Urdu keyboard layout ‘pk’ (found in /usr/share/X11/xkb/symbols/ ) with this one. I have filed a bug report for this error and hope it will get fixed.

I also tried LXDE on Debian and I am very excited about testing it on an old computer.

Bring Me Back To Freedom

Google Chrome arrived and I had to log on MS Windows to see how it works. I am so impressed that I don’t really feel like going back to Ubuntu and use Firefox. I have installed Windows Vista, which has Aero theme. I use Chrome and the world is beautiful again.

Honestly, I don’t like Microsoft Windows much. Previously I had trouble getting it configured for my internet, graphics and audio settings. It is just too much work with windows, I thought. But may be I was a little bit too biased towards freedom. I had this feeling that I am a software freedom fighter, I can not use Windows. But I am starting to think differently now.

If I use Windows I have Aero which looks 10 times better than Gnome with compiz and it has Google Chrome which is faster than Firefox and works like a charm.

These new things make me feel good. The graphics aren’t ugly, I have the same visual effects on Ubuntu too but they don’t look that good. Gnome’s interface that I have loved so much, now looks childish and boring. The simplicity has gone to a point where it feels like an insult to the human intelligence.

The windows are too big they take a lot of screen space. The fonts are ugly. Definitely Ubuntu has better support for Urdu Language but Vista is not that bad either. Using Vista I can use the new VLC media player that uses QT and has good looking interface.

I tried searching the Gnome website to see if they have any plans to give me something thats more beautiful than Mac OS X, Vista and KDE4. But I don’t think they have any plans to bring something modern and new for at least a few more decades. I can go for KDE4, and I did. I tried it with opensuse. But it crashed so often and after a week of trial I gave up. I tried KDE4 on ubuntu and the result was the same.

Developers at Gnome should think about improving their simplicity. Give me an intelligent user interface that is smarter than me. Give me better fonts. Don’t fill my screen with thick windows, fat buttons, and king size Icons. The KDE folks if they read it, please make it available for Ubuntu and make rock solid. Every body hates to see the crash handler poping up now and then. and I want VLC with QT ASAP.

Please bring me back to the free world. Please bring something exciting and modern.
BTW, after finishing this post I am going to try KDE for windows and see how it works. It might be unstable like hell but I want to do try it anyways.

Note: I haven’t completely switched to Windows yet. I am just jealous.

Whats New in Ubuntu 8.04 Hardy Heron (Beta)

Today I downloaded and installed Ubuntu 8.04 Hardy Heron Beta version. There are several new things in this upcoming Ubuntu version. First of all it is a long term support version, which means that if you install it you will receive support and updates for up to three years and that will be totally free and no Genuine Advantage icon would ever bother you.

Ubuntu is not just free, it is better too. As I mentioned in my earlier post that Windows XP and Vista fail to detect my hardware during a default installation. Ubuntu detects and configures all my hardware in the default installation. With Ubuntu Feisty I wasn’t able to use amazing visual effects. I had to apply a hack to do that and even then the effects were not at all plea sent. But now, Ubuntu Hardy Heron takes full advantage of my hardware and compiz effects are enabled by default and they work fantastic.

Compiz Visual Effects in Ubuntu

This new version of Ubuntu has Firefox 3 Beta 4 installed as default web browser. This was my first time trying Firefox 3. I didn’t like the way it suggests URI’s as I type something in the address bar and I can not install Google’s browser sync plugin, I hope there is a work around to get it working. But for the first time Firefox looked like a well integrated part of Ubuntu.

There is a new tool called “Hardware Testing” accessible from Applications > System Tools. This little wizard attempts to detect your hardware, prepares a report and you can then send this report with your launchpad email address. I think it is a great way to collect information about user hardware and help them troubleshoot common problems.

Hardy Heron also has a new tool to manage “Passwords and Encryption Keys”. Which helps you create and manage your PGP and SSH keys, cache your pass phrases and encrypt/decrypt your clipboard content.

The Language support for Urdu remains like it was in previous version. I had to go through a well practised procedure to enable my computer for Urdu. It is quite easy for me to do that but for new Ubuntu users it is still difficult. I wish that Ubuntu makes ttf-Nafess (already available in the main repository) installed by default and the Urdu/Pakistan keyboard layout should be replaced by this one. The default Ubuntu Urdu/Pakistan keyboard layout has its keys placed differently and new users find it difficult to use and eventually they replace it with the one I mentioned above.

The release notes mentioned Inkscape, which made me and others believe that it would be installed by default. But it is not installed by default in this beta version. It may be available by default in the final release. The final stable version will be available in April 2008.

Overall I am very pleased with Ubuntu 8.04 Hardy Heron Beta, I used Dapper for a very long time and I loved it. I hope that Hardy will be even better than the Dapper and will help me convert more people to freedom.

More screenshots:

Ubuntu 8.04 Hardy Heron Screenshot

Ubuntu 8.04 Hardy World Time Applet

Gmail and Google Reader in Startup Programs

I have tried several Email Clients and Feedreaders on Ubuntu and my primary Debian Operating System. But now I was feeling that why bother with any more software when you have Google and Firefox (Iceweasel on Debian). So, I decided to make myself a script that automatically opens my Gmail and Google Reader account in Firefox each time I log on to my computer. I thought may be some of you would find it useful.

Step 1: We need to create two files.
mailnreader1 which contains this:

#! /bin/sh
firefox http://mail.google.com/

And mailnreader2 which contains this:

#! /bin/sh
sleep 30;
firefox -new-tab http://www.google.com/reader

We are going to save these two files in /usr/bin/ directory. Once you have pasted these files please check the permissions. Select a file right click and select Properties and then click on Permissions tab. Make sure that the file is read and executeable by all. See the image below:

file permissions should look like this

These two files contain simple commands to open Firefox with specified web addresses. The sleep command tells your computer to wait for 30 seconds before running the next command. The reason behind doing this is that when your session begins your computer performs some tasks. Like loading your settings, Desktop, Nautilus, etc. My system is only 800 mghz, and If I don’t wait for 30 seconds the browser would give me an error something like this:

Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

If you have a faster computer you can try removing the sleep line or decrease the number of seconds.

2: Now Go to Preferences > Sessions, click on Startup Programs tab, press the Add button and add this:

mailnreader1

Press Ok and then press the Add button again to add the second file:


mailnreader2

Press Ok and then Close. Now to check these scripts out you need to Log Out and then Log In.

Why two files?

I tried creating a single file containing this code:

#! /bin/sh
firefox http://mail.google.com/
sleep 30;
firefox -new-tab http://www.google.com/reader

But it didn’t work. I hope someone would improve the script so that we don’t have to wait longer and we can add more sites all in one single script. Until then, I guess I will keep using it because it works and saves me time and hassle of fetching mail and feeds in two separate windows while browsing the web in the third window.

Enabling Urdu Support in Ubuntu

Note: Their is an updated version of this guide available. If you are using Ubuntu 9.04 or higher then please follow the new instructions here.

Writing and Reading in Urdu on Ubuntu is not configured properly in a default installation. So most Urdu users face trouble once they have installed Ubuntu. Sometimes they give up too quickly and get back to windows and sometimes they spend hours figuring out a solution.

First of all I would like to assure that any one using Ubuntu can read and write Urdu just like they did it while using Windows. Ubuntu has full Urdu support, the problem is that you don’t have a few packages installed and a few settings tweaked. Just follow this step by step tutorial and you would have full Urdu support available with in minutes.

Step 1: Make sure that you have these packages installed:

  • language-pack-ur
  • language-pack-ur-base
  • language-pack-gnome-ur
  • language-pack-gnome-ur-base
  • language-support-ur
  • openoffice.org-l10n-ur-in
  • ttf-nafees

If you are using Kubuntu then you would need:

  • language-pack-kde-ur
  • language-pack-kde-ur-base

To install these packages quickly use this command:


sudo apt-get install language-pack-ur language-pack-ur-base language-pack-gnome-ur language-pack-gnome-ur-base language-support-ur openoffice.org-l10n-ur-in ttf-nafees language-pack-kde-ur language-pack-kde-ur-base

Step 2:Note: If you are using Ubuntu 7.10 Gutsy or later releases then you don’t need to do this step instead jump to step 3.

Since Dapper, there is a problem with Firefox in Ubuntu that it doesn’t render the Urdu web pages the way they should be rendered. Firefox that comes with Ubuntu has Pango disabled by default. We need to enable it so lets do it

Type this in Terminal:


sudo gedit /etc/environment

This command will open the environment file in your text editor with super user priviledges. Add this line in environment file:


MOZ_DISABLE_PANGO=0

Save the file and exit the editor. Now we have Firefox ready to render Urdu web pages.

Step 3: With Firefox working fine and all required packages installed. We still need to download and install fonts. While downloading packages we have installed ttf-nafees (Nafees Web Naskh) but there is another popular Urdu font that you need in order to view most Urdu webpages correctly. The font is BBC’s Urdu Naskh Asiatype. You can download it from here.

Open Terminal and type this:

sudo nautilus /usr/share/fonts/truetype

this will open a Nautilus window, paste your fonts here.

Step 4: Now we need to download a Urdu phonetic keyboard layout. You have many choices here you can use Crulp’s Phonetic Urdu Keyboard Layout or use Urdu Web’s keyboard layout. I use Urdu Web’s keyboard layout and you can download it here. After downloading your keyboard layout rename it to pk not pk .txt just pk and type this command in terminal:


sudo nautilus /etc/X11/xkb/symbols

This command will open a Nautilus window. Paste the pk file in symbols directory replacing the pk keyboard layout that comes with Ubuntu by default.

Step 5: Point your mouse to an empty space on your Top or Bottom Panels, right click and select Add to panel. A window will open giving you choices of applets to add on your panel. Select Keyboard Indicator and then press Close button. Now you have an applet on your panel showing the default USA. Take your mouse over there and right click to select Keyboard Preferences. In the Layouts tab press the Add button. Now select Pakistan from the list of Available layouts and then press Ok and then press Close.

Now you have Phonetic Urdu keyboard layout and you can switch between US English and Urdu by clicking on the indicator or by pressing both ALT keys together.

Step 6: Restart your computer.

Now check if you can not read, write and edit Urdu web pages, text files and documents on your Ubuntu box. Still having problems? Please make sure that you have followed the instructions exactly as provided above. If every thing is all right and you think you have followed the instructions then leave a comment so that we can improve this tutorial.

Whats New in Ubuntu 6.10

I am excited all over again on the new release of Ubuntu. Expected to be released next month but the beta version is currently availabe for download. It has:

  • Firefox 2.0 RC 1 (code named: Bon Echo):
    • New Theme (Tangerine) and user interface have been updated to improve usability.
    • It has inline spell check support in web forms.
    • You can now restore session that crashed.
    • Bebuilt in phishing protection, Phishing Protection warns users when they encounter suspected Web forgeries, and offers to return the user to their home page. Phishing Protection is turned on by default, and works by checking sites against either a local or online list of known phishing sites. This list is automatically downloaded and regularly updated when the Phishing Protection feature is enabled.
    • Enhanced search engine management with built in OpenSearch support
    • Improved tab support: By default, Firefox will open links in new tabs instead of new windows. Each tab will now have a close tab button and users who open more tabs than can fit in a single window will see arrows on the left and right side of the tab strip. Epiphany had these features since some time now. and I found them very useful. History menu will keep a list of recently closed tabs, and a shortcut lets users quickly re-open an accidentally closed tab.
    • Improved support for previewing and subscribing to web feeds.
  • GNOME 2.16: I am currently using Gnome 2.14.3, so I checked out whats new in Gnome.
    • Laptop support has improved with the integration of power management support. Since I don’t use a laptop so I don’t think that this tool would benefit me anyways. But it is quite obvious that it is going to help lots of other users.
    • A new utility Baobab now displays Disk usage, available free space and other useful information about your hard disks. Particularly useful for me.
    • Totem has new support for reading and writing XSPF playlists, an open standard allowing people to share playlists.
    • You can now preview a screensaver in fullscreen. Just a few days ago I was showing screensavers to my younger brother we talked about this feature and now it is made available.
    • You can now also use Reminder Notes from existing GroupWise accounts by using Evolution. I don’t use Evolution, I use Thunderbird + Gmail.
    • Improvements in menus, graphics and eye candy.
  • OpenOffice.org 2.0.4 RC 2: I checked OpenOffice.org 2.0.4 RC 2, OpenOffice.org says “The software is not recommended for production deployment at this stage.” I am sure that Ubuntu maintainers had some solid reasons for this upgrade. Ubuntu Edgy Beta’s release notes mention this upgrade as “This is mostly a security and bugfix release, dealing with specific issues regarding sandboxing of Java applets and macros.”
  • F-spot has replaced gthumb. F-spot allows easy tagging, editing and uploading to various online photo websites, including Flickr. Hence, making the photo sharing easier.
  • Faster Boot and shut down with new Upstart – init. On my machine Ubuntu shut downs quickly but it takes a long time to boot. I have tried many solutions to improve this but still it is not fast enough.

Firefox for Linux – Urdu Font Rendering

Finally, I found the solution to the Firefox Urdu Font related bug in Dapper. Me, the newbie, the linux illiterate who didn’t even know Tux; I solved a bug in an open source software that I am using on my open source operating system.

After upgrading to Dapper, I found that Firefox in Dapper does not render Urdu fonts properly. Since I spend a lot of time reading Urdu blogs and news sites, it was a major issue. It even forced me to install Konqueror, Galeon, Epiphany, Swiftfox, Firefox’s mozilla built. I spent many hours reading bug reports, comments on the bug reports, following different forum discussions and sharing my problem with users on all these platforms. I tried many solutions none of them worked out. On my way I found that several other people using different Linux distros were facing the same problem.

Then finally I found a discussion where some users were suggesting that Pango support should be disabled for Firefox. They suggested eachother to add MOZ_DISABLE_PANGO=1 line in /etc/environment file. I tried this solution but it didn’t work. Then I tried MOZ_DISABLE_PANGO=0 and bingo!

Now I can read Urdu web pages and firefox renders these web pages perfectly displaying Urdu fonts beautifully even better than the Firefox and Internet Explorer on Windows.

I am not sure about what was really wrong with Firefox but I guess that Ubuntu Dapper has pango support enabled for selective locales only. Firefox didn’t render Urdu fonts using Pango. I am not sure about this and would be grateful if someone confirms this to me.

The moral of story is that my Ubuntu Linux is very powerful and using it I can do whatever I want. You the windows user? Can you do this with your Windows?