Wednesday, May 11, 2011

To Wait for KDE 4.6 on Debian or Not To Wait?

As being waiting 4.6 to arrive in the official debian repositories, I became pretty curious and tried it in Ubuntu (Installed Ubuntu first, then installed kubuntu-desktop and kde-full).

As I  have seen many Ubuntu KDE users' comments in the forums, I thought of giving it a try, even though my presumption is Kubuntu messes up KDE.

As I am using debian wheezy, I am still in kdevelop 4.0.1. I did not know how to get all phpunit related stuff working in kdevelop. $this->assertions are not popped up by auto-completion. All phpunit related functions are underlined in wavy red. I don't mind it much and keep on using kdevelop 4.0.1. So, my very first try, after installing, was kdevelop 4.2.

Meanwhile, I got a solution for the above from Milian. He says, we can workaround by simply creating a symlink for PHPUnit under the project directory. I jump started by creating the symlink and opening a php project. kdevelop 4.2 in Ubuntu scanned and indexed the project pretty quickly, but alas after reaching 100% of scanning it throws an exception and exits. I tried it multiple times, it is repeatable. I tried the same in debian with kdevelop 4.0.1. It took more time for indexing and scanning, but it did not break. (Although the wavy underlines  are now gone and some unit testing related methods are listed, none of the assertions are still not popped up by auto-completion. I would attribute that to kdevelop rather than debian, as I know there had been some issues with auto-completion which were fixed in later releases)

So, my first expectation broken, I continued with using the system. And within two hours I saw the system breaking at least 4 times. Rekonq, and Konqueror are breaking miserably as of now.

I just made my mind that waiting for 4.6 in debian is worth, rather than hurrying for something else. Let those debian developers take their time and come up with something usable. May Allah bless them.

Update:  I upgraded my debian sid to 4.6.2 (using qt-kde.debian.net repository) and using it for 2 days. I have enabled desktop search (nepomuk and strigi) and desktop effects. No single crash so far. That's why I place my trust on debian than Kubuntu when it comes to debian.

Configuring PHPUnit with XAMPP in Windows

Installing and configuring phpunit is a trivial task in Linux environment. If you are a debian/Ubuntu user, just 'sudo apt-get install phpunit' will install it. If the installation reports any php extension as missing try 'sudo apt-get install php5-theExtensionThatWasMissing'.  It is as simple as that.

But getting it configured it in XAMPP in Windows environment involves some additional complexities. The reasons are
1. It comes with phpunit already installed which is 2.x.y. It may take some time to realize that this is not the latest phpunit, though this is the latest XAMPP
2. pear -V will show that it is 1.7.2 whereas 1.9.1 or higher is needed to install the latest phpunit. This is the first and foremost task.

If you have multiple php versions running, sorting out any path related issues before proceeding will save a lot of hardships and unnecessary confusions.



Steps to Install PHPUnit:
I am going to write down the steps that I had to follow to get it installed in my laptop.

1. cd c:\xampp\php
2. pear upgrade pear
The above command gave the following error
ERROR: failed to mkdir C:\php\pear\docs\Archive_Tar\docs
ERROR: unable to unpack C:\Users\Home539\AppData\Local\Temp\pear\download\Structures_Graph-1.0.4.tgz
ERROR: failed to mkdir C:\php\pear\docs\PEAR
3. mkdir c:\php
4. pear upgrade pear (again)
It upgraded. Now, the version is 1.9.2
Important: If this is not successful, there is no point in continuing further in this direction. If this step is blocking and could not continue, try some alternatives. I have listed some below.
a. Try installing pear freshly. Download and save this as  go-pear.php under c:\xampp\php and run 'php go-pear.php' from there. This should work.
b. Consider installing phpunit without pear as the final option if nothing works

5. Followed the commands in the official site. But, instead of  'pear install phpunit/PHPUnit' execute 'pear install --alldeps phpunit/PHPUnit'
This should install phpunit without any issues. phpunit --version now shows 3.5.13 now in my machine.

It is also recommended to enable xdebug (required for code coverage generation) and curl.

Enabling cURL:
1. Remove ';' from extension=php_curl.dll in php.ini (uncomment)
2. Ensure that  ssleay32.dll and libeay32.dll are in Windows/system32.(copy these from c:\xampp\php to windows\system32)
3. Copy php_curl.dll into Windows\System32 as well.(copy this from c:\xampp\php\ext to windows\system32)

Enabling XDebug:
1. Find the section [XDebug] in php.ini
2. Uncomment the following line (remove ; from the beginning of the line)
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
3. Copy php_xdebug.dll into Windows\System32 as well.(copy this from c:\xampp\php\ext to windows\system32)

Note: Since XDebug is configured as a zend_extension in the above section, we need to make sure that it is not loaded as a dynamic extension. So, find and comment the following line, if it is their.
extension=php_xdebug.dll

Note: If your Windows is 64 bit, you need to copy the dlls to Windows/SysWOW64 Folder




Tuesday, May 3, 2011

KDE 4.6.2 Has Landed on Debian Experimental

The Debina KDE community was anticipating 4.6.2 in one of the official repositories in April. Though the release was expected in the official repositories, it made its way to the semi-official qt-kde.debian.net.

I just had a check and found that 4.6.2 is in the official Experimental repository today. kdebindings has not been packaged yet. This means it might take some more time for the release to reach unstable (sid) and testing (wheezy) repositories.

Update: Updating to qt-kde.debian.net is a stabler option than the official Experimental. As per the sources, debian Experimental and qt-kde.debian.net are almost the same but the latter may contain more packages. qt-kde.debian.net also seems more active than the Experimental. As we are expecting KDE 4.6.3 within this week, we can expect that to reach unstable (sid) rather than 4.6.2.

Tuesday, April 5, 2011

KDE 4.6 Will Be There in Debian Soon

KDE 4.6.2 SC is not available to the public, but has been made available to the packagers and the Debian team is actively packaging it. According to package maintainers, they are trying hard to bring KDE 4.6.2 to the official repositories within a week or two.

The packages will be launched to either experimental or sid or both, but testing (wheezy) users have to wait.

Monday, April 4, 2011

KDE 4.6.1 Released in the Debian Semi-Official qt-debian repository

After a long awaiting, KDE 4.6.1 has become available to the Debian users via the semi-official qt-debian repository. The release is said to be of experimental  quality, and not guaranteed to be compatible with the official 4.6.x releases which are planned for sid and testing.

KDE bindings are not packaged yet, and expected to take some more time due to their complex dependencies. This excludes a subset of the packages which are written in  non c++ and bound to kde by their respective bindings. For example any KDE application written in python is not going to work with this installation.

The packaging team has tried a new way of packaging KDE software so that it will not conflict with some of the third party KDE software like ktorrent and kmess. Previously it was conflicting.

Performance improvement is said to be the most visible improvement. Another change interesting to me is that the networkmanagement plasma widget of 4.6.1 not being compatible with 4.4.5. KDE network management plasma widget was not up to the level when it comes to Mobile Broadband support. Some decent work has went into this, and some other complaints are also fixed in the latest version. Lets hope and wish that similar improvements have gone to dual monitor support as well.

I personally had a bad experience with knetwork client when I once tried to do a presentation. The wireless network connection got deactivated accidentally using the function keys of my laptop and did not pickup after I re-activated it again. After some tries I got desperate and even restarted the laptop. Still it was not working. And in the same presentation, the projector detection was also not so smooth, and finally I had to use someone else's laptop to proceed with. (I did some experiment later and found out that I have to kill knetwork and start it manually to make it detect the changes)

Anyway, It is a good decision to break the long silence and provide something to the end users via the semi-official repository, rather than not producing anything at all. Though things are not perfect, people will have something.

What the package maintainers want is an early feedback, so that the quality official releases can be enriched. Brave souls are welcome to give it a try!

Saturday, April 2, 2011

Dell Vostro 1014 Sound Issue in Debian Wheezy

When I plug my headphone into my Dell vostro 1014 (laptop) the laptop speaker was not getting muted. My laptop had Debian Wheezy installed.

The following Ubuntu forum threads shed some light on this and gave hope that it is possible to get things working.1. http://ubuntuforums.org/archive/index.php/t-1467218.html
2. http://ubuntuforums.org/archive/index.php/t-1457859.html

My guess was the problem was due to some driver issues as I was using the free kernel that was shipped with Wheezy. After some experimenting the following solved the problem.

1. Adding the line "options snd-hda-intel model=dell-vostro position_fix=0 enable=yes" at the end of the /etc/modprobe.d/alsa-base.conf
2. Installing liquroix kernel, 2.6.38-2.dmz.1-liquorix-amd64, solved the issue

(Installing firmware-linux package did not solve the issue as of today.)



KDE 4.6 Getting Delayed for Debian

There is a lot of pressure being built up on why packaging KDE is getting so delayed. According to official sources it should have become available in the beginning of march, but now being the beginning of April, no signs yet.

There is a good news as well as some bad news. Good news is that the semi-official repository qt-kde will see the 4.6.1 by Saturday, we may expect one or two days of delay there, but it will make it there pretty soon.

Bad news is that it may get further delayed to land on one of the official repositories. According to a mail in the Debian mailing list, official archives will see 4.6.2 (which is scheduled at April 5th by the KDE upstream) or later. Users of the testing repository may have to wait sometime more.

According to the package maintainers, the KDE SC is huge, and each package has to be verified that it meets Debian's Free Software Guidelines. Given the complexity of the project, it is no more technically as easy as it was in 2.x series.  Once the major release is packaged, updating it to point releases is easier. So, even when users have to wait a little longer for 4.6.1 (the major version), they will notice that updates to point releases (4.6.x) are quicker.

All who are impatient should understand that all the work that goes into Debian is voluntary, people do it for fun on their free time, and do not want to be pressured. In an IRC chat with the package maintainers, I learned that there are much more packages they wish to get packaged into the repositories, and welcome any assistance. But the assistance is expected from an experienced person, and not a complete novice. If no one comes forward, those packages may not be included in Debian at all. For example, one maintainer wished he had semantik - a mind mapping tool - in the repository. I checked and found that it is an KDE extragear package which is currently missing in the repository.

I know that KDE 4.7 is going to be released in July (according to official sources). Again Debian will face the same delay in getting 4.7 in for the same reasons. But, I decided to learn some basics and get prepared from now itself so that I can be of some help at that time.

A good starting point would be the New Maintainer's Guide for anyone willing to join forces.