Showing posts tagged tech

Typing my pass instead of root in GNOME

I’m an avid fan of using sudo when needed and avoiding typing my root password. In the command-line this works fairly easy:

su -
usermod -a -G wheel MYUSERNAME
visudo
# Uncomment the following line:
%wheel  ALL=(ALL)       ALL

In GNOME, the above won’t ‘just work’ due to the (fortunate) existence of PolicyKit. You’re always asked for your root password instead of your user password. Configuration used to involve editing PolicyKit.conf. In newer versions of Fedora, a new PolicyKit is shipped, with improved setup for policies and configurations.

After some searching around, I figured out I need to install polkit-gnome. We now have a special group called ‘desktop_admin_r’, and polkit is already setup to read from that group the desktop admins. So the new way to make GNOME ask your password instead of the root one, the following commands should just work:

sudo yum install polkit-gnome
usermod -a -G desktop_admin_r mits

For the record, gksudo is something completely different. And more evil. =/

Στη FOSSComm είχα την ευκαιρία να δώσω μια παρουσίαση γύρω από ακραία σενάρια Web Development, εστιάζοντας γύρω από το Large/Popular Open Source Project & Release management.

Χθες, στην τοπική ομάδα Python στην Πάτρα, δόθηκε ένα καθαρό τεχνικό incarnation της παρουσίασης για το πώς χτίζεται και γίνεται deployed ένα scalable web application, με παραδείγματα από Python/Django. Για όσους ενδιαφέρονται, οι σημειώσεις και το βίντεο από την παρουσίαση είναι διαθέσιμα:

http://bit.ly/tsp0507 http://vimeo.com/11547575