Zagura’s blog

November 25, 2008

Cifs problem in Gentoo

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

If you encounter the following error when you try to mount a cifs filesystem:
CIFS VFS: cifs_mount failed w/return code = -22

try to:
#emerge mount-cifs

I did not find any indications on the net that a separate package should be installed in order to use cifs.

Later Update: same problem in ubuntu, you need to install smbfs
#apt-get install smbfs

November 23, 2008

GWTpedia

Filed under: English, Linux, Programming, Web — puthre @ 7:47 pm

gwtpedialogo.png

As I started to look at GWT and its related widgets, tutorials and utilities, I thought that it might be an idea to put the information together into a Wiki site. This way, GWTpedia.com was born. Everyone is free to edit.

November 12, 2008

Word generator

Filed under: English, Fun, Linux, Programming — puthre @ 5:47 pm

Here is a python script to generate words using Markov chains. The archive also contains some dictionaries (English, Romanian, Romanian names). This is similar with http://www.fourteenminutes.com/fun/words/ but you have the possibility to use your own word dictionaries.

July 10, 2007

Problems emerging device-mapper.1.02.19 with confcache on Gentoo

Filed under: English, Linux — puthre @ 3:10 pm

Disable confcache in /etc/make.conf if you are getting this when trying to emerge device-mapper.1.02.19 on Gentoo:
checking target system type… config.sub: missing argument
Try `config.sub –help’ for more information.
configure: error: /bin/sh autoconf/config.sub failed

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-fs/device-mapper-1.02.19/work/device-mapper.1.02.19/config.log

!!! ERROR: sys-fs/device-mapper-1.02.19 failed.
Call stack:
ebuild.sh, line 1621: Called dyn_compile
ebuild.sh, line 973: Called qa_call ’src_compile’
ebuild.sh, line 44: Called src_compile
device-mapper-1.02.19.ebuild, line 22: Called econf ‘–sbindir=/sbin’ ‘–disable-selinux’
ebuild.sh, line 578: Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at ‘/var/tmp/portage/sys-fs/device-mapper-1.02.19/temp/build.log’.

May 2, 2007

Street coding

Filed under: English, Fun, Life — puthre @ 9:14 am

Oldstyle
01052007s.jpg

Extreme Programming
01052007001s.jpg

(And YES, that’s a keyboard)

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.

« Previous PageNext Page »

Powered by WordPress