Sunday, March 21, 2010

Howto downgrade ubuntu 9.10 karmic to legacy grub

My Asrock ION 330 hangs for a minute in the boot sequence with grub2.
Lets downgrade to Legacy.


sudo apt-get purge grub2 grub-pc
sudo rm /boot/grub/*

sudo apt-get install grub

sudo update-grub

sudo fdisk -l

sudo grub-install /dev/sdX

echo "grub hold" | sudo dpkg --set-selections

Saturday, March 20, 2010

Howto get automount and stuff working in 9.10 Karmic without gdm

When running the gnome desktop without gdm e.g. by startx things does not work as expected. E.g. if a usb disk is plugged in it is not mounted and the err "not authorized" is displayed.

I think the correct solution may be to include ck-launch-session in startx but I have not been able do do this. I still dont really understand exactly how the ubuntu startup scripts works.

EDIT: please note that this does not fix usb automount in xbmc.
The problem can instead be fixed by:

sudo apt-get install policykit-1 devicekit-power

sudo nano /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla
add:

[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.disks.*;org.freedesktop.devicekit.power.*;org.freedesktop.consolekit.system.*;org.freedesktop.hal.storage.mount-removable;org.freedesktop.hal.device.volume
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes

Tuesday, March 16, 2010

xbmc 9.11 usb does not automount after gnome-core is installed

I have this very annoying probklem that I have not been able to solve. when I install gnome-core usb disks does not mount anymore. I get "not authorized".
Generally if I use gdm it works but if I use xbmc or startx it does not work.

I think the problem could be that the policykit is upgraded to polictkit-1 and any settings that are done for xbmc does not work anymore.

I have now found this: EDIT: This does not fix the usb mount problem. It fixes some other permission problems though. I have given up on xbmc and gnome for the moment. I use lxde with xfce and kde components instead.
http://forum.xbmc.org/showthread.php?t=70394

--------------------------
(sudo apt-get install policykit-1 devicekit-power)

sudo nano /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla
add:

[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.disks.*;org.freedesktop.devicekit.power.*;org.freedesktop.consolekit.system.*;org.freedesktop.hal.storage.mount-removable;org.freedesktop.hal.device.volume
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes