Phulwanti

सूचना – यह कहानी सत्य घटनायों पर आधारित है। किरदारों की गोपनीयता बरक़रार रखने के लिए उनके नाम बदल दिए गयें हैं।

हमारी एक मित्र हैं। समझ लीजिये उनका नाम फुलवंती है। आज जब हम उनसे “चैट” कर रहे थे तो वो हमें बता रही थी की वो आजकल सुबह जल्दी उठ जाती हैं। यह सुनकर हमें तनिक आश्चर्य हुआ। फुलवंती को तो रात को देर तक जागने की आदत थी, फिर यह परिवर्तन कैसे? हमनें इसका कारण जानना चाहा तो उन्होंने हमें बताया की इसका कारण उनका अपने नव विवाहित जीवन में कदम रखना है। उन्ही के शब्दों में:

आजकल में ०६:३० बजे उठकर अपने पति को नाश्ता देती हूँ,
फिर बर्तन धोती हूँ और झाड़ू लगाती हूँ ।

उनके इस रूप से हम वाकिफ न थे, इसीलिए हमनें इस सत्य को जग जाहिर करना अपना कर्त्तव्य समझा।

Improved Font Rendering in Gentoo

EDIT: Updated to latest infinality (2010-11-14). Changed default fonts to Arial. Microsoft-fonts are available here.

EDIT II: The lcd-filtering overlay does not have an ebuild for the latest version of cairo. I have put together one ebuild (using latest patches from ubuntu and infinality). You can get it here. These ebuilds are now present in the lcd-filtering overlay.

Before I begin, full credits must go to PaulBredbury, Infinality and bi3l (gentoo-forums nick) who have done all the hard work on this.

Here’s my guide to get (what I believe) the best font rendering in Gentoo. Note that this uses ebuilds from an overlay, and thus is not officially supported by Gentoo. If you don’t know what an overlay is, look it up (and look up layman as well) on the internet. When you have your box configured to work with overlays, continue with this guide.

layman -a lcd-filtering

Add the following lines to /etc/portage/package.use


##LCD Filtering Overlay
media-libs/fontconfig lcdfilter -cleartype
media-libs/freetype lcdfilter -cleartype
x11-libs/cairo lcdfilter -cleartype
x11-libs/libXft lcdfilter -cleartype

Now, emerge the following packages. Take care that these packages are being emerged from the lcd-filtering overlay and in the exact same order.

emerge -av1 freetype fontconfig libXft cairo


The .fonts.conf configuration file that I use is based on the one provided by Infinality. The only change that I have made is chose Aller as the default sans and sans-serif font, OFL Sorts Mill Goudy ast the default serif font and Inconsolata as the default monospace font. You can edit the provided .fonts.conf if you want to chose other fonts as the defaults.
I have lost my alteration of .fonts.conf and the fact that I do not have currently have access to a Gentoo installation implies that I can not create and test a new one. In case you want to change the default fonts, you will have to do it via your DE or create your own .fonts.conf (if you work in a DE agnostic environment).

Install the fonts I use (if you want to). I would still recommend using these fonts though. They look brilliant.

  • Arial (media-fonts/corefonts)
  • Vista Fonts (Here)

Make sure your eselect fontconfig list looks like this (ignore the lohit family if you do not have it installed).


Available fontconfig .conf files (* is enabled):
[25] 50-user.conf *
[36] 66-lohit-assamese.conf *
[37] 66-lohit-bengali.conf *
[38] 66-lohit-gujarati.conf *
[39] 66-lohit-hindi.conf *
[40] 66-lohit-kannada.conf *
[41] 66-lohit-kashmiri@devanagari.conf *
[42] 66-lohit-konkani.conf *
[43] 66-lohit-maithili.conf *
[44] 66-lohit-marathi.conf *
[45] 66-lohit-oriya.conf *
[46] 66-lohit-punjabi.conf *
[47] 66-lohit-sindhi@devanagari.conf *
[48] 66-lohit-tamil.conf *
[49] 66-lohit-telugu.conf *
[50] 67-lohit-malayalam.conf *
[51] 67-lohit-nepali.conf *

Restart X and have fun!

The Perfect KDE4 Setup

Let me first present to you how this would look like – you can then see whether you want to continue with this or not.

A clean view of the KDE Desktop

KDE Desktop with Applications

Now, if you feel that this is right for you, feel free to carry on.

First of all, to allay any claims of shameless plagiarism, this guide is inspired from the perfect guide which is available at Ubuntu Evolution (dead link)- in fact, the guidelines for Ubuntu users has been copied verbatim from there. Other users could also head over there if they want an alternative to the visual theme that will be provided here. The major difference is that this guide also deals with ways to integrate applications like skype, firefox, etc. into the provided visual theme.

Installing the Bespin Theme (Gentoo Users)

  • You must have layman configured and installed. If not, have a look here.
  • layman -L -k         // As root, to refresh your list of overlays
  • layman -a kde    // As root, add the kde overlay (this is where you will find the bespin theme)
  • emerge x11-themes/bespin

Installing the Bespin Theme (Ubuntu Users)

Rather than repeat the excellent tutorial by Ubuntu Evolution, I encourage you to head over there (dead link) and follow the section “Downloading and Installing of Bespin Style”. Also make sure that you install the development libraries that are mentioned there in the paragraph before this section.

Installing the Bespin Icon Theme (Gentoo Users)

I am acting under the assumption that you already have the bespin theme installed. The following instructions assume this. The instructions in italics are to be carried out as root, whereas the instructions in normal typeface need not be carried out as root.

  • cd /usr/portage/distfiles/svn-src/bespin/cloudcity/icons/
  • cp config.example config     // Note: I have not edited the config.example file – you are free to edit it if you like
  • sh generate_kde_icons.sh
  • cp -rf nmfnms/ $(USER)/.kde4/share/icons/
  • cd $(USER)/.kde4/share/icons/
  • chown -R $(USER):$(USER) nmfnms/
  • chmod -R 755 nmfnms/
  • Now select the icon theme from System Settings -> Appearence -> Icons.

Installing the Bespin Icon Theme (Ubuntu Users)

Ubuntu users would do well to head over again to the Ubuntu Evolution post (dead link) and follow the section Bespin Icon Theme.

KDM Theme

My recommendation would be to use lzfy as your KDM theme. Feel free to try out the Bespin KDM theme as suggested by Ubuntu Evolution.

Ksplash Theme

I rather prefer the Glassified splash theme. I would like to use the KStarBoard theme – however it does not work for me. I don’t quite know why. However, I have created a B/W mod the KStarBoard mod of this theme – it is available here. I think it would go rather well with the setup – use it if it works for you. That mod has been lost recently.

Colour Scheme

You can download the colour scheme here. To add this Colour Scheme use System Settings -> Appearence -> Colors. The colour theme, too, has been lost in a recent outage. It was a mod of this theme. Thanks to Ivan (see comments below), I have a copy of the colour scheme. You can download it here. Once again, thanks Ivan!

Bespin Theme

The Bespin Theme is available here. To activate this simply follow the following steps:

  • System Settings -> Appearence -> Style -> Select Bespin.
  • Bespin -> Configure -> Presets -> Import (simple.bespin – the theme you downloaded above) -> Load.
  • Tip: Tab Animation does not work uniformly on all hardware. You might want to disable it. Go to Bespin -> Configure -> Tabs -> Animated Transition -> None -> OK.

Window Decorations

  • System Settings -> Appearence -> Window Decorations
  • Select Bespin
  • Border Size -> Tiny
  • Buttons -> Icons -> The Rob (3rd gen)
  • Apply

Plasma Theme

I prefer the theme “Air for netbooks” (and I don’t use a netbook :P) which comes bundled with KDE SC 4.4. There is also a plasma theme which is catered for Bespin users – you can find it here. Use whatever suits you. 🙂

The Smooth Tasks Plasmoid

This is what provides the Windows 7 look to the System Taskbar. Head over to its kde-look page to get instructions on how to install it. Gentoo users can install the package kde-misc/smooth-tasks which is available in the kde layman – which as you might recall, we have already acquired.

Some specific Smooth Tasks settings.

  • General -> Grouping -> By Program Name.
  • General -> Sorting -> Alphabetically.
  • General -> Filters -> Only show tasks from the current desktop.
  • Appearance -> Tool Tip -> Tool Tip Style -> Smooth
  • Appearance -> Tool Tip -> Preview Style -> New

There are a plethora of other settings that you can play around with, but I would recommend the above for a “smooth” experience.

Other Recommended Plasmoids

Applications

  • smplayer – download the bespin icon theme for smplayer here.
  • kopete – I would recommend the Perfect Adium Pushpin chat style.
  • firefox – sadly there is no matching firefox theme. If someone can make one, I would be obliged. Meanwhile, I use the Oxygen theme and vimperator.
  • skype – use the latest 2.1 beta 2 (for linux) skype. This has support for Qt Styles – and works perfectly with the bespin theme.
  • Gtk Apps – this is always a pain. There really is no gtk theme that I have found which goes well with bespin. I am currently using Clearlooks – if anyone can find/make a theme which goes well with bespin, well I would indeed be grateful.

That is all I can think of for now. If you would like to know something more, feel free to comment.

P.S. For those of you who are interested in the conky configuration, have a look see here.

The Perfect Conky Setup

A picture is worth a thousand words, have a look for yourself.

Conky on KDE4

So, how to get this goodness on your computer. Quite easy. Simply follow the following steps and you will have a similarly amazing desktop.

  • Firstly, install conkyForecast.
  • Gentoo users, go here.
  • Ubuntu users, head over to here.

Everyone now head over to weather.com and register yourself. Obtain your XML Partner ID  and License key. Use the following command to search for your location code. Change Zurich to your city name.

$ curl http://xoap.weather.com/search/search?where=Zurich

You can then get the location code from the output of the above command.

Next, copy the conkyForecast configuration file over to your home folder and fill in the Partner ID, Location Code and License Key.

cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config
vi ~/.conkyForecast.config

Download the conky configuration file from this link and save it to your home folder as .conkyrc.

Now download Conky Colors from gnome-look. Extract the archive and install all the fonts that are present in the package. Even though not all of the fonts are required for the setup (you can take a quick look at the conky configuration file to see which fonts are actually needed) the fonts are quite nice and having them on your computer won’t hurt at all.

Install conky if you have not already done so. IMP: This theme is tested with conky-1.8.0_rc2 so make sure you are using this or a newer release of conky. If you are on gnome please edit the configuration file to suit your needs (in particular change the location code to get the weather of the city you reside in) and then launch conky. If there are any particular hacks that are needed to integrate conky and gnome, my apologies for not being aware of them. Please feel free to add any such suggestions in the comments section, I will update the post with it.

KDE USERS:

If you are using KDE4, also install feh, an image loader which will help us to integrate conky seamlessly into the KDE environment. Now create this script, which we will use to launch conky.

$ nano conky.sh
#! /bin/bash
conky -&
sleep 3
feh --bg-scale `grep 'wallpaper=' ~/.kde4/share/config/plasma-desktop-appletsrc | tail --bytes=+11`

The above script is supposed to read your wallpaper settings and use that to redraw the background of conky. For some reason, it is not working for me so I hard-coded my wallpaper in to the script.

$ nano conky.sh
#! /bin/bash
conky &
sleep 3
feh --bg-scale /home/rahul/Pictures/Wallpapers/wall_abstract.jpg

Use whatever method suits you. Do remember to make the script executable.


chmod +x conky.sh

Take a final look at conkyrc. Make sure that you have the right location ID for the weather. Use KDE system settings to add this script at startup and voila! We are done. We now have the perfect conky setup. For immediate testing, launch the script.

REFERENCES:

P.S. The music part will only work if you use MPD.

Installing WordPress Locally on Gentoo

There are already a couple of informative articles on this. Good as they are, I managed to run into a couple of problems that are not detailed on these articles possibly due to the fact that they were written a long time ago. Therefore this article, to help others (and me) who in the future wish to achieve the same that I did.

USE Flags

  • dev-lang/php apache2 mysql (in addition to ones already enabled by default)
  • www-apps/wordpress vhosts

Emerge WordPress

  • emerge -av wordpress

Install WordPress using webapp-config

  • webapp-config -I wordpress 2.9 -d wordpress

Configure the MySql database

  • mysql -u root -p (login to MySql)
  • CREATE DATABASE databasename; (create a database, replacing databasename with the name that you wish to choose)
  • GRANT ALL PRIVILEGES ON databasename.* TO username@localhost IDENTIFIED by ‘password’; (Create a user for the above database, replacing username with the name that you intend to use. Similarly with password)
  • FLUSH PRIVILEGES;
  • exit

Configure WordPress

  • vi /var/www/localhost/htdocs/wordpress/wp-config.php (and verify the following settings)

 

// ** MySQL settings ** //
define('DB_NAME', 'wordpress');     // The name of the database
define('DB_USER', 'username');     // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost');

Configure apache2

  • vi /etc/apache2/httpd.conf
  • Comment out the following line: LoadModule unique_id_module modules/mod_unique_id.so
  • Add the following to the end: ServerName localhost
  • vi /etc/conf.d/apache2
  • Add the “-D PHP5” to the options passed in APACHE2_OPTS

You are set to go

  • Start apache2: /etc/init.d/apache2 start
  • Point your browser to http://localhost/wordpress
  • Have fun

Did @ Home

So, in view of the last post here is what I did manage to miss out on at home:

Movies

Yes, I missed out on 3 Idiots and Avatar.

Food

OK, there was no way I was missing out anything food related, was I? I gobbled lots of it. Should last me for a long time – till I go home again, that is.

Travel

Couldn’t get to Mahavirji – the train was delayed by more than 6 hours thanks to the legendary Delhi fog. Andaman, however was everything that I had imagined it to be and a lot more. Paradise on earth.

Watch

Yeah, I enjoyed lots of senseless TV, managed to catch cricket on TV (why did India have to lose that damned final to Sri Lanka?).

Enjoy

I enjoyed every day of my stay at home. There is no other place like it …

Todo @ Home

Only 6 days left and then I am in the most beautiful place on this earth – Dehradun, which also happens to be where home is. A big YAY for the semester break. Now, since I am going home after nearly a year there are a lot of things that I must do at home. So here is my todo list – things I simply must do when I get home.

Movies

  • Rocket Singh
  • 3 Idiots
  • Avatar

Food

  • Dosa, Sambhar, Idli, Utthapam
  • KC Momo
  • Dulara Chowmein
  • Lots of “Haldiram’s Chilli Chatak Lachha”
  • LAYS MAGIC MASALA – at least one packet a day, if not more
  • Bhindi – proper Bhindi
  • Gajar Ka Halwa
  • Kaju ki Barfi
  • Rasmalai
  • Mathri with Aachar
  • Roti – you only get that at home
  • Aloo Ke Paranthe – daily for breakfast with Hing Ka Aachar
  • Poha – when not having Aloo ke Paranthe for breakfast
  • And any and everything that mom make

Travel

  • Andaman
  • Chennai
  • Mahavirji

Watch

  • Finally watch cricket matches on TV (maybe even DD with classic Hindi commentary)
  • Catch snatches of useless Indian TV serials
  • Browse through all the useless movie channels which keep showing the same movies for 5 years
  • Learn about senseless news such as suspected aliens stealing cows or such on the great circus of Indian news channels
  • Tune in to channels which only show trailers of new and upcoming Bollywood movies for 24 hours

Enjoy

  • The great Dehradun winter – sunny, fog free and a pleasant 20C
  • Being at home

Oh, and maybe also studies for my exams in January!

The way KDE4 should look

In case you were not aware of it, the best theme for KDE4 is Bespin. Not Oxygen, not qtcurve. You might say that themes are like desktop wallpapers – to each his own. I would disagree. KDE4 brought along a slew of improvements and new paradigms to the Linux Desktop Environment and in its small way Bespin does that as far as theming on the desktop is concerned. Insanely customizable, it will allow your desktop to have the sort of look that you will fall in love with it.

Some features that I especially like about it:

  • “Air Like circle Overlays in Window backgrounds”
  • “Behave rather Maccish – except file management most other things activate on single click”
  • “Slim Sliders”
  • “Hacks – Animate all Tree views”
  • “Presets – switch configurations on the fly”
  • And some more ..

So, go ahead and try it! Most popular distros have a package for it. For Gentoo grab it from the kde-testing overlay (x11-thems/bespin-9999).

A new beginning

It has been a long time since I have last updated this blog. 7 months to be exact. Phew, that is a long time indeed. Keeping in mind the fact that I do love writing that is a very long absence. A long abstinence from writing however it has not been. I have been posting articles for my WordPress Blog, the Mercator College Blog and the Mercator Website. Those posts however deal more with my opinions rather than my day to day activities or events of note that have taken place (in my life) since I last updated my blog.

Sweeping changes, should I say? For a lot has changed, for starters I completed my bachelors at Jacobs University in Computer Science. A picture … (the only one that I have with me right now – I am still waiting to collect pictures from friends )

Then there was the summer. Thinking of doing something constructive, I decided to revamp the Mercator Website (old -> new). Took me the entire summer, but the satisfaction of completing how to make a dog an emotional support dog project was immense. As I explain in the About Section on the website seeing other colleges maintain a superior website to ours was not a pleasing experience, hence the effort. Hopefully the website is at par with the other college websites.

Gentoo FTW!

So, the folks at linux-mag have bench marked Gentoo(x86_64) compiled with march=core2 and -O2,-O3 or -Os and compared it with Ubuntu 9.04. While Ubuntu 9.10 is already out, the software used on Gentoo (seems that the used the stable branch of Gentoo) is closer to 9.04 than 9.10. And what do the results tell us? Exactly what we already knew. Gentoo kicks ass. We already knew that, didn’t we. However, what is interesting is that when most of the people have been harping that optimizing for a particular CPU (which I believe is the primary reason for the differences that we see) is not useful anymore, it seems that the this is really not the case. In my own experience, I concur. My Gentoo system has been far more responsive than my Ubuntu or even Arch systems ever were.

Read the full article here: http://www.linux-mag.com/id/7574/