Tanguy Ortolo: Naming LVM volume groups
Today I ll be telling you about an interesting way to build your Debian packages using Deb-o-Matic, a tool developed and maintained by Luca Falavigna. Some more details about this tool from the package s description:
Deb-o-Matic is an easy to use build machine for Debian source packages based on pbuilder, written in Python. It provides a simple tool to automate build of source packages with limited user interaction and a simple configuration. It has some useful features such as automatic update of pbuilder, automatic scan and selection of source packages to build and modules support.The setup. 1. Download the package.
apt-get install debomatic2. Modify the main configuration file as follows:
[default] builder: pbuilder packagedir: /home/john/debomatic # Take note of the following path since we'll need it for later use. configdir: /etc/debomatic/distributions pbuilderhooks: /usr/share/debomatic/pbuilderhooks maxbuilds: 3 # The number of builds you can perform at the same time. inotify: 1 sleep: 60 # The sleep time between one build and another. logfile: /var/log/debomatic.log [gpg] gpg: 0 # Change to 1 if you want Deb-O-Matic to check the GPG signature of the uploaded packages. keyring: /etc/debomatic/debomatic.gpg # Add the GPG Keys you want Deb-O-Matic to accept in this keyring. [modules] modules: 1 # A list of all the available modules will follow right after. modulespath: /usr/share/debomatic/modules [runtime] alwaysupdate: unstable experimental precise distblacklist: modulesblacklist: Lintian Mailer mapper: 'sid': 'unstable', 'wheezy': 'testing', 'squeeze': 'stable' [lintian] lintopts: -i -I -E --pedantic # Run Lintian in Pedantic mode. [mailer] # You need an SMTP server running on your machine for the mailer to work. You can have a look at the 'Ssmtp' daemon which is a one-minute-setup MTA, check an example over here. fromaddr: debomatic@localhost smtphost: localhost smtpport: 25 authrequired: 0 smtpuser: user smtppass: pass success: /etc/debomatic/mailer/build_success.mail-template # Update the build success or failure mails as you wish by modifying the relevant files. failure: /etc/debomatic/mailer/build_failure.mail-template [internals] configversion = 010aThe available modules are:
[debomatic] method = local incoming = /home/john/debomaticor the following if you are going to upload the files to a different machine through SSH:
[debomatic] login = john fqdn = debomatic.example.net method = scp incoming = /debomatic3. Add a new Virtual Host on Apache and access the repository / built packages directly through your browser:
<VirtualHost *:80> ServerAdmin john@example.net ServerName debomatic.example.net DocumentRoot /home/john/debomatic <Directory /home/john/debomatic> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost>4. Start the daemon:
sudo /etc/init.d/debomatic start5. (Optional) Add your repository to APT s sources.list:
deb http://debomatic.example.net/ unstable main contrib non-free6. (Optional) Start Deb-O-Matic at system s startup by modifying the /etc/init.d/debomatic file at line 21:
- [ -x "$DAEMON" ] exit 0 - [ "$DEBOMATIC_AUTOSTART" = 0 ] && exit 0 + [ -x "$DAEMON" ] exit 0 + [ "$DEBOMATIC_AUTOSTART" = 1 ] && exit 0and finally add it to the desired runlevels:
update-rc.d debomatic defaultsEnjoy!
?()-+-acpi_cooling0(16)
-acpi_thermal(15)
-audit(10)
-bufdaemon(18)
-flowcleaner(22)
-g_down(4)
-g_event(2)
-g_up(3)
-hald-runner(547)---hald-addon-storag(569)
-hald(546)-+-hald(548)---hald(549)
-hald-runner(547)---hald-addon-storag(569)
-hald(548)---hald(549)
-idle(11)
-init(1)-+-etc....
Yesterday, Kirsten
Flipkens, after having had a pretty bad year in which she couldn't
even enter the Wimbledon qualifiers, reached and won her
first-ever WTA finals, in Quebec City.
Flipkens, who was a junior world number 1 when she won the junior US
open and Wimbledon tournaments in 2003, has had a fairly troublesome
career, with some injuries at some bad times, and some bad luck as well,
culminating in a career-high ranking of 59.
In that light, it's refreshing to see everything finally coming
together for her, and having her finally clinch that well-deserved
title. With today's win, she jumps from a 102nd position to a whopping
69 in a single week.
So again: Congratulations, Kirsten!
I didn't get very far this week with my RCBW efforts, but
luckily we have BSPs going on
:) Here's my short list:
Over the past few days, I decided to purge Gnash and LightSpark from my laptop to see whether my Internet experience would be affected in any dramatic way. Amazingly, a number of sites seem to offer video content encoded in Theora (VP3) or WebM (VP8). Sadly, a handful of popular sites such as Vimeo insist upon using the H.264 (MPEG-4) CODEC, which cannot be safely supported on Free Software because of unclear licensing issues that might impose an ulterior usage fee onto the end-users.
Ever wondered how you can update your website (in our case a static website with a bunch of HTML and PHP files) by committing to a Git repository hosted on a different server? if the answer to the previous question is yes, then you are in the right place.
The scenario:
- Website hosted on server A.cd /srv/www.domain.com/http && sudo git clone http://git.example.com/git/domain.git2. Grab the needed package:
apt-get install fishpolld or yum install fishpolld3. Set up a topic (called website_update) that will call a git pull each time the repository hosted on server B receives an update. (the file has to be placed into the /etc/fishpoll.d directory)
#!/bin/bash PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" WEBSITEDIR="/srv/www.domain.com/http" if [ -d "$ WEBSITEDIR " ]; then cd "$ WEBSITEDIR " else echo "Unable to access theme directory. Failing." exit 1 fi git pull4. Add a little configuration file that will enable the website_update s topic at daemon s startup. (you should name it website_update.conf)
[fishpoll] on_start = True5. Open the relevant port on Iptables so that server A and server B can communicate as expected, the daemon runs over port 27527.
-A INPUT -m state --state NEW -m tcp -p tcp -s server-B-IP --dport 27527 -j ACCEPT6. Start the daemon. (by default, logs are sent to syslog but you can run the daemon in Debug mode by using the -D flag)
sudo /etc/init.d/fishpolld start or sudo systemctl start fishpolld.service or sudo /usr/sbin/fishpolld -Dand on server B: 1. Grab the needed package:
apt-get install fishpoke or yum install fishpoke2. Configure the relevant Git hook (post-update, located into the hooks directory) and make it executable.
#!/bin/sh echo "Triggering update of configuration on server A" fishpoke server-A-IP-or-DNS website_updateFinally test the whole setup by committing to the repository hosted on server B and verify your changes being sent live on your website!
Right now, in many parts of the world, people are celebrating the Software Freedom Day 2012. The Debian project as well is participating to some of these events with talks, demos and partying.
In particular, you can find our project members actively involved in different locations and activies, among which:
Brazil Novo Hamburgo, RS
Some of my Romanian readers might know that for the last two years I've got involved in the skeptical movement to such a degree that I am a co-producer of a bi-weekly podcast on science and skepticism (in Romanian) called Skeptics in Romania . Some might even be regular listeners of the show.![]() |
| Yvonne Main, died from an invasive carcinoma after seeking help from a iridologist, and delaying real medical treament for 18 months |
In the light of the recent announcement by the European
central bank to bail out states without limits which is
breaking the very
law that the EU was built upon Italy s stock market
supervisors have removed the restriction on short sales.
In Italy, you may now again sell stuff on
the financial market that you don t have. The only condition is
that you have to be able to prove that you could currently buy it.
But that, of course, is not a guarantee for you to be able to buy
the good/stock/whatever when the person you sold it to actually
wants it, given the volatility of the markets.
I expect other countries to follow suit.
Currencies and especially the Euro was made by bankers for
bankers to earn money. Who actually believes that the ESM, to which Germany enslaved
itself this week would fix anything is simply na ve.
Temporarily, the markets were on hold, how convenient that this
coincided with summer break. Now everything is back to normal and
the next financial crisis is being built.
NP:
Porcupine Tree: Stupid Dream
I recently blogged about 3 languages reaching 100% translation for
debconf templates in wheezy.
Today, two more languages joined the club: French and Portuguese.
We're still on our way to get seven or even eight complete
translations in wheezy. Czech is now only missing "linux-latest" and
Spanish waits for sysvinit (which I just NMU'ed) and nova
(unfortunately an error in former translation was unnoticed and I
discovered it quite late).
David Pr vot is still trying to get Danish complete, by doing many fast
update rounds and NMUs. I hope he succeeds in this.
Start the Erlang shell
$ erl
Compile the code
1> c(factorial).
Call the calculate function
2> factorial:calculate(10000).
<script src="https://gist.github.com/3715155.js"> </script>
Two bits here -
debuild.me
I ve started working on a site to host my build stuff, and i ve called it debuild.me
None of it s active, and I m going to be slowly using it more as it becomes more, well, implemented.
atlantic, etc
I ve been working (mostly quietly) on a cut down buildd, to test packages I intend to sponsor over a couple of different conditions.
I m going to run deep source checks, build the package a few different ways, check the basics (lintian, piuparts, etc) and lots of other stuff I might think is a good idea while doing it.
At it s core, it doens t use buildd nodes like the archive, rather, it uses aws. When I dput a package, it spins up at least one AWS instance, based on an AMI I set up (and update frequently), and builds on that.
This means yes! No queues! :)
It also means I need careful oversight of the nodes, and pay attention to not running up a big bill.
It should also be noted, this is not for uploading a built package to the archive, this is for testing packages before uploading them to the archive.
Ideas / patches welcome
AltOS 1.1 Bug fixes and some nice new features
Bdale and I are pleased to announce the release of
AltOS version 1.1.
AltOS is the core of the software
for all of the Altus Metrum products. It
consists of cc1111-based micro-controller firmware and Java-based
ground station software.
We ve spent the last flying season chatting with people flying
TeleMetrum and TeleMini boards and they came up with some great ideas
to add to the system.
AltOS Firmware Features and fixes
There are bug fixes in both ground station and flight software, so you
should plan on re-flashing both units at some point. However, there aren t
any incompatible changes, so you don t have to do it all at once.
New features:
I was pointed at a great online course If you are into e-voting analysis (or, more broadly, into democratic processes' history, evolution and future), I strongly suggest you to take a look at Securing Digital Democracy . Just the name of the teacher should be enough to make it interesting: University of Michigan professor J. Alex Halderman, the guy who has analized/hacked several electronic booths, and one of the clearest, smartest voices to explain what should we require of a voting system and how electronic booths are the worst fit for any purpose.
The course is delivered through Coursera; I have found Coursera to be an effective, usable, unobtrusive platform So much I even signed up for another course. I am not so happy with online courses requiring to wait so much between lessons, but after all, it tries to mimic what we see at "regular" (i.e. classroom) teaching settings. And, after all, we autodidacts are still a minority.
The course in question started ten days ago, but you can still perfectly join. Each week has two lessons, worth of approximately 40 minutes of video each, and are "graded" through a quiz. Lets see how this evolves.
Next.