My Two Cents

Ubuntu Blogs

Probably the most popular Ubuntu blog in the world, apart from the official one, is Carthik Sharma’s. Carthik invited fellow bloggers to tell him whether they too blog about Ubuntu. The response is amazing. Nice to see that so many people are using FOSS operating systems.

Though I don’t write about Ubuntu that often in this blog anymore, one of my old posts always ranks the top post in this website! All my Ubuntu relates posts can be read here.

And finally, what is common between me and Carthik? We both are Tamilians!


Posted in Linux, Ubuntu

Cleartype LCD patch on Mandriva Linux 2007

My biggest gripe on any GNU operating system is the poor font rendering. Because of patents held by biggies like Microsoft and Apple, many interesting font rendering technologies cannot be applied on Linux without the chance of getting sued.

Perhaps the best patch available for font rendering is the LCD cleartype patch from Freetype maintainer David Turner. Though this patch is no longer available from Turner, you can download it from several places on the internet. I have shared one of them here. Let us see how we can apply this patch on Mandriva 2007. Ubuntu users, please refer to my another interesting howto here.

We need the following 3 files:

Extract all the packages to a folder:

$ tar -xzvf filename.tar.gz

Now we need to apply the patches for individual packages.
For freetype, there is no patch, but we can edit the file manually. Go to your freetype source folder, and open the file aflatin.c:

$ vim ./src/autofit/aflatin.c

Search for the term FT_RENDER_MODE_MONO. You will find two instances. Remove the OR statement that follows this in both cases. It will read like the following once you edit it:

if ( mode == FT_RENDER_MODE_MONO )
other_flags |= AF_LATIN_HINTS_VERT_SNAP;

You are done patching freetype.

Now go to the xft folder and run:

patch -p1 < path/to/your/libXft-2.1.10-etcpatchfile

Go to the cairo folder and run:

patch -p1 < /path/to/your/cairo_patch

You are done with all the patching. Now, go to individual folders for these packages and run:

$ ./configure --prefix=/usr
$ make

Now login as root and:

$ su
# make install
# exit

This will overwrite the default libraries that shipped with your system. Repeat the same for all the other packages.

Go to font preferenes and select sub-pixel font rendering.

Just restart X (Ctrl+Alt+Backspace) and enjoy your new beautiful Mandriva!

Sample:

After patching

Acknowledgements: This guide is based on a thread in Ubuntu forums.



Posted in Linux, Mandriva, Ubuntu

Ubuntu on PS3?

Now that it is officially confirmed that you are free to install any OS on PS3, it is time to save some money and buy one as soon as it is launched here or when someone starts selling it on ebay. Going by Sony’s past track record in India, it is unlikely that it will be in showrooms before the end of 2007.

Ever since I read about the Cell processor, I always wanted to get hold of a PS3. The cell based PS3 is likely to be very powerful in terms of processing heavy duty stuff like media encoding, which I often do on my laptop. The 9 core processor will be a refreshing change to the x86 based computers that we have been using for a while now. Though the official Linux is going to be Yellow Dog with enlightenment, I think hardly anyone will go for it. Ubuntu is likely to win the race here, closely followed by Fedora core. (Unforunately, Mandriva stopped shipping PPC versions of there distro sometime back). Interestingly, IBM is already shipping a Cell based general purpose computer with Fedora pre-installed!

This strategy of Sony comes as a big surprise, considering their continued efforts to thwart homebrew development on the PSP.

Sure, exciting days are ahead!

Update (28-Dec-2006): Here are some instructions for installing Ubuntu on PS3.  Warning: Not for the faint of heart.


Posted in Linux, Mandriva, PS3, Ubuntu

Font smoothing on Edgy Eft

I made a small update to the ever-popular post on this blog: OS X like font rendering in Linux.  The guide now covers Edgy too. Turner’s patches for Edgy are now available through a private repository. You can download it from here:

By the way, here is how my Edgy desktop looks now:

Edgy desktop
The icon theme is the ultra cool Echo from upcoming Fedora core 7 artwork. You can grab it from here. The GTK theme is clearlooks and the window manager is vanilla compiz.


Posted in Linux, Ubuntu

Baffling Beryl – Useless eye candy

I have been using Compiz with AIGLX for a while and thought I would checkout the Beryl project, which is a fork of compiz. So I added the Beryl repository to my sources list and installed all the associated Beryl software.

After I launched Beryl, I got a nice theme for my window manager. Though it looked good, I preferred the simple and cute title bar that came with original compiz. I fired the “Beryl Settings Manager” to see where I can change these settings. Voila! I was greeted with an application that had more options than anything I have ever seen before! Here is the sample:

Beryl settings manager
You are only seeing a part of all the options available. Note the scrollbars – there are plenty of other settings for each plugin! Needless to say, most newbies will have no clue understanding what all these options mean.

Now I feel that it is good that the compiz project actually forked! I am sure an organization like Novell will not include anything like this into a mainstream desktop they sell to enterprises. While I can understand the enthusiasm of Beryl developers, it is sad to see that this project is now going in a direction where the software is heavily overdone and will not be of any use to anyone. At this point of time, most of the plugins are mere eye-candy and many a times more of an annoyance than anything useful. The default settings are ridiculous with those animated menus wobbling like hell.

Eye candy in conjunction with usability is what will click with the end user. Good example are Mac OS X and to an extent Vista. (I personally feel that Vista could have also done without some of those silly effects).

I promptly uninstalled Beryl and went back to vanilla compiz. Sorry developers.
(I later found out that the settings for Window Manager are changed through “Emerald Theme Manager”, which is another nicely overdone tool.)


Posted in Linux, Ubuntu

Liferea – The best Linux news reader

My search for the best news reading application for Linux is over. After trying out several applications like Straw, Akregator etc., I finally settled on Liferea. Liferea is a GTK based application which is ideal for the gnome desktop. Though it does not have features like discovering multiple feeds within a website, emailing posts etc., it serves its purpose as a basic yet powerful news reader. The obligatory screen shot is below (click to enlarge).

Liferea

To install just do:

sudo apt-get install liferea

Most of the time, just giving the URL of the website is enough to add a feed!


Posted in Linux, Ubuntu

More on compiz themes – the blank title bar problem

If the latest dist-upgrade made your compiz title bar “blank”, just invoke compiz theme application, click on edit on the bottom, go to general tab and select one of the options from Title-bar object Layout. Your title-bar contents including the buttons should reappear. I am wondering why the developers did not make one of these options the default. This may confuse many a newbie. For the solution to a similar problem, read my previous post.


Making compiz themes work

If you are using compiz with aiglx and recently did an apt-get dist-upgrade, you would have noticed that your gcompiz themer does not work any more. You can see a lot of new themes in the gcompiz themer and if you are wondering why those are’nt working, it is because those themes work only with cgwd and not gnome-window-decorator. To fix this, first take a backup of your compiz-start file in your /usr/bin folder. Then open the file in your favorite text editor in sudo mode and replace all instances of gnome-window-decorator with cgwd. Save the file and restart gnome. You are all set.

The following screenshot shows the nice looking theme called Vista-ish (click to enlarge).

vista-ish.png


Posted in Linux, Ubuntu

Ubuntu users – Stand up and be counted

Ok. Here is a fun new way to show your loyalty to Ubuntu. Just register and get your customized Ubuntu button with your user number on it. I am user number 220!

read more | digg story


Posted in Linux, Ubuntu

Ubuntu install log 6: Finally, OS X like font rendering in Linux!

Ok, I promise. This will be my last post on font rendering in Linux!

As usual, while tweaking some of the Linux font settings, I accidentally discovered that you can make X render fonts **exactly** as in OS X! (Don’t ask me how it works. I do not know. But it works perfectly!)
This is what I did:

  • Removed all the existing font customizations that I have done earlier
  • Made sure that I do not have a .fonts.conf in home directory.
  • Made sure that only the default .conf files that shipped with Dapper are in /etc/fonts folder.
  • Ensured that I have the Turners cleartype patch installed.(If you do not know how to apply patches or if you are too lazy to apply your own patch, grab the precompiled patched binaries from here.). Update: Ubuntu Edgy Eft users can get precompiled binaries with Turner’s patch here.
  • Made sure that I have all the .ttf fonts from my Windows installation in Ubuntu too.
  • Reconfigured fontconfig by running:
sudo dpkg-reconfigure fontconfig

On the first screen, I selected “None” and on the second and third screens I said no. Fontconfig will update your font settings and regenerate your font cache.

Turned on sub-pixel rendering in gnome font settings.

Restart X: ctrl+alt+backspace.

Here are some screenshots: (Tahoma never looked so better.)

Font preferences:

gnome-font.png
Apple website

apple.png
Nautilus:

nautilus.png

Digg home page:

digg.png

This post as it was typed:

screenshot-1.png

This blog post (Using wordpress preview. Look at Lucida Grande in all its glory!)

my-two-cents.png

Update : Turns out that Mac uses “byte code interpretation” to achieve this font rendering. The fontconfig that we do in the above steps turns on BCI in freetype too. Hence the similar rendering effects. Because of this, you don’t need to install Turner’s patches – so ignore step 4.


Posted in Linux, Ubuntu
Next Page »

    Subscribe

     

    November 2009
    M T W T F S S
    « May    
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    30  

    a

    My Delicious