Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

Liberation Fonts vs. Microsoft Fonts

Blogged by Max1 as Linux, London, bla... — Max1 So 22 Nov 2009 17:29

In einer Diskussion über Open Source vs. Proprietäre Software ist, denke ich, klar wo ich stehe.

Da bei mir an der Uni wirklich alles ziemlich laut Microsoft schreit, war es früher oder später abzusehen, dass sowas kommen würde.
Und zwar die Guidelines für einen Labreport.

Report should be produced using a suitable office package (Word, Excel, Powerpoint)

Okay, soweit noch kein Problem, dafür gibts ja OpenOffice.org .

Aber damit ist es noch nicht getan:

Text in Times New Roman, 1.5 line spacing, fully justified, margin ca. 2 cm sides, 3 cm on top and bottom.

Damit wird es dann doch schon hakeliger. “Times New Roman” klingt schon ganz stark nach M$. Und natürlich ist unter OOo unter Linux TNR so erstmal nicht verfügbar. Um dieses Problem zu lösen hat RedHat die “Liberation Fonts” entwickelt. Diese sind OpenSource und sollen möglichst nahe an die MS Fonts herankommen.

Aber, was ich auch nicht wusste, offenbar hat Microsoft die Core Web fonts mal als OpenSource veröffentlicht. Microsoft’s TrueType core fonts on Linux

Also kann man dieses Problem nochmal umschiffen. Wirklich, wirklich interessant wird die Diskussion (auf die ich mich jetzt schon freue, die Uni ist wirklich M$ durch und durch :) ), wenn die neuen Fonts von Office 2007 verlangt werden.
Denn ein freies Äquivalent gibt es noch nicht, und diese Aussage von M$ klingt schon sehr restriktiv:

You may use the fonts that accompany the PowerPoint Viewer only to display and print content from a device running a Microsoft Windows operating system.

Ins Detail geht hier der oooninja:

Metric Equivalent Fonts and Font Substitution

Install Free Office 2007 Fonts for Linux and XP

BFS vs CFS [Update 2]

Blogged by Max1 as Linux, bla... — Max1 So 25 Okt 2009 20:46
Tagged as: , , , ,

Wer Linux benutzt verwendet (in den allermeisten Fällen) einen Kernel mit dem Standard-Scheduler CFS (Completely Fair Scheduler).
Kernel Hacker Con Kolivas hat dem schon vor einiger Zeit ein völlig neues Konzept, den Brain Fuck Scheduler (BFS) entgegengestellt.

Der Grundunterschied der Auswirkungen für den User liegt in der ‘responsiveness’ des Systems. CFS ist darauf ausgelegt auf riesige Maschinen zu skalieren, und unterscheidet dabei nicht zwischen dem normalen Rechner für zu Hause oder einem 4096 CPU Gerät. (Die Zahl 4096 CPUs taucht in der Diskussion als Richtlinie für Skalierbarkeit immer wieder auf.)
Ebensowenig wird meist zwischen dem Einsatzgebiet, Desktop oder eben Server unterschieden. (Es gibt hierfür zwar einige Möglichkeiten in der Kernel Konfiguration, aber wer den Standardkernel seines Distributors verwendet, unterscheidet hier zwangsläufig nicht.)

Die Folge ist eine Trägheit die ich auch schon öfter bemerkt habe. Wenn ich z.B. große Dateimengen kopiere, nebenher vllt noch einige youtube videos schaue, fängt die Maus an zu ruckeln. Das Umschalten zwischen Arbeitsflächen dauert mehrere Sekunden. Und das alles obwohl die CPU Last unter 10% liegt. Sehr störend.

Nun verwende ich schon seit einigen Wochen den BFS. Um etwas zu testen habe ich vorhin mal wieder einen Kernel mit CFS gebootet, und auch gleich mal mehrere GB auf meinen USB Stick kopiert. Den direkten Vergleich zwischen den beiden Schedulern hatte ich so noch nie gezogen. Fakt ist: Diese Probleme die CFS beim Kopieren großer Datenmengen und anderen lastenden Vorgängen macht, Ruckeln der Maus, langsame Reaktion, sind unter einem Kernel mit BFS nicht vorhanden.

Ich kann nur jedem ans Herz legen, der leidenschaftlicher Linux Nutzer ist, seinen nächsten Kernel mit dem BFS zu kompilieren. Dazwischen liegen Welten!

Update 1: Gerade habe ich mal einen Kernel mit BFS304 (Version 0.304) kompiliert. Es ist immernoch 2.6.31 btw, mal sehen wie sich das auf die Stabilität auswirkt. (Alles oben geschriebene war 2.6.31 mit BFS221, und litt doch an der einen oder anderen Stabilitätsschwäche….)

Update 2: Die Abstürze die ich mit BFS221 noch ab und zu erlebt habe, sind bisher unter 304 nicht aufgetreten… :)

ASM-Gefrickel, gescripte, debugfs

Blogged by Max1 as Debian, Linux, bla... — Max1 Mo 1 Jun 2009 19:08
Tagged as: , , , ,

Da schaffe ich es doch tatsächlich, nach einem ohnehin schon recht komischen Wochenende, meine Arbeit von heute (gute 6 Stunden) mal eben zu löschen.

Aber der Reihe nach.

Zunächst habe ich mich die Tage doch tatsächlich mal am Patchen (man sollte hier vielleicht eher cracken sagen, aber das klingt für mein ‘Können’ zu hochtrabend) eines Programmes versucht. Nein, nicht weil ich es nicht kaufen will und auch nicht um den Patch zu veröffentlichen. (Was ich ganz sicher nicht tun werde…)
Mir waren nur Diskussionen aufgefallen, dass für die neue Version des Programms sogar der Patch/Crack/WasAuchImmer verkauft wird und es sonst keinen gäbe. Das hat mich dann doch dazu verleitet, mir einfach mal anzuschauen, ob das tatsächlich so schwer ist.
Ein (sehr gutes!) Flash-Tutorial zum Umgang mit OllyDBG und einige Stunden später war es dann geschafft, und es funktioniert sogar. Mehr schlecht als recht, da ich an einigen Stellen mehr auf gut Glück modifiziert habe… Es scheinen aber die richtigen Stellen gewesen zu sein.

So, dann gab es noch ein kleines Script um automatisiert (HTTP) POST-Requests zu fahren, in PHP. Auch das tut mittlerweile seinen Dienst.

Wenn ich dann nicht gerade eben meine Hausübung (es war etwas knifflig, mehrere Stunden Arbeit) gelöscht hätte, wäre soweit alles gut. Jetzt sitze ich hier von einer Gentoo Live-CD und krame mit debugfs in Inode-Tabellen rum. Die “DiskInternals Linux Recovery” bekommt aber auch mal eine Chance, ist vielleicht komfortabler als das Händische…sowas ärgert maßlos!

DNS [Update]

Blogged by Max1 as Linux, bla... — Max1 So 17 Mai 2009 17:05
Tagged as: , , ,

In Zeiten von “Zensursula” habe ich vorsichtshalber mal damit angefangen, nicht mehr die Tcom DNS Server zu verwenden.

Warum angefangen, ist doch schnell gemacht? Genau, dachte ich auch. Ich bin aber immernoch auf der Suche nach einem Dienst mit passabler Geschwindigkeit. Ich konnte mich noch nicht näher darum kümmern, daher habe ich erstmal auf OpenDNS umgestellt. Allerdings bin ich mit der Performance nicht zufrieden. Die Frage ist, ob das an OpenDNS, meinem Router, oder doch an der Art der Namensauflösung in GNU/Linux liegt? Oder stimmt an der resolvconf was nicht?

Komischerweise ist, wenn ich mit dem “host” Befehl teste, immer genau jeder zehnte aufruf um 3-4 Sekunden verzögert. (Mit immer der gleichen Domain als Parameter.) Und das hat sich auch nach der Installation von nscd nicht geändert. Was mir schon äußerst merkwürdig erscheint.
Ich werde mich heute Abend nochmal näher damit beschäftigen.

Update 1: Also das Problem scheint wirklich openDNS zu sein. Wenn ich manuell deren DNS Server ansteuere, habe ich die Hänger noch öfter. Allerdings ist nscd auch nicht unschuldig. Auch bei anderen DNS Servern, die bisher ohne Probleme laufen, habe ich besagte Hänger sowie ich nscd anwerfe. Allerdings erst nach dem 15-20. query nach der gleichen Domain. Sehr komisch. Jedenfalls klappt es ohne nscd (ich hoffe mal die Speedports haben auch einen DNS cache, sonst tut mir der Server Leid) und mit 82.229.244.191 als primary wunderbar. Der Server gehört OpenNIC, was den Vorteil hat, dass man z.B. auch .geek Domains auflösen kann. ;)
Der Server steht in Frankreich, wer noch nähere oder zusätzliche Server sucht wird hier fündig: http://wikileaks.org/wiki/Alternative_DNS
Ich habe den Server des FoeBuD e.V. als secondary.

Nach langer Zeit…

Blogged by Max1 as Debian, Linux, bla... — Max1 So 17 Mai 2009 14:17

… nehme ich mir nun endlich mal wieder die Zeit ein bisschen was zu berichten.

Einiges hat sich getan, seit meinem letzten Beitrag.

Mit dem Abitur in der Tasche bin ich momentan als Student der Informatik (Bachelor of Science) an der TU-Darmstadt anzutreffen. (Wenn auch nicht für lang, aber dazu (hoffentlich) in den nächstan Tagen mehr Details.)

Nachdem die Krise mit meinen Seagate-Platten überstanden ist, habe ich dann meine Rechnerfamilie erweitert.
Ein Thinkpad R400 ist es am Ende geworden, (Core 2 Duo T5870 2GHZ), mit einer 7200 rpm Festplatte, 9-Cell Akku und 4 GB DDR3 RAM.

Ich bin mit dem Geräte bisher sehr zufrieden, nur an der Akkulaufzeit spürt man die schnellere Festplatte, aber vielmehr noch den nicht ganz aktuellen Core 2 Duo. Die in den Thinkpad T-Modellen (und auch den meisten anderen Rs, vorallem die 500er) verbauten Core 2 Duos mit der Bezeichnung PXXXX verbrauchen doch nochmal gut ein Drittel weniger Strom als der bei mir verbaute T5870.
Allerdings war es mir das für die Preisersparnis wert, wenn man wirklich am Gerät arbeitet hält der Akku bisher ca. 5,5 Stunden, das reicht mir. (In den Modellen mit P Core 2 Duo (besonders der Thinkpad T-Reihe) sollen es bis zu 9 Stunden sein, ich denke mal 7-8 ist realistisch.)
Es läuft ein Hybrid-System aus Debian Squeeze und SID, wobei momentan alle Pakete komplett auf SID (unstable) Stand sind. Das muss momentan für die neuen Centrino 2 Plattformen sein. Und seit Kernel 2.6.29.2 läuft auch bluetooth.

Das einzige was noch nicht ganz so will wie ich sind die Sondertasten, damit muss ich mich die Tage mal befassen, dem HAL die fehlenden Belegungen beizubringen.

Ansonsten habe ich noch das Standardproblem (ist momentan bei allen meinen Rechnern der Fall) der fehlenden System-Sounds (Systemklänge) in Gnome. Egal ob EsoundD oder pulseaudio, die Server laufen, aber die Systemsounds nicht. Das muss also auch noch in Angriff genommen werden.

/home finally RAID-protected

Blogged by Max1 as Debian, Linux, bla... — Max1 Di 3 Feb 2009 12:28

I finally found the time to protect at least some partitions by a RAID1 array.

debian:/home/max# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sda7[2] sdb7[1]
50395776 blocks [2/1] [_U]
[=======>.............] recovery = 36.1% (18207488/50395776) finish=6.5min speed=82215K/sec

unused devices:

Why not the whole disk? Well, for my root partition I, at least for now, prefer backing up my data manually. As RAID1 protects my data from a failing harddrive, it does NOT protect it from a failing user (i.e. me). So if I accidently delete something important (who knows), I can at least restore it.

Neuer GPG Key

Blogged by Max1 as Linux, bla... — Max1 Mi 17 Dez 2008 22:16
Tagged as: ,

Es ist mal wieder soweit, der alte Key ist expired. Es gibt einen Neuen, diesmal 2 Jahre gültig:

GPG-Key: 6C29B594

Why we love Microsoft – Outlook Express 6 and SASL Auth / SSL

Blogged by Max1 as Debian, English, Linux, bla... — Max1 Di 1 Jul 2008 10:57

Since I’m using Thunderbird for my emailing I didn’t know about that problem. But one site I’m hosting recently has Emailusers that are using Microsoft’s Outlook Express 6 (The one that ships with XP).

What I didn’t know is that OE6 neither handles SSL handshakes correctly, nor is able to authenticate the user properly via SASL auth.

So you either get an error saying the server doesn’t support SSL, but you see the server’s reply code being ‘250 OK’.
Or you get an error depending on sender-, helo-, and recipient restrictions you’ve got. In my case I have implemented various checks concerning the hostname of the qualified client and of course RBL. Both will reject the ‘normal’ user connecting with OE6.
Normally, when the client authenticates himself none of the above mentioned checks will be done, and for that matter none of the authenticated clients will be blocked.

But if you’re using OE, you will be. (Is that actually a bad thing? ;) )

So I hope the solution I’m going to test later on is going to work:

For the SSL thing you can add ssl_wrapper_mode to postfix’s main.cf and connect on port 465. That SHOULD be working.

The SASL Auth thing should be fixed by adding ‘broken_sasl-auth_clients = yes’ to main.cf .

I’ll post here whether it worked or not.

Kernel 2.6.24-1 and Ralink WIFI

Blogged by Max1 as Debian, English, Linux, bla... — Max1 Mo 18 Feb 2008 20:21

I ran into this issue about two weeks ago, but didn’t get through to writing about it.

The new (Debian) Kernel 2.6.24-1-amd64 no comes with ‘built in’ drivers and firmware for various Ralink WIFI devices. E.g. there are drivers for both PCI and USB devices (rt2×00 chipsets, including rt2500 (pci), rt2400) from rt2×00.serialmonkey.com compiled as modules into the kernel.
Unfortunately, those drivers really didn’t work out for me. My WIFI PCI Card has got a Ralink rt2500 chipset. I used to compile the module myself, using the rt2500 drivers from rt2×00.serialmonke.com CVS.
But with kernel 2.6.24-1 various modules, such as rt2×00, rt2×00pci, rt2500, rt2500pci, were loaded automatically. But the result wasn’t what I had hoped for. Even though my WIFI card was recognized immediately and connecting to my WIFI was really easy, because of the new GNOME network manager that includes WIFI connections, the transferrate always went down to 1 Mbit/s.

I could not manage to get it faster.

So the conclusion, I built the kernel again, manually, without any WIFI support included. Then I used those nice rt2500 CVS drivers from serialmonkeys.org and all works fine again :)

Currently I’m spending my very rare free time (I’m pretty busy with school right now) on getting my gentoo installation to work properly ;)

Edit: (Thanks adlerweb): Yeah I know I could’ve blacklisted the built-in modules, but I was in the mood (and found some time ;) ) for some ‘handicrafts’

logcheck and SPF

Blogged by Max1 as Debian, Linux, bla... — Max1 Mo 10 Dez 2007 20:49

Since I’m trying out logcheck an logcheck-database (the etch packages) and SPF I had to add some lines for logcheck to ignore. However some of them are not really SPF related.

(weiterlesen…)

Updating wbb 1.2 to phpbb 2 / 3

Blogged by Max1 as English, Linux, bla... — Max1 So 2 Sep 2007 18:05
Tagged as: , , , , ,

For my work I have merged Woltlab Burning Board (wbb) 1.2 to phpbb 2 (that of course can then be updated to phpbb 3).

My environment is PHP5 and MySQL 5. Some problems I’ve been facing could possibly be *not* apearing on older installations of PHP/MySQL.

What you need for that is:

The phpBB 2.0.0 installation didn’t work correctly because I’m using MySQL 5 (the installation worked (during the setup just check MySQL 4.x when you’re asked) but I e.g. couldn’t log in) but I don’t think this is going to be a problem.

What you have to do first (after installing phpBB 2.0.0) is to make the images / avatars and images / smilies wirteable by the webserver (chmod 777/700 on suPHP servers).

Now we do the important change. Since the converter is natively made for WBB 1.1.X , you have to make the following changes:

(Codechange #1) Find every line that contains _data.inc.php in import.php and change it to admin/_data.inc.php. There should only be two lines with that path, so not much to change.

(Codechange #2) Then you have to edit the beginning of import.php and set the correct paths. Only edit this first 3-4 lines !

Afterwards upload the files (import.php and import_db.php) to your WBB folder on the server.

Now go to yourdomain.com/yourwbbfolder/import.php in your browser.

If you are receiving this error right now: ERROR: Unable to find wBB global.php include.
Check path defines.
You either didn’t do Codechange 1 or 2.

Now click on Start Import.

Then do the next step.

If you receive any error like: “Forumname: All Forums need a category” which I did quite a few times, do that:

(Databasechange #1) You have to edit the WBB boards table (e.g. with phpmyadmin) in that way, that every forum has a parent.
That means we need to edit the “boardparentid” for each board that is displayed to us in the error message (after you fixed one and refreshed the importer you might probably get that error again for another forum). For me it worked to just set “boardparentid” to 1 for every board. Of course that configuration is then wrong after the update, because not every board was having 1 as parent when we started, but we can change that later in the new forum.

Then we go for the next step:

You will get an error: * Deleting existing users :: OK
Fatal error: Cannot access empty property in …../webs/Max1/hwsboard/import_db.php on line 81

(Codechange #3) As this is a “normal” PHP parse error, we can simply fix this by finding the wrong code, which is the following in import_db.php :

$this->free_result($this->$query_id);

This of course has to be:

$this->free_result($this->query_id);

Reupload the files and you will get some further.

After that I got: * Converting moderators ::
Database error in WoltLab Burning Board: Invalid SQL: SELECT objectid, boardid FROM bb1_object2board WHERE mod = ‘1′

Unfortunately I couldn’t really find a fix for that as this seems to be a problem because I’m using MySQL 5 and all the scripts are just old.
The easiest way to get round this is to comment that part in import.php out.

(Codechange #4)

So put this:

// Moderators convert
print ” * Converting moderators :: “;
flush();
$user_mods = array();
$moderators = $DB_site->query(“SELECT objectid, boardid FROM bb”.$n.”_object2board WHERE mod = ‘1′”) or die_nice(“Unable to get moderators”);
while (list($objectid,$forumid) = $DB_site->fetch_array($moderators)) {
$user_mods[] = $objectid;
$group_query = $db->sql_query(“SELECT group_id FROM ” . USER_GROUP_TABLE . ” WHERE user_id=”.$objectid) or die_nice(“Unable to get group_id for user”);
list($groupid) = $db->sql_fetchrow($group_query);
$db->sql_query(“INSERT INTO ” . AUTH_ACCESS_TABLE . ” (group_id, forum_id, auth_mod) VALUES ($groupid, $forumid, 1)”) or die_nice(“Unable to insert moderators”);
}
// Update user_level for users that are moderator
if (count($user_mods)) {
$sql = “UPDATE ” . USERS_TABLE . ”
SET user_level = ” . MOD . ”
WHERE user_id IN (” . implode(“, “, $user_mods) . “) AND user_level <> ” . ADMIN;
$db->sql_query($sql) or die_nice(“Couldn’t update user levels to moderator”);
}

into /* …. */. This means that moderator information is not going to be updated and we have to reassign moderators manually afterwards.

The next step is topics. It worked just as is for me.

Then posts. Then polls.

* Importing polls ::
ERROR: Unable to insert poll options

That again isn’t too difficult to fix.

(Codechange #5)

Find that part in import.php:

while ($opt = $DB_site->fetch_array($opt_query))
{
$ins_opt_sql = “insert into phpbb_vote_results (vote_id, vote_option_text, vote_result) values (” . $poll[pollid] . “, ‘” . addslashes($opt['field']) . “‘, ” . $opt['votes'] . “)”;
$db->sql_query($ins_opt_sql) or die_nice(“Unable to insert poll options”);
}

(Or simply search for Unable to insert poll options in import.php)

We can easily see that “Insert Into phpbb_vote_results …” can’t be correct. That query isn’t using our defined prefix for the phpBB DB but just the default. So change that default to your setting. E.g. if your prefix is phpbb2 change it to phpbb2_vote_results.

Next: pm.

Next: wordlist.

Next: end.

And that’s it (hopefully). How far all that is working with an update to phpBB 3 afterwards… we will see ;)

So long.

Flash and Debian etch amd64

Blogged by Max1 as Debian, English, Linux — Max1 Mi 2 Mai 2007 20:55

I got it running, finally :)

Thanks to debianforum.de my flashplayer is working now :).

The whole story: The (Macromedia) Adobe Flashplayer and the plugin for Firefox (Iceweasel on Debian) is not available for amd64 architecture.

So you have to trick it out a little. Here’s how it worked (this works as well for Iceweasel):

- At first you have to install “alien”
apt-get install alien

- Then you need to download the plugin and the viewer from
http://gwenole.beauchesne.info/en/projects/nspluginwrapper#downloads

- After that edit the files using alien -d on both of them

- Now here’s a list how to proceed:

dpkg -i nspluginwrapper*.deb

apt-get install linux32 ia32-libs-gtk gsfonts-x11

(Note: as Debian etch got stable, the package ia32-libs-gtk is no longer available. I just downloaded it from HERE and installed it.)

Then download the flash plugin from a i386 mirror.
I got one from here:
http://gulmer.funmrd.gov.ve/debian/pool/contrib/f/flashplugin-nonfree/?N=D

dpkg -i –force-architecture flashplugin-nonfree_9.0.31.0.1_i386.deb

dpkg -L flashplugin-nonfree|grep so | xargs rm -f

cd /usr/lib/mozilla/plugins

nspluginwrapper -i /usr/lib/flashplugin-nonfree/libflashplayer.so

Here’s where the entry on debianforum.de endet, but someone postet further information, which is good ( :) ) because so far it didn’t work for me (using Iceweasel)

The next step would be to create symlinks (ln -s) in ~./mozilla/plugins (if the directory doesn’t exist, fell free to create it!) to /usr/lib/mozilla/plugins/npwrapper.so and /usr/lib/mozilla/plugins/npwrapper.libflashplayer.so

Restart Iceweasel and Flash should be working fine :)

Source: www.debianforum.de

______________________________________________________

Update: 11th May: Okay, I think that OpenOffice issue is solved and doesn’t really have anything to do with this FlashPlayer thing ;)
The problem seemed to be the fglrx driver I installed. I used the package built by the ATI installer, which requires libstdc++5 ! And it seems as if OpenOffice stops working right after libstdc++5 is installed! So I used the package provided by Debian non-free, and ran module-assistant prepare, which updates the whole thing, so it’s using libstdc++6 afterwards (at least I think so, from what it was prompting ;) ). After running module-assistant update and the rest that is said here: http://wiki.cchtml.com/index.php/Debian_Installation_Guide ; the fglrx is working AND OpenOffice is working. :)

Errormessage:

max@debian:~$ openoffice
/usr/lib/openoffice/program/soffice: line 254: 8987 Gleitkomma-Ausnahme "$sd_prog/$sd_binary" "$@"

** (process:8971): WARNING **: Unknown error forking main binary / abnormal early exit ...

Update: 28th May: So, I tested the whole Flash on amd64 thing for a little while now, and it’s working out pretty much okay. I’m still having some problems while e.g. watching lots of youtube vids in a row, as the flash player stops working from time to time (you just can’t see any of the flash things anymore). I didn’t get around this yet, but what works for me right now is, just when the flashplayer stops working, I switch to epiphany browser… and if it stops working there as well after a while, I switch back to iceweasel ;)
But this only keeps happening if I really watch a lot stuff in flash in a row. I’ll post here if I find a solution ;)

Update: 2nd June: If I forgot to say so… PLEASE don’t do this shown above unless you know what you’re doing. As I figured out, the procedure can cause some problems updating the system. Like destroying the software index list etc… didn’t find a fix for that yet.

Update: 18th August: Soooo I’ve got some news. There is an official flashplugin-nonfree package available for amd64 architecture (of course you have to add non-free sources to sources.list). As I’m using Debian SID right now, I don’t know whether it’s as well available for lenny or etch, but you can get it from backports.org. Simply installing that using apt worked perfectly for me!


Proudly powered by wordpress 2.9.1 - Theme Back in Black 2 by neuro
Copyright © 2006-2007 schlaflos-in-mainz.de - All rights reserved
Impressum / Disclaimer