Skip to content

Entries from March 2011.

Scientific Linux 6 released

Wow, nice, Scientific Linux 6 is released. Details here.
I'm downloading the DVD right now (thank you Virginmedia for capping me to 2 Mbps, arseholes).

I'm a PC

Hi! I'm a PC!
Hi! I'm a MAC! - No, you are not! You are also a _PC_!
I kindly ask all people with little or no computer skills (especially some of the idiots in advertising) to read
A personal computer (PC) is any general-purpose computer whose size, capabilities, and original sales price 
make it useful for individuals, and which is intended to be operated directly by an end-user with no
intervening computer operator.


This is by far one of the best documentaries I have ever seen.

Allow the local user to install and update software without root password

This tutorial is for EL6 and possibly Fedora (12, 13, 14 etc); not sure if it will work on other distros.

For my personal laptop or even work station I don't see a reason to require the root password to install or update programs from trusted sources (i.e. repos from which we imported the gpg keys). In order to allow the regular user to perform such actions we use PolicyKit. As such we need to write 2 new pkla (PolicyKit Local Authority) files:
vi /var/lib/polkit-1/localauthority/50-local.d/10-pkgkit-pkginstall-policy.pkla

and copy/paste the following:
[Let All Install Packages]

This will allow all users to install new programs either by using pkcon or its graphical counterpart gpk-application.
In order to update packages we need to write a new pkla:
vi /var/lib/polkit-1/localauthority/50-local.d/10-pkgkit-pkgupdate-policy.pkla

and copy/paste:
[Let All Update Packages]

That's about it. Now you can use pkcon install blah or pkcon update as a normal user. Alternatively you can use "System > Administration > Add/Remove software" or "System > Administration > Software update".