Zagura’s blog

April 26, 2007

Kernel 2.6.21 is out

Filed under: English, Linux — puthre @ 11:44 am

Kernel 2.6.21 is out ant it contains my Logitech Formula Force EX force feedback patch

April 16, 2007

Piatra Neamt Easter 2007

Filed under: English, Life — puthre @ 4:56 pm

07042007002.jpg
(more…)

March 13, 2007

CentOS _dl_sysinfo_int80 deadlock

Filed under: English, Linux, Programming — puthre @ 12:17 pm

Are you using a CentOS or CentOS derived distribution and you experience deadlocks in dl_sysinfo_int80 function like this?:

#0 0×00ace7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0×00cb248b in __read_nocancel () from /lib/tls/libpthread.so.0
#2 0×080bdf39 in el_push ()
#3 0×080bdfda in el_getc ()
#4 0×080bde50 in el_push ()
#5 0×080be11b in el_gets ()
#6 0×080a6f59 in main ()

Then you need to upgrade the kernel to the lastest version from the CentOS repositories (2.6.9-42.0.10.EL as of today):

yum upgrade kernel

Have Fun!

March 10, 2007

Using libGD to manipulate jpeg images in C

Filed under: English, Graphics, Linux, Programming — puthre @ 12:53 am

Yesterday, for a small project of mine, I needed to implement a small utility to deform jpeg images from command line. The idea was to use texture mapping for deformations, so I needed a way to manipulate the jpeg images at the pixel level.

The first thing I tried was the imagemagik utility. I’ve browsed their documentation but I couldn’t find anything close to what I needed. I wanted to be able to draw textured mapped triangles into a picture. I knew that the Allegro library that I’ve used back in the old DOS programming days could do the texturing part. The bad thing that I found out is that it does not know how to handle jpeg files :(

Then I googled the Internet for a free and easy to use graphic library and I found libGD. The good thing is that it can handle jpeg files. The bad thing is that it cannot do the texturing part. The next thing I had in mind was to use both libraries but this would mean to add lots of dependencies to my small application for a simple texture mapping function. So I decided to write my own texture mapping function to remember the good old days. I will not describe how texture mapping works as there are plenty of tutorials on the internet for this.
(more…)

February 19, 2007

Running X applications under chroot jail

Filed under: English, Linux — puthre @ 9:52 pm

Having a Gentoo32 chroot as a fallback on a Gentoo64 system is not unusual. Some things simply do not work on Gentoo 64 (as FlashPlayer 9) or you need a distcc server for the other (32 bit) systems.

I wrote a simple bash script that allows the X applications under chroot jail to connect to the XOrg server runing outside the jail.
You can find it here.

Example:

linux32 xchroot /mnt/gentoo32

firefox

I only tested it on Gentoo.

February 6, 2007

Every time you feed a troll, God kills a kitten

Filed under: English, Fun, Life, Linux — puthre @ 2:52 pm

Feed the troll

http://lists.lug.ro/lurker/message/20070205.152933.4a60c9ff.en.html

Sharp Zaurus Out of Production

Filed under: English, Linux, Zaurus — puthre @ 11:32 am

It seems that Sharp will no longer produce the Zaurus line.

Hi all,

yes, we have to confirm that Sharp pulled the plug out
of the Zaurus line.
No successor model is planned, and the end of production
will be early February.
For sure we’ll continue with support, service and accessories
for the Zauri. Also there’re interesting other products around,
so the fun with mobile Linux products is definitely not over.

///TRIsoft

Marc Stephan

http://www.oesf.org/forums/index.php?showtopic=22804&view=findpost&p=150920

February 2, 2007

Gentoo on IBM ThinkPad 385XD

Filed under: English, Life, Linux — puthre @ 10:00 am

Another birthday present was a laptop IBM ThinkPad 385XD upgraded to 96MB of RAM and 10GB HDD.

It came with Windows 2000 preinstalled but I already build a Gentoo image on my desktop for it.

ThinkPad385XD

Due to the fact that it has a quite slow CPU and only 96 MB of RAM, I was thinking to use xfce as Desktop Manager. Then I thought that I should also try KDE because I had nothing to lose (except a few hours of compilation time on my desktop machine). So I emerged them both.

The conclusion is that KDE works like a charm on this machine. The whole system runs quite smoothly. I use distcc in combination with the x86 chroot of my desktop machine to emerge the new packages.

I had no problem to get a Surecom cardbus wifi card working with it using the rt2×00 driver provided by Gentoo.

February 1, 2007

Logitech Formula Force EX Wheel on Linux

Filed under: English, Linux — puthre @ 5:39 pm

On my birthday, my friends bought me a Logitech Formula Force EX Feedback Wheel. After playing with it a lot in Windows, I decided to make it work on Linux. The force feedback part didn’t work out of the box. I managed to make it work with the usb-hid driver after I added it’s usb id to it. You can find the patch against kernel 2.6.18 here.

  1. Copy the file to your kernel source root directory.
  2. Apply the patch:

    patch -p1 <logitech_formula_force_ex_ff.patch

  3. Recompile the usbhid module
  4. Reload the usbhid module.
  5. Have fun testing it with ffutils.

Logitech Formula Force EX Wheel

(Only the constant force effect works as this is the only effect currently implemented in the driver).

January 18, 2007

Linux DC++ was added to Gentoo today

Filed under: English, Linux — puthre @ 11:37 pm

The ebuild for the Linux port of DC++ Direct Connect client (Linux DC++) was added today to Gentoo portage. I was waiting for a long time to see a reliable Direct Connect client on Linux.

« Previous PageNext Page »

Powered by WordPress