Categories
gentoo problems

Reason: Failed on SHA256 verification on gentoo

One reason of

Reason: Failed on SHA256 verification

is that during creation of ebuilds some packages are fetched from external sources (for instance from adobe-flash site) and they sometimes publish new version of a package exactly under the same name.
Then next update results in a checksum error, because saved source from distfile directory is used.

To fix that you could:

rm -rf /usr/portage/www-plugins/adobe-flash/

or

fix it with
ebuild /usr/portage/www-plugins/adobe-flash/adobe-flash-11.2.202.411.ebuild clean prepare

Above situation should occure very rarely.

Categories
gentoo problems

How to install and configure TL-WN722N on gentoo

1. First make sure you have these options compiled into kernel

CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m

If you cannot find them within your config it means that some other dependencies are missing from your kernel.
You can find it more easily with “make xconfig” and selecting option “show all”
2. Most likely you will have to select:

CONFIG_CFG80211
CONFIG_CFG80211_WEXT

Without these two you will receive a lot of fancy errors like:

ioctl[SIOCSIWPMKSA]: Invalid argument

3. If you will see warning related to RFKILL you can fix them by compiling RFKILL into your kernel and emerge rfkill as well.

CONFIG_RFKILL=y
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y
CONFIG_ATH9K_RFKILL=y

After that you can check status of your device by:

rfkill list all

and if it’s blocked just unblock it by

rfkill unblock wifi

Ok.. now iwconfig should show some info about your device.
The only thing left is to confiugre /etc/wpa_supplicant/wpa_supplicant.conf file

for most common WPA2 configuration it should contain :

network={
ssid="yourSSID"
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
priority=2
psk="yourpassword"
}

If you want to avoid having password in plaintext you can use command
wpa_passphrase yourSsid password

and then paste
psk=yourGeneratedHash

(note missing quotes!)

Now is time to check your configuration:

wpa_supplicant -iwlan0 -dd -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf

If everything works do

ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0

and add it to default runlevel

rc-update add  net.wlan0 boot

In case of problems check:

  1. Is your card visible by lsusb ?
  2. Do you have any errors in dmesg
  3. Did you rebooted after recompiling modles?

I didn’t have to download anything drivers from suspicious pages! So please do not do this!
Everything worked on a modern kernel 3.13.7

Other common samples of wpa_supplicant.conf configurations related to different router’s security settings can be found here:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&part=4&chap=4#doc_chap2

Categories
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:

CONFIG_HPET_EMULATE_RTC=y
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE=”rtc0″
# RTC interfaces
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# I2C RTC drivers
# SPI RTC drivers
# Platform RTC drivers
CONFIG_RTC_DRV_CMOS=y
# 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.

Categories
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

Add

CXXFLAGS=”$CXXFLAGS -DLDAP_DEPRECATED”

to /etc/make.config

Categories
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/libfb.so (fbBlt+0xbe) [0xb72c392e]
[   543.134] 4: /usr/lib/xorg/modules/libfb.so (fbBltStip+0x73) [0xb72c46d3]
[   543.134] 5: /usr/lib/xorg/modules/libfb.so (fbGetImage+0x199) [0xb72c9a39]
[   543.134] 6: /usr/bin/X (0x8048000+0x15f0af) [0x81a70af]
[   543.134] 7: /usr/lib/xorg/modules/extensions/libglx.so (0xb74c0000+0x37d5b) [0xb74f7d5b]
[   543.134] 8: /usr/lib/xorg/modules/dri/swrast_dri.so (0xb4bfc000+0x10a5d) [0xb4c0ca5d]
[   543.134] 9: /usr/lib/xorg/modules/dri/swrast_dri.so (0xb4bfc000+0x10aa7) [0xb4c0caa7]
[   543.134] 10: /usr/lib/xorg/modules/extensions/libglx.so (0xb74c0000+0x37cbd) [0xb74f7cbd]
[   543.135] 11: /usr/lib/xorg/modules/extensions/libglx.so (0xb74c0000+0x34412) [0xb74f4412]
[   543.135] 12: /usr/lib/xorg/modules/extensions/libglx.so (0xb74c0000+0x3528a) [0xb74f528a]
[   543.135] 13: /usr/lib/xorg/modules/extensions/libglx.so (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.so.6 (__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
/etc/X11/xorg.conf.d/disable-composite.conf
with below content:

Section “Extensions”
Option “Composite” “Disable”
EndSection

Categories
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)

Categories
gentoo problems

How to add service menu entry in Dolphin.

Peace of simple functionality I’ve been lacking for some time in dolphin was “send to ” option which would create an email with attached file(s) (many files). I have no idea why it does not exists “out of box” but there is quite simple way of adding this.

This descriptions applies to KDE4.
directory /usr/share/kde4/services/ServiceMenus

contains list of actions avaiable in Dolphin for various file types.
If you add file there an entry will appear in Dolphin (Settings -> Configure Dolphin, Services)
In order to Dolphin re-read content of this dir you have to change something in that window (check and uncheck any selectbox and press apply).

Ok. create email.desktop in mentioned dir:

[Desktop Entry]
Actions=attachToEmail
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
Type=Service

[Desktop Action attachToEmail]
Name=Attach to Thunderbird Mail
Name[en]=Send file as attachment
Name[]=Wyslij jako zalacznik
Icon=/usr/share/thunderbird/icons/mozicon16.xpm

#Exec=a.sh -compose “attachment=file:/$(echo %F | sed ‘s/\\ \\//,file:\\/\\//g’)”
# bactick operator also works
Exec=thunderbird -compose “attachment=’file:/`echo %F | sed ‘s/\\ \\//,file:\\/\\//g’`'”

Download above sample from here (if you copy above content directly from browser IT MAY NOT WORK)

As you see you can specify with which file types this context menu should appear.
Above configuration works for thunderbird 2.x (2.x requires files:// prefix, because of some bug)

There is a peace of magic in Exec line, because of the way thunderbirds expects filenames.

More about desktop file format here.

Categories
gentoo problems

How to let users use new group rights without having to logging out

Have you ever  added users to a group and  they do not have access to the rights of that group until they login again?

Instead of telling them to log out and login again (sounds like MS solution?) they can type:

newgrp name_of_a_group

For more details read
man newgrp

Categories
gentoo problems

Sun-jdk requires some dlj licence ?

New version of portage adds support for licence acceptance for specific packages.
sun-jdk requires now acceptance of dlj licence (in /usr/portage/licenses)

If you do not want to get into more details simply add

ACCEPT_LICENSE=”dlj-1.1″

to your /etc/make.conf

You can also set this to
ACCEPT_LICENSE=”*”

but you won’t receive and error during installation of  licensed software.

Categories
problems

Cannot emerge nepomuk

(Soprano::PluginManager) found no soprano plugin at  “/usr/lib64/soprano/libsoprano_sesame2backend.so”
Failed to create memory model

First guessed solution works:

emerge soprano -av