World IPv6 Launch

I’d like to remember today is the World IPv6 Launch, lots of websites can be reached using IPv6 starting from today (including linuxsystems of course).

You can find the full list here: http://www.worldipv6launch.org/participants/?q=1

P.S. It’s a good moment to choke your provider’s lines asking for native IPv6 support 😉

Debian Wheezy Raspberry Pi minimal image

I made my own Raspberry Pi custom image based on Debian Wheezy.

Features include:

  • A minimal Debian Wheezy installation (similar to a netinstall) instead of the outdated Squeeze packages
  • Disabled incremental updates, means apt-get update is much faster
  • Workaround for a kernel bug which hangs the Raspberry Pi under heavy network/disk loads
  • A custom 3.1.9+ kernel with latest raspberry pi patches
  • Latest version of the firmwares
  • Lower GPU ram usage (32MB) by default
  • 224MB of ram are available to the system now
  • A very tiny 107MB image: even with a 2GB SD there is a lot of free space
  • ssh starts by default
  • The clock is automatically updated using ntp
  • IPv6 support
  • Just 7MB of ram usage after the boot

Here is the link to download my custom image: http://files2.linuxsystems.it/wheezy_20120608.img.7z

You will have to extract the image with p7zip:

7za x wheezy_20120608.img.7z

Then flash it to your SD with dd:

dd bs=1M if=wheezy_20120608.img of=/dev/sdX

Finally, if you have an sd larger than 2GB, grow the partition with gparted (first move the swap partition at the end).

The root password is raspberry.

You will have to reconfigure your timezone after the first boot:

dpkg-reconfigure tzdata

The keyboard layout:

dpkg-reconfigure console-data

And the localization:

dpkg-reconfigure locales

 

It’s done, I hope you will enjoy it.

Edit: I also released a Raspbian Wheezy armhf minimal image with hardfp binaries.

[Gentoo] Folding@Home v7: fahclient-7.1.52 ebuild available

Latest sci-biology/foldingathome ebuild in portage is 6.34-r2. Thanks to Bas Couwenberg who did the original sci-biology/fahclient-7.1.43 ebuild I made a new version for 7.1.52:  sci-biology/fahclient-7.1.52.ebuild

You can find both in my overlay.

The Raspberry Pi has finally arrived!

[Gentoo] G45/GM45 h264 VA-API video decoding

On May 2011 Intel released G45/GM45 h264 VA-API in their g45-h264 branch. More then one year later they still didn’t merge it to master and no one touched that code in the meantime.

Fortunately if you tweak your system a bit that code is good enough to play a 1080p video with a generous bitrate, unfortunately it will not work out of the box.

After putting the vaapi use flag in your /etc/make.conf you will need to modify the x11-libs/libva-9999 and x11-libs/libva-intel-driver-9999 ebuilds to checkout from the g45-h264 branch instead of master. Of course if you use the ebuilds from my overlay you will have to do nothing.

Then you will have to emerge a player which takes advantage of vaapi, you have three alternatives:

  • VLC: the media-video/vlc ebuild in gentoo already supports vaapi, unfortunately I didn’t get good performances with vlc so I discourage using it. I didn’t waste lot of time trying to tweak it anyway because I don’t like vlc too much.
  • media-plugins/gst-plugins-vaapi and your favorite gstreamer player (for example kde-base/dragonplayer if you use KDE). Unfortunately gst-plugins-vaapi isn’t in portage, you can find it the openoffice-geki overlay but it is broken so I suggest you to use the one in my overlay. Also you will need media-libs/gstreamer-0.10.36, gst-plugins-bad-0.10.23 and gst-plugins-* 0.10.36, they aren’t in portage of course so I suggest you to do a version bump or using the ebuilds in my overlay. Unfortunately gst-plugins-vaapi is currently broken with G45/GM45 so you should skip to the next alternative until it gets fixed. EDIT: it works now https://bugs.freedesktop.org/show_bug.cgi?id=50390

 

  • media-video/mplayer with the SMPlayer frontend.

There isn’t any mplayer ebuild with vaapi support, so I suggest you to take it from my overlay. I made the ebuild using the latest git snapshot of mplayer-vappi. You can find a live ebuild of media-video/smplayer in the multimedia overlay.

You can check if everything works as expected with:

mplayer -vo vaapi -va vaapi file.mkv

but you will seriously need some tweaks until it gets usable.

  • First of all you will have to disable the desktop compositing, you can temporarily do it with ALT+SHIT+F12 if you use kde.
  • Then you will have to disable SwapbuffersWait:

# cat << EOF >> /usr/share/X11/xorg.conf.d/99-intel.conf
Section “Device”
Identifier “intel”
Driver “intel”
Option “SwapbuffersWait” “off”
EndSection
EOF

  • In SMPlayer go to Options –> Preferences and in the General section disable Screenshots. In the video tab select vaapi as Output driver. If you use pulseaudio or jack set it in the audio tab. In the Performance section disable Frame drop and set Threads to 1. Go to the Advanced section and then in the Options for mplayer tab, add -va vaapi in Options. If you have IPv6 connectivity set IPv6 in the Network tab.

Done, you can finally enjoy hardware accelerated VA-API video decoding. With vaapi I can even watch 1080p videos while emerging @world with my 1.4GHz cpu :)

Edit: I forgot to say you should not use SNA (Sandy Bridge New Acceleration) because VA-API becomes slower. (FIXED)

Anyway you will probably want to emerge mplayer2 and smplayer2 too, so if you want to use the cpu instead of the gpu to decode a particular video you will be able to do it without having to unset smplayer. If you have a slow cpu I suggest using:

mplayer2 -vc ffh264 -lavdopts threads=4:fast:skiploopfilter=all -vo gl file.mkv

media-video/mplayer-1.0_rc4_p20120116 with vaapi use flag

An mplayer ebuild which supports VA-API hardware acceleration isn’t something you can easily find. There is one in the calculate overlay but it’s quite ancient nowadays. This is why a made a new ebuild based on the latest git code from http://gitorious.org/vaapi/mplayer.

You can find my media-video/mplayer ebuild with vaapi use flag in my overlay.

[Gentoo amd64] 32 bit graphic drivers from git without the multilib overlay

If you use Gentoo amd64 and the Intel/Radeon/Nouveau Open Source graphic drivers you already know the problem: x86_64 drivers from git (like media-libs/mesa-9999 from the x11 overlay) are bleeding edge and fast, while the 32 bit ones from app-emulation/emul-linux-x86 are outdated and slow. This is especially sad considering the most demanding games are the Windows ones you can play through wine and they are 32 bit.

Gentoo’s official way to deal with such a problem is the multilib overlay, unfortunately it’s badly broken and anyway having to recompile half the system just because of mesa is simply crazy. Thanks to Mike Lothian this isn’t a problem anymore: there is an unofficial overlay which lets you compile 32bit mesa directly from portage, without using a chroot or the multilib overlay. He simply tuned the live ebuils from the x11 overlay adding -m32 when needed and so on. As simple as effective. Unfortunately using such an approach you have to keep in sync the ebuilds, also they install on top of the regular emul-linux-x86 packages overwriting the existing libs and forcing to put COLLISION_IGNORE=”/usr/lib32 /lib32″ in your make.conf

This isn’t an issue anymore because he modified the emul-linux-x86 packages to avoid installing the graphic libraries, such a way the 32bit ebuilds don’t need to overwrite anything and you don’t need COLLISION_IGNORE anymore! Again, as simple as effective but no one else did it so thanks Mike!

Using Mike’s FireBurn overlay is very easy, first of all you will have to add it:

layman -a FireBurn

Then you will have to unmask some packages:

echo “media-libs/mesa-32bit” >> /etc/portage/package.keywords
echo “sys-devel/llvm-32bit” >> /etc/portage/package.keywords
echo “x11-libs/libdrm-32bit” >> /etc/portage/package.keywords
echo “dev-libs/libffi-32bit” >> /etc/portage/package.keywords
echo “x11-libs/libX11-32bit” >> /etc/portage/package.keywords
echo “app-emulation/emul-linux-x86-xlibs” >> /etc/portage/package.keywords
echo “app-emulation/emul-linux-x86-opengl” >> /etc/portage/package.keywords

finally you can emerge mesa-32bit:

emerge -av mesa-32bit mesa-progs-32bit

And here it is:

~ $ glxinfo32  | grep OpenGL
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset
OpenGL version string: 2.1 Mesa 8.1-devel (git-6404095)
OpenGL shading language version string: 1.20
OpenGL extensions:

Asterisk 1.8.11.0 Debian Squeeze packages with T.38 gateway, queue hints and fixed RFC4235

After releasing a patch against 1.8.11 I made Debian packages compiled with T38 gateway support. Also, I backported a fix which should (hopefully) fix call pickup with RFC4235 (notifycid=yes) and a new feature which allows to place a hint on a queue.

Here is linuxsystem’s repository: http://www.linuxsystems.it/repository/

Stay tuned for updates.

New T.38 gateway patch against Asterisk 1.8.11.0

Yesterday Asterisk-1.8.11.0 has been released, unfortunately latest irroot’s T.38 patch is still against 1.8.8. Since I’m going to upgrade my asterisk box I made a new patch out of his subversion branch and I ported it to 1.8.11. I still didn’t test it properly, but I will in the following days. Debian Squeeze packages of asterisk 1.8.11 with t38 gateway patches (plus some more features and fixes) will follow soon, expect them in the following days.

Here is the patch: http://files2.linuxsystems.it/asterisk-1.8.11.0-t38_gateway.patch

Please let me know if it does work for you.

Fat32 long filenames patent invalid because of prior art?

Is seems Linus Torvalds has helped shoot down an important fat32 Microsoft patent, see this a 20 years old technical discussion on comp.os.minix: http://groups.google.com/group/comp.os.minix/browse_thread/thread/d2b819a69ae0fc4a/09ef13bc629e9d8b?lnk=gst&q=%22long+filenames%22#09ef13bc629e9d8b

For the patent office there is enough inventiveness in an idea born enumerating some possible solutions that came in mind after reading a question to make a patent. How ironic that a patent used to damage linux has been invented by its author

More info on: http://www.wired.com/wiredenterprise/2012/03/ms-patent/