Thursday, November 20, 2008

I like the new gmail terminal :)





at the beginning i thought it was an bug in the arora browser rendering
but no the default theme is now enabled

Tuesday, November 18, 2008

cache-control / deflate optimizations in apache

these lines can be used in .htaccess too

now we get better results with firebug/yslow (B performance grade is now , before was an F grade )

before we had 700k of html code transfered over the wire
now is ~40K for example


#Enable Cache control http://httpd.apache.org/docs/2.2/mod/mod_expires.html
ExpiresActive On
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
#ExpiresByType text/html "access plus 2 days"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
# compress all text & html http://httpd.apache.org/docs/2.2/mod/mod_deflate.html
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-javascript text/css
# Insert filter
SetOutputFilter DEFLATE

# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary 


ps: a good idea is to disable the parameters after css !
for example we had style.css?=200
so it reloaded all background images everytime even if we specified expire time in apache

Installing phpbb3 on firebird and ubuntu server

Installing phpbb3 on firebird and ubuntu server


1.create a database with flamerobin
/var/lib/firebird/2.5/data/phpbb3.fdb
or with isql-fb

SQL> create database "/var/lib/firebird/2.5/data/phpbb3.fdb" pagesize 8192 user 'SYSDBA' password 'SYSDBAPASSWORD';
SQL> quit
CON>; 



you need to choose the page size 8192

2.then download phpbb3

wget http://www.phpbb.com/files/release/phpBB-3.0.11.tar.bz2

3.unzip-ip in your www dir /var/www

tar -jxf phpBB-3.0.11.tar.bz2

chown -R www-data.www-data phpBB3

4.run the installer from http://localhost/phpBB3
pointing to the new created database

Database name :/var/lib/firebird/2.5/data/phpbb3.fdb
Database user :somedba
Database password :*********






6.After all is configured you must delete de install folder inside phpbb3 directory

rm -rf install

Friday, November 14, 2008

my to do maintain /etc on all servers with git/hg



Maintain /etc with mercurial on Debian
Here is another one with git this time

here is article copy pasted (site seems to be down)

Anyway, here is how you can track your /etc directory with git, and have apt update it
automatically each time a package is installed.




The following steps require root access:




  • install git



    apt-get install git-core

  • initialize /etc to be a git repo



    cd /etc
    git init-db
    chmod og-rwx .git

  • ignore a few files



    cat > .gitignore
    *~
    *.dpkg-new
    *.dpkg-old

  • commit the current state



    git add .
    git commit -a -m"initial import"

  • install a snapshot script for apt to call



    cat > apt/git-snapshot-script
    #!/bin/bash
    set -e
    caller=$(ps axww | grep "^ *$$" -B3 | grep " apt-get " | head -n1 | sed 's/^.*\(apt-get .*\)/\1/' )
    git-add .
    git-commit -a -m"snapshot after: $caller"


    ... make it executable ...



    chmod +x apt/git-snapshot-script

  • configure apt to track changes



    cat >> /etc/apt/apt.conf
    DPkg {
    Post-Invoke {"cd /etc ; ./apt/git-snapshot-script";};
    }

  • track these two files



    git add .
    git commit -a -m"apt will track /etc automagically using git"



... and you're done.



Note that the chmod og-rwx /etc/.git step is very important. Your /etc/.git directory should
only be accessible to root. If not, it's as good as giving everyone access to your /etc/shadow
and other secrets that hide in /etc. Should you clone this repository to another box, you
have to make sure that the same precautions are taken.



Now when you install a package, it will be tracked in the git repository.



    # apt-get install mercurial
...
Created commit daa7de7264b65cd073a1ef0f75ba50aa488d5af2
3 files changed, 409 insertions(+), 0 deletions(-)
create mode 100644 bash_completion.d/mercurial
create mode 100644 mercurial/hgrc
create mode 100644 mercurial/hgrc.d/hgext.rc


You can see what changed...



    # git whatchanged -1
commit daa7de7264b65cd073a1ef0f75ba50aa488d5af2
Author: Bart Trojanowski <bart@jukie.net>
Date: Mon Mar 12 16:09:18 2007 -0400

snapshot after: apt-get install mercurial

:000000 100644 0000000... a7f4740... A bash_completion.d/mercurial
:000000 100644 0000000... dfc3400... A mercurial/hgrc
:000000 100644 0000000... 8f2d526... A mercurial/hgrc.d/hgext.rc





And lastly, it should be noted that debian now has an etckeeper that trackes /etc in git.





ps: i started with /etc/httpd and works well with git

Thursday, November 13, 2008

Installing jaws php cms on ubuntu and firebird backend

Installing jaws-cms on ubuntu and firebird backend

$ cd /var/www
$ wget http://bits.jaws-project.com/releases/jaws-0.8.6/jaws-complete-0.8.6.tar.gz
$ tar -zxvf jaws-complete-0.8.6.tar.gz
$ mv html jaws

sudo chmod -R g+rw jaws
sudo chown -R www-data.www-data jaws

create an new database with flamerobin /var/lib/firebird/2.1/data/jaws.fdb

crate a symlink , seems that if you put only jaws.fdb in the database field
then it needs to be located in jaws/data

$ cd /var/www/jaws/data
$ ln -s /var/lib/firebird/2.1/data/jaws.fdb

start the installer http://localhost/jaws/install/
fill in the username for database and password
at database put jaws.fdb

Some screen shots o took during install and configuration

Wednesday, November 12, 2008

What if the neo must learn Ubuntu ?

Watch the Jackie Chan style scene at the end of the movie ...

http://www.collegehumor.com/video:1886349

Thursday, November 06, 2008

PHP ships with Mac OS X by default 

I spoted this over this page 
http://www.phoronix-test-suite.com/?k=downloads

it's about php-cli
so php programmers could do scripts easier
than writing them in bash/perl/php or python

Here are some examples of scripts that i have created to automate
installation on new ubuntu server nodes

http://github.com/mariuz/firebird_scripts/tree/master

I wish php was there by default because almost all the scripts needs
to install php-cli first

I posted an new idea to the brainstorm area

http://brainstorm.ubuntu.com/idea/15590/

 

Wednesday, November 05, 2008

Chris Rock won the elections from USA

I voted for him from Romania

http://uk.youtube.com/watch?v=-tyK9Pgtznk

http://uk.youtube.com/watch?v=3erEqfFxTlE

and the only song that cames to my mind dedicated to his oponents is

Nigger from Clawfinger
http://uk.youtube.com/watch?v=D6zyOGqxxs4

Saturday, November 01, 2008

Enabling frequency scaling on my everex cloudbook
after the upgrade to ubuntu intrepid ibex (kernel 2.6.27.x) i have good sound and the syste is moving faster
maybe is because of the new io sheduler 
but the frequency scaling is not enabled (default cpu speed is 600mhz)
so i have compile it 
download the latest stable kernel from kernel.org

in my case  
$wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.4.tar.bz2
$tar -jxvf linux-2.6.27.4.tar.bz2
$cd /usr/src/linux-2.6.27.3/arch/x86/kernel/cpu/
$sudo mv cpufreq /opt/build/
$ cd /opt/build/cpufreq

$vi Makefile
default:
$(MAKE) -C /lib/modules/`uname -r`/build M=`pwd` modules
clean:
rm -rf *.o .*.cmd *.ko *.mod.c .tmp_versions Module.symvers
obj-m += e_powersaver.o

Now you need to make it 
$make
$cp e_powersaver.ko /lib/modules/2.6.27-7-generic/kernel/drivers/cpufreq/
$ sudo depmod -ae
$ sudo modprobe e_powersaver
$ cpufreq-set -g performance

now my cpu is idling at 1200 mhz 
cat /proc/cpuinfo
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 13
model name : VIA C7-M Processor 1200MHz
stepping : 0
cpu MHz : 1199.952
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx up pni est tm2 xtpr rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en
bogomips : 2399.92
clflush size : 64
power management:

a good idea is to put the module at startup too 
in 
/etc/modules
add 
e_powersaver

another good command line 
cpufreq-info

analyzing CPU 0:
  driver: e_powersaver
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 400 MHz - 1.20 GHz
  available frequency steps: 400 MHz, 500 MHz, 600 MHz, 700 MHz, 800 MHz, 900 MHz, 1000 MHz, 1.10 GHz, 1.20 GHz
  available cpufreq governors: ondemand, userspace, conservative, powersave, performance
  current policy: frequency should be within 400 MHz and 1.20 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.20 GHz.

or if you need an low noise system 
$ cpufreq-set -g ondemand
This post is about an interview with Ales Katona (also known as Almindor) - A contributor to FPC, Lazarus and have few of his own open source projects as well such as Lentilwars and lnet. I have asked Ales to have an interview with me regarding the open source projects and some information about himself, and I hope you all find it interesting as I have.

Friday, October 31, 2008

Tutorial of the Week: How to Install OpenOffice.org 3.0 on Ubuntu 8.10


I guess everyone already knows that OpenOffice.org 3.0.0 will not be available  for the Intrepid Ibex (Ubuntu 8.10), because the developers did not wanted to include it could create new bugs
and delayed the release 

 What do I need to get started? Ubuntu 8.10 (32-bit or 64-bit)...

 
 Read the full tutorial here.

I like it to do it from the command line 

sudo gedit /etc/apt/sources.list.d/openoffice.list
add
deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
sudo apt-get update
sudo apt-get dist-upgrade






Vote for a beautiful, usable Ubuntu

If you'd like to see this theme https://wiki.ubuntu.com/Artwork/Incoming/Intrepid/Wall-light instead of the current Intrepid theme, please let them know!

read more | digg story

How to make money with free software...

An awesome story of designing the new 5 euro commemorative coin with the theme 'Netherlands and Architecture', using free software.

read more | digg story

Thursday, October 23, 2008

Why pascal ?

it’s all the power of the simplicity (oo pascal follows the kiss philosophy and in a way is better than c++ for example)

Most of the time you have to rewire and damage your brain for c++

but pascal is focused to be an learning tool and it’s easier for the brain it seems close to pseudo code and the way brain works

Just go in an computer science class and ask students what they like:c++ or pascal
I’m not talking about the genius but the average guy
The same is with php or java script it’s easier to catch and learn them than java or c++

Check the tiobe index and you will see how the scripting languages take over the work

http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

Wednesday, October 22, 2008

Frames in Lazarus

If you miss the Delphi frames now you can use them in Lazarus too if you are doing Delphi/pascal style programming

http://wiki.lazarus.freepascal.org/IDE_Development#Working_3

Tuesday, October 21, 2008

speeding up kernel/firebird compile on my home machines

cpu on laptop is a little bit slower (c7@1.2) so i started to use the cpu on the desktop too (athlon3000+) with the help of distcc

http://www.debian-administration.org/articles/112

http://code.google.com/p/distcc/

Here is the debian way to build the kernel with distcc
http://www.docunext.com/blog/2007/10/11/more-distcc-and-ccache-notes/

Also is good for building mozilla or other c++ programs (firebird)

http://www.docunext.com/blog/2008/02/06/swiftweasel-on-the-via-c7/

The Mono team has released their better version so far, including a number of huge improvements such us .NET 2.0 compatibility (yes, generics and everything), the initial Moonlight (Silverlight for Linux) and many more.

But the best is yet to come: they already have LINQ and lambda expressions (.NET 3.5) almost there, ParallelFX (the multi-core .NET library) and totally new stuff.

When people talk about Mono, they normally focus on its compatibility with the .NET platform and how good it is for a number of companies tied to the Microsoft stack. But let me look at it from a different perspective.

[I like their new C#shell, and the fact that it works ok with firebird 2.1 on all platforms:macosx,linux,windows ]

http://dobbscodetalk.com/index.php?option=com_myblog&show=Its-not-monkey-business.html&Itemid=29

I saw Delphi Developers Guide by Steve Teixeira and , Xavier Pacheco in an Book shop

and it is translated to Romanian language
I had tears in my eyes because I remember the days when I learned the Delphi/OOPascal/Interbase(Firebird) and all the examples are still fresh in my memory

This book I took it everywhere at school/at work /at home

Of course there are many other good books but today for me the free pascal docs are enough and the source

ps: also from the firebird conference I got the Marcu Cantu's book : Essential Pascal with his signature on it :)

Delphi/Free Pascal could be 2008 Language of the Year

It seems that Delphi Programming is an popular thing
and we must push it more (Delphi + Firebird)

http://www.delphi.org/2008/10/delphi-language-of-the-year-2008/
check the tiobe

http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

I wonder when i will start an kernel module in pascal :)
imagine some kernel components on the components panel

Monday, October 20, 2008

Artport an good and beautiful idea

There are not many sites in Romania where you can buy art and combines the gallery idea with the bazar one

I like the religious paintings but i will look soon on the other items

http://www.artport.ro/index.php?mcategory=Categories&pn=search_res&category_id=17

Sunday, October 19, 2008

64M of memory used for kernel crashes !

[ 0.000000] Reserving 64MB of memory at 16MB for crashkernel (System RAM: 441MB)


so you need to remove that from /boot/grub/menu.lst


crashkernel=384M-2G:64M@16M,2G-:128M@16M

Saturday, October 18, 2008

i wish the changes to ubuntu repositories to be done faster
and i think the core distro can stay unchanged a little bit longer
but some apps should and must move faster than the rest of the distro
like:openoffice , firebird 2.1, lazarus , fpc

because stable releases are already there and the intrepid is already dated at the release

also i think the gentoo ideea with continuous upgrade to be good
at least for me is better to have latest stable applications and kernel

also backports in ubuntu is completely broken so is better to use the next release or debian experimental to be up to date with all apps
building process for free pascal compiler

http://www.stack.nl/~marcov/buildfaq.pdf

it's amazing how much work is done behind compiling your applications
Also this is an amazing team that progressed from an simple compiler
to an truly cross platform one (arm/x86,windows,x64,macosx,linux) and is really fast.
Howto use Lazarus 0.9.26 in Ubuntu Hardy/Intrepid
You can install the new version and you don't need to wait another 6 months to be included
in next Ubuntu release
if you have an "old" stable lazarus 0.9.24
you can install/upgrade to latest stable by using
the official lazarus repository

In my case i created an getlazarus bash script with this content


#!/bin/sh
gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F
gpg --export 6A11800F | apt-key add -
echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" \
>/etc/apt/sources.list.d/lazarus.list
apt-get update
apt-get install lazarus


then
$chmod +x getlazarus
$sudo ./getlazarus

also you must be sure to have te fpc source so here is how i usually install

sudo apt-get install fp-units-db fp-units-gfx fp-units-gnome1 fp-units-misc fp-units-net fpc-source fp-compiler fp-docs fp-utils lazarus



then start it with
$lazarus-ide in console or from the menu
Applications -> Programming -> Lazarus




To update all free pascal related packages from the new repository (I had old fpc2.2.0 and lazarus from intrepid repository)

$sudo apt-get dist-upgrade

In my case I got this message

The following packages will be upgraded:
fp-compiler fp-docs fp-ide fp-units-base fp-units-db fp-units-fcl
fp-units-fv fp-units-gfx fp-units-gnome1 fp-units-gtk fp-units-gtk2
fp-units-misc fp-units-multimedia fp-units-net fp-units-rtl fp-utils fpc
fpc-source lazarus-doc lazarus-ide lazarus-src



What is next ? Try to use it with firebird

And seems that works without problems.

Saturday, October 11, 2008

My quote for the Firebird conference Ending

"In the early days of my career, I wondered why software engineers and their managers occasionally traveled when we had email, instant messaging, wikis and video conferencing. Gradually, I've figured out that face-to-face meetings facilitate trust, collaboration and unity more effectively.

For me, the success of this conference re-emphasizes the value of face-to-face communication."

http://lwn.net/Articles/300306/

I can repeat the same for the conference , why I went there and when i could use emails/gtalk/skype ? Maybe is another sense that we have developed and you can't trust people if you don't see them , also the communication is better when you are not in the office . My problem now is going back to normal stuff or
routine doing stuff that usually must be done it's like going from heaven to earth . Going back to daily work . Now i understand better what is the future of firebird and maybe i understand better what core developers are thinking and what is on their roadmap and maybe i can help with that.
Installing flash plugin on debian
Here is an nice howto

Testing Firebird 2.1 on Debian experimental

Testing Firebird 2.1 on Debian experimental

Update: There is now Firebird 2.5 final in experimental
also if you want 2.1 is already in testing and unstable (no need for experimental repository)

Here is my sources.list
cat /etc/apt/sources.list

deb http://ftp.us.debian.org/debian/ unstable main
deb-src http://ftp.us.debian.org/debian/ unstable main

Add:

deb http://ftp.us.debian.org/debian/ experimental main
deb-src http://ftp.us.debian.org/debian/ experimental main

Then:
# apt-get update -t experimental
# apt-get install -t experimental firebird2.1-classic
or install super-server
# apt-get install -t experimental firebird2.1-classic
Install examples and flamerobin
apt-get install -t experimental firebird2.1-examples flamerobin

follow the examples extaction procedure from this page [Scrooll down and ignore the apt sources.list lines]
https://help.ubuntu.com/community/Firebird2.1


With firebird2.1-classic i have this error when i try to connect to employee.fdb

Engine Code : 335544653
Engine Message :
cannot attach to password database


This is a caveat with classic server and not a bug in Flamerobin.

This is the recipe to reproduce it:
* install Debian classic-server package
* (before anything else) connect to any database using a direct path
to the database, not server:/path/to/db using any program linked
with libfbembed, for example the firebird-supplied tools (sql,
gfix etc)
- this starts the lock manager as the currently running user
(let's name it 'X', which most probably is *not* 'firebird')
* try to connect to any database either using the server:/path/to/db
connection string, or using an utility that is linked with
libfbclient (which preepends localhost: on raw connection
strings), for example flamerobin
- you can't as that utility would connect via the fb_inet_server,
which runs as user 'firebird' by default and cannot open the
lock files created by the user 'X'.

To avoid this

* always use localhost: in front of any paths. this way the lock
files and the shared memory segment will be owned by the
'firebird' user.


Testing debian installer on windows box

I had at Lechinta an wubi installer but the cpu is too slow for ntfs-ng
so i decided to install debian/ubuntu on an native partition

So i installed the debian on windows and after it finished it rebooted and started
the classic debian installer (graphic mode)

I installed the base system then i dist-upgraded to lenny (testing)
and then to sid(unstable)

Just replace etch with testing in /etc/apt/sources.list
#apt-get update ; apt-get dist-upgrade
#reboot
Just replace testing with unstable in /etc/apt/sources.list
#apt-get update ; apt-get dist-upgrade
#reboot




so now i have an modern distro
The space is small on this p3 machine @500Mhz so i had to install an lightweight window manager
so i installed xfce4 from command line

#apt-get install xfce4 xorg gdm
#/etc/init.d/gdm start

Then i needed an browser so i typed
#sudo apt-get install iceweasel

That is firefox3.0.x under debian , they didn't accepted mozilla firefox restrictions and EULA so they decided to name it that way


Next install synaptic and it should give you an starting point to installing packages
#sudo apt-get install synaptic

Here is how to install flash player under debian

Friday, October 10, 2008

Here is how the libdbi example should look for firebird

I have installed libdbi and libdbi-driver for firebird
http://mapopa.blogspot.com/2008/10/installing-and-libdbi-for-c-and-libdbi.html

Here is the example i try to test for firebird

http://libdbi.sourceforge.net/docs/programmers-guide/quickstart-code.html



gedit employee.c

#include
#include

int main() {
dbi_conn conn;
dbi_result result;

double threshold = 4.333333;
unsigned int idnumber;
const char *fullname;

dbi_initialize(NULL);
conn = dbi_conn_new("firebird");

dbi_conn_set_option(conn, "host", "localhost");
dbi_conn_set_option(conn, "username", "SYSDBA");
dbi_conn_set_option(conn, "password", "masterkey");
dbi_conn_set_option(conn, "dbname",
"/var/lib/firebird/2.1/data/
employee.fdb");
dbi_conn_set_option(conn, "encoding", "UTF-8");

if (dbi_conn_connect(conn) < 0) {
printf("Could not connect. Please check the option settings\n");
}
else {
result = dbi_conn_queryf(conn, "SELECT EMP_NO, FIRST_NAME FROM EMPLOYEE");

if (result) {
while (dbi_result_next_row(result)) {
idnumber = dbi_result_get_uint(result, "ENP_NO");
fullname = dbi_result_get_string(result, "FIRST_NAME");
printf("%i. %s\n", idnumber, fullname);
}
dbi_result_free(result);
}
dbi_conn_close(conn);
}

dbi_shutdown();

return 0;
}

gcc -lm -ldl -ldbi employee.c

for the moment it crashes
Installing and libdbi layer for c api and libdbi-driver for firebird

I wish firebird was more simpler to use similar to dbi api for example that i use in perl world

You can see more about libdbi C api in the bacula manual


The according to libdbi (http://libdbi.sourceforge.net/) project:
libdbi implements a database-independent abstraction layer in C,
similar to the DBI/DBD layer in Perl. Writing one generic set of code,
programmers can leverage the power of multiple databases and multiple
simultaneous database connections by using this framework.

Here is how the Firebird libdbi driver is implemented and you can see how the layer is made over the standard
firebird api

sudo apt-get install libostyle-dev libfbembed2.1 firebird2.1-dev

wget http://heanet.dl.sourceforge.net/sourceforge/libdbi/libdbi-0.8.3.tar.gz
tar -zxvf libdbi-0.8.3.tar.gz
cd libdbi-0.8.3/
./configure --prefix=/usr
make
sudo make install
cd ..


wget http://heanet.dl.sourceforge.net/sourceforge/libdbi-drivers/libdbi-drivers-0.8.3-1.tar.gz
tar -zxvf libdbi-drivers-0.8.3-1.tar.gz
cd libdbi-drivers-0.8.3-1/
./configure --with-firebird --with-firebird-dir=/usr --prefix=/usr --disable-docs


make
sudo make install
make check
libdbi-drivers test program: $Id: test_dbi.c,v 1.46 2008/02/06 16:22:44 mhoenicka Exp $
Library version: libdbi v0.8.3

libdbi driver directory? [/usr/lib/dbd]
1 drivers available: firebird
test which driver? firebird

database administrator name? SYSDBA

database administrator password? masterkey
database directory? [.] /var/lib/firebird/2.1/data

database hostname? [(blank for local socket if possible)]
database name? [libdbitest]

Driver information:
-------------------
Name: firebird
Filename: /usr/lib/dbd/libdbdfirebird.so
Desc: Firebird/Interbase database support
Maintainer: Christian M. Stamgren
URL: http://libdbi-drivers.sourceforge.net
Version: dbd_firebird v0.8.3-1
Compiled: Oct 10 2008
Use CONNECT or CREATE DATABASE to specify a database
CREATE DATABASE '/var/lib/firebird/2.1/data/libdbitest';

...

Thursday, October 09, 2008

Compiling 2.6.27 RC9 Vanilla on Hardy - Ubuntu/Debian Way

This article is about compiling a Kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (Vanilla Kernel) so that you are independent from the kernels supplied by your distribution.

-rc kernel patches are generated from the base stable release.

For example: to create the 2.6.27-rc9 kernel, you must:

  • download 2.6.26 (not 2.6.26.x)
  • and then apply the 2.6.27-rc9 patch.

Yes, you want 2.6.26 not 2.6.27. Remember, that's an -rc kernel, as in, 2.6.27 doesn't exist yet. :)



seems tha the kernel you want is prepatch , choose B from this area "The latest prepatch for the stable Linux kernel tree is" also choose 2.6.27-rc9 the same area.

cd /usr/src
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2
tar jxvf linux-2.6.26.tar.bz2
get the patch
wget http://kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.27-rc9.bz2
bunzip2 patch-2.6.27-rc9.bz2
cd linux-2.6.26
patch -p1 < ../patch-2.6.27-rc9
cd ..
mv linux-2.6.26 linux-2.6.27-rc9
cd linux-2.6.27-rc9/
cp /boot/config-`uname -r` ./.config
make menuconfig or if you want to compile old config without questions make oldconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers cd ..
I had to disable the nvidia postinstall scripts

chmod -x /etc/kernel/postinst.d/nvidia-common

dpkg -i linux-image-2.7.27-* in my case
sudo dpkg -i linux-image-2.6.27-rc9-custom_2.6.27-rc9-custom-10.00.Custom_amd64.deb shutdown -r
now you can install the headers too from /usr/src/linux-headers-2.6.27*

If you want to build it Vanilla way without debian tools then consult this page http://kernelnewbies.org/KernelBuild

Miguel de Icaza Interview: Mono 2.0

GNOME founder Miguel de Icaza discusses Mono's use as an iPhone and Wii gaming engine, and "uber-awesome" features like "C## eval," in this detailed interview with DesktopLinux.com.

read more | digg story
dyndns setup on ubuntu
I have setup the dyndns this way

http://mexpolk.wordpress.com/2008/01/29/ubuntu-gutsy-dyndns-client-setup/

now my home computer can be visible to the outside world :)

http://matzy.ath.cx
compiling 2.6.26 vanilla on hardy - ubuntu way

This article is about compiling a kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution.

cd /usr/src
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.6.tar.bz2
tar jxvf linux-2.6.26.6.tar.bz2
ln -s linux-2.6.26.6 linux
cd linux
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
cd ..
dpkg -i linux-image-2.6.26.6-*
shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.26.6-*
in my case i can show you how the packages are named
ls *.deb
linux-headers-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb
linux-image-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb

Wednesday, October 08, 2008

getting/building php6 from git

time sudo git clone git://chinstrap.eu/srv/git/php/php-tsrm-ze2.git
Initialized empty Git repository in /opt/build/php-tsrm-ze2/.git/
remote: Counting objects: 378 time sudo git clone git://chinstrap.eu/srv/git/php/php-tsrm-ze2.git
Initialized empty Git repository in /opt/build/php-tsrm-ze2/.git/
remote: Counting objects: 378786, done.
remote: Compressing objects: 100% (75006/75006), done.
remote: Total 378786 (delta 302801), reused 378786 (delta 302801)
Receiving objects: 100% (378786/378786), 128.79 MiB | 1651 KiB/s, done.
Resolving deltas: 100% (302801/302801), done.
Checking out files: 100% (11007/11007), done.

real 4m35.256s
user 2m41.826s
sys 0m7.860s
786, done.
remote: Compressing objects: 100% (75006/75006), done.
remote: Total 378786 (delta 302801), reused 378786 (delta 302801)
Receiving objects: 100% (378786/378786), 128.79 MiB | 1651 KiB/s, done.
Resolving deltas: 100% (302801/302801), done.
Checking out files: 100% (11007/11007), done.

real 4m35.256s
user 2m41.826s
sys 0m7.860s

mariuz@borkstation64:/opt/build/php-tsrm-ze2$ sudo ./buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13.
rebuilding aclocal.m4
rebuilding configure
rebuilding acconfig.h
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.

sudo apt-get install libicu-dev

create configure script
to look this way
cat conf.sh
#! /bin/sh
#
# Created by configure

'./configure' \
'--disable-all' \
'--with-interbase' \
'--prefix=/opt/php5.3' \
'--disable-cgi' \
'--disable-cgi' \
'--enable-debug' \
'--enable-maintainer-zts' \
"$@"


$ sudo sh conf.sh

$ sudo su
#make test > out.err

inspect the out.err

install it
# make install


/opt/php5.3/bin/php -v
PHP 6.0.0-dev (cli) (built: Oct 8 2008 22:50:48) (DEBUG)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2008 Zend Technologies

Tuesday, October 07, 2008

Firebird 2.1.x Mingw build successfully

Firebird 2.1.x Mingw build successfully

First some screnshots with the proof that it works and i will continue with the Howto



Here are the binaries that resulted from the build , You must put the icu dll in system folder




How it was done ? and why

Is painful for an open source project to require an proprietary compiler
I think all these projects could donate time and money to speed up an
good compiler and improve an common c++ IDE but this will be a future goal

Another issues is that IBM, Intel and others they sell c++ compilers
too so they are not so interested to invest too much in g++
maybe google have some interest in it who knows (to make it better)

But many other projects that they realy use mingw for their windows ports
From my head vlc inkscape and thousands of others
http://wiki.inkscape.org/wiki/index.php/Win32Port
http://wiki.videolan.org/Win32Compile

Milan B. told me that is possible to build firebird with mingw compiler so you
have the choice to build firebird binaries with that and release them

The official Firebird minGW build has been supported and updated many times and it started
several years ago (Blas Rodriguez, Dmitry Sibiryakov, etc). It's not
maintained as often as the official build files for Windows, but it's not
abandoned.[ED: so there is still hope]

Here is my starting point with mingw
I Downloaded mingw and msys
http://heanet.dl.sourceforge.net/sourceforge/mingw/MinGW-5.1.4.exe
http://voxel.dl.sourceforge.net/sourceforge/mingw/MSYS-1.0.10.exe

At mingw installer i choose G++

I started cmd.exe and then from the

c:\msys\1.0
I started msys.bat

I have added mingw binaries to the path

PATH=$PATH:/c/mingw/bin

check it with echo $PATH

I downloaded Firebird 2.1.x Source Code

http://sourceforge.net/projects/firebird/files/firebird/2.1.4-Release/Firebird-2.1.4.18393-0.tar.bz2/download


and unziped it in c/msys/1.0/home/mariuz$

tar -jxvf Firebird-2.1.*

now run ./configure and i waited a lot :)

I run this under wine but the steps should be the same on windows
xp for example

./configure part is [OK]
and it runs the compiling part


It stopped at the icu testing
I tried even with g++ 4.3.0 and still got some crashes with building icu
even with ones from ibm 3.8.1

here is the crash log with icu 3.8.1
http://mapopa.blogspot.com/2008/10/i-killed-mingw-compiler-with-icu-3.html

Alex Told me to use the --with-system-icu option in configure

I saw that perl6/parrot is using system icu with mingw when compiling

I downloaded ICU 3.8.1 (similar to the one used in ubuntu/debian)
http://www.icu-project.org/download/3.8.html#ICU4C

run cmd.exe then
mkdir c:\usr\lib

unziped the icu downloaded from here

http://download.icu-project.org/files/icu4c/3.8.1/icu4c-3_8_1-Win32-msvc8.zip

in c:\usr\lib

export PATH=$PATH:/c/usr/lib/icu/bin:
/c/usr/lib/icu/lib:/c/usr/lib/icu
export CPPFLAGS="$CPPFLAGS -I /c/usr/lib/icu/unicode"


run ./configure --with-system-icu --enable-superserver

it compiles but seems to ignore the CPPFLAGS

-c ../src/jrd/unicode_util.cpp -o ../temp/boot/jrd/unicode_util.o
../src/jrd/unicode_util.cpp:39:29: unicode/ustring.h: No such file or directory



quick hack was to modify after configure

make.rules in gen dir and to add to cppflags -I /c/usr/lib/icu/include
and now compilation goes on

i moved the icu/libs into /mingw/lib/

seems that is how msys expects
http://archives.free.net.ph/message/20060609.163929.d99106c3.en.html

and continues until the linking

c:\mingw\bin\..\lib\gcc\
mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -licudata

I modified in
make.defaults

ICU_LIBS = -licuuc -licudt -licuin
and seems that compiling continues

And is this part is DONE you saw the screenshots

Here is the full thread on firebird-devel mailing list


What is next ?
I should do some QA with python
and next finish Linux-> Windows cross compiling (seems that is faster to build on linux)
make an install using scripts from builds/win32 dir

Test Cross Compiling from ubuntu with codeblocks/eclipse
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks#Ubuntu
http://article.gmane.org/gmane.comp.gnu.mingw.user/27671

Monday, October 06, 2008

installing awn in intrepid

Remove bottom pannel and let only the above one (in gnome)

Add these lines to a new file/etc/apt/sources.list.d/reacocard-awn.list

deb http://ppa.launchpad.net/reacocard-awn/ubuntu/ intrepid main
deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu/ intrepid main

sudo apt-get update
sudo apt-get install avant-window-navigator-bzr awn-core-applets-bzr awn-manager-bzr

avant-window-navigator

Sunday, October 05, 2008

installing openttd on ubuntu hardy

sudo apt-get install openttd


vi /usr/share/doc/openttd/README.Debian

cd ~/Desktop/Transport Tycoon Deluxe
sudo cp *.grf /usr/share/games/openttd/data
sudo cp *.cat /usr/share/games/openttd/data
cd gm/
sudo cp * /usr/share/games/openttd/gm/

$ openttd

Transport Tycoon Deluxe on wine ubuntu hardy

download the game http://www.abandonia.com/en/games/240
unzip it on desktop
run and import the registry key from zip Runme!.reg with
regedit from wine
$ regedit
and choose the import option from menu




start an terminal
run
cd ~/Desktop/Transport Tycoon Deluxe
wine cmd.exe
SET LANG=english
Transport Tycoon Deluxe.exe



Friday, October 03, 2008

I killed the mingw compiler with icu 3.8 or icu 3.0.x when compiling firebird 2.1.x

decimfmt.cpp: In member function `icu_3_8::UnicodeString& icu_3_8::DecimalFormat::toPattern(icu_3_8::UnicodeString&, UBool) const':
decimfmt.cpp:2966: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.


or if you prefer

norm.cpp: In function `UNormalizationCheckResult _quickCheck(const UChar*, int32_t, UNormalizationMode, UBool, const icu_3_0::UnicodeSet*, UErrorCode*)':
unorm.cpp:3108: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.


Seems that i need to use the icu from the system like they are using on perl6/parrot and i will see if mingw compiles firebird 2.x

Here is my shot with mingw+wine on ubuntu hardy




Thursday, October 02, 2008

HowTo boot linux in 5 seconds ,

I will add some optimizations to my everex cloudbook so it can boot faster http://lwn.net/Articles/299088/

This is my QOD:

"We hate splash screens. By the time you see it, we want to be done." The development time that distributions spend on splash screens is much more than the Intel team spent on booting fast enough not to need one.


Wednesday, October 01, 2008

pidgin broken in hardy backports and is segfaulting

So get pidgin 2.5.1 from source

purge old pidgin from ubuntu

$sudo apt-get purge pidgin pidgin-data libpurple0

$wget http://garr.dl.sourceforge.net/sourceforge/pidgin/pidgin-2.5.1.tar.bz2
$tar -jxvf pidgin-2.5.1.tar.bz2

and
$./configure ; make ; sudo make install

Tuesday, September 30, 2008

testing tccboot with qemu/kvm
TCCBOOT, a hack where TCC loads and boots a Linux kernel from source in about 10 seconds. That is to say, it is a "boot loader" which reads Linux kernel source code from disk, writes executable instructions to memory, and begins running it.

wget http://bellard.org/tcc/tccboot.iso

for realy fast booting
kvm -cdrom tccboot.iso
for slow booting and to see what parts of the kernel are compiled
qemu -cdrom tccboot.iso

Monday, September 29, 2008

Firebird Conference 2008


I think is the best conference I have ever atended and with people from various contries , Some of them
From Japan , Brazil , South Africa , France, Russia , Holland, Germany and even Dominican Republic. I didn't listed all of the contries but you can get the picture about the diversity.

From another presentation i found that Foundation needs more money and sponsors because they need to pay the core developers and driver developers (like python, jdbc, .net ,php ...) and they don't need to do other things like support or working as an secondary job .
So the best way if you are using firebird or if you want to help this open source project is to donate Development Time and Money to the project

And is quite easy to do , just join and to donate and become an sponsor
http://firebirdsql.org/index.php?op=ffoundation

Another way to help is to write documentation or doing translations for main documents


In the conference I have seen some presentations about Firebird internals and with an very good roadmap
You might know that Firebird 2.5 is the most stable release EVER (Dimitry Yemanov words) because it ran many more tests in QA team and SAS institute got some threading tests passed and that didn't happened before with 2.1 or other versions.
From Japanese Team i found that they tried firebird classic 1.5.2 on an 32 core sun machine and Firebird was the fastest
in select tests against Postgresql or mysql , of course that is an ancient version and i'm curious about some 2.5 tests on that machine , also they tested 32 bit version , So i think 2.5 Super Classic would crush them even more
in Select tests , we have to see .
Dimitry Yemanov talked about 2.5 , and the future 3.0 and is quite interesting that with Firebird Super Classic 2.5 the power of multicore and threads is unleashed for super server arhitecture so if you want speed you need to use Super Classic , If you want to be Safe and quite fast then use Classic model where each tread is in fact an process but it useses a lot of System resources but if one process is killed the others are isolated from that crash and they keep going

Monday, September 22, 2008

broken php packages delivered to ubuntu intrepid

so i can't build ffmpeg as extension , so i must build php from source and vanilla

/configure: line 4735: LTOPTIONS_VERSION: command not found
./configure: line 4736: LTSUGAR_VERSION: command not found
./configure: line 4737: LTVERSION_VERSION: command not found
./configure: line 4738: LTOBSOLETE_VERSION: command not found
checking for a sed that does not truncate output... (cached) /bin/sed
./configure: line 4828: syntax error near unexpected token `lt_decl_varnames,'
./configure: line 4828: `lt_if_append_uniq(lt_decl_varnames, SED, , ,'


http://pecl.php.net/bugs/bug.php?id=14609
using everex cloudbook as an wireless router for nokia i810

add an new wireless network from Network Manager and it must be Ad-Hoc and call it foobar
and put the ip 10.0.0.1 to the wlan0 network
with gateway 10.0.0.1
dns 10.0.0.1
and netmask 255.255.255.0

it should look something like this

ip ro show dev wlan0
10.0.0.0/24 proto kernel scope link src 10.0.0.1
ip addr show wlan0

3: wlan0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:15:af:54:2a:af brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global wlan0
inet6 fe80::215:afff:fe54:2aaf/64 scope link
valid_lft forever preferred_lft forever


install dhcpd server
sudo apt-get install dhcp3-server
sudo vi /etc/default/dhcp3-server
INTERFACES="wlan0"
sudo vi /etc/dhcp3/dhcpd.conf
ddns-update-style ad-hoc;
default-lease-time 3600;
max-lease-time 9000;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.30;
option routers 10.0.0.1;
option domain-name-servers 10.0.0.1;
}
sudo /etc/init.d/dhcp3-server stop
sudo /etc/init.d/dhcp3-server start

install bind server for dns requests

sudo apt-get install bind9

add in etc/bind/named.conf.options
recursion yes;


allow-recursion {
127.0.0.1;
10.0.0.0/24;
};

allow-query {
127.0.0.1;
10.0.0.0/24;
};

and test it
dig debian.org @10.0.0.1

do the snat

sudo su
echo "1" > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

check the traffic with tcpdump
sudo tcpdump -i wlan0
Disabling apparmor

Killing AppArmor module - failed, AppArmor is builtin: Failed.

one more thing to build vanilla kernels without the crappy security solutions

sudo /etc/init.d/apparmor stop
sudo update-rc.d -f apparmor remove

Removing any system startup links for /etc/init.d/apparmor ...
/etc/rcS.d/S37apparmor

https://help.ubuntu.com/community/AppArmor#Disable%20AppArmor%20framework

Now the bind9 works for caching

dig debian.org @localhost
wirless network is now installed on the everex cloudbook and is pretty fast , tested with airodump-ng and works ok $ sudo airodump-ng wlan0

Now i have to configure the webcam


http://ubuntuforums.org/showthread.php?t=593231

DISABLE SCROLLKEEPER on ubuntu - is good for updates at least on systems with slow hard drives like everex

ScrollKeeper is a cataloging system for documentation on open systems. Hardly anyone ever uses it and it takes ages every time you install anything. Disable it and your installs will fly! Finally add a diversion to stop dpkg from overwriting your changes.

sudo mv /usr/bin/scrollkeeper-update /usr/bin/scrollkeeper-update.real
sudo ln -s /bin/true /usr/bin/scrollkeeper-update
sudo find /var/lib/scrollkeeper/ -name \*.xml -type f -exec rm -f '{}' \;
sudo dpkg-divert --local --divert /usr/bin/scrollkeeper-update.real --add /usr/bin/scrollkeeper-update

TWEAKS TO MAKE BETTER USE OF THE Everex cloudbook'S SMALL SCREEN:

There are various methods that will help you make better use of the Cloudbook's small screen. One of the most important is being able to move windows that are too large to fit on the screen at once. To move a hidden part of the window into view, click and drag with the left mouse button on any part of the window while holding down the ALT key. However, you won't be able to drag windows so the top of the window is above the top of the screen. To fix that, enter the following in a terminal window:

gconftool-2 --set /apps/compiz/plugins/move/allscreens/options/constrain_y --type bool 0


inspired by this page

https://help.ubuntu.com/community/AspireOne#Step%203:%20Tweak%20/%20Fix

Sunday, September 21, 2008

Two items to discuss from the ubuntu weekley news

First Mark and Firefox team made a big mistake with firefox EULA , so these tactics will not work in the open source world , behind doors agreements and other weird stuff with the codecs,
I wish Mark had the power to remove firefox from the distro , now that what i call to vote with your pocket.

Shuttleworth defends Firefox licence in Ubuntu - In response to some of the criticism that's been going around about the EULA for Firefox, Mark Shuttleworth wrote, "Mozilla Corporation asked that this be added in order for us to continue to call the browser 'Firefox'." Stating that since Firefox is their trademark, which we intend to respect, we have the choice of working with Mozilla to meet their requirements or switching to an unbranded browser. Shuttleworth added that a package called "abrowser" was being developed in Intrepid Ibex which uses Firefox's code base without the Firefox trademark. http://news.zdnet.co.uk/software/0,1000000121,39488217,00.htm?r=1


I guess the codecs will become messier in ubuntu , All i want is to play the movies for free
and not to pay stupid taxes , I guess he could fight for the right of free codecs
maybe an law in usa or remove software patents , that is the root of evil .

Is Ubuntu about to become yet another restrictive commercial OS? - The author of DC: Infowarrior and Xubuntuphile is contesting the selling of licenses to popular multimedia codecs. The concern voiced on his site is that these commercial, proprietary codecs would eventually be rolled into the actual release instead of the open source software that accomplishes the same goals. He quotes an article by Kristin Shoemaker and one by Gerry Carr, the Marketing Manager at Canonical. http://darthchaosofrspw.wordpress.com/2008/09/21/is-ubuntu-about-to-become-yet-another-restrictive-commercial-os/

https://wiki.ubuntu.com/UbuntuWeeklyNewsletter/Issue109
first steps to compile linux 0.0.1 on ubuntu

wget http://draconux.free.fr/download/os-dev/linux0.01/linux-0.01-rm-3.x/linux-0.01-rm-3.3.tgz
tar -zxvf linux-0.01-rm-3.3.tgz
cd linux-0.01-rm-3.3/
make


seems that i miss the as86

sudo apt-get install bin86

make

This is on amd64 hardy box

as -o boot/head.o boot/head.s
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -fno-stack-protector \
-nostdinc -Iinclude -c -o init/main.o init/main.c
In file included from init/main.c:2:
include/unistd.h:256: warning: ‘struct dirent’ declared inside parameter list
include/unistd.h:256: warning: its scope is only this definition or declaration, which is probably not what you want
include/unistd.h:257: warning: ‘struct dirent64’ declared inside parameter list
In file included from init/main.c:3:
include/time.h:39: warning: conflicting types for built-in function ‘strftime’
/tmp/cceutlRx.s: Assembler messages:
/tmp/cceutlRx.s:315: Error: suffix or operands invalid for `push'
/tmp/cceutlRx.s:316: Error: suffix or operands invalid for `push'
/tmp/cceutlRx.s:317: Error: suffix or operands invalid for `pushf'
/tmp/cceutlRx.s:318: Error: suffix or operands invalid for `push'
/tmp/cceutlRx.s:319: Error: suffix or operands invalid for `push'
make: *** [init/main.o] Error 1

This is the error on athlon i386 box

make
(echo -n "SYSSIZE = (";ls -l tools/system | grep system \
| cut -c31-37 | tr '\012' ' '; echo "+ 15 ) / 16") > tmp.s
cat boot/boot.s >> tmp.s
as86 -0 -o boot/boot.o tmp.s
00001 0000002C SYSSIZE = (44 2008 + 15 ) / 16
***** right parentheses expected..............................^
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */
00001 0000002C SYSSIZE = (44 2008 + 15 ) / 16
***** right parentheses expected..............................^
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */

00001 errors
00000 warnings
make: *** [boot/boot] Error 1

UPDATE now is fixed with linux-0.01-rm-3.3.tgz
http://mapopa.blogspot.com/2008/09/linux-0.html
17 years of linux - 0.0.1

http://alexandrubucur.com/2008-09-17/17-years-linux
you can still run linux 0.0.1 on an qemu/bochs machine , in kvm seems to crash the vm

http://kerneltrap.org/Linux/Dusting_Off_the_0.01_Kernel




here is the kvm crash , i should submit to them the bug
Jeos + kvm + ubuntu

this is the virtual machine i have created with qemu manager (see the previous screenshots from the blog)

I started this way
/media/MULTIMEDIA/Downloads/jeos_ubuntu$ sudo kvm -hda jeos.dsk




Ok is not so sexy but i will add xfce and flamerobin on it quite fast :)

Writing a crawler with WWW::Mechanize

A pragmatic approach to writing a mp3 crawler in perl

read more | digg story

Saturday, September 20, 2008

I love the qemu manager on windows

http://www.davereyn.co.uk/download.htm

Is very easy to create an ubuntu/windows virtualmachine and is quite similar with virtualbox 
in usage and for me is quite fast on an athlon64x2 with 2G of ram 







so the kernel team is going in the right direction in ubuntu

http://blog.redvoodoo.org/2008/09/linux-plumbers-conference-recap.html

* The kernel team will be packaging up the latest bleeding edge upstream "Vanilla" kernel. There are some details still to be worked out, like where it will live. Will go in main or universe, a PPA... The point with this is so that users will have a pristine upstream kernel to test against. This is where the kernel team is doing new development anyway. If the issue is fixed we can quickly do a git bisect and figure out what patch is needed and backport it to the stable kernel if it makes sense. I'll write more about this one in a future blog posting.
Reverse SSH Tunneling

Have you ever wanted to ssh to your Linux box that sits behind NAT? Now you can with reverse SSH tunneling. This document will show you step by step how to set up reverse SSH tunneling. The reverse SSH tunneling should work fine with Unix like systems.

Let's assume that Destination's IP is 192.168.20.55 (Linux box that you want to access).

You want to access from Linux client with IP 138.47.99.99.

Destination (192.168.20.55) <- |NAT| <- Source (138.47.99.99)

[Ed:Ignore the microsoft ads and the nice thing is that now i can open xapplications on remote servers behind NAT, Just add -X to the bellow example from step2

$ssh localhost -p 19999 -X

http://www.howtoforge.com/reverse-ssh-tunneling

Reverse SSH Tunneling HowTo

Have you ever wanted to ssh to your Linux box that sits behind NAT? Now you can with reverse SSH tunneling. This document will show you step by step how to set up reverse SSH tunneling. The reverse SSH tunneling should work fine with Unix like systems.

read more | digg story

Friday, September 19, 2008

compiling pdo support in php - needed for phpmyfaq


or compiling php 5.2.x with pdo support all i did at configuration time is like adding
--with-pdo-firebird=/opt/firebird switch
then make; make install
Check the phpinfo() and pdo_firebird was there



cat config.nice
Code:
#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/opt/apache2.2/bin/apxs' \
'--prefix=/opt/php5.1' \
'--with-xml=shared' \
'--with-pdo-mysql=/opt/mysql-5.0.18/' \
'--with-pdo-firebird=/opt/firebird' \
"$@"


then download phpmyfaq

In my case 2.5.0 but the same apply to 2.0.8

http://www.phpmyfaq.de/download.php?do=download&number=2.5.0-alpha&ext=.tar.gz
unzip-it
tar -zxvf phpmyfaq-2.5.0-alpha.tar.gz
chown www-data.www-data phpmyfaq-2.5.0-alpha
chmod -R g+rw phpmyfaq-2.5.0-alpha
mv phpmyfaq-2.5.0-alpha phpmyfaq

and run the installer

http://localhost/phpmyfaq

Thursday, September 18, 2008

To fully appreciate Nginx, the web server, it helps to understand Batman, the comic book character.

Batman is fast. Nginx is fast. Batman fights crime. Ngine fights wasted CPU cycles and memory leaks. Batman performs well under pressure. Nginx, for its part, excels under heavy server loads.

But Batman would be almost nothing without the Batman utility belt.


Start to learn Batman utilities


http://emiller.info/nginx-modules-guide.html



zero patches policy and zero bugs

I think ubuntu/debian should contribute more to the upstream also
in the debian directory it should be no patches all should be merged upstream
in fact in an ideal world we should have an

simple apt-get upgrade kerner.org-vanilla that should take the latest kernel and compile it for debian/ubuntu or at least we should have an generic kernel with no local patches

http://www.kroah.com/log/linux/lpc_2008_keynote.html

bugs should be handled submited to upstream and we should not have an central repository and
bugtracker

think that git is distributed and patches should go easily upstream (in fact you can get the specific tag)
the same should be for bugs they should be distributed

Wednesday, September 17, 2008

Ubuntu 8.04.. annoyances part 1


I agree with some of them http://jengelh.medozas.de/2008/0609-ubuntu.php

Seems that is impossible to install it on an kvm/qemu machine without graphic mode

  1. Entering a wrong command implies a 0.983 second delay because it needlessy searches for suggestions.
  2. NO textmode install it seems
  3. Trying to boot with vga=0 to get an 80x25 screen and a sane font. Framebuffer is still started. Stupid.

Pandora Devboard - Quake 2 demo

full 3d acceleration in the pocket , is an amazing thing to have the q2 in the pocket :)

Beagle Board 3D, Angstrom, and Ubuntu June 2008

opengl 2.x in your pocket :) impressive

Tutorial of the Week:

· Ever wanted to have a portable operating system? One that can reside inside a small USB flash drive? In the past, it was possible to run a Linux distribution from an USB stick just like you would have run it from a Compact Disc, but this task was quite hard to achieve. Why? Simply because you had to type a lot of geeky commands in a terminal and if, somehow, you forgot one or typed something wrong, the whole process had to be started all over again. Not to mention that it could take about 1-2 hours to make a bootable USB stick. Therefore, this guide is here to teach you some new Linux magic tricks on how to achieve a portable Linux operating system, in no more than 5 minutes! How? With the help of a great and marvelous tool called UNetbootin.

The tutorial was tested with the Ubuntu 8.04.1 LTS and BackTrack 3 Linux distributions, and can be found here.

Tuesday, September 16, 2008

i didn't accepted the firefox 3.0.2 Eula so i have installed abrowser in intrepid

$sudo apt-get remove firefox

this step was needed so there will be no conflicts with abrowser when dist-upgrading

$sudo apt-get install abrowser
$abrowser


UPDATE:abrowser still shows me eula
but i like epiphany-webkit anyway
I use firefox only for firebug ! and webdeveloper



Monday, September 15, 2008

kvm image for mid devices
i didn't knew about this
http://www.phoronix.com/scan.php?page=article&item=ubuntu_mid_804&num=1

I will try to install firebird/flamerobin on it , to see how ti works on small devices
Also i intend to bring the maemo sdk down to test firebird/flamerobin/nginx on it

Microsoft err Mozilla Demanding Firefox Display EULA In Ubuntu

what next ? eula for source code

http://tech.slashdot.org/article.pl?sid=08/09/14/195203&from=rss

no wonder opensource will go the webkit route and it will be included in gnome by default (epiphany webkit )
mozilla looks more and more with microsoft (you know like in animal farm)

Sunday, September 14, 2008

DISABLE SCROLLKEEPER on any linux system (cloudbook in my case)

tip via https://help.ubuntu.com/community/AspireOne

ScrollKeeper is a cataloging system for documentation on open systems. Hardly anyone ever uses it and on the AAO's slow SSD it takes ages every time you install anything. Disable it and your installs will fly! Finally add a diversion to stop dpkg from overwriting your changes.

sudo mv /usr/bin/scrollkeeper-update /usr/bin/scrollkeeper-update.real
sudo ln -s /bin/true /usr/bin/scrollkeeper-update
sudo find /var/lib/scrollkeeper/ -name \*.xml -type f -exec rm -f '{}' \;
sudo dpkg-divert --local --divert /usr/bin/scrollkeeper-update.real --add /usr/bin/scrollkeeper-update

Xfce 4.6 ALPHA ('Pinkie') released

After about 18 months of development, we are pleased to announce the releaseof Xfce 4.6 ALPHA, codename 'Pinkie'. Xfce 4.6 is going to be the next major release of the Xfce desktopenvironment. The previous release was 4.4 with the last bugfix releasebeing 4.4.2 released in December 2007.

read more | digg story

OpenSQL Camp Offers Informal Meeting for Database Developers

Members of open-source database communities will get together in mid-November for the first-ever "OpenSQL camp." The free conference, which has room for 150 attendees, will be held in Charlottesville, Virginia, and is meant to help members to learn from one another. Potential participants are encouraged to register on the Wiki.

read more | digg story

The 2008 kernel summit

The agenda for the 2008 kernel summit has been posted. The summit is an annual, invitation-only event which is typically attended by 70-80 developers. It is a rare opportunity to bring part of the kernel community together for focused discussions on topics which affect the kernel as a whole.

read more | digg story
This weekend I decided to take the Linux distribution known as gOS 3.0 beta for a spin. The gOS is an Ubuntu 8.04.1 derivative that shows some promise with it’s integration of Web applications. Although they are not affilated with Google, gOS has incorporated many Google online tools into their desktop.

I feel the urge to install it this is what i call useful

What do the applets do? Well, you can add Google RSS news feeds, a Weatherbug report, memory monitors, Google Calendar, quote of the day, and many more. As a Doom player, I particularly liked the Doom memory monitor. They have a picture of Green Marine that shows him taking damage to his health as you use up more of your system memory.

Memory Doom

http://desktop.google.com/plugins/i/MemoryDoom.html?hl=en



read more | digg story

Primary Database in Use - Firebird ?

This data shows the current PRIMARY database in use at the respondents companies. I find the data suspect and you'll see why. This data has not been cleaned and duplicate IP addresses have not been removed. This is totally raw data and should remain suspect until after cleansing. Still, it is interesting.

read more | digg story

Saturday, September 13, 2008

solving the webcam and wireless on everex cloudbook

Here is how to solve the wireless range and stability
http://forum.netbookuser.com/viewtopic.php?id=543

Follow this guide and you'll have amazing range and stability.
http://www.aircrack-ng.org/doku.php?id=r8187 OR

(as root)

wget http://dl.aircrack-ng.org/drivers/rtl81 … 6.1010.zip
unzip rtl8187_linux_26.1010.zip
cd rtl8187_linux_26.1010.0622.2006/
wget http://patches.aircrack-ng.org/rtl8187_2.6.24v3.patch
tar xzf drv.tar.gz
tar xzf stack.tar.gz
patch -Np1 -i rtl8187_2.6.24v3.patch
make
make install
depmod -ae
echo "r8187" >> /etc/modules
echo "blacklist rtl8187" >> /etc/modprobe.d/blacklist

webcam which is easy

1. apt-get install module-assistant
2. module-assistant prepare
3. module-assistant auto-install linux-uvc
4. modprobe uvcvideo

more about this webcam

Webcam

Like the WLAN card, the webcam is internally connected via USB. It uses a Bison chip that can be found in many notebook and Logitech webcams. A Linux kernel driver is available as an external source package, "linux-uvc-source"; it will be officially included starting with Linux kernel 2.6.27. The Debian distribution kernel 2.6.26 already includes this module; "modprobe uvcvideo" activates it. The webcam can be used, for example, by running xawtv with the command line argument "-d /dev/video0". However, recording from it, for example with ffmpeg, does not work since the camera does not seem to return correct image geometry information.