Skip to main content

Posts

Showing posts from February, 2008

Changing the default Display Manager

I little discovery I found out a few days ago through /etc/X11/prefdm, but forgot to blog it. The default display manager in Fedora GNOME is GDM. But sometimes, you might want to switch to a different display manager such as KDM or XDM. One way of doing it is through removing the other DMs and only leave one DM intact. But thats ugly!.

Theres an easy way to do it, which is through /etc/sysconfig/desktop. Create it if its not yet exist and add this line.

DISPLAYMANAGER=KDE

Valid values are:

DISPLAYMANAGER=GNOME
DISPLAYMANAGER=KDE
DISPLAYMANAGER=WDM
DISPLAYMANAGER=XDM

Hacks: find_changed_rpms.py

Sometimes, we might be facing certain problems which we could not find what might have caused it. One of the annoying cause is a broken file somewhere in the filesystem due to some reason.

My practise, is that I regularly run rpm -Va to verify and list out broken or changed files. Then I would reinstall any rpm which I think have broken files. Now that I'm working, and being on rawhide, its rather tedious and time consuming to do this regularly. So I just wrote a python script for helping out with the extracting changed files list and querying which rpm the file belongs to.

Those who interested to use it, you can grab it here: find_changed_rpms.py


Usage: ./find_changed_rpms.py [OPTIONS]

This script will automatically find for packages which
one or more of its files does not match the information
stored in the RPMdb.

-h : show this menu
-v : be verbose

This script excludes packages which only have its config files
changed and packages which its files only does not match the
stored…

Tee'ing Python subprocess.Popen output

A little hack for python coders out there who wanted to have a functionality similar to the unix's tee command for redirecting output to multiple places.


import sys
from subprocess import Popen,PIPE
p = Popen(['put','command','and','arguments','here'],stdout=PIPE)

while True:
o = p.stdout.readline()
if o == '' and p.poll() != None: break
# the 'o' variable stores a line from the command's stdout
# do anything u wish with the 'o' variable here
# this loop will break once theres a blank output
# from stdout and the subprocess have ended

Calling all Malaysian Fedora users and contributors

Fedora presence in Malaysia is quite hidden from the general public. Fedora users in Malaysia are everywhere, but hard to find due to most of them being in their own, secluded, microcommunity. A number of small companies, government offices, organizations, have Fedora deployments in them with their own group of users, but they are hard to notice.

Me and my comrades have just created and registered a channel in Freenode.net for our own Malaysian community. Come and join us at #fedora-my @ irc.freenode.net.

We are also planning for a site for Fedora Malaysia in http://fedora.foss.org.my/ but our capacity is limited as all of us are quite busy with out current job. Yes, we are looking for more hands to help making this a reality.

We are quite related to #MyOSS and Ubuntu-My usergroup. Together with FOSS-SM, we work together to spread FOSS love in Malaysia.

All Fedora and Fedora derivatives (RHEL, CentOS, Blag, etc) users are welcomed. I'll be waiting for you. ^-^

Eaten by Rawhide

Got eaten by Rawhide after today update. Lots of GTK/GNOME app crashes while starting with this error (yeah, that includes 'gnome-session'). GDM not affected.


This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 22 error_code 3 request_code 2 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)


glad the basic KDE4 installed can run.

Running 'rpm -Va' right now before assuming something wrong with any packages.

Update:
After reinstalling all packages that fails 'rpm -V', and downgraded some packages to the packages below, I managed to back login into GNOME. Some services like Gstreamer and gnome-settings-d…

Di Mana MyPapit?

MyPapit is MISSING!!!!!. He supposed to come for today's Ubuntu-My meetup at UITM Shah Alam. Somehow, we lost contact with him.



(Credits to yondie's post)

Fedora - Ubuntu's more responsible older brother

https://www.redhat.com/archives/fedora-marketing-list/2008-February/msg00370.html


Greg DeKoenigsberg wrote:

Here are some truths that I hold dear. I believe that they are *fundamental* truths of the Fedora project.

1. It's not always easy to be true *free software* advocates. We take the good with the bad.

2. The people we care most about are people who care about advancing the best of *free software*.

3. Ubuntu is already catering to users who are willing to sacrifice freedom for the sake of *marginal* usability advantage. There's really no reason for us to follow them down that path. Will it cost us users? It certainly will. But we are *extremely* competitive with Ubuntu when it comes to *contributors* -- and it's *contributors* who change the world.

Let Spaceman worry about being popular. Let's concern ourselves with being right, and being productive -- even when it's difficult.

"Fedora -- Ubuntu's more responsible older brother."



Truly is!.

This is what I…

Why I wrote the open letter to rector

My Open Letter to UTP Rector generated a lot of response from UTP, especially from the students.

Some people asked me why I am doing this and why does it matters. So, here is my answer.

I am quite a believer of Free Culture (read the manifesto: http://freeculture.org/manifesto/). I believe that technology must not be held back. I believe that through good utilization of technology, we can improve ourselves to a better community. I believe that information should be freely available for those who want it. I believe in an open medium for people to express their thoughts and without the fear of being attacked because of their opinion. While I am not a supporter of censorship, I neither protest it. I know certain things should be censored, but the rest, it should not be limited.

Current situation in UTP, showing that the lost of the culture that I saw we once had during my early years in UTP. The lost of people who do things because of they believe its right. The lost of people who express a…

HOWTO: Enabling Bridging for Libvirtd QEMU

I need to implement an SNMP setup for Inigo, and I need a number of virtual machines for understanding SNMP and for testing and exploring possible solutions. Before this, I used Xen through virt-manager for my virtualization needs, but recently it feels like its more pain in the ass when I need to install various distro and OSes on the VM to test. Plus, Xen caused some weird problems which I don't really understand (one of it are the Xen bridging, on random, refused to work after reboot). So, I switched to use the normal kernel with Qemu instead to avoid the headache.

Thanks to Jonathan (daMaestro), I got the Qemu bridge working. The howto I followed from watzmann.net does not work for me because of what I believe some missing details for me understand the setup and set it properly.

Creating a Bridge

Lets assume we want to create a bridge called br0, which will be bridged to eth0. The host will be using a static IP 192.168.0.20 on a /24 network, with a gateway 192.168.0.1.

Edit /etc/s…

An Open Letter for the Rector of PETRONAS University of Technology

DISCLAIMER:
THIS OPEN LETTER IS MY OWN OPINION, FROM MY OWN POINT OF VIEW OF LOOKING AT THE CURRENT STATE OF AFFAIRS IN UTP. IT DOES NOT REPRESENT UTP STUDENTS AS A WHOLE, NEITHER IT TRIES TO REPRESENT THEM. SOME MIGHT NOT AGREE, SOME MIGHT, BUT I BELIEVE THOSE WHO LIVED DURING THE TRADITIONAL LEGACY OF UTPCHAT AND THOSE WHO ARE INVOLVED IN THE COMMUNITY ONCE SURROUNDING UTPCHAT AND GRAPEVINE WOULD AGREE TO SOME, IF NOT ALL, OF MY POINTS BELOW.

Dear Datuk Dr Zainal Abidin Haji Kasim,

I am Mohd Izhar Firdaus Ismail (ID 7857), an ICT student in UTP from batch Jan2005, and also one of the active UTPchat IRCOperators. I am writing this because I feel like UTP action of forcing UTPchat to it knees several semesters ago is giving a bad impact on community life in UTP. A bad impact which caused UTP to waste the potential of the (so-called) 'cream de la cream' which UTP have grabbed early after their SPM examination.

UTPchat IRC Network, existed originally around more than 10 years ago, i…

local root exploit in the wild!!!

https://www.redhat.com/archives/fedora-list/2008-February/msg01215.html

https://bugzilla.redhat.com/show_bug.cgi?id=432229

Affected kernels: 2.6.17 till 2.6.24

I tried it on my boxes, and heres the result

Hoshino
Release: Werewolf
SELinux: Enforcing
Result : R00TED!

[kagesenshi@Hoshino tmp]$ ./a.out
-----------------------------------
Linux vmsplice Local Root Exploit
By qaaz
-----------------------------------
[+] mmap: 0x0 .. 0x1000
[+] page: 0x0
[+] page: 0x20
[+] mmap: 0x4000 .. 0x5000
[+] page: 0x4000
[+] page: 0x4020
[+] mmap: 0x1000 .. 0x2000
[+] page: 0x1000
[+] mmap: 0xb7f95000 .. 0xb7fc7000
[+] root
[root@Hoshino tmp]# uname -a
Linux Hoshino.KageSenshi.Org 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:59 EST 2007 i686 i686 i386 GNU/Linux



Hikari
Release: Rawhide
SELinux: Permissive
Result : Safe (I think)

[izhar@hikari tmp]$ ./a.out
-----------------------------------
Linux vmsplice Local Root Exploit
By qaaz
-----------------------------------
[+] mmap: 0x0 .. 0x1000
[+] page: 0x0
[+] page: 0x20
[+] mmap: 0x4000…

Automatic kernel crash reporting?

I updated to today's rawhide and rebooted. It boots but crashed when loading Xorg. Rebooted again and it back working. After login, a libnotify popup appeared (and I thought it was Xorg which fscked):



There's another popup after sending to notify it successfully sent but I was too late to screenshot it as it disappears after a few second. Anyway, this thing is neat!. Finding data after a kernel crash is not something 'users' would do, but with these, upstream gonna have some good data to work with.

Statistics are gathered at KernelOops.org

3 days on Rawhide

I've been on Rawhide for almost 3 days now. So far there are no showstopper bug that prevents me to do work. The new GDM looks cool, Firefox3 is great, new System-config-firewall is great, but Xorg is a little bit scary (I've expected this problem : OneSecondX feature brings a lot of changes into Xorg - unstability is unavoidable).

What I can't do for now:
* Switch VT - I can't switch back to X after that
* Use Compiz/3D apps - X crashes right after starting compiz/glxgears - #427643
* Exit X/Logout - X could not restart

All problem above resulted in a total lockup from physical access. Box still responding through network.

For others, everything works fine like usual (at least for my purposes, and of course, the versions are newer than F8 versions).

ITL & Minbar in Fedora

With regards to a question in FWN issue 117


Prayer Time for Fedora

Riam budhi: I wanted to ask you, where is I can download prayer time ( I am muslim)?

---

Unfortunately, this software isn't available in the Fedora repository yet and I couldn't locate any good alternatives. This is now a opportunity for you to be a contributor to Fedora and maintain the software in the Fedora repository.


I've packaged the Islamic Tools & Library and Minbar. They are waiting for review currently.

libitl: #431181
itools: #431186
minbar: #431188

Happy Chinese New Year

Happy Chinese New Year!. May this year be a prosperous year too.

Fedora 9 (Sulphur) Alpha

Fedora 9 (Sulphur) Alpha is out for developers, early adopters, and those who can't stand to wait.

https://www.redhat.com/archives/fedora-test-list/2008-February/msg00072.html



http://fedoraproject.org/get-prerelease

* Support for resizing ext2,ext3 and NTFS partitions during installation
* Support for creating and installing to encrypted filesystems
* Faster and more efficient yum dependency resolver
* PackageKit
* FreeIPA, an integrated solution combining Linux, Fedora Directory Server, FreeRADIUS, MIT Kerberos, NTP, DNS and providing web and commandline provisioning and administration tools.
* GNOME 2.21 Development Release
* KDE 4.0
* Firefox 3 'Minefield' (nightly builds)
* Kernel 2.6.24
* ... And Many More~ ...

Rel notes:
http://fedoraproject.org/wiki/Releases/9/Alpha/ReleaseNotes

Test status are being tracked here :
http://fedoraproject.org/wiki/QA/9/AlphaTreeTesting

Zenoss on Fedora 8

I've wasted 1.5 day trying to get zenoss from their RPM to run on my F8 laptop using compat-python24 from livna. I've tried lots of ways like recompiling, export PYTHON and PYTHONPATH env variables etc but without much luck. I solved it just now after looking into the python files and noticed that they are all hardcoded with /usr/bin/python instead of /usr/bin/env python. There are even some that uses /opt/zenoss/bin/python. Here's my little hackfix to make zenoss starts cleanly.

Before running this, I recommend existing zenoss install to be removed, rm -rf /opt/zenoss, and reinstall it clean.


#!/bin/sh

ZENOSS_DIR="/opt/zenoss"
PYTHON="/usr/bin/python2.4"
cd $ZENOSS_DIR

find . -type f -exec sed -i "s|/usr/bin/python|${ZENOSS_DIR}/bin/python|g" '{}' ';'

cd $ZENOSS_DIR/bin
rm python
ln -s $PYTHON python


A little description about the above script. It simply change all /usr/bin/python to /opt/zenoss/bin/python and replace the symlink /opt/z…

Flood at Puchong Indah

Around 4:30pm this afternoon (Sat, Feb 02, GMT+8), my area got flooded. It was only a less than 2 hours rain and yet the water level raised up to knee level at the roadside of my side of the neighborhood. It might be caused by the monsoon drain was stuck due to irresponsible people thrown trashes into it. My family has been living here for more than 10 years and this is the 3rd time this place got flooded, and the first time it reaches to knee level at the road and barely entered my house. The rain stopped around 6pm and it took around 30 minutes before it complete drained.

Glad that it only barely reach the inside of my house. But my neighbors who are at a lower grounds , had quite a lot of belongings damaged/destroyed. My condolence to them.

Pics:










Considering Malaysian general election is coming near, guess its a good point to do some blackmailing to the local politician. Somebody need to clean up the monsoon drain or this will happen again, maybe worse than this.

Changed theme again

My previous themes went broken due to photobucket download limit. The template xml I got from the original site points directly to there.



So, I googled around for a new theme and found this http://b-themes.blogspot.com/2007/09/minyx-template-for-blogger.html. The download also provides a zip file of the images, so, I uploaded them to my pages.google.com storage to avoid the stupid photobucket problems happens again.