Linux

TOP

Ubuntu 14.04 Trusty: Mapping USB keyboards

I bought a Cherry G84-4700PUCDE-2 keypad about three years ago to have some "special multimedia keys" on the left side of my keyboard. It used to work after some trying until I upgraded to Ubuntu 14.04. The "trusty" release removed support for /lib/udev/findkeys and /lib/udev/keymap and replaced both by something called "hwdb". Converting turned out to be hard, because there are many wrong hints out there spread over the internet.

Weiterlesen
TOP

Speed up RAID5/RAID6 write speed

I'm currently upgrading from Ubuntu 9.04 to Ubuntu 12.04, a long process as every upgrade does only one step. This is the price you pay for skipping all updates of the last years. It's even slower since I moved my root filesystem to a RAID6.

Weiterlesen
TOP

CRON: User account has expired

Recently, I discovered strange messages in a servers system log. The cron daemon was complaining about an expired user account, but there are no user accounts on this server, which should ever expire.

Weiterlesen
TOP

Apache2 mit PHP5-FPM und chroot-Jail

Seit einiger Zeit arbeite ich mit PSGI/Plack, aber erst jetzt weiß ich, wie schön Plackup, Starman & Co. wirklich sind - denn heute wollte ich "mal eben" PHP5 in eine FastCGI-Umgebung schieben. Dafür gibt es den PHP-FPM (FastCGI Process Manager), der mittlerweile wie auch alles andere was nur wenige Leute brauchen Teil des PHP-Core ist und dieser unterstützt sogar die Absicherung der PHP-Scripte mittels chroot - allerdings habe ich keine Anleitung im Internet gefunden, die dieses wichtige Security-Feature tatsächlich nutzt.
Weiterlesen
TOP

Add custom items to Ubuntu NM dnsmasq.conf

The Ubuntu NetworkManager (NM) is great (exept for servers), it's taking care of all network issues up to VPN. NM supports using multiple network connections with multiple DNS servers and probably multiple private domains by running a local DNSmasq process which will forward all lookup requests to the proper nameserver. But the NM is new and still missing some feature - like additional or custom configuration lines for DNSmasq.
Weiterlesen
TOP

Google Drive / Google Docs icon in Ubuntu Unity Starter

I like Google Docs (which is now Google Drive, but I rarely use it as a cloud drive), but Opera and Google Docs aren't good friends and Chrome seems to be the only best browser to use Google's "online office". I like Opera and have no reason switching to Chrome except docs.
Weiterlesen
TOP

Setting up a VServer without VServer support

My development server is a remote Vserver image running under VirtualServer or OpenVZ or anything else. I don't know because I don't care because other people do. I'm used to develop over SSH a lot, this is not problem, but I'm limited to CIFS as a Vserver can't provide NFS. NFS with cachefilesd was fast enough to work on the sources, at least most of the time, but CIFS is a complete fail. Browsing a small directory in my editor may easily take two or three minutes and saving files takes up to 30 seconds.
Weiterlesen
TOP

Clean up old kernel images from Ubuntu

My laptop has "only" 20 GB for the root-partition / including home, usr and var. This is enough but recent updates dropped my free space below 1 GB and lately below 500 MB. I noticed that various kernel images & modules are wasting spaces but not used at all.
Weiterlesen
TOP

Bottleneck file-I/O

Database load, disk, CPU and memory usage are known ressources on modern servers, but there is another one which is much more important: The I/O volume is limited and can't be raised as easy as all the others. It has no fixed limit and can't be measured (very good). It's a rare (maybe the most rare) good and shouldn't be wasted.
Weiterlesen
TOP

Ubuntu CIFS Probleme

Manchmal sind Problemlösungen extrem kompliziert, langwierig und teuer. Manchmal auch nicht, so zum Beispiel bei folgender Meldung unter Ubuntu:
Weiterlesen
TOP

AVM Fritz!Card, Asterisk and Ubuntu - a link collection

I'm running a small server at home which does storage services, telephone and MythTV in one box. The VoIP part is served by Asterisk (what else?) and a AVM FritzCard PCI.

Weiterlesen
TOP

Thunderbird vs. Postgres CPU usage

Für eine kleine Analyseaufgabe habe ich heute einige hunderttausend Zeilen in eine temporäre Datenbank importiert, für solche Aufgaben starte ich einen lokalen PostgreSQL Server. Während er also fleissig vor sich hin importiert schaue ich kurz in die Mails und dann etwas ungläubig auf die "top"-Anzeige.
Weiterlesen
TOP

Better source: svn client-side precommit hooks

Every single line of source code is being tested very deeply before being committed, isn't it? Well, maybe in a perfect world but reality has very little space for testing your source and simple typos often break stuff unnecessarily. Developers usually don't like testing at all, they want to develop new stuff and finish annoying tasks as fast as possible.
Weiterlesen
TOP

Neue Festplatte für RAID1 und RAID6

Kürzlich habe ich unseren Home-Server neu aufgebaut und dabei ein RAID1, ein RAID6 und ein RAID5 eingerichtet. Das RAID1 und RAID6 sollten jeweils drei bzw. fünf Festplatten(partitionen) nutzen, da zunächst jedoch noch die alten Daten kopiert werden mussten, hatte ich bisher noch nicht genug Ports für alle Festplatten frei.
Weiterlesen
TOP

CIFS/SMBFS/Samba und der Filesystem Cache cachefilesd

Die Arbeit im Homeoffice hat nicht nur Vorteile, denn alle Ressourcen sind irgendwo im Internet fern ab des eigenen Netzes. Deswegen nutze ich NFS für den Dateizugriff und den cachefilesd (FSC) zur Beschleunigung. Die NFS-Möglichkeit ist jetzt allerdings unerwartet weggefallen und so stellte sich mir die Frage ob der cachefilesd auch mit CIFS, dem Nachfolger von smbmount & Co., nutzbar ist.
Weiterlesen