X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/0bf82d81497fb2f5ad123c7d37281c6a3a7a5c0d..f10e8b30f3531c7159ef8c4e97b598a8694db3f6:/blog/index.rss diff --git a/blog/index.rss b/blog/index.rss index da5850f0f8..13cebea5c8 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -6,6 +6,32 @@ http://people.skolelinux.org/pere/blog/ + + Moved the pymissile Debian packaging to collab-maint + http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html + http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html + Thu, 10 Jan 2013 20:40:00 +0100 + <p>As part of my investigation on how to improve the support in Debian +for hardware dongles, I dug up my old Mark and Spencer USB Rocket +Launcher and updated the Debian package +<a href="http://packages.qa.debian.org/pymissile">pymissile</a> to make +sure udev will fix the device permissions when it is plugged in. I +also added a "Modaliases" header to test it in the Debian archive and +hopefully make the package be proposed by jockey in Ubuntu when a user +plug in his rocket launcher. In the process I moved the source to a +git repository under collab-maint, to make it easier for any DD to +contribute. <a href="http://code.google.com/p/pymissile/">Upstream</a> +is not very active, but the software still work for me even after five +years of relative silence. The new git repository is not listed in +the uploaded package yet, because I want to test the other changes a +bit more before I upload the new version. If you want to check out +the new version with a .desktop file included, visit the +<a href="http://anonscm.debian.org/gitweb/?p=collab-maint/pymissile.git">gitweb +view</a> or use "<tt>git clone +git://anonscm.debian.org/collab-maint/pymissile.git</tt>".</p> + + + Lets make hardware dongles easier to use in Debian http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html @@ -542,53 +568,5 @@ innbyggerne i uka om feil på offentlig infrastruktur.</p> - - Scripting the Cerebrum/bofhd user administration system using XML-RPC - http://people.skolelinux.org/pere/blog/Scripting_the_Cerebrum_bofhd_user_administration_system_using_XML_RPC.html - http://people.skolelinux.org/pere/blog/Scripting_the_Cerebrum_bofhd_user_administration_system_using_XML_RPC.html - Thu, 6 Dec 2012 10:30:00 +0100 - <p>Where I work at the <a href="http://www.uio.no/">University of -Oslo</a>, we use the -<a href="http://sourceforge.net/projects/cerebrum/">Cerebrum user -administration system</a> to maintain users, groups, DNS, DHCP, etc. -I've known since the system was written that the server is providing -an <a href="http://en.wikipedia.org/wiki/XML-RPC">XML-RPC</a> API, but -I have never spent time to try to figure out how to use it, as we -always use the bofh command line client at work. Until today. I want -to script the updating of DNS and DHCP to make it easier to set up -virtual machines. Here are a few notes on how to use it with -Python.</p> - -<p>I started by looking at the source of the Java -<a href="http://cerebrum.svn.sourceforge.net/viewvc/cerebrum/trunk/cerebrum/clients/jbofh/">bofh -client</a>, to figure out how it connected to the API server. I also -googled for python examples on how to use XML-RPC, and found -<a href="http://tldp.org/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-python.html">a -simple example in</a> the XML-RPC howto.</p> - -<p>This simple example code show how to connect, get the list of -commands (as a JSON dump), and how to get the information about the -user currently logged in:</p> - -<blockquote><pre> -#!/usr/bin/env python -import getpass -import xmlrpclib -server_url = 'https://cerebrum-uio.uio.no:8000'; -username = getpass.getuser() -password = getpass.getpass() -server = xmlrpclib.Server(server_url); -#print server.get_commands(sessionid) -sessionid = server.login(username, password) -print server.run_command(sessionid, "user_info", username) -result = server.logout(sessionid) -print result -</pre></blockquote> - -<p>Armed with this knowledge I can now move forward and script the DNS -and DHCP updates I wanted to do.</p> - - -