Search Results: "Joachim Breitner"

11 September 2006

Joachim Breitner: BIOS vs Linux created Partition Table

While trying to introduce Linux at the SOS Hermann Gmeiner International College in Tema, Ghana, I encounted a very strange problem. Here are the results, I spare you the list of things I tried to find out:The BIOS on the Gateway PCs they use here, with the id bf86510A.15A.0066.P13, will freeze when it encounters a disk with a linux created partition table. It will do so before even deciding what to boot, so you can't boot from CD then. It does not matter if the orignal MBR is on it, or the one created by Window's fixmbr, or lilo -M, or install-mbr, or grub. Changing the partition table using Windows XP (diskpart in the recovery console) will make the BIOS boot nicely. This only happens with the hard model drive that came with the PCs, after replacing it with a different model any partition table is ok.The only way to keep working with the hard drive is to power the computer without the hard drive attached, wait until it is done detecting it (for example wait until the BIOS complais about the lack of harddrives), then plug it in while the computer is running. Of course, the hardware is not meant to be used this way, and it might destroy everything, so don't try this at home (unless you have to). For me it was the only way, since when I know boot from a CD (Windows Installation Disk, Knoppix, FAI-Installation CD, anything that does not rely on BIOS information regarding the hard disks), the hard drive can be used just fine...So how did I get Linux on it in the end? One can say I tricked the BIOS: I made the automatic Linux installation add another, unused and small partition at the end. After the installation is done and I can't boot regulary any more, I use the mentioned power trick to boot the Recovery Console of a Windows XP installation CD, to delete the unused partition with diskpart. This makes Windows write the table, and thus make the BIOS happy. Unfortunately, this kills grub, so I have to boot any Linux boot CD, chroot into my installed system and run grub-install...If anyone has encountered similar problems before and maybe found a nicer solution, which maybe could bring me back the "A" in "Fully Automatic Installation", or at least frees me from the need to make IDE hot-pluggable, I'd be grateful.

10 September 2006

Joachim Breitner: Afraid of the German Police

Recently, a few hosted servers in Germany were taken by the police, some of which were running the TOR anonymizer (see heise.de, golem.de, both German). As I'm running one on my server, this worries me, as I am quite dependent on this server, especially now that I am in Ghana, my server in Munich and my backups behind a DSL line with anachaic little upstream bandwidth.I feel I should stand bold and keep running my TOR server, but in this case I'm a coward, so I disabled it. Sorry.For the uninitiated: TOR is a network of servers you can freely use to conceal the origin of your internet activities. This is invaluable for people with oppressive governments (more oppressive than the German one in this case); think China. Unfortunately, as with all technology, this can be used for bad things. The original reason for the police to seize the servers was, according to the news, child pornography. But they should know that a TOR server never knows both origin and target of a connection, and thus is useless for them!

29 August 2006

Joachim Breitner: Free Software Club continues

Today was the second meeting. At the first meeting, I introduced a wiki and a blog, but so far they have not been using it a lot. To change that, I will now reward "Geek points" for contributions in the wiki, and on the blog, as well as for other challenges. The topics today were how software is created (quick overview of the priciple of compilation, and mentioning of the need for documentation etc.), and then I continued with Free Software: What's wrong with proprietary software, and why Free Software is better.I think they got the message, but are not fully convinced yet. It seems that they found my "Hello World" demonstration in Python, Perl, C and Haskell more interesting, and my offer to do a little programming course in the club was well received.A bit worrying are the questions "Can you hack into this sytem?", "Do you know how to hack through a firewall?" Of course I can't just say "no" (it would be discouraging) or "yes" (then they would want me to show how, which I don't want do do yet). I tried to explain then that to be able to "hack through a firewall", you first need to understand what a firewall is (Knowing that it is something that blocks unauthorized access from the outside is not enough), and then how it works in the details. Basically I tried to tell them that knowledge comes before any hacking (or cracking).You can have a look at the slides, comments are of course welcome!

26 August 2006

Joachim Breitner: First Computer Club meeting

Yesterday, I held the first meeting of the Computer Club that I founded here at the college in Tema, Ghana. I didn't go into very technical things right now, to not scare anyone away, but gave an introduction to wikis and blogs, and showed the students how to use the wiki and blog I set up for the club. You can have a look at my LaTeX-created beamer slides.I think the club went quite well. About 20 students seem to be interested, and a few more might come with the 11-graders who start school next week. There seems to be little geeky knowledge present, so I'm not sure if I can go into the more technical things of geekdom, like weird programming language, fixing bugs in Free Software etc. But we'll see, maybe I underestimate them, and one year is a long time for an interested geek to get into new stuff.Besides one box that I can fiddle around with, and which hosts the club's wiki and blog, there is no Linux yet at the school. I did help a bit with setting up a few windows boxes, and already I'm happy to know that at least I have an alternative. Walking from computer to computer to manually deinstall software preinstalled by the vendor, manually set hostnames, manually write down MAC adresses for the WLAN MAC-filter, manually joining the domain and manually install all other software does not seem like the way I would want to administrate more than two computers. In Germany, we call that "Turnschuh-Administration" (sneaker or running shoe administration).

Unfortunately, that is not an argument to bring to make the school use more Linux, as a dual boot setup is the most I can hope fore at the moment, and that does not ease the pain of Windows administration. I'll keep you up to date on that.

21 August 2006

Joachim Breitner: Smart URLs

Since Lucas has published his list of search engine shortcuts, I'll do that too. Maybe someone finds a useful addition for himself. I'm leaving out those that are predefined by Galeon and not used by me.

17 August 2006

Joachim Breitner: Free Software Club in Tema, Ghana

A while ago, I blogged about going to Ghana, to spread Free Software. By now, I'm here in Tema, at the coast near Accra, and school has started. My actual work has still to get going, but I know I will hold a Club where I hope to assemble all the possible future Hacker here at the school, to introduce them to the world of Free Software, of wikis and collobarative work and to the Blogosphere. Or something like that, depends on what they want. I have put up signs to advertise the club, if you want, you can have a look at the slogans.For the school infrastructure itself, I have created a list of possible applications of Free Software Comments are welcome!PS: The "Obroni" in "Obroni Computer Club" is what the kids in the street call me. It actually just means "White Man"...

Joachim Breitner: Brainfuck interpreter in Haskell

Two weird languages join. I just wrote a interpreter for Brainfuck programs in Haskell, for the code, see the file bfi.hs. Interesting for Haskell-Newcomers might be how I define the datatype Tape for an infinite band of anything, and then use it as a Tape of Ints for the data, but also a Tape of function for the operators. These Functions take the Machine, the Brainfuck virtual machine so to say, and modify it, thus returning the new machine.It seems to work pretty well, at least after I found out that my three year old 13-lines Brainfuck interpreter written in perl, bfi.pl, has a bug (it enters a loop at least one time, even if the value is zero at the start). You can try the interpreter with this code. It takes a string as input and then outputs brainfuck code that itself outputs the input in reverse order:
let
code = "++++++[>+++++++<-]>+[>+>+>+<<<-]>><<< ++++[>>>+++++<<<-]>>>->+++>>,[>,]<[[[<]<<<.>>>>[>]<-]<[<]<.<.>>>[>]<]"
input = "Hello World"
in reverse input == run (run code input) ""
True
Thanks to Mako for introducing me to Brainfuck at DebConf 3

24 July 2006

Joachim Breitner: Haskell on the Command Line

For all haskell-loving folks out they, consider these lines as an addon to your .bashrc:
    if which ghc >/dev/null
then
function hmap ghc -e "interact ($*)";
function hmapl hmap "unlines.($*).lines" ;
function hmapw hmapl "map (unwords.($*).words)" ;
fi
This is somewhat an replacement to "perl -e", for cases where haskell does the job nicer. So, you like triangular text files? Then try
cat /etc/passwd   hmapl zipWith take [1..]
In most cases, you want to run hmapl with map or filter as the first argument, e.g.
cat /etc/passwd   hmapl map reverse
w hmapl 'filter (List.isPrefixOf "j")' # essentially grep ^j
man ghc hmapw 'filter (all Char.isAlpha)'

15 July 2006

Joachim Breitner: Bringing Free Software to Ghana

In less than a month, I'll be flying for one year to Ghana, where I was offered a job as a teacher and network administrator at an International College in Tema. The school wants to get started using Free Software and so Ralph Amissah, a fellow Debian Developer, asked me if I'm interested. I was, so I got the job.I don't know yet my exact tasks there, and I don't know yet if I can make a difference, but if I can, I'll try to spread the word about Free Software. In my opinion, Free Software can play a role in giving a country like Ghana technological independence and allows for their own developments in this area. My favourite Linux distribution will be Debian, of course, and I'll keep you, especially on planet.debian.org, updated on my progress. I have orginially looked for a project in the developing world to work on after my Abitur (German Highschool Diploma), but I haven't found something in time, so I started my studies in mathematics and computer science. Last year at DebConf 5, I talked with a few people about things to do to fight the Digital Divide, including Kurt Gramlich, Mark Shuttleworth and Ralph, who contacted my in the winter. @Ralph: Thank you!Note that the non-technical reports are blogged in German and won't appear on the planet, so if you're interested, see my blog directly. Pictures will appear at the usual place.

11 July 2006

Joachim Breitner: GNU make instead of AxKit

Now that my laptop has returned from the support, I just had to do some things, even if I should be in bed since a few hours...Until now, my personal website was run by AxKit, a mod_perl based framework that serves xml files after a server side XSLT transformation. As AxKit needs apache1, I had proxied all requests via my apache2 server to the old apache1 installation on a different port. Understandable, this is not very nice.So today, I looked at how I can create the html files using the same XML and XSLT code locally and have apache2 serve the files statically. With xsltproc, this was pretty easy, you can see the result in this Makefile. Note that I have a small XSLT script that lists all "pages", which are sections of one big xml file. Apache's Multiviews allows my visitors to enter the URLs without .html, so that old links continue to work.My other AxKit based site, the German parody news "Heisse News", had some difficulties, as it is based on AxKits ability to create XML directory listings. I solved this with a index.xml which is created directly by this directory's Makefile. The old ".xml" links are internally rewritten to ".html" links using mod_rewrite. This was also a good time to re-activate the rss feed, which has it's own XSLT stylesheet. To make that feed valid, I had to do some ugly stuff to create a proper RFC2822 date, but using xsltsl's date-time.xsl, this works now, too.As always, comments welcome.

10 July 2006

Joachim Breitner: Hangman-AI in haskell

Today at my computer science tutorial, we programmed a simple Hangman AI in Haskell. It works with a word list and always guesses the most frequent unguessed letter in all possible solutions. I have commented the program, although in German. Anyone interested in a piece of haskell that's partly striclty functional and partly IO-based, have a look at the PDF-File with comments and the literate haskell source file.

4 July 2006

Joachim Breitner: Lenovos '4 Werktage'

Normally, l am quite happy with my T41p, as long as it's working. But for the third time time now, I had to send it in because tapping on the case caused the display to fail. The hotline was understanding and promised fast handling within 4 workdays. That was last week. Today, I called again, and they told me they are waiting for a new system board (for one of their most sucessful series), and I won't get it before next week... Is there another brand that has something like a TrackPoint? (blogged with my Nokia 770)

19 June 2006

Joachim Breitner: The BOFH song

The song “Fifty Ways to Leave Your Lover” by Paul Simon just played in the radio this morning, and I felt it was time for a new text: “Fifty Ways to Bug your Users”. Enjoy!

14 June 2006

Joachim Breitner: XSA-Article available online

Just a quick follow up on my Cross-Site-Authentication Attack: My article for the German Linux Magazin which was translated for its English counterpart Linux Magazine is now available online. Before you ask: I did not chose the image there. I’m still waiting for the German version to be opened up, too, but that will probably not happen before October.At the GPN 5 last weekend (a conference compareable to the Chaos Communication Congress, only smaller) I have held a lightning talk on the XSA Attack. In preparation for that, I actually tried it on the internal wiki of the Entropia e.V., and despite the relatively high technical knowledge of its visitors, some fell for the trap. As that was the only preparation of the talk, I wonder how it was perceived. Comments and tipps with regard to the form are welcome.By the way: The German wikipedia page on XSA tells us that newer firefox browsers won’t allow such an attack to work, which is good.

11 June 2006

Joachim Breitner: Deleting spam trackbacks

The Trackback spam on my blog started to get really annoying, even with serendipity’s “invert selection” and “delete” buttons. So I came up with a simple perl script, that looks at all unapproved trackpack pages and deletes those who don’t link to my blog. It’s not perfect, as there might be correct cases where someone trackbacks my post without actually linking to it, but that’s ok for me. Also, the spammers will probably fix this “bug” of theirs, too (and some already have, as someone told us during a lightning talk at the GPN5), but at least for a little while this will save me some work. (See the complete post for the code)

"Deleting spam trackbacks" vollst ndig lesen

27 May 2006

Joachim Breitner: little subversion helper script: svn-ignorer

Hi subversion-using world. I always had the problem that setting svn:ignores is quite tedious, especially since svn refuses to read the list from standard input, and specifying multiple line values on the command line is not very convenient. So I wrote a little shell script, here is the usage:
Usage: Just run in your svn directory. It will fire up your favourite $EDITOR and lets you edit the list of files unknown to subversion. Erase those that you don’t want to ignore, and add wildcard patterns at will. When you close the editor, the files left in the list will be added as svn:ignore properties to their directories, amending the present list of svn:ignores
If you think this of any use to you, grab it here. Comments welcome.

30 April 2006

Joachim Breitner: Analog Clock for Gnome, Take II

A while ago, I made an analog clock for the gnomepanel, using ruby. It worked fined, but I missed the calender functionality of the standard Gnome panel clock. So today, I crudely patched the clock applet from gnome-panel to display a relatively nice clock, using cairo:

I have a patch against gnome-panel 2.12.3, and if you want, I can give you my locally built debian package.

Joachim Breitner: Debian Project Leader election

The right of the people to bend arms, shall not be infringed.

Congratulations to Debians newly elected constitutional leader, aj, and the best wishes for your term!

22 April 2006

Joachim Breitner: Silencing my Slug

Some time ago, I bought a LinkSys NSLU2, that’s a very cute little box with power, usb and network plugs, and nothing more. Inside sits an ARM processor and 16MB RAM. The great thing is: You can install linux on it, even a complete Debian sarge installation.The box is not very performant, even after I de-underclocked it by scraping away a resistor from 133MHz to 266Mhz, but it is quite cheap and very handy. I use it for nightly backups. Unfortunately, the attached external Maxtor OneTouch harddrive is quite loud, even when it is idle. Here are the steps I took to make the setup zero-noise as long as the slug is doing nothing:Some further plans for my slug involve a USB attached LCD display and a temperature sensor, so I can be informed about various stuff, incuding the outside temperature, even with my regular computer off. Suggestions of what hardware I could use is highly appreciated.

18 April 2006

Joachim Breitner: The law of -unknown-

Quite a while ago, I read somewhere about someone formulating a low that goes approximately like this:
If you post to a mailing list and you don’t get a replay, you can’t tell whether it is because your post was absolute rubbish, or whether it was because your post was totally and perfectly correct and right.
A while now I’m trying to track down the origin, and especially the name of the guy who coined this law, but until now I failed. I think I remember it came from the perl5 (or was it perl6) mailing list, but I might be wrong.Who knows more?

Next.

Previous.