gentoo problems

hwclock: Cannot access the Hardware Clock via any known method.

Recently I was updating my comp of course there was a need to make some kernel changes (I switched to Intel i5-4570 ), but most of things went rather smoothly, but I had problems with time during dual boot.

hwclock: Open of /dev/rtc failed: No such file or directory
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.

Checking kernel settings wasn’t obvious to me, cause dual boot was working previously and I though I moved previous kernel config..

Anyway RTC support was not included in kernel.. now I have:

# RTC interfaces
# I2C RTC drivers
# SPI RTC drivers
# Platform RTC drivers
# on-CPU RTC drivers
# HID Sensor RTC drivers

Some of settings may be not needed for you, but that’s my conf.
After recompiling and installing kernel error is gone.

java mac

How to attach Java src jar’s to Eclipse on Macbook

How to attach Java src jar’s to Eclipse

Go to:
cd /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home

Find the src.jar there:
find /Library/Java -name ‘src.jar’

And link whatever you will find in current directory
$ sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_51-b11-457.jdk/Contents/Home/src.jar .


Increasing limit of open files in linux

Sooner or later when doing some bigger system or just by messing with os you will meet that error:

Too many open files

You can solve it quickly by:

vi /etc/sysctl.conf
Append a config directive as follows:
fs.file-max = 200000
Save and close the file. Users need to log out and log back in again to changes take effect or just type the following command:
# sysctl -p
Verify your settings with command:
# cat /proc/sys/fs/file-max

 vi /etc/security/limits.conf
Set admin user (or for any other user) soft and hard limits as follows:
admin soft nofile 200000
admin hard nofile 200000


gentoo problems

kdepimlibs compilation problem

Having folowing problem during update to kde-4.10 ?

/var/tmp/portage/kde-base/kdepimlibs-4.10.0/work/kdepimlibs-4.10.0/kldap/ldapconnection.cpp:268:80: error: ‘ldap_init’ was not declared in this scope
/var/tmp/portage/kde-base/kdepimlibs-4.10.0/work/kdepimlibs-4.10.0/kldap/ldapconnection.cpp: In member function ‘void KLDAP::LdapConnection::close()’:
/var/tmp/portage/kde-base/kdepimlibs-4.10.0/work/kdepimlibs-4.10.0/kldap/ldapconnection.cpp:359:27: error: ‘ldap_unbind’ was not declared in this scope



to /etc/make.config


Smart cleaning of portage distfiles folder

Is as simple as

# eclean-dist -d
will clean all distfiles wihc are older than currently installed.

Eclean comes from package app-portage/gentoolkit and has couple other nice options -> read man.

gentoo problems

no dbus session-bus found

I tried set up a fresh install of gentoo under virtual box. Everything went smoothly with exception of error after entering credentials on kde logging screen.

[   533.067] (EE) [drm] drmOpen failed.
[   533.067] (EE) VBoxVideo(0): DRIScreenInit failed, disabling DRI.
[   533.067] (II) VBoxVideo(0): visual configurations initialized
[   533.068] (==) VBoxVideo(0): Backing store disabled
[   533.068] (II) VBoxVideo(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   533.071] (==) VBoxVideo(0): DPMS enabled
[   533.073] (II) VBoxVideo(0): The VBox video extensions are now enabled.
[   533.073] (–) RandR disabled

[   543.133] 0: /usr/bin/X (xorg_backtrace+0x3b) [0x80e72fb]
[   543.133] 1: /usr/bin/X (0x8048000+0x5dbf5) [0x80a5bf5]
[   543.133] 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xffffe40c]
[   543.133] 3: /usr/lib/xorg/modules/ (fbBlt+0xbe) [0xb72c392e]
[   543.134] 4: /usr/lib/xorg/modules/ (fbBltStip+0x73) [0xb72c46d3]
[   543.134] 5: /usr/lib/xorg/modules/ (fbGetImage+0x199) [0xb72c9a39]
[   543.134] 6: /usr/bin/X (0x8048000+0x15f0af) [0x81a70af]
[   543.134] 7: /usr/lib/xorg/modules/extensions/ (0xb74c0000+0x37d5b) [0xb74f7d5b]
[   543.134] 8: /usr/lib/xorg/modules/dri/ (0xb4bfc000+0x10a5d) [0xb4c0ca5d]
[   543.134] 9: /usr/lib/xorg/modules/dri/ (0xb4bfc000+0x10aa7) [0xb4c0caa7]
[   543.134] 10: /usr/lib/xorg/modules/extensions/ (0xb74c0000+0x37cbd) [0xb74f7cbd]
[   543.135] 11: /usr/lib/xorg/modules/extensions/ (0xb74c0000+0x34412) [0xb74f4412]
[   543.135] 12: /usr/lib/xorg/modules/extensions/ (0xb74c0000+0x3528a) [0xb74f528a]
[   543.135] 13: /usr/lib/xorg/modules/extensions/ (0xb74c0000+0x3727f) [0xb74f727f]
[   543.135] 14: /usr/bin/X (0x8048000+0x27e87) [0x806fe87]
[   543.135] 15: /usr/bin/X (0x8048000+0x1aec5) [0x8062ec5]
[   543.135] 16: /lib/ (__libc_start_main+0xe6) [0xb7560db6]
[   543.137] 17: /usr/bin/X (0x8048000+0x1aaa1) [0x8062aa1]
[   543.137] Segmentation fault at address (nil)
[   543.138]
Fatal server error:
[   543.138] Caught signal 11 (Segmentation fault). Server aborting
[   543.138]
[   543.138]

I have enabled 3d support in virtual box, but still I’m not sure whether we can expect working compositing under x in virtualized gentoo.
Don’t know whether exists better solution (let me know), but I’ve did was:

Creating file
with below content:

Section “Extensions”
Option “Composite” “Disable”


How to quickly find duplicated files on linux?

Just a quick direction to program -> fdupes
(on gentoo emerge fdupes -av)

fdupes -r movies_dir1 movies_dir2 > duplicates.txt

Above commands creates hashes of all files within specifies directories (-r recursive) and outputs that list to duplicates.txt. Now you can investigate that list and delete duplicates manualy.

You can also tell fdupes to delete files automatically or to be prompted.


Nvidia drivers error code 43

Suddenly windows device manager shows you problem with graphic’s card driver with error code 43?
Please check your nvidia driver version, after some windows update on win7 the newest drivers are not working (inspite of the fact that they are detected as proper drivers). In my case I have win7  64 bit with geforce 6600 (but I know this issue concerns also newer cards). The solution was to manualy download older nvidia (in my case it was 195.62 version).

For older cards newests drivers are not so important, because new features that these drivers introduces aren’t supported by such cards.

The interesting fact is that on the same maching I have working nvidia-drivers-260.19.21 under gentoo.


Gentoo and webdav

Getting tired of using ftp to sync some resources. Clicking connect is very tiresome so..
emerge devfs2 -av
groupadd -r davfs2
useradd davfs2 -g davfs2

If your webdav resource is secured edit /etc/davfs2/secrets and add simple line
http://yourresurce/path user pass

These are credentials to remote webdav.

Try to mount drive from cmdline
mount.davfs http://http://yourresurce/path /mnt/webdav/path

If it works unmount for a second
mount -u /mnt/webdav/path

If it works you can add following line to /etc/fstab
http://yourresurce/path /mnt/webdav/path davfs uid=wlos,gid=users 1 2

Try now mount -a and voila! Your remote drive will be available automagically.

There are many other options you can provide.. try docs!

gentoo problems

Error: glXCreateContext failed

This kind of message appeard on my maching after invoking
glxinfo | grep -i direct

Error was (at least I think so) caused by compiling nvidia-drivers against sources with slightly different version then running kernel (I forgot to update symlinc to kernel sources (eselect kernel)).

The interesting part of it is that X sever started at all!
So far I tought that after such compiling X will not start as it happed to me couple of times earlier.

(running kernel was 2.6.32-gentoo-r6 and drivers were compile against -r5)