Selecting from multiple X configurations (layouts) automatically at GDM startup or at boot

I’m trying to use different configurations on my laptop :

  • standard linux kernel with proprietary nvidia driver
  • and Xen to allow developping/testing in a hosted dom-U Debian distro, in which case I switch back to the libre nv driver

When using the proprietary nvidia driver, I may use two kind of configurations :

  • having several screens in “clone” mode, i.e. replicated view on screen and beamer, for instance (classical use of Fn+F8 clone display)
  • or having both screens assembled into one to use twinview with dualhead, which provides (through Xinerama) and being able to switch windows from one to the other

This means I configured several layouts in the same xorg.conf file, which will describe each a different Xorg configuration.

Update 2008/02/10 : reorganized that post to be able to manage kernel-passed LAYOUT variable
Continue reading “Selecting from multiple X configurations (layouts) automatically at GDM startup or at boot”

Making A0 posters on GNU/Linux and previewing printout

We’re going to present PicoForge at the JRES 2007 congress, with an A0 poster.

I’ve been trying to make one with GNU/Linux of course, but it’s not been an easy task.

My main concern was to be able to preview the future results in real dimensions, i.e. being able to print various A4 sheets, then assemble them together to see a real size representation of the future poster. This would help notice readability issues that wouldn’t be obvious on the lower scale representation on-screen.

There’s a nice tool called poster which can be used to convert an EPS A0 (for instance) document into a multi-page A4 document (16 pages for A0) which will have cutting marks, and partial overlap of borders so that it’s easy to cut and assemble the sheets to form a full size poster.

I’ve also tried and follow the rules of our institution communication department to keep with their graphic charter. I tried and reuse their PPT example presentations.

The obvious path meant using OpenOffice, then… but the problem is that OpenOffice Impress (at least in the 2.0 version I used on my Debian lenny system) would not produce a EPS result that poster would understand 🙁

Believe me, these tests on several hundreds of megs (or a couple of gigs) documents were quite long 🙁

After several hours lost in testing, I changed my mind and tried Scribus. And guess what ? It will export nice PDF or EPS that can be converted with poster to what I need to preview my poster !

Of course, Scribus was designed to create the kinds of documents, more than OpenOffice Impress module 😉

So my advice is :

  • make an A0 document with Scribus
  • export to EPS
  • convert the EPS to PS with poster. Something like : poster -v -iA0 -mA4 -pA0 -o poster-A0.eps
  • check the results with a little bit of cut and paste, in full size

Now, I have to check the last steps : generate a 600 DPI PDF and try and have it printed on A0 by some printing shop… Hopefully it’s OK. I’ll keep you informed of the results.

Update 2007/11/27 : the poster was printed by the JRES organisers, and renders quite nice. More details here.

Scripting mysql database backups on phpMyadmin with CURL

Sometimes, you can only access your MySQL database with phpMyadmin (the previous tool I blogged about won’t be helpful, then). But you may wish to backup the database on a regular way.

PhpMyadmin allows you to backup the database, but you may like to do it in an unattended way.

I’ve written a shell-script which will use CURL to do so.

I couldn’t find any such script… so I hope I didn’t reinvent the wheel 😉

Update 2008/04/15 : I have made some modifications to the script, and it is now in SVN. You may grab a copy from the picoforge project’s websvn.