Archive for the Category » Linux «

Dienstag, September 15th, 2009 | Author: jean

The company i work for asked me to write a document about how to use DRBD and OCFS2 for MySQL Clustering as replacement for the MySQL NDB Stuff. This Document is nearly finished, however, today i talked with a friend, who’s working a lot with oracle databases and asked him what tests he would do to test the locking characteristics of the Filesystem. He told me this can be made using dd in 4 Tests:

  1. “dd if=/dev/zero of=/mnt/filename bs=100M count=100″ on Node1 on the Clusterfilesystem
  2. The same on the other node (Node2), the times should be equal.
  3. Two times (2x) the same on Node1, the time will break in
  4. Now on both nodes at the same time – The time should be higher, the higher the worse.

So, i did this checks on the System i’ve setup with DRBD and OCFS2, here are the results:
more…

Category: Linux  | 2 Comments
Montag, August 31st, 2009 | Author: jean

Hey,

ich hab von glako (danke!) nen’ acer aspire one bekommen, da habe ich mir jetzt erstmal Lunar Linux installiert, läuft ganz fein. aao2 Wobei ich anfangs schon etwas Probleme hatte bei der Installation. Aber das liegt eher daran das ich kein externes CD Rom bzw DVD Rom habe und somit leichte Probleme hatte irgendwas auf dem Teil zu installieren mangels Media. Wie auch immer. Rechts solltet ihr nen Screenshot sehen können.

Die Auflösung ist 1024x600px. Es läuft alles einwandfrei, bis auf die Grafikkarte. Manchmal wackelt das Bild, als ob es kurz nach rechts und links geht, als ob der Display sowas wie Autoadjustment macht. Wobei das wirklich nicht so häufig passiert, das passiert nur unter Last. Möglicherweise irgendwas, was ich falsch eingestellt habe, in der xorg.conf oder so.

Bin ich mir gerade nicht sicher. Mal sehen ich will demnächst mal sehen das ich Bluetooth einbaue, eine 1.8″ oder 2.5″ Festplatte, sowie die grünen Leds durch blaue austausche. Erstes sollte beides möglich sein, dafür habe ich schon Howtos gefunden. Bin etwas verwirrt was die SSD angeht – Dazu existiert ein Haufen an Informationen, Fakt ist einfach: Niemand kann sagen wann die SSD den Geist aufgibt, weil ich nicht einsehen kann (auch nicht mit smartctl) wieviele cycles die SSD schon hatte. Anders als Festplatten ist eine SSD limitiert – Hat eine SSD also maximal 100 000 write cycles – Hält Sie exakt 100 000 mal – beim 101 000 mal ist sie tot. Ganz einfach. Allerdings habe ich auch schon Hochrechnungen gesehen nach denen eine SSD 7-519 Jahre halten soll.. Also.. Nunja.

Whatever :-)

Category: Linux  | Leave a Comment
Mittwoch, Juli 15th, 2009 | Author: jean

A company i’m working for asked me to write a php script which is autoinstalling software like wordpress, gallery2, etc. I nearly finished that script, the only thing which is still missing is the “free-space” check. This is because it’s not simply just checking for the free space, in fact i have to check for quotas, if they exist, too. However, that was the reason why i played around with quotas.

First of all i enabled quota support in the Kernel. Then i added “usrquota,grpquota” to the options in /etc/fstab. After that i created the files quota.user and quota.group on / (which is the device i’m trying to work with quota on) and rebooted (-o remount was not working). Now back online i issued “quotacheck -avug” to the box and got:
more…

Category: Linux  | Leave a Comment
Sonntag, Dezember 21st, 2008 | Author: jean

After using OpenSolaris now for two weeks or something i started to think about the different licenses and in irc someone said “GPL isn’t free, the CDDL is” i was wondering about this sentence and so i started to look a bit at both licenses. What i found out, is the following link, which i got in IRC. This link is old though very interesting and explains it very good. If i understood it correct, the GPL forces everyone to use the GPL; you have to put all your modifications of a GPLd “thing” under the GPL. Thus you’re forced to use a license; you aren’t really free, as the license is trying to tell you. Though as i’m not a lawyer this could probably be wrong – write me if it’s wrong and i change it :)

copyrights_licenses_and_cddl_illustrated

Anyway. I think the CDDL is much more useful.

Sonntag, Dezember 07th, 2008 | Author: jean

Recently Rayne in #linux-forum.de posted a link to an Article, in which they wrote about VMGL. The whole Project seems very interesting and useful (respect!) anyway. I took this Article as a test, as i felt recently into a Problem with OpenSolaris Zones. I use X11 using TCP Connections within a Zone to the X Server of the Host. This works fine for normal Applications, but for more and Games like Urban Terror it’s not enough (30 FPS within the game on quiet good Hardware) – I’m not sure but i think using the Unix Socket would speed this up a lot. But as OpenSolaris Zones are totally different from a simply chroot where i could bind the Unix Socket – All my tries failed. Sym/Hardlinking doesn’t work either (logically as i found out). So for now, as i didn’t found a way to use the Socket, VMGL could probably do this Job.
more…

Montag, Dezember 01st, 2008 | Author: jean

Here are two Screenshots of my gnome desktop within OpenSolaris. On the right side you’ll see a terminal where i issued “zlogin lunar” to login to the Lunar Linux Zone. As you can see on Screenshot 1 – lin is working without any issues. As you can see on Screenshot 2 i’m even able to start x11 apps within that zone and let them run within XOrg in OpenSolaris.


By the way, just in case someone is interested, the background is a graphic from “The Forbidden Kingdom” a film with Jet Li and Jackie Chan. Nice Movie, i like it, though never seen Jet Li in such a funny “art” before :)

Dienstag, November 25th, 2008 | Author: jean

Hello,

today i wanna have a short look at ZFS, everytime i look at ZFS news and videos i get more interested into this filesystem but i bet i’m not alone. My first try getting opensolaris working within qemu failed. So i’ll try for now zfs-fuse (the linux port over fuse) with a bit luck i can play arround with ZFS then.

By the way, as i’m using “files” instead of real devices i can’t say anything to the performance.

more…

Category: Linux  | Tags: , , , ,  | 2 Comments
Montag, November 24th, 2008 | Author: jean

…dachte ich mir als ich heute über TheBonsai’s Blog gestolpert bin und seit einer Stunde am lachen bin (Nein. Keine Drogen, glaub ich, nur ein Bier’chen). Fangen wir mal an mit:

Link zum Thread Berechnung von Pi in einem Forum

Alleine die erste Seite ist schon zum weinen. Aber man soll sich über hilfesuchende nicht lustig machen. Sowas tut man nicht *kopfschyttel* gehen wir also über zu den Leuten die keine Hilfe suchen, sondern Hilfe geben.
more…

Category: Linux  | Tags: , , ,  | One Comment
Samstag, Mai 31st, 2008 | Author: jean

Rootkit Hunter ist eine sehr nette Applikation die möglicherweise hilfreich ist. Mithilfe diese Anwendung könnte man sein System per Cronjob öfter überwachen lassen und nach Rootkits ausschau halten, aber auch ein paar mehr Dinge werden angezeigt. Wer denkt er hat ein Rootkit installiert oder sich das Tool aus Sicherheitsgründen mal ansehen will wird bei folgender Website fündig:

http://rkhunter.sourceforge.net/

Die Ausgabe des netten Tools bei mir lokal ist übrigens:

System checks summary
=====================

File properties checks…
Required commands check failed
Files checked: 118
Suspect files: 13

Rootkit checks…
Rootkits checked : 109
Possible rootkits: 0

Applications checks…
Applications checked: 4
Suspect applications: 0

The system checks took: 2 minutes and 42 seconds

Category: Linux  | Leave a Comment
Samstag, Mai 31st, 2008 | Author: jean

Ich weiss nicht ob ich es schon vorgestellt habe, ich kam durch einen Zufall zu diesem Tool. Jan hatte es auf einem unserer Managed Kunden Server eingerichtet, da die desöfteren Brute Force Attacken via FTP, SSH und Co bekommen. Fail2ban liest dabei das Log aus und führt je nach Häufigkeit eine entsprechende Aktion aus. So lassen sich Brute Force Attacken vermeiden beziehungsweise “ausbremsen” – Die Aktion schreibt in unserem Fall bei zuvielen zuschnellen fehlerhaften Zugriffe eine Blacklist in IPTables voll und sperrt entsprechende IPs für einen bestimmten Zeitraum.

Mehr Informationen zu fail2ban gibts hier:

http://www.fail2ban.org/wiki/index.php/Main_Page

Category: Linux  | Tags:  | Leave a Comment