Monday, November 30, 2009

Recovering #ubuntu grub after #fedora install

i have added in the
grub/menu.lst


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
quiet


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
http://distrowatch.com/weekly.php?issue=20091123#feature

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
http://smolt.fedoraproject.org/

I didn't knew what portreserve is so i disabled it
http://fedoraproject.org/wiki/Features/Portreserve

sudo chkconfig portreserve off


live cd install leftovers http://forums.fedoraforum.org/showthread.php?t=207366

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 http://akdwivedi.wordpress.com/2009/05/09/skype-on-64bit-fedora-10/

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

http://forums.fedoraforum.org/showthread.php?t=227165

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
)

http://www.skype.com/go/getskype-linux-beta-fc10

sudo rpm -Uvh skype-2.1.0.47-fc10.i586.rpm

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 gmail.com 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


wget http://github.com/AdamN/python-webkit2png/raw/master/webkit2png.py


python webkit2png.py -x -o cnn.png --debug http://www.cnn.com

chmod +x webkit2png.py

from php

passthru("/home/mariuz/webkit2png.py -x -o /tmp/google.png --debug --scale 100 100 http://www.google.com")

i want to load a page with flash content , shameless plug reea.net

webkit2png.py –scale 200 200 -x -o reea.png –debug http://reea.net

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

http://labs.trolltech.com/blogs/2008/11/03/thumbnail-preview-of-web-page/

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

and added

view->page()->settings()->setAttribute(QWebSettings::PluginsEnabled,true);

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 http://spins.fedoraproject.org/kde/ 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)
http://labs.adobe.com/downloads/flashplayer10_64bit.html

wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar -zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
mv libflashplayer.so /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 all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- 0.0.0.0/0 0.0.0.0/0 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

su

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
http://rpmfusion.org/RPM%20Fusion


ToDo: test and install nvidia driver
http://www.reddit.com/r/linux/comments/a68wl/how_to_fight_nouveau_the_wonderful_new_nvidia/
http://www.mjmwired.net/resources/mjm-fedora-nvidia.html#f12

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] http://www.gentoo-portage.com/dev-db/firebird
  • 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
/etc/cups/mime.types
and
/etc/cups/mime.convs

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

wget http://ftp.us.debian.org/debian/pool/main/g/gtk+1.2/libgtk1.2_1.2.10-18.1_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/g/glib1.2/libglib1.2_1.2.10-17_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gtk+1.2/libgtk1.2-common_1.2.10-18.1_all.deb
wget http://ftp.us.debian.org/debian/pool/main/g/glib1.2/libglib1.2ldbl_1.2.10-19_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gcc-2.95/libstdc++2.10-glibc2.2_2.95.4-27_i386.deb
sudo dpkg -i *.deb



get the foxkeh
wget http://ftp.mozilla.org/pub/phoenix/releases/0.1/phoenix-0.1-i686-pc-linux-gnu.tar.gz
tar -zxvf phoenix-0.1-i686-pc-linux-gnu.tar.gz
cd phoenix
./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

https://edge.launchpad.net/~mapopa/+archive/qt4.6


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)

print_r(debug_backtrace());