Monday, November 30, 2009

Recovering #ubuntu grub after #fedora install

i have added in the

title Ubuntu karmic (development branch), kernel 2.6.31-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.31-14-generic root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic

and rebooted

then from ubuntu

sudo grub-install /dev/sda1
and i'm back to ubuntu for the moment

Thursday, November 26, 2009

Using #Fedora #Linux day three (#Ubuntu maniac perspective)

Here is an alternate fedora kde installer review

konqueror drives me crazy when i click an link in psi
infinite loop startup
sudo killall -9 kfmclient
so i had to change default browser to arora in the system settings

I don't have any printer configured

sudo /etc/init.d/cups stop
sudo chkconfig cups off

No iscsi sorry

sudo chkconfig iscsid off
no Yellow pages
sudo yum remove ypbind

sudo chkconfig lvm2-monitor off
sudo chkconfig openct off
I don't use nfs
sudo chkconfig rpcbind off
sudo chkconfig rpcidmapd off
sudo chkconfig netfs off
sudo chkconfig nfslock off
sudo chkconfig pcscd off
sudo chkconfig rpcgssd off

i don't update my cpu microcode too often
sudo chkconfig microcode_ctl off

I found that i have installed smolt with interesting stats about hardware used in Fedora

I didn't knew what portreserve is so i disabled it

sudo chkconfig portreserve off

live cd install leftovers

sudo chkconfig livesys off
sudo chkconfig livesys-late off

wtf sendmail by default !? maybe in next fedora it should be proposed postfix by default
also all the above daemons disabled by default (rpc/nfs related ones)

sudo yum install postfix
sudo yum remove sendmail

remove pulse audio see why skype related

sudo rpm -e kde-settings-pulseaudio-4.3-12.noarch
sudo yum remove pulseaudio
sudo yum remove pulseaudio-utils
sudo killall -9 pulseaudio

Here is how to add mp3 support in amarok

sudo yum install xine-lib-extras-freeworld

oh crap i can't remove konqueror in in the kde-base

and i miss abrowser or iceweaseal packages (unbranded firefox)

I found that qmake is qmake-qt4

what i miss from ubuntu is command line not found suggestions (when you miss package bash can suggest you what to install)

Wednesday, November 25, 2009

Using #Fedora #Linux day two (Ubuntu maniac perspective)

Installing skype for 64 bits fedora is harder than on #ubuntu

sudo yum install qt-x11-4.5.3-9.fc12.i686
sudo yum install qt-4.5.3-9.fc12.i686
sudo yum install libXScrnSaver-1.2.0-1.fc12.i686

download skype rpm for fc10+ (32bit version

sudo rpm -Uvh skype-

configure it to Not use the pulse audio

arora browser is 0.10.1 with qt 4.5.3 , it's crashing if i use and then close the tab
known bug , that i have reported to arora (seems to be fixed in qt 4.6 and arora from ubuntu karmic)

qtcreator is called qt-creator and is at version 1.3 in fedora !

next is to find where is qmake

Monday, November 23, 2009

Screenshots in #php using #qt #python or #c++

I used the example from this article

and installed the needed libs on the server
sudo apt-get install libqt4-core libqt4-webkit python-qt4 xvfb


python -x -o cnn.png --debug

chmod +x

from php

passthru("/home/mariuz/ -x -o /tmp/google.png --debug --scale 100 100")

i want to load a page with flash content , shameless plug –scale 200 200 -x -o reea.png –debug

but seems i have an flash error and the image is quite empty

Adobe Flash Player: gtk_clipboard_get(GDK_SELECTION_PRIMARY); failed. Trying to call gtk_init(0,0);
Xlib: extension “RANDR” missing on display “:99.0″.

also got the same error with gnash

I have investigated the c++ websnap examples from qt labs now hosted in git

Another example in c++ is on this page and have made it compile on qt 4.5.3

and added


Using #Fedora #Linux day one (Ubuntu maniac perspective)

I liked some things on fedora 12 and i wanted to test it and and use it for a week or two (on distrowatch i saw this idea of rotating linux distributions once in a while)

I downloaded kde spin and installed on secondary partition the installer was a little harder to gasp than the default ubuntu one (from what i remember) Maybe the partition editor should need a little care for example fiber channel is weird to apear in the menu at advaced partitions options, I was expecting something else .

Another thing i didn't liked it is why on earth i need root user and after that i need to create my user anyway ?, Do it once and make it do sudo I was expecting to be in the sudo group and admin by default like is in ubuntu

What was nice about installer is it finished whithout to many questions and after reboot i configured the user . Maybe it should be the same for ubuntu installer : Less questions for installer and then copy the files from cd/dvd

First thing i disabled is of course selinux (security insanity should be an option and feature not enabled by default)

What was nice that disk image was transfered to the the partition so no extra package install time like in debian .
Another bonus for updates is that is using xz by default and only what is changed is updated

(primary partition is ubuntu)

First i installed adobe flashplayer 10 (64 bit version)

tar -zxvf
mv /usr/lib64/mozilla/plugins/

by default there are some rules in firewall so i flush them

$ sudo iptables -L -n
[sudo] password for mariuz:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp --
ACCEPT all --
ACCEPT tcp -- state NEW tcp dpt:22
REJECT all -- reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

$ sudo iptables -F
$ sudo iptables -L -n

added myself in sudoers list


vi /etc/sudoers
mariuz ALL=(ALL) ALL

installed fireofox arora psi and pidgin
I have created mariuz user

deleted /home/mariuz and
i use my home from ubuntu partition
added in /etc/fstab
UUID=190eba34-a00b-4245-9112-c92e73893085 /ubuntu ext4 defaults 0 1

ln -s /ubuntu/home/mariuz /home

if you want to find the block id

blkid /dev/sda1
/dev/sda1: UUID="190eba34-a00b-4245-9112-c92e73893085" TYPE="ext4"

enable rpm fusion for mp3 and other stuff

ToDo: test and install nvidia driver

Monday, November 16, 2009

#Firebird available in major #linux distros : #Mandriva , #Debian, #Ubuntu, #Fedora ,#Gentoo,#OpenSuse

Finaly OpenSuse 11.2 is out. It is the first time that Firebird is in official OpenSuse repositories.

After Mandriva (2010.0 is very nice), Debian, Ubuntu, Fedora (and RHEL/Centos Fedora project repositories),Gentoo : we have now OpenSuse

All major free distro have now latest Firebird stable version (2.1.3) available in their official repositories.

Here is the list of where firebird 2.1.3  is included or can be installed
  • Debian linuxDebian [Done] by Damyan Ivanov
  • Ubuntu linux Ubuntu [Done] in the next LTS release Lucid Lynx
  • Ubuntu linux Fedora [Done] by Philippe Makowski
  • Ubuntu linux Gentoo [Done]
  • Mandriva LinuxMandriva [Done] by Philippe Makowski
  • Mandriva Linux OpenSuse [Done] by Philippe Makowski
  • Ubuntu linuxRed Hat Enterprise Linux [Done] by Philippe Makowski
  • Ubuntu linuxCentos [Done] by Philippe Makowski
  • Pardus linuxPardus [Done] Check the pisi repository

#hp #laser printer 400x after upgrading to #ubuntu #karmic

Seems that printer didn't worked after upgrade to karmic
so i had to run the hp-setup
and delete the old configuration , seems that all went ok after that (test page and aasdasdasd odt document)

Before that i had lots of errors

Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/LaserJet-4000) from localhost

but the application/octet-stream was decommented in

Friday, November 13, 2009

#Firefox 0.1 aka #Phoenix on #Ubuntu #Karmik #Koala

This is how to install it and see how free web/firefox was 7 years ago
You can test then all the releaseses until ffx 3.5.5 and more
gmail works but is not supported by that old foxie

Download phoenix 0.1

Download gtk1.2 and libstdc++ needed for it from debian stable

sudo dpkg -i *.deb

get the foxkeh
tar -zxvf phoenix-0.1-i686-pc-linux-gnu.tar.gz
cd phoenix
welcome to web 2.0 (i think it was called slashdot at that time)

Tuesday, November 10, 2009

#qt 4.6 #beta with #arora #browser compiled for it uploaded for #ubuntu #karmic

I have reuploaded the qt 4.6 beta 1 this time i have added libqt4-
phonon-dev - it was missing by mistake so it will not remove all the kde packages this time :)
also arora 0.10.1 was recompiled with new qt 4.6 features

Wednesday, November 04, 2009

Debugging #Firebird and #Drupal #php #pdo driver

I started by installing latest php : 5.3.1 rc3 and then with the help of ddd

I can step and put breakpoints in the driver source

cd /opt/build/php-5.3.1RC3

sudo ddd /usr/sbin/apache2

Load the drupal install and follow this guide

also I have started to use the debug_backtrace to figure the error without text that i have (empty exception text)