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
http://android-x86.moonman.dk/

Downloaded the gingerbread version dd it on the usb stick

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

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
https://lkml.org/lkml/2011/4/18/366

clone kernel from git
git clone https://github.com/mirrors/linux-2.6.git
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
sync

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
sync

reboot

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
sync

Update2:
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

build/jam/UserBuildConfig

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 = 127.0.0.1
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

Here http://maps.ubuntu.com/map/

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 libtxc_dxtn.so loading errors with the following repository

wget http://debian-multimedia.gnali.org/pool/main/libt/libtxc-dxtn/libtxc-dxtn0_1.0.0-0.0_amd64.deb
wget http://debian-multimedia.gnali.org/pool/main/libt/libtxc-dxtn/libtxc-dxtn-dev_1.0.0-0.0_amd64.deb
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
or
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
./a.out
ps:this is code from 1997

Monday, March 28, 2011

Building haikuos on ubuntu or debian

I'm following this guide on ubuntu natty and debian sid

checkout haiku source code
checkot build tools and install jam
svn checkout http://svn.haiku-os.org/haiku/buildtools/trunk haiku/buildtools
cd haiku/buildtools/jam 
make 
sudo ./jam0 install 
checkout haiku
svn checkout http://svn.haiku-os.org/haiku/haiku/trunk haiku/haiku
i'm interested only in gcc4 builds
so this is the 32 bit version
./configure --build-cross-tools-gcc4 x86 ../buildtools/
jam haiku-image
qemu generated/haiku.image
and if you like the 64bit version

./configure  --build-cross-tools-gcc4 x86-64 ../buildtools/
jam haiku-image
qemu generated/haiku.image

Thursday, March 24, 2011

unity3d on lubuntu 11.04

the install of the full gnome is needed and gdm will replace lxdm

sudo apt-get install unity
sudo apt-get install ubuntu-desktop

and voila it works with the open source radeon driver (gallium3d enabled)

Saturday, March 19, 2011

Android x86 on radeon videocards

I had some issues with starting the android 2.2 on my workstation and after asking on the android-x86 group i found they way adding nomodeset to the grub entry (presstab and add nomodeset to the grub entry)

No screenshots this time :) but is really fast , I showed to one coleague how fast is google maps rendering, There is one type of free appstore and the ssh shell works pretty well
I had to change the keyboard from chineese to english
Next is to test the 3d rendering if it works with the opensource radeon driver (test it with quake 1/2/3)
I love the browser's keyboard integration (pretty good at going trough the links in a speedy way )
I need that in  Chromium/Arora too
ps: i always have the links browser habbit of pressing Alt - Left Arrow and i'm always throwed in the
first console
I think with Android 3.x can be used as netbook/desktop on almost anything
And now i know where unity/gnome3 is going is the android connection NoX fast rendering
Dumb desktop with no backward compatible with win95/xp feeling but with semimodern Apple bad interface rippof : big icons with opengl rendering enabled view (to have the animated backgrounds crap)
What is next to test :Chrome OS

Saturday, March 05, 2011

Fixes to fbexport compilation on linux systems debian/ubuntu

It's easy to compile firebird export utility just download the version from sourceforge

cd fbexport-1.90
after that modify fbcopy/TableDependency.cpp
and add
#include <stdio.h>
to the include section otherwise you will get the error error: ‘printf’ was not declared in this scope
make should complete the job (of course you need the firebird headers , check if you have them installed with dpkg -L firebird2.5-dev)


 make
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o fbcopy/args.o fbcopy/args.cpp
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o fbcopy/fbcopy.o fbcopy/fbcopy.cpp
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o fbcopy/TableDependency.o fbcopy/TableDependency.cpp
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o fbcopy/main.o fbcopy/main.cpp
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o ibpp/all_in_one.o ibpp/all_in_one.cpp
g++ -pthread -lfbclient ibpp/all_in_one.o fbcopy/args.o fbcopy/fbcopy.o fbcopy/TableDependency.o fbcopy/main.o  -oexe/fbcopy
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o fbexport/ParseArgs.o fbexport/ParseArgs.cpp
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o fbexport/FBExport.o fbexport/FBExport.cpp
g++ -c -O1 -DIBPP_LINUX -DIBPP_GCC -Iibpp -o fbexport/cli-main.o fbexport/cli-main.cpp
g++ -pthread -lfbclient ibpp/all_in_one.o fbexport/ParseArgs.o fbexport/FBExport.o fbexport/cli-main.o -oexe/fbexport



and the binary is in exe dir


exe/fbexport
--------------------------------
FBExport v1.80 by Milan Babuskov (mbabuskov), using IBPP 2.5.3.0
Tool for importing/exporting data with Firebird and InterBase databases.
Usage: fbexport -[S|Sc|Si|Sh|I|If|X|L] Options

 -S  Select = output to file  (S - binary, Si - INSERTs, Sc - CSV, Sh - HTML)
 -I  Insert = input from file
 -If Insert by Full SQL = input from file, by parameterized SQL
 -X  eXecute SQL statement, use with -F to execute sql scripts
 -L  List connected users

Options are:                           -H Host          [LOCALHOST]
 -D Database                           -U Username      [SYSDBA]
 -F Filename (use - for stdout)        -O Role
 -P Password                           -T Trim chars    [off]
 -A "Charset"                          -J "Date format" [D.M.Y]
 -Q "SQL Query statement"              -K "Time format" [H:M:S]
 -C # = Checkpoint at # rows [1000]    -M Commit at each checkpoint [off]
 -E # = Ignore up to # errors [0] Set to -1 to ignore all
 -R Rollback transaction if any errors occur while importing [off]
 -V Table = Verbatim copy of table (use -Q to set where clause if desired)
 -B Separator [,] = Field separator for CSV export. Allows special value: TAB
Command-line options are not case-sensitive (except the TAB setting)


Update
I have added a few more fixes in this fork on the github (related to linking errors) and included the compiling fixes from above 


TIP : building firebird 2.5 from source remove /tmp/firebird folder

before doing make install is better to remove the /tmp/firebird if is owned by root

with 2.5.0 i had this error
 ConfigStorage: Cannot initialize the shared memory region
        operating system directive open failed
        Permission denied 



So i have checked out the 2.5.1 from svn/bzr
bzr branch lp:firebird/2.5
cd 2.5
./autogen.sh --prefix=/opt/firebird2.5.x --enable-superserver --with-system-editline
make
stop firebird
rm -rf /tmp/firebird
make install

now firebird runs happily on CentOS release 5.5

bristol tip on !ubuntu !debian use jackd

start jackd with alsa parameter
jackd -d alsa

then start bristol
startBristol -jack -vox

connect the imputs and the outputs from Jack Audio connection Kit

out_left -> playback_1
out_right -> playback_2


ps : now  i can remove monobristol from my system and clean all dependencies :)

Tuesday, March 01, 2011

qmake love.pro not war , use qtquick use android , show middle finger to #Microsoft

Qt quick is released and is funny that the demo is the old WW hippie bus


That means only one thing , freedom from the Mokia regime :Qt lives on in MeeGo, Ubuntu, WebOS, and now Android


Nobody wants silver crapware , I want java script , v8 , css3 , webgl not a crippled evironment like ie9=new ie6 is




Warwick Thumb Singlecut + Ashdown Mag - quick groove