Firebird News

Wednesday, April 27, 2011

android-x86 nightly builds are back

I started to build my own images but nightly builds for android x86 are back

Downloaded the gingerbread version dd it on the usb stick

sudo dd if=eeepc-20110427_usb.img of=/dev/sdb

and rebooted the eeepc with the new image
wow how fast it is !

ps: got this issue (android skipping incompatible /usr/lib/libz.a when searching for -lz) when building gingerbread on debian 64 but was easy solvable :
sudo apt-get install ia32-libs g++-multilib gcc-multilib lib32z1-dev lib32ncurses5-dev

Tuesday, April 19, 2011

Cirrus acceleration on kvm/qemu

Copy paste the driver

clone kernel from git
git clone
patch -p1 < cirrus.patch
make menuconfig
choose and enable  under drivers>graphics >dri (xorg) > cirrus
make -j2
cd drivers/gpu/drm/cirrus
insmod cirrus.ko
[694023.819195] cirrus: disagrees about version of symbol module_layout

After i compiled the linux rc and install it seems that is booted into the qemu/kvm machine

[ 3.316695] cirrus 0000:00:02.0: setting latency timer to 64
[ 3.350323] Console: switching to colour frame buffer device 160x64
[ 3.364548] fb0: cirrusdrmfb frame buffer device
[ 3.364551] drm: registered panic notifier
[ 3.364823] [drm] Initialized cirrus 1.0.0 20110418 for
0000:00:02.0 on minor 0

lsmod | grep kms
drm_kms_helper 27159 1 cirrus
drm 163075 2 cirrus,drm_kms_helper
i2c_core 23909 3 drm_kms_helper,i2c_piix4,drm

Sunday, April 17, 2011

add haiku in grub2 also make bootable stick after build

I have made the bootable stick this way after my generic image finished
cd haiku/generated
dd if=haiku.image of=/dev/sdb

add the next entry in grub2

sudo gedit /etc/grub.d/40_custom

for me the partition prepared is /dev/sda3

menuentry "Haiku" {
    set root=(hd0,3)
    chainloader +1

then update the grub config
sudo update-grub

Recovering grub with debian live usb stick

unetbootin didn't worked with creating the bootable android 2.2 so i in the process i have made debian unbootable
If you read the manual there is a live cd image (also there is the usb stick version )

I have downloaded the lxde version for i386
then written the image directly to the stick

cat debian-live-6.0.1-i386-lxde-desktop.img > /dev/sdb


next is grub reinstall

Update: i have found that there is a debian Live EEEpc version , i will try that instead

dd if=eeepc-live-1.1~rc1-hybrid.iso of=/dev/sdb

Debian eepc works better so now i have chrooted and reinstalled grub this way

$sudo su 
# mount /dev/sda1 /mnt
# mount --bind /dev /mnt/dev
# mount --bind /proc /mnt/proc

Now chroot into the enviroment we made :

# chroot /mnt

Now install/recover Grub2 via :

#grub-install /dev/sda

Saturday, April 16, 2011

booting Android from a Cheap mp3/mp4 player on my eeepc

my usb stick is not booting anymore , i guess is time to buy another so i had a cheap mp3/mp4 player with z80 cpu ?!!

lsusb: ID 10d6:1101 Actions Semiconductor Co., Ltd D-Wave 2GB MP4 Player / AK1025 MP3/MP4 Player

i formated the /dev/sdb as ext4 just to be sure
then used the usual android usb instructions

zcat android-x86-1.6-r2_usb.img.gz | dd of=/dev/sdb

Android booted quite niceley on eeepc with wireless and all
next is to build the 2.2 / 2.3 image and burn it on the player's partition
I wanted to test the quake on it but it said that sdcard is not present
so i have to mount somehow the sdcard(the debian parition) and
install from there (put the data there)

Wednesday, April 13, 2011

Building haikuos adding devel packages like gcc + git

you can ad your custom build config the devel packages in cases you want to compile inside the image

create the file


the devel packages (jam seems to be very sensitive to space and ";" at the end )

AddOptionalHaikuImagePackages Development ;
AddOptionalHaikuImagePackages Git ;
AddOptionalHaikuImagePackages DevelopmentBase ;
AddOptionalHaikuImagePackages DevelopmentMin ;

a good idea if you build the anyboot image is to increase the image size from 100 default to 400
HAIKU_IMAGE_SIZE        = 400 ;

then you can build the image with the simple

jam -q
Next is howto figure it out how to make it install on /dev/sda from the jam file (auto install on partition) it said it installed but it couldn't boot yet

Monday, April 11, 2011

Securing Firebird 2.5 SuperClassic in Debian / Ubuntu

apt-get install firebird2.5-superclassic
dpkg-reconfigure firebird2.5-superclassic
Choose a good password
vi /etc/firebird/2.5/firebird.conf

add only the localhost to the Remote Bind Address (we listen only on it and nothing else)

RemoteBindAddress =
DatabaseAccess = Restrict /var/lib/firebird/2.5/data/

restart super classic
sudo service firebird2.5-superclassic restart

check if it listens on localhost ip only
netstat -tap | grep gds
tcp        0      0 localhost:gds_db        *:*                     LISTEN      2129/fb_smp_server

There are more ideas : running apache + php in a chroot , adding apparmor rules
maybe we need a chroot feature in firebird in the future

Thursday, April 07, 2011

Ubuntu servers in Romania


is the list of ubuntu installed servers in Romania , You can zoom in on specific area eg: Targu Mures

Wednesday, April 06, 2011

#Microsoft Lifechat LX-3000 headphones +sound card on !ubuntu natty

The device specs are here
I have plugged and it was recognized in sound preferences but no sound output (there was nothing to select there after i disabled the main soundcard) so sudo Restart
and all was ok (on another coleague machine it worked out of the box without the need of restart for sound output)

So yes they can write on the box Optimized for Ubuntu/Debian/Gnu Linux , even the Sound volume buttons work ok (+/-)

Microsoft Hardware Looks cool on Linux only

Tuesday, April 05, 2011

Nouveau part three : libtxc-dxtn on #debian

I found a way to fix nouveau loading errors with the following repository

sudo dpkg -i libtxc-dxtn0_1.0.0-0.0_amd64.deb
sudo dpkg -i libtxc-dxtn-dev_1.0.0-0.0_amd64.deb
nouveau from git was to unstable so i loaded the one from debian (glxgears was black today so i went a few steps back)

sudo apt-get install libgl1-mesa-dri-experimental
sudo apt-get install libgl1-mesa-dri-experimental -t experimental

Monday, April 04, 2011

Installing Haiku-os on a partition from within Qemu

I build my own haiku images so this is a easy way to install and test on my machine

add new partition with fdisk /dev/sda
change the type to bfs
start qemu
sudo qemu -cdrom haiku-cd.iso -hda /dev/sda4 -m 1024

start installer , format the partition and then do the real install on that raw partition

stop the qemu when it finishes ctrl-c

start the new installed machine
sudo qemu  -hda /dev/sda4 -m 1024

later you can add it in grub menu to start it from there directly

Sunday, April 03, 2011

Opengl this is what i call well defined api

Dowoload the redbook 1.1 samples , unzip them
install the various mesa headers (you will figure out it's easy)

and then it compiles without errors and works out of the box !
gcc aaindex.c -lglut -lGL -lGLU
ps:this is code from 1997