Search Results: "ag"

29 May 2007

Russell Coker: Heartbeat version 2.0 CIB STONITH example configuration

Below is a sample script to configure the ssh STONITH agent for the Heartbeat system. STONITH will reboot nodes when things go wrong to restore the integrity of the cluster. The STONITH test program supports the -n option to list parameters and the -l option to list nodes. The following is an example of using it with the ssh agent:
# stonith -t ssh -n
hostlist
# stonith -t ssh hostlist="node-0 node-1" -l
node-0
node-1
The hostlist tuple is the only configuration option for ssh. It is assumed that you have passwordless ssh logins allowed between root on all the nodes in the cluster so the host name list is all that’s needed. The important thing to note about the constraint is that you are constraining the parent of the clones (which in this example has an ID of “DoFencing“) not a clone instance. ssh is the simplest and in many ways least useful method of STONITH, but it’s good for an example as everyone knows it. Once you get ssh going it’ll be trivial to get the other methods working. See below for the script to insert the XML in the CIB.
(more…)

Evan Prodromou: 9 Prairial CCXV

I forgot to mention -- we got a last-minute call yesterday to be on Global Quebec at 8:40AM EDT for their morning news/entertainment show. If you're in Montreal, watch us! On a similar note, we'll be on Homerun on Friday the 1st of June (12 Prairial) at 4:10PM EDT. Craig Silverman, Writer did a good piece about Wikitravel in the Hour this week, and Montreal media being what it is, we're now getting all this attention. Yay us. tags:

Thijs Kinkhorst: A wonderful bird is the pelican

stuffed pelican
On my most recent visit to the blood bank, faithful and friendly receptionist Leo handed me this guy on the right: a stuffed pelican as an acknowledgment of my 40th donation. Thanks! I've been a blood donor for some years now, but my blood type is not that useful for regular donations: I've got type AB, which means I can receive any other type of blood, but mine can only be given to others that also have AB (about 3% of the population). That's why they've asked me to become a plasma donor, meaning that during your donation, the blood cells are returned to you while they get to keep the plasma. One advantage is that this is less strenuous and thus can be done more often than regular donations. Donating blood is really easy: register at the blood bank, and get a call around 2-3 times a year. You then may show up at any moment in the two weeks following the call. You get free coffee, a sandwich and a medical check. I can recommend it to anyone (who's eligible). And to answer the FAQ: no, you don't get paid. Edit: facts apply to the Netherlands only. No pelicans were hurt in blogging this post. Your blood type may vary.

Wouter Verhelst: Web passwords

Thomas grumbles about websites with password policies, that make it impossible for you to use your 'standard' password which you use for other sites. I cannot agree with him more. I have memorized a number of multi-character random passwords (generated with 'pwgen -s'), but these cannot be used on such sites; sometimes they require me to use a character that just doesn't happen to be in the password, or sometimes they're "too long", or whatever. The worst of them all is sites which require you to change your password every so often, as I've ranted of before; after all, making people change their password too often makes it harder for them to choose a hard-to-guess password; after all, hard-to-guess passwords are often also hard-to-remember passwords, and nobody likes to memorize something useless every two months In all, I decided not to use my secure passwords on such sites anymore. Not only do their policies usually suck, they also often have dodgy "security questions" which are easy to guess by anyone familiar with yourself. On top of that, there's usually nothing to make me believe their password database is actually secure. Except, of course, if they have OpenID. Because then it's actually my own server where the password is verified. Whoo.

Pierre Habouzit: Dear Eric ... you should use git-svn

Dear Eric, the best way to import a svn repository into git is to use git-svn (in a separate package in debian). It works that way:
$ git svn clone svn+ssh://path-to-the-root-of-your-repo -t foo/trunk -b foo/branches -T foo/tags
then just wait. foo/ trunk,branches,tags is in case you want to import one subproject foo from your repository, and of course you don't need to specify it if you want the root of your repository. git-svn is in fact a two way bridge between git and subversion, and works fine as an importer as well :) That's what I use to work with pkg-glibc svn.

Eric Dorland: Late to the distributed party

Two blog posts in one day!

Distributed revision control systems are all the rage these days and I think the time has come to adopt one. I've always thought they were a good idea, but Subversion worked well and suited my needs well enough. I was also somewhat put off by the number of choices and didn't want to switch to something that would turn out to be a dud. But now there seem to be two main contenders, Git and Mecurial. I think Linus' recent talk on git also helped rekindle my interest.

Despite Linus' protestations of greatness, I was thinking of using Mercurial since it seems to fit better with my Subversion centric view of the world and it appears that Mozilla is going to move to it from CVS. I already have a few CVS and Subversion repositories for various things and I would like to keep that history. So I fired up Tailor and started converting a mail archive I have in an svn repo. The repo is only 1.5G, but Tailor was slow. Surprisingly slow. It then failed right near the end of the conversion. I'm also not sure exactly how much history Tailor is preserving. Does it deal with things like file moves properly?

Disheartened, I took a look at git instead. It seemed to have a tool called git-svnimport that sounded very promising. I ran it against the same svn repo and it proceeded to consume all the memory on my system and cause it to thrash like mad. My machine became so unresponsive that I had to log in remotely to kill the import.

So in the end, dear lazyweb, what tools should one use to convert a Subversion repository to Mercurial and/or Git?

Cameron Dale: May-28-2007: Start of Coding / New Release

The start has finally arrived, today is officially the first day of coding for the 2007 Google Summer of Code. To commemorate this occasion, I have prepared the next release (the second so far) of the software package I am writing for it, DebTorrent. You can download it from the Alioth project. Some of the changes in this release are: You can read detailed instructions for how to download using it in the README file, but the basic idea for using DebTorrent as part of an update is to: This is still an alpha release, but at least it has some more functionality than the previous one. Feel free to test it, but keep in mind that at this early stage most of the torrents will be unseeded.

Eddy Petrișor: po compendiums, just wait a little

It seems that my idea caught Javier's attention and he is already asking to use the scripts for Spanish.

As I have said before, those scripts will work for all languages in due time. Currently, as a test, they are running (or they should starting from tomorrow morning) only for the po material for the languages fr, de, ro and vi.

I intent to make compendiums for po-debconf material, po material[*] separately and another one made from all of them.

Stay tuned. Of course, a proper annoucement on debian-i18n@l.d.o will be done when I'll have something pretty ok.

Meanwhile, unpatient souls can take a peak at the current results

(I just enabled es, just for fun; es is broken, too?!? - or maybe the scripts are doing something wrong :-P - curious people can check, the logs are available.)


[*] which is more tricky since there is a need to merge fr_FR with fr/fr_CA with fr, de_DE with de, de_AT with de... and so on, but zh_TW does not have a zh to be merged with. Also the ll_CC strings should have higher precedence than ll strings.

Ian Haken: GSoC, vlosuts, and other acronyms

Summer of Code officially started today, and as such it was time to start hacking out some code for it. For the past couple of weeks I've been casually looking over an upgrade testing suite for Ubuntu (website, bzr repo). It's fairly sophisticated and does a lot of things that I'd like to bring to Debian. However, after considering it for awhile, I decided that I would prefer to start on the Debian version from scratch. This decision came about for a few reasons:

At any rate, I will probably end up reusing many pieces of the code from that tester.

Updates posted here as progress continues.

Steve McIntyre: 21 again!

0x21, that is. I've had a great few days off work, taking a couple of extra vacation days off to extend the 3-day Bank Holiday weekend to a lovely 5-day weekend. Yay! A couple of days at the Cambridge Beer Festival, followed by a friend's stag do on Saturday (he's getting married next weekend) then a BBQ and party yesterday (no, not the OMGWTFBBQ!) and finally today on my birthday Dad and I went to the Aviation museum at Duxford and got close-up with lots of aeroplanes, including a clamber through one of the original Concordes. Cool! Back to work tomorrow... :-(

Evan Prodromou: 8 Prairial CCXV

So, I forgot to mention that I had a great evening last Thursday. In the afternoon, Niko and I met with Marie-Claude Doyon to talk about a new project we're working on. I think it's going to be pretty fun. That evening, I met up with Eugene Eric Kim and Seb Paquet at La ka, which was really great. I brought Niko along because we were having fun and thought it would be good to take a walk along av. Mont-Royal. It was great hanging out with EEK and Seb. There's something about talking to people who are as deep into wiki as I am that's really satisfying. It happens too seldom in my life -- just around conferences, really. Eugene got a shot of the four of us together. tags:

Gymnophobia i.never.nu sounds a lot like "I'm never nude". I'm just saying. tags:

28 May 2007

Eric Dorland: The Ghost of Browser Past

Even though Iceweasel has been a reality since November, it seems that there is still some backlash about the rename. Thanks very much to Andrew for jumping to my defense (and also for organizing dinner the last time I was in Mountain View, it was a fun evening). Nothing he said was fundamentally incorrect, but it doesn't paint the full picture.

Once upon a time (somewhere around Firefox 0.9) we happily shipped the fox hugging the globe icon. Then it was pointed out the copyright license on that piece of artwork wasn't DFSG free (and probably wouldn't be free under any reasonable free software or even open content license), so we removed it and used the plain globe icon they shipped in the tarball instead. Eventually the Mozilla Foundation asked us to remove mozilla- from the package name (it was mozilla-firefox at the time) which we did, and the issue of the icon and trademark came up. After explaining why we couldn't ship the icon they gave us permission to continue to use the name. They said they would periodically check up to make sure we weren't shipping crap that would harm the brand. This seemed a fairly good compromise and we accepted.

This situation persisted for a year or so, in both Debian and Ubuntu, but then the Mozilla Corporation (who was now in possession of the trademarks) insisted we couldn't use the name without the non-free logo. They also wanted to approve any changes made before they were uploaded. They are certainly within their rights to do this, but to hear Mr. Fowler tell it we were on a crusade to purge the name from the distro. We were not, we were content with the status quo. I also must take exception with Mr. Fowler stating: "They've persisted, despite the best efforts of the Mozilla project team to engage with the Debian packagers to resolve the situation." I think from the discussion we were trying our best to reach some sort of compromise and the Mozilla side seemed firmly entrenched in their position, not offering us a lot of alternatives. The non-free nature of the logo and the unprecedented "control-freak" review process didn't leave us with a lot of alternatives.

Ubuntu does ship the officially branded version of the Firefox, but they have a weaker set of freedom guidelines than Debian. Whether you think that is good or bad is personal choice, but one of the reasons I like Debian so much is its commitment to free software, even if that means not everything is as easy or expedient as one would like.

With respect to the new name and icon, this is again a matter of personal taste. I do tend to think "Iceweasel" doesn't have that much sex appeal but it was a popular choice and had the benefit of having already been used to refer to a potential name fork of Firefox. And BTW this is really only a name fork, the amount of changes we've actually put in to the tree (beyond renaming ones) are minimal. In fact the last time it was checked, our patches were a strict subset of the patches Ubuntu uses in their Firefox package. So Iceweasel is in fact functionally identical to Firefox with what I like to think are some minor improvements from upstream.

As to your other points, I will admit to being poorly-socialized, but I think most who have met me wouldn't call me self-obsessed, egotistical or a moron.

I think Debian is developing a bit of a bias against it where we're assumed to be a bunch of crazy Free software nuts, and the presumption is anytime we act against the grain we're the ones being unreasonable despite any evidence to the contrary. I don't know how we can fight this perception, but I think we should.

Lars Wirzenius: Random hacks: Static website, with translations, using IkiWiki

One of my current projects involves setting up a website that is translated to at least two languages. For various reasons I wanted to use IkiWiki as the backend, even though the site is static, and does not need the wiki functionality. IkiWiki is, in principle, a wiki engine, but with a difference: it is run off-line, and creates a set of static HTML pages, rather than running every time a page is accessed. This makes it suitable for static websites. For the translation, I wanted to have the following setup: Each page is available in each language, so the pages are named foo.xx.html, with xx being the ISO language code. This also allows HTTP content negotiation to work, if the client asks for the page without the .html suffix. IkiWiki itself does not currently have support for translations. Doing translations by manually editing each page in each language is tiresome and error prone. I wanted to use the gettext approach, where the translations are maintained using .po files. The po4a tool makes this possible: it supports many file formats. English is declared as the original language for this project: all other languages are generated via po4a from the English ones. The page content gets put into foo.xx.mdwn. po4a generates all other language files than English, and these are then fed as input to IkiWiki, which generates the HTML. In summary and horrible ad hoc pseudo-notation:
  • po4a: foo.en.mdwn -> foo.pot
  • cp: foo.pot -> foo.xx.po
  • $EDITOR: update translation in foo.xx.po
  • po4a: foo.en.mdwn + foo.xx.po -> foo.xx.mdwn
  • IkiWiki: foo.*.mdwn -> foo.*.html
This works pretty well, but only for the part of the page that gets put into the content section in the IkiWiki page template (<TMPL_VAR CONTENT>). The page design we have calls for a couple of elements with translatable content outside the content: a logo and a menu/navigation bar. To deal with these, I made a little IkiWiki plugin. The plugin sets a couple of Perl HTML::Template variables, LANG and BASENAME, based on the input file name. If the input name is foo.en.mdwn, the variable get set to en and foo, respectively. The IkiWiki page template then uses the variables to load the right logo for the language of the page being generated. The navigation bar needs further work. Unfortunately, the po4a tools have trouble with the IkiWiki page templates, and can't extract just the menu entries. I ended up doing the navigation bar translation directly in the page template, since it is only a few words anyway.
<li><a href="index.<TMPL_VAR LANG>.html">
<TMPL_IF EN>Home
<TMPL_ELSE FI>Etusivu
</TMPL_IF></a></li>
The "this page in other languages" part of the navigation part looks like this:
<li><a href="<TMPL_VAR BASENAME>.fi.html">suomeksi</a></li>
I made the plugin (my first Perl ever!) available in case anyone else finds it useful. Note that the plugin isn't of much help if you want to maintain a translated wiki, since this all need some Makefile magic to make things smooth. I'm not sure the Makefile is at all optimal, though. We haven't yet gone public with the website, so this setup of mine may well get improvements still.

MJ Ray: Debconf Cheese and Wine BoF and the UK Import Laws

A comment on El Blog de Jose that
"I plan to carry white cheese to the Cheese and Wine BoF, and I'd love any comments on how to transport them without posing a biological threat for Europe"
triggered some memories of the warning signs I saw at the port of Dover about the UK milk product import restrictions when returning from my last trip. So, I posted my concerns to debconf-discuss. Until you hear otherwise, if you're outside the EU/EEA, I suggest that you don't try bringing cheese to Edinburgh. I hope that you'd have it confiscated, rather than being fined and/or imprisoned, but I don't know how they'd treat a foreigner trying to carry in enough cheese for a party.

Annabelle Tully: Summer!

And it is summer once again (I could have sworn it was summer 2006 like three minutes ago), and no summer is summer without immense allergic reactions to everything. As for this summers debconf, and to all of ye who are not signed up for -discuss; If you have experience with sound and would like to assist the sound crew for DebConfs video team please contact us at oftc -> #debconf-video

Miriam Ruiz: FoF in Debian!

Frets on Fire is, according to the Wikipedia, a music video game, a clone of the Guitar Hero video games, in which the player emulates playing a guitar with the keyboard of their computer. The keyboard is also meant to be picked up like a guitar in order to play, with one hand pressing the fret buttons and another pressing the pick buttons. There is support for joysticks however, meaning that the Guitar Hero controllers can be used as well. The game also includes a tutorial and a built-in song editor. The source code written for the game is written in Python, and released under the GNU General Public License. The game included some non-DFSG-free song files and some internal fonts which needed to be replaced in order for the game to enter Debian repositories. There’s a pack of new songs made by Carlos Viola Iborra and released under a free license. Thanks Carlos! This package of songs has entered the repositories too and is called fretsonfire-songs-sectoid. The original songs that were included in the game, made by Tommi Inkil , will probably be included in the non-free repositories soon, as a package called fretsonfire-songs-inkila. I’d like to thank the developers of FoF, Sami Ky stil , Joonas Kerttula and Tommi Inkil , for their full cooperation during all this process. You’re great, guys! :)

Sergio Talens-Oliag: Four More Years of Bread and Circus

Today is a sad day for me; since 1995 the Government of the Valencian Community has been in the hands of the PP (Partido Popular) and it seems that it we will have the same until 2011. With this results Valencia will host a Formula One Grand Prix and probably tons of new paper-couch buildings like the Ciutat de les Arts i les Ci ncies. The saddest part is that more than 35% of the population stayed at home; I've always have had the feeling that most of them are more on the left than the right side of the political spectrum; probably the big problem is that the current PSPV (Partit Socialista del Pa s Valenci -PSOE) candidate for the Generalitat is a joke (I would never vote for him) and CPV (Comprom s pel Pa s Valenci ) has been unable to mobilize enough people. On days like this I think about changing my living place, luckily on the two villages where I spend most of my free time, Burjassot and Godella, the left parties have won, something specially important in Godella, where the PP was going to expropriate part of the village to bury the metro station and later pay the bill selling the freed space to put buildings of 4 or 5 floors (the current houses are one or two floors high and have been there for ages). On the other side what I'm seriously considering is moving to another work again, the current job is much better than the previous one, but I've been so unlucky that I'm again working for the local government on two of the biggest projects I'm involved in and it seems that both of them will last for a long time; without a political change I'm sure that it is going to be the same old story, and life is too short to be hitting the same walls for years. Let's see what happens, probably the main problem is that I need to take a break, maybe a four years one would be a good idea... ;)

Andrew Pollock: [tech] LVM, you've done it again

The good thing about having kept a blog these last few years, is I have a searchable record of hardware changes. Recently, I noticed a few disk errors on caesar, and I was wondering how old that disk was. I disk some searching, and found via this post that the disk in it was a hand-me-down from when I decommissioned daedalus Mk I. One of the reasons I decommissioned it when I did, was the RAID-1 was exhibiting some strange errors during resynchronisation, and I didn't want to leave the country leaving behind an ageing problematic server with my stuff on it. I'd previously been unable to fault either 120 Gb disk under some light testing with badblocks, so I just reused them, and so around October 2005, I put the larger disk in caesar. So this disk has seen a fair bit of use, originally in daedalus, and then in caesar for another 20 months. It's allowed to fail, it's served me well. Anyway, so I bought a 750 Gb drive a couple of weeks ago, because one thing that I've wanted to do with caesar was do remote backups of daedalus, and there just wasn't enough space to do that, so I went for as big as I could find, and essentially repeated the same trick as last time, to upsize:
  1. Power down, attach new disk as a slave
  2. Boot into single user mode
  3. Unmount everything, remount root read-only
  4. sfdisk -d /dev/hda sfdisk /dev/hdb to copy the partition table (I use a root, swap, LVM, three partition layout)
  5. dd if=/dev/hda1 of=/dev/hdb1 bs=1M to copy the root filesystem to the new disk
  6. mkswap /dev/hdb2 to put the swap signature on what will become the new swap device
  7. cfdisk /dev/hdb and blow away the third partition and recreate it using all of the available space (there's probably a programmatic way of doing this, but hey, it's not exactly hard to do in cfdisk either)
  8. pvcreate /dev/hdb3 to put an LVM signature on the new LVM physical volume
  9. vgextend base /dev/hdb3 to tell LVM there's two disks in the volume group for the time being
  10. Remount the root filesystem read-write
  11. rm /boot/grub/device.map and run /usr/sbin/grub-install /dev/hdb to install GRUB in the MBR of what will become the new boot disk
  12. Power down, swap the disks around so that the new disk is now primary and the old disk is now the slave
  13. Boot into single user mode again, unmount everything except root
  14. pvmove /dev/hdb3 /dev/hda3 to relocate all of the allocated physical extents off the old disk onto the new one
  15. Twiddle thumbs for a couple of hours. Admire artwork on computer's motherboard (did you know Compaq EVO's have a picture of a car on their motherboards? A map of Texas?)
  16. vgreduce base /dev/hdb3 to take the old disk out of the volume group
  17. pvremove /dev/hdb3 to remove the LVM signature from the old disk
  18. Power down and remove the old disk
  19. Reboot into multi-user mode and profit from all the additional free physical extents
I absolutely love how I can do this with LVM, with a minimum of fuss. Last time I did this, I had a kernel panic during the pvmove, but that didn't even stop it, I just rebooted and reran the pvmove and it carried on from the last checkpoint. No such excitement this time. I'm sure Solaris' ZFS does all of this with substantially less manual steps, but hey, I like my Linux :-)

27 May 2007

loldebian - Can I has a RC bug?: We are the MIA team

We are the MIA team

We are the MIA team. We came for your sunglasses

Alberto Gonz lez Inhiesta (agi), David Mart nez Moreno (ender)

Oslo, debconf3, 2003

Jos Parrella: Recent political issues, travelling to DC and emdevs hacking

A few days ago, some people in Venezuela were shocked by Mark Shuttleworth’s claims against Hugo Ch vez Government and supporting Mar a Corina Machado, a minor opposition leader in the Country. Today, at 23:59:59, the nationwide open air TV broadcaster RCTV will cease operations. In Venezuela, as in several other countries in the World, the economically profitable portion of the electromagnetic spectrum is State’s property, thus requiring a concession to make use of it. RCTV concession was granted in 1987 for twenty years, and the Government has decided to deny the renewal, which is quite unusual (right-wing governments in the past simply would have shut up the antennas) Of course, RCTV is not a pro-Government channel, accounting between 90 and 100 percent of the airtime with anti Government news and opinions, which is not bad per se, though in Venezuela there’s a law requiring equilibrium in times devoted to political ads. Both situations (Mark’s comments and the Government’s decision) pose the threats of a now common situation in our Country: people taking very valid decisions with somewhat doubtful consequences. In the first case, Mark is using his right to freely write what he likes in his blog but it seems that it has damaged a little bit Ubuntu’s image in Venezuela (not that it’s Mark’s fault, of course) In the second case, the Government is taking a lawful decision, but it has actually raised an important discomfort in the population (polls, which are not always accountable, point out as much as 80% rejection rate), the journalists of other media and most foreign observers, which state that they’re actually closing a TV channel and destroying freedom of speech in the Country. Expressing political POVs is quite critical nowadays in Venezuela. Some famous etiquette bookwriters, such as the one at Emily Post’s, always tend to promote a be honest, be respectful position while listening or expressing your points of views in order to keep a productive attitude. I do think that politics are important: I just think mixing them with practical daily tasks, including FLOSS development and promotion, is becoming obnoxious and dangerous. Cheeseconf On June 15th., I’ll be departing to DC7 in Edimburgh. I’ll stay a night in Frankfurt, probably in a hostel, and then I’ll stay at one of the hostels in EDI. I plan to carry white cheese to the Cheese and Wine BoF, and I’d love any comments on how to transport them without posing a biological threat for Europe. I’ll be carrying a 65 liters backpack. How long will it take for the cheese to become a lifeform? Any special tips and tricks to avoid that? Copying files to embedded devices I’ve been trying to copy some binary files into an Axesstel D800 EvDO modem which runs Linux over a tiny ARM processor on less than 16 MB. of memory. I’m actually trying to get netcat in so I can get more useful stuff such as snmpd in. The modem has telnetd, but it has no zmodem utilities, particularly rz. Neither it has wget, nor ftpd. It has thttpd to serve the administrative webpages, but it can’t process shell CGI programs so I can’t send the file through a CGI form. Any ideas? I would love to read comments from hackers who have already managed their ways into embedded devices such as 802.11 devices with Linux, and any generic ideas on how to provide new firmware images for devices such as this Axesstel modem.

Next.

Previous.