Archive for February, 2009

Portage bug: global "doc" use flag

February 24th, 2009 by Ivan Lakhturov | 0 Category: Linux | Tags: |

Meditating whether to merge docs for some package, I asked myself "why not to grab all those tons of mans available and store them locally?" Indeed, there's plenty of space on modern HDDs. So, I've set globally the "doc" flag and run rebuild of the whole system.

Strangely enough, adding this flag seems to require recompilation of binaries, but that's not the worse thing. Rebuild proccess just hangs on kdelibs package (exactly when installing help docs). Pressing Ctrl+C and trying again several times gives the same. I've hit upon such a phrase in a handbook:

The best way of enabling the doc USE flag is doing it on a per-package basis via /etc/portage/package.use, so that you get documentation only for packages that you are interested in. Enabling this flag globally is known to cause problems with circular dependencies.

What a poor excuse this sounds to me! Anyway, disabled that flag and recompiled everything back.

Hacking WordPress engine a bit

February 21st, 2009 by Ivan Lakhturov | 0 Category: Miscellaneous | Tags: |

Just switched to a new WordPress theme (skin). Despite minimalistic, had to threw out several things from a sidebar.

I didn't like the default behaviour of the engine, when it's printing shortened versions of postings at the home page. Moreover, dereferencing links on that page is an awful feature. So, I've run into the engine and changed the_excerpt() function to the_content() one in files index.php, archive.php and search.php. Now it's ok. The following WordPress help topics were useful: The Loop, Changing Read More tag behaviour, however, I've not read them, just looked through.

Later on I'll backup and upgrade the engine to a new version. It'd nice to find proper colorizer for code-tag, preferably for Scheme and C# (the latest I'll update to handle Nemerle-code). I have also to look how to print tags (not html ones) near a posting. And does the latest engine's version support OpenID?

Bug, compiling PLT-Scheme

February 19th, 2009 by Ivan Lakhturov | 0 Category: Linux, Programming | Tags: | |

The most easy-to-use Scheme compiler/interpreter is PLT, simple IDE is included. Emerging the latest ebuild gives errors under -O3 optimization flag, I confirmed it at the bugtracker. The solution is to switch temporarily to -O2.

Installing KDE

February 19th, 2009 by Ivan Lakhturov | 2 comments Category: Linux | Tags:

I installed X, then KDE using the following manuals:

Building by itself caused no troubles. But testing clean X after the first step brought a problem with unresponsive mouse and keyboard, I couldn't even drop back to console with Ctrl+Alt+Backspace. Some gentoo forum topic (don't remember which) gave a solution - adding

Option "AllowEmptyInput" "false"

to the section "ServerFlags" of xorg.conf helped.

I wanted to install Gnome as well, but there are two packages blocking each other, namely avahi and mdnsresponder, one is default for Gnome, another for KDE, they both do the same and cannot live together on the same system. Strange, a year ago, when I assembled a Gentoo system with KDE and Gnome, there was no such problem. Anyway, there is a topic at the forum suggesting some solutions, but I'll try them later, no need to hurry with Gnome currently.

Installing Gentoo pure system

February 18th, 2009 by Ivan Lakhturov | 0 Category: Linux | Tags:

My m/b (ASUS M3N78-VM) requires the kernel 2.6.25 or newer, even the latest Gentoo livecd didn't boot on my system. I used the SystemRescueCd on USB to boot it. Important thing was to load it with 64-bit kernel (in 32-bit we cannot be chroot'ed into 64-bit stage-3 gentoo image). Then everything was according to the Gentoo Handbook. As I wanted everything optimized for my CPU (quad-core Phenom), it was neccessary to update a toolchain. GCC at the Gentoo stable branch cannot compile with -march=amdfam10 flag, so I switched competely to the testing branch. I updated toolchain, then built the latest kernel (2.6.28-r1) and some must-have terminal applications - everything went smoothly.

And yes, the m/b works in AHCI-mode, max of 6 SATA-devices are accessible. This I couldn't get under Windows.

Plans for future

February 16th, 2009 by Ivan Lakhturov | 0 Category: Linux, Programming | Tags: | | | |

Nemerle is waiting, but it have to wait more, while I'm learning Scheme. I have a plan to solve some problems from Project Euler, first with brute-force (however, it is not always possible), then using smarter ways, and post some solutions here under the tags "projecteuler" and "scheme".

Another thing, I am setting up currently a Gentoo Linux system on my workstation, so, some postings about this will come under the tag "gentoo". One of the reasons to install it is an unexpected difficulty with SATA-drives under Windows. The motherboard (Asus M3N78-VM) supports SATA-devices in three modes: SATA (only three accessible), RAID and AHCI. The latest is preferable for me, as I need more than three drives.

It was understandable when WinXP 64-bits (I didn't try any 32-bits systems, as I need more than 4 Gb of RAM) refused to work in AHCI-mode despite all my tricks with this and that, particlularly, manufacturer's drivers embedding with the nLite tool. But when Vista x64 with proper drivers could not load after switching m/b into AHCI, I decided that it's time to try Linux again. I prefer Gentoo, one of the most hardcore distributions available.