Customizing initrd image

March 23rd, 2010 by mzobniow

Decompression:
%mkdir initrd_fs
%cd initrd_fs
%gzip -dc /boot/initrd | cpio -id
Now you can put your modules or change init script….
Commpression :
%cd initrd_fs
%find ./ | cpio -H newc -o > /boot/new-initrd.tmp
%cd /boot
%gzip new-initrd.tmp
% mv new-initrd.tmp.gz initrd

Problem with makeinfo during gcc4.1.2 compilation

February 2nd, 2010 by mzobniow

There is a bug in configure script which do not correctly treats makefile ver. 4.11 and above.
After make you just see:
——————-
WARNING: `makeinfo’ is missing on your system. You should only need it
if you modified a `.texi’ or `.texinfo’ file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make’ (AIX,
DU, IRIX). You might want to install the `Texinfo’ package or
the `GNU make’ package. Grab either from any GNU archive site.
—————–

To fix the problem is enough to apply the patch:

———-
# For an installed makeinfo, we require it to be from texinfo 4.4 or
# higher, else we use the “missing” dummy.
if ${MAKEINFO} –version \
- | egrep ‘texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])’ >/dev/null 2>&1; then
+ | egrep ‘texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])’ >/dev/null 2>&1; then
:
else
MAKEINFO=”$MISSING makeinfo”
————–

on configure script.

Some fun statements about c++/computers coding.

January 26th, 2010 by mzobniow

I’ve found it very nice:

Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.
– Sutter and Alexandrescu, C++ Coding Standards

Programs must be written for people to read, and only incidentally for machines to execute.
– Harold Abelson and Gerald Jay Sussman

The cheapest, fastest and most reliable components of a computer system are those that aren’t there.
– Gordon Bell

undefined reference to `___tls_get_addr’

January 17th, 2010 by mzobniow

It nappening sometimes even if you have it defined in ld-linux.so.2. The reason is a mess with linking dynamic and static symols with libc. Have a look up in your libc linking script : /lib/libc.so
if you have there something like:
GROUP ( //lib/libc.so.6 //lib/libc_nonshared.a )
add:
AS_NEEDED ( /lib/ld-linux.so.2 ) to the group. It should help.

Eclipse problem running on nfs

January 6th, 2010 by mzobniow

It keep telling that can’t create a workspace. To solve the issue you have to use an argument:for eclipse exec: -vmargs -Dosgi.locking=java.io

To enable bluetooth on X61s lenovo laptop…

August 17th, 2009 by mzobniow

you just need to execute following command:
echo enable > /proc/acpi/ibm/bluetooth
Done!

Enable your wordpress blog to be edited from android mobile phone

August 8th, 2009 by mzobniow

image

It is very easy. Just enable xmlrpc in settings of your blog, install wpToGo app on android. Configure wpToGo to point exactly to your blog dir and have fun! You can even upload pictures. This one i’ve add from my samsung galaxy: )

vi text formatting

August 6th, 2009 by mzobniow

Very useful especialy if you moved text from email program or web browser directly to vi:
1. go to visual mode: v
2. move cursor down to mark all lines
3. format with =

Video conversion for Samsung Galaxy

July 31st, 2009 by mzobniow

ffmpeg -i filein -f mp4 -vcodec mpeg4 -b 400k -r 24 -s 480×320 -aspect 4:3 -acodec aac -ab 96k fileout.mp4
Watch on Galaxy in vertical position!

If someone continously keep asking stiupid questions…

April 20th, 2009 by mzobniow

There is a nice link: http://lmgtfy.com/