In the last few weeks, I spent quite some time wondering about how to arrange the hard disk layout of my productive
systems in the future. This article outlines my thoughts and would like to ask the lazyweb for comments.
I try to keep my Debian servers as identically as possible, making it possible to talk non-linux persons remotely
through the system without having to worry about this particular box configuration.
I have been especially worrying about:
Guadalinex-EDU: New educational distribution based in Jaunty
Guadalinex Edu is a new GNU / Linux distribution developed by the Advanced Center for ICT Schools Management (CGA), initially created for use by the educational community of Andalucia, Spain which will be available for teachers and students within the domestic sphere. Guadalinex Edu distribution is equivalent to the future Guadalinex V6 citizen but oriented to the educational sector.
Looking for the highest possible level of stability in the distribution, the CGA will be releasing a beta version of the distribution, installable by anyone who wants it. The aim is to involve the educational community in the stabilization and development of Guadalinex Edu, before its deployment in local schools.
Guadalinex Edu Beta 1 is fully functional, but should not forget that this is a beta version which may contain errors from both: the applications included by the CGA in the distribution, and errors coming from the base distribution where it must be installed (Jaunty Jackalope Ubuntu 9.04), so it is not recommended for use in production computers and, in any case, it is recommend making a backup of important data before installation.
Within an ICT Center, Guadalinex Edu will take advantage of the network infrastructure and servers from the center to offer:
a system that allows any member of the center to become remote user of its data in any computer regardless of the dependence location in the center.
a system for transmitting multimedia content among computers in a classroom
a system of interaction between students and teachers via the computer
For domestic users, Guadalinex Edu is offered as a meta package to be installed on Ubuntu Jaunty and offers tons of applications like:
Celestia (space simulator)
Kstars (Planetarium)
Kgeography (Maps)
Parley (Vocabulary)
Squeak
DRAE Spanish Search tool (Lemurae)
GNU Octave
Kbruch (fractions)
Kig
KmPlot
KSeg (Geometry)
Mathwar (Game of calculus)
QtOctave (numerical calculus)
Freemind
Blender
Audacity
Festival GUI
KTouch (Typing)
Kompozer
Umbrello
K3b
Kino
Plus all the benefits of Guadalinex:
Spanish translation of many applications
Support for electronic ID Card
And Ubuntu:
A wide range of media devices support (kernel 2.6.28)
Firefox 3
OpenOffice 3
XOrg 1.6 , etc
Installation instructions for home users are available here(In spanish)
If you have a Launchpad account, you can add comments and report bugs at the following addresses (if you do not have an account, you can register with Launchpad for one)
Comments:
https://launchpad.net/guadalinexedu/+addquestion
Bug reports:
https://bugs.launchpad.net/guadalinexedu
Original link in spanish here
section: screens
mylaptop:
mydesktop:
end
section: links
mylaptop:
right = mydesktop
mydesktop:
left = mylaptop
end
section: options
keystroke(alt+shift+space) = switchInDirection(left)
keystroke(alt+space) = switchInDirection(right)
end
synergys -a localhostNow, in order to encrypt the synergy client/server traffic, I create an ssh tunnel between the two machines:ssh -f -N -L localhost:24800:localhost:24800 mydesktopThen I start the synergy client on my laptop. However, some recent problems have convinced me to have a more robust alternative to simply starting the client like this:synergyc localhostAs recommended by a few helpful people on #debian-devel, I decided to use the supervise tool (part of the daemontools package) to automatically restart the synergy client if it crashes. Here is how I do it:supervise ~/.synergyc &This command refers to a ~/.synergyc directory containing a single run script. That shell script consists of:#!/bin/sh
xset r rate 500 30
/usr/bin/synergyc --no-daemon localhost

ocaml-autoconf
A couple of months ago, I joined an effort by Richard Jones to
give a decent shape to autoconf macros for
OCaml. The situation was a tad annoying before, because we
had unofficial ocaml.m4 files floating around, which
have diverged one from another, with unclear licensing terms,
incompatible features, ecc.
So we started a project on the
ocamlforge to coordinate all this, injected the best we could
find around, add
docs, polish features, and contacted copyright owner to uniform
licensing terms (to a 3-clause BSD).
Yesterday we finally released
ocaml-autoconf 1.0.
Rich's blog post on the subject contains a nice how
to to kick start your OCaml project using autotools up to
automake.
A brief feature overview is in order:
I updated Web service 'Debian HCL - Debian GNU/Linux device driver check & report page' is an easy tool to check and see the support status of your hardware on GNU/Linux, with many improved features.
Integrating the check page and submitted reports is convenience.
The vendor tree view will make easier to find models what you'd like to see.
Although Searching isn't implemented yet, I think new URL structure is friendly to search engine crawlers. I'll put Google search form on the page after Google crawls.
Handling your submission is semi-automatic periodically. So please don't submit again and again even it won't be shown soon. :)
This service is localized in English, Japanese, French, Spanish, Spanish-Argentina, Italian, Polish, German, and Portguese at this time, by using your Web browser language information. Because I introduced the GNU gettext system for internationalizing, it's easy to translate and update the translations. You can take template.pot file and translate in your language. If you'd like to translate in your language, please tell me. Have a fun!
Unfortunately, there is so much FUD associated with doing your
own certificates, either based on how complex the operation is
(which led to my previous supervisor insisting I use something like
tinyca), and now to my employer succumbing to the FUD
and shelling out several hundreds, perhaps several thousands, of
dollars a year for something we could well have handled in
house.
Public key infrastructure, in the form of the X509
standard, is the underpinning of most of the secured communications
over the net these days. The big winner in the transport
protocols, TLS, and its predecessor, SSL,
support X509 certificates. There are several ways of
getting your own services their own X509 certs; one of
which I am exploring below.
One may, or course, opt to get a commercially signed
certificate, and various companies are eager to do just that for
you. They also charge about $400 per annum per certificate for the
privilege of doing so. While there is some marginal benefit of
doing so (some web browsers come with the commercial public
certificate built in, allowing for an out of band distribution of
the public cert), the benefit accrued is in the order or pennies,
in my opinion, not hundreds of dollars, unless you are providing
banking or retail services, where the end users might be justified
in being paranoid.
Why is there so much FUD your own certificates? Especially about
how hard it is do to your own? As you can see below, it only takes
three commands you have to master in order to set up your own
private certifying authority, and sign your own certificates. The
only marginal issue is that the user needs to verify your
certificate out of band (if, really, they want to bother). Most
people just accept the certificate, in my experience.
The sole benefit that commercial entities provide is that they
verify the identity of the person asking for the certificate, with
varying degrees of diligence. For a Class 1 cert the CA usually
just verifies that the email address of the requester was
confirmed. For $400/year. For a Class two cert, they look up the
company in a credit bureau records. A class 3 certs does an ID
check with a notary public present, or a government issued ID.
So, a class 3 cert is somewhat less diligent than becoming a
Debian developer. Or getting your key signed at a Debian
conference. As to the security aspects, or wondering whether to
trust the information present on a designated web site, I have no
idea how it helps verify any of those things in any way.
So the web site is run by a person with a government provided
ID, and who has a few hundred dollars to burn. So what?
Me, I just sign my own certificates. And I think most small
business web sites and mail servers are perfectly well served by
using their own certificates. And there are just three simple
commands that enable them to do this, in the Linux world.
So what are these three commands?
Gory
practical details and recipes hidden here
In conclusion, creating your own certifying authority is
trivial, and certainly not worth several hundreds of dollars every
year, and the functionality provided is identical.
As my Institute's sysadmin, I was appointed as the responsible for my Institute's certificate handling for today's voting session for the Universitary Council (Consejo Universitario).
UNAM, Mexico's largest University, is moving towards an e-voting platform. I talked about this with our (sole) candidate for the Council, and she told me this has been used a couple of times already - And, as expected, it has led to having to repeat voting sessions, due in part to e-voting's inherent lackings: It is impossible to act on any kind of impugnation. The only thing we have is an electronic vote trail, no way to recount or to make sure that all votes got in. Besides, we had a perfectly antinatural and inadequate identification system, which means voter's identity have no way to be trusted.
Besides, we still have all the traditional Universitary bureaucratic paper flow, which completely obscures any positive points this e-voting system might have had.
Before going any further, if you are interested: There is a so-called security audit certificate for this system. In Spanish, yes. Take a look at it if you understand the language and want to crack some laughs.
I will not make a detailed review of (what I could gather about) the setup. But to make things short: I had to go to the central administrative offices to get a CD-ROM with the monitoring station's SSL certificate. This certificate is tied to an IP address, so only one computer was able to be set up as a monitoring station. So far, so good.
But, what is the monitoring station's real role? You will probably laugh. The voting session (at my Institute - Each dependency can specify its own opening and closing times) was from 10:00 and until 18:00. We were instructed to place this computer at a public location, from where:
fun with my machines at home in the last days:
In a Java framework I'm working on, 'pairs' arise everywhere. Unfortunately in
contrast to e.g. C++, Java doesn't include a predefined 'pair' class.
C++ templates are really nice because of the way they are complied and
optimized (in particular they also handle what Java calls 'native datatypes');
Java generics aren't up to par with that. (But yes, Java offers other benefits,
such as being much easier to parse and thus refactor). Anyway, this is not
going to be a rant on Generics.So I have this interface in Java called Pair<FIRST,SECOND>
along with two implementations SimplePair<FIRST,SECOND> and
ComparablePair<FIRST extends Comparable<FIRST>,SECOND extends Comparable<SECOND>>.For performance reasons, SimplePair is declared 'final', and
so is ComparablePair. It's written everywhere that making classes
final can make a large difference in Java, and since these objects will be used
in a lot of places, it seems reasonable to care about this here.However, it would often be nice to have better readable code, that is assuming
I'm using SimplePair<Monkey,Banana>, it would then be nice to
make a derived class BananaPreference extends
SimplePair<Monkey,Banana>, with added methods getMonkey()
and getPreferredbanana() to make the resulting code more readable.Having readable code is also often quite as important as having performant
code, after all ...If someone with solid experience in Java optimization has some ideas to share,
please do so! Email: erich AT debian DOT org - no comments in blog.Right now, I have one idea on how it could be possible to achieve both
(seriously, I could use some feedback from Java Gurus on that): make
SimplePair and ComparablePair abstract, all methods there final, then derive
final classes as needed. Does that combine the benefits?[Update: I received from Joachim Sauer the following helpful link:
JavaOne presentation on performance tuning and various VMs. Basically this seems to indicate that in all these common situations, any modern Java VM should be able to figure out the inlining options automatically and optimize appropriately, so it won't benefit from any "final" hint by the developer. Note that a C++
compile doesn't do runtime optimization, but allows compile time optimization at a much lower level, so this rule doesn't apply to C++.]
When trying to port coreboot (previously LinuxBIOS) to a new mainboard you're often confronted with a big problem: the BIOS/ROM chip on the respective motherboard is soldered onto the board (i.e., not in a socket).
This means that you cannot easily (hot-)swap the chip during development or for recovery purposes. So you basically have exactly one try to flash the ROM chip with a fully working/booting coreboot image. If that goes wrong your board is bricked.
This makes it pretty much impossible to develop a coreboot port for such boards (and soldered-on ROM chips are becoming more and more common, unfortunately).
However, I've recently tried to replace the soldered-on (PLCC) ROM chip on one of my boards with a socket. What sounds pretty scary at first, especially given that I have almost non-existant soldering skills, turned out to be really not that hard. Also, it can be done with relatively cheap and readily available equipment.
I have written a short HOWTO for desoldering chips and soldering on sockets in the coreboot wiki, and also finished a video showing most of the process, which I hope will be helpful for others:
$ youtube-dl -t 'http://www.youtube.com/watch?v=30x4oxyczH4'
The Ogg Theora video support feature request has been open for more that a year. Until that issue is fixed I'll just use other video services, thanks...
Just a short reminder that the application phase for the
Google Summer of Code 2009 is running.
So far, we have quite few applications. Deadline is April 3rd, 19:00
UTC. Usually applications arrive rather late, but still I have the impression
that we have much less than the previous years. But less copy & paste, too.If you are interested in doing a GSoC project at Debian:
I just applied for an individual digital signature certificate at e-Mudhra CA. They have an inaugural offer price of Rs. 248 for a class 3 individual certificate with a validity of two years. The price is good! There is physical presence verification with official documentation at a registration authority (RA) of e-Mudhra, but that should be fairly straightforward. I am hoping that I would be able to file my income tax returns digitally this year.AC_INIT([foo], [0.0.1]) MAJOR=0 MINOR=0 MICRO=1 MY_VERSION=$MAJOR.$MINOR.$MICRO AC_SUBST(MAJOR) AC_SUBST(MINOR) AC_SUBST(MICRO) AC_SUBST(MY_VERSION)I finally hit my annoyance threshold for this, and the answer is pretty obvious. (If its not, or you think there is a simpler one, give it a shot - I'd like something more pithy).
AC_DEFUN([MAJOR], [0]) AC_DEFUN([MINOR], [0]) AC_DEFUN([MICRO], [1]) AC_DEFUN([MY_VERSION], [MAJOR.MINOR.MICRO]) AC_INIT([foo], [MY_VERSION]) AC_SUBST(MAJOR) AC_SUBST(MINOR) AC_SUBST(MICRO) AC_SUBST(MY_VERSION)Its not a big deal to be duplicating version numbers, but not duplicating at all is nicer.
As I haven't used Gnome in over a year, I'm orphaning my Debian BTS Applet (original blog post).
After the original release it was forked for Launchpad and there were even plans for OpenSUSE fork. Jon Dowland also released his debgtd tool which isn't Gnome-specific and somewhat more useful for developers, although actual development has stalled with patches pending.
I would be willing to sponsor uploads if a non-Debian Developer was to adopt it.
Assurance contracts are contracts in which participants make a binding pledge to contribute to a contract for building a public good, contingent on a quorum of a predetermined size being reached. Otherwise their money is refunded. A dominant assurance contract is a variation in which an entrepreneur creates the contract and refunds the initial pledge plus an additional sum of money if the quorum is not reached. In game theory terms this makes pledging to build the public good a dominant strategy: the best move is to pledge to the contract regardless of the actions of others.This means that Bob goes out and gets a number of dentists to pledge 100$ to his dentist program, and if he doesn't raise at least 1000$, he'll give them each back 110$. So it's a clever solution that works out for everyone, but is still a lot fiddlier than the copyright system - Bob has to go sell the contracts and explain how things work to a bunch of people before he can get started. This might be doable with 10 dentists, but for a more mass-market sort of program, it would not be feasible.
a mechanism by which potential beneficiaries of a public good band together and pool their resources based on their willingness to pay to create the public good. Coase (1960) argued that if the transaction costs between potential beneficiaries of a public good are sufficiently low, and it is therefore easy for beneficiaries to find each other and pool their money based on the public good's value to them, then an adequate level of public goods production can occur even under competitive free market conditions.That sounds an awful lot like open source software, especially the kind espoused by groups like the Apache Software Foundation, where making free software is not a moral imperative, but a good way of producing something that is not necessarily a key business component. This has proven to work very well for infrastructure type code, as well as lots of developer tools. It is less proven as a way to develop end-user software - in the example above, it's not like Bob needs help to develop his system, or that the dentists really want to contribute - they just want a working program and don't want to get involved in its production.
Some time ago I wrote about the
the state of GRUB2
and a milestone on getting it boot my Apple PowerBook G4 without manual
intervention. More than a year later, GRUB2 has changed and improved a lot,
as the community keeps growing and patches and ideas are continously being
posted.
Some months and commits after my previous post, GRUB broke again on
Apple OpenFirmware and I'd get dropped to OF console, the amount of
commits since the last known working version and the current SVN was quite
big, and although I was able to narrow it to a few suspicious changes, I had
no time to bisect it properly, and sadly I had to go back to
yaboot for a while.
But procrastinating sometimes helps, and when I should have been writing
and studying, on December I gave GRUB a new try on my laptop to see if a few
important changes to memory allocation would have changed anything. And it did!
So after fighting quite a few problems, I was able to
report partial success
to grub-devel.
Again, getting GRUB installed correctly was a bit challenging and needed
some hackery, due to incorrectly generated device.map, and the
linux module mysteriously not getting loaded. Luckily, Michel D nzer found out
that this was due to a bug in sort ordering in the HFS module, which broke
the lookup of files with underscores like _linux.mod, and for
which he posted a possible fix by taking Linux's table of character
ordering, which is a blob of hex values.
GRUB developers didn't seem too happy about applying the patch:
they argument that a blob like that should be well documented or written
in some other more readable way, and there's a possible problem with the mix
of Linux GPLv2 and GRUB GPLv3+ codebases, if a table of data like what Michel
posted is actually copyrightable. The discussion ended up dying and nothing
was done... until Pavel Roskin
picked it up
weeks later and posted a new patch, based on hfsutils GPLv2+
code, which addressed these issues. The new patch seems to have a few issues,
which makes it fail as before, but hopefully it'll be fixed soon.
Additionally, I wasn't able to boot using UUIDs as the search commands
fails to detect the correct boot device on my system (but not on Michel's), so
I had to disable that in /etc/default/grub.
To workaround the linux module loading bug while the patch is fixed,
I just added this ugly hack to /etc/grub.d/09_local_prelinux:
#! /bin/sh -e # Work-around for bugs in the hfs module which makes the load of # linux.mod fail. cat << EOF insmod (hd,3)/usr/lib/grub/powerpc-ieee1275/_linux.mod insmod linux EOFThis is enough to get the
initrd and linux
commands available. However, update-grub will still add search
commands to your menu entries even if you disabled UUID support; I can't
understand why, but I know it breaks on my PowerBook due to some OF rarety.
Just removing the line from the menu entry will leave me with a working
config that boots without any manual editing at GRUB prompt.
The latest GRUB snapshot in Debian fixes the device.map issue, but adds
one last
issue:
update-grub will fail due to some gfxterm detection code, a workaround is
to replace an exit 1 with exit 0 when this happens
in /etc/grub.d/00_header.
On the weird architectures front, it's worth noting that this month
Dave Miller popped up on the list and started posting patches to fix the rotten
SPARC port, and I think it's safe to assume that it'll be on an usable state
really soon. Impressive!
Next.