Archive for January, 2007

Getting started with Python

January 25, 2007

Over the last couple of days I’ve been trying to get to grips with Python. I love it 🙂 Initially I was very sceptical about how easy I could return to programming in a language that is white space sensitive; especially as my last experience of this was Occam-pi, which is very strict with it’s sensitivity.

Pythons syntax is very easy to read and the indentation seems very natural. couple this with the SciTE editor and I’m suddenly feeling like I could take on the world. Next stop jokosher hacker 😛

My next step is to work on creating a simple gui app using glade 🙂 If anyone has any comments or helpful links about gtk gui design with python then drop me a mail or a comment

Advertisements

gnome-settings-daemon crash details

January 9, 2007

problems with Gnome: after trying to change my icon theme from within an Xgl(Beryl) session, gnome-settings-daemon crashed. Now will not start on Gnome startup.

gdb trace (from a failsafe session) gives:

(no debugging symbols found)
[New Thread -1228379232 (LWP 7074)]

(gnome-settings-daemon:7068): GSwitchIt-WARNING **: Unable to connect to dbus: Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)

** (gnome-settings-daemon:7068): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed

** (gnome-settings-daemon:7068): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

** (gnome-settings-daemon:7068): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226680656 (LWP 7068)]
0x0806915d in keyboard_config_registry_get_type ()

EDIT: fixed now. problem was due to me being a retard and installing the redhat-artwork RPM using alien so that I could use the bluecurve icon set. simply removed the package and extracted the cons manually from the rpm and stuck them in home/shrimphead/.icons works fine now.

latest ATI drivers in Ubuntu

January 9, 2007

First edit xorg.conf and change

Driver "fglrx"

to

Driver "vesa"

and add

Section "Extensions"
Option "Composite" "Disable"
EndSection


install everything required to build a debian kernel module
(note: older fglrx needs to be uninstalled)

apt-get update
apt-get install module-assistant build-essential wget fakeroot dh-make debconf libstdc++5 linux-headers-$(uname -r)

Now add

DISABLED_MODULES="fglrx"

to/etc/default/linux-restricted-modules-common
(just in case!)

now go and get the latest driver package (note get the .run file not the rpm)
then build:

chmod +x ati-driver-installer-8.32.5-x86.x86_64.run ./ati-driver-installer-8.32.5-x86.x86_64.run --buildpkg Ubuntu/edgy
dpkg -i xorg-driver-fglrx_8.32.5-1_i386.deb fglrx-kernel-source_8.32.5-1_i386.deb fglrx-control_8.32.5-1_i386.deb
rm /usr/src/fglrx-kernel*.deb
sudo mkdir -p /usr/src/modules/fglrx/linux
sudo touch /usr/src/modules/fglrx/linux/config.h

rebuild the kernel module

module-assistant prepare
module-assistant update
module-assistant build fglrx
module-assistant install fglrx depmod -a
aticonfig --initial aticonfig --overlay-type=Xv

(note: some further editing of xorg.conf may be necessary to actually set the default screen and card to the new drivers, check this then reboot)