Do 3. Okt 14:25:33 CEST 2013 (osti)

Bootprobleme beheben

Für die ['ju:nien] XVII-LAN-Party in Bälde und Hagen bereite ich einen schönen UT-Server mit MoxQuizz vor. Dafür habe ich einen alten Laptop mit Kaputtmonitor genommen und ein frisches Gentoo installiert. Die Kiste hatte leider vorher schon Boot-Probleme:

Sobald der Kernel hochkam, gab es plötzlich einen Neustart. Umgehen ließ sich dies, indem man kurz den Memtest laufen ließ (wenige Sekunden). Aber das ist jetzt für einen Server keine Lösung. Da Problem tritt auch bei einem Live-Stick auf, daher tippe ich auf eine „Art Hardwareschaden“.

Nun kann man dem Linux-Kernel einige Bootoptionen mitgeben. Folgende haben das Problem beheben können:

noapic nolapic.

Zudem habe ich mir noch ein acpi=off gegönnt, denn es soll ja ein Server sein. Und weil der externe Monitor mit der Auflösung des defekten Einbaumonitors nicht klarkommt, gab es noch ein nomodeset. Dann ist die Konsole zwar richtig „konsolelich“ (im Sinne von: gering auflösend), aber es soll ja auch ein Server sein.



Achja, um noch einmal meinem Ärger Luft zu machen:

Welche Idioterei soll denn dieses schreckliche „vorhersagbare Namensgebegung“ für eth0? Was ist denn an „eth0“ nicht vorhersagbar?

Ich hatte schonmal ne Kiste mit fünf Netzwerkkarten, die hießen ganz vorhersagbar dann „eth0“, „eth1“, „eth2“, „eth3“ und „eth4“. Was gibt es denn daran rumzuändern?

Wer so einen Unfug wie „enp3s0“ abschalten möchte, gibt dem Kernel einfach ein dezentes „net.ifnames=0“ mit.

Dann sieht die /boot/grub/menu.lst also wie folgt aus:

default 0 timeout 1

title Gentoo Linux-3.10.7 root (hd0,0) kernel /boot/linux-3.10.7 root=/dev/sda2 noapic nolapic acpi=off nomodeset net.ifnames=0

Posted by osti | Permalink | Categories: Linux

Sa 10. Aug 20:14:07 CEST 2013 (osti)

vim 7.4

From: Bram Moolenaar <Bram (ät) moolenaar.net>
Subject: Vim 7.4 released!
Date: Sat, 10 Aug 2013 15:44:43 +0200
Hello Vim users,
Announcing:  Vim (Vi IMproved) version 7.4
A small number of problems have been fixed since 7.4b BETA.  It's now
tested sufficiently, time for a release!
The biggest additions since 7.3:
- A new, faster regular expression engine.
- More than a thousand fixes and small improvements.
Once you have installed Vim 7.4 you can find details about the changes
since Vim 7.3 with:
        :help version-7.4
Gratitude

Posted by osti | Permalink | Categories: Linux

So 4. Aug 10:11:59 CEST 2013 (osti)

gpg für Blog-E-Mails?

Hans-Peterchens Bankrotterklärung # 147 vor einigen Tagen lautete ungefähr „Verschlüsselungstechniken, Virenabwehrprogramme, all diese Fragen müssen noch mehr in den Fokus gerückt werden.“

Wie der ein oder andere bemerkt hat: Im Impressum dieses Blogs wird eine täglich wechselnde E-Mail-Adresse als Spam-Schutz genutzt. Leider kann ich gpg nicht überreden, blog_*@k-raum.org als Wildcard-Adresse zu akzeptieren.

Hat jemand unserer Netzaktivisten eine Idee?

Posted by osti | Permalink | Categories: Linux

Fr 2. Aug 12:42:07 CEST 2013 (osti)

systemd rauf und runter

Ich habe grade mal systemd ausprobiert und die Anleitung im Gentoo-Wiki ausprobiert.

Fazit: Gesehen, nicht gelacht, gelöscht. Toll, dass das Runterfahren nur einen Bruchteil einer, statt gefühlten zwei Sekunden dauert. Hochfahren war dafür überhaupt nicht schneller.

Und das Wlan ging erst gar nicht an. Zum Glück ist nichts kaputt gegangen. Weg damit.

Fazit: Zurück zu den Unix-Wurzeln in Form von OpenRC.

Ein paar Warnungen vor systemd gibt es hier, hier, und hier.

Udev hat leider auch seine Problemchen.

Hier hingegen kann man auch mal fröhlich sein.

Posted by osti | Permalink | Categories: Linux

Do 9. Mai 19:29:03 CEST 2013 (osti)

vim 7.4 coming soon

Bram schreibt auf der vim-Mailingliste:

Message-Id: <201305090351.r493pmaI003470@masaka.moolenaar.net>


We are now at patch level 7.3.931. In a few weeks we would reach 999. I don't want to find out what happens if we go over that, so it's time for Vim 7.4!


Leider schafft es das kollaborative Editieren noch nicht in 7.4.

Posted by osti | Permalink | Categories: Linux

Do 28. Feb 14:25:56 CET 2013 (osti)

git: ignore ownership

Sometimes your collaborative work requires automagic chmod and chown (changing of access rights and ownerships of files). Then git asks you to commit these changes, but which are not really significant.

To overcome this, just kindly ask git to ignore file mode:
git config core.filemode false

Posted by osti | Permalink | Categories: Linux

Mi 27. Feb 09:39:51 CET 2013 (osti)

page up

Your linux bash allows for a quick line-completion with your Page-Up key. Probably you did not know — since many distributions lack this essential functionality. Do enable it, simply paste this into your /etc/inputrc (probably you want to remove other bindings for page up and down):

"\e[5~": history-search-backward
"\e[6~": history-search-forward

Posted by osti | Permalink | Categories: Linux

So 25. Mär 11:03:51 CEST 2012 (osti)

SSH escape character

Today I have a nice tip for our regular ssh users out there. It's the EscapeChar config parameter.

Some might recall sending $CHR(27) from their C64 to an attached Epson compatible dot matrix printer: then the next character will not be printed, but is interpreted as a configuration parameter (like bold face, underline, etc).

Users of GNU screen often type CTRL-A plus something, where something controls the screen session (like changing screen, creating a new one, or killing it). Also telnet comes with a bunch of escape sequences. But what about SSH?

You can define your escape character as an EscapeChar in your ~/.ssh/config, or via the -e switch at start time. To be effective, the escape character has to be typed on a new line. Let's assume ~.

Then ~~ gives a literal ~; ~? prints a help, ~. kills the connection. With ~# you see active port forwardings. Wait, you forgot to forward a port, again? No problem any longer: ~C gives you a command line that lets you add (or remove) port forwardings.

Have a lot of fun.

Posted by osti | Permalink | Categories: Linux

So 4. Mär 20:02:10 CET 2012 (osti)

rush hour @ junien registration

Okay, it's 8 pm and 2 minutes, and we already have 42 registrations for the next ("last") junien lanparty.

What, still not registered? click here, hurry!

Plot of the first 120 seconds:
plot of the first 120 seconds

Posted by osti | Permalink | Categories: Travelling, Linux

Do 1. Mär 08:21:04 CET 2012 (osti)

it's getting foolish...

Our friends over at junien.de finally found a slogan: "langsam wird's albern". Since a junien LAN party is never foolish, registration starts on Sunday, 20 pm local. So get your connection clean, since the first ~50 fools click just in the first seconds.

Posted by osti | Permalink | Categories: Travelling, Linux

Sa 18. Feb 14:07:10 CET 2012 (osti)

Sum it up with... PostScript

Lizzie's planning to buy wool for new stitching projects and has a list of prices. To sum them up I proposed the following PostScript one-liner:
...
 7.95
13.95
18.95
...
count 1 sub { add } repeat =
A more exhaustive PostScript programme to print a table also exists.

Posted by osti | Permalink | Categories: Linux

Di 7. Feb 07:53:34 CET 2012 (osti)

coding: lucky look

Some weeks ago new digital cameras for IRP's microscopes arrived. Project name of my web-based live viewer: lucky look.

List of features, those marked with an asterisk (*) are planned, those with a plus (+) are currently under development and testing:
  • Half sized (or in 2D: quarter sized) and full size live view mode
  • Collaborative markers and lines in different colours, parallel for all users
  • Generate PostScript file including markers and lines, to print and paste into your lab book (different sizes)
  • Live viewing everywhere, including hutch and canteen
  • (+) Parallel viewing of two cameras (we have three)
  • (*) Add text notes
  • (*) Set exposure time and gain from your running spec session
  • (*) Support of layers that can be hidden
  • (*) Remove single markers
  • (+) Screenshots follow shortly.
So, happy coding. And always use the vim.

Posted by osti | Permalink | Categories: Physics, Linux

Mo 23. Jan 08:14:29 CET 2012 (osti)

the "last" junien LAN party

Hi there,

just some seconds ago I realised that the nuts over at junien.de have agreed on a date for their next "last" social event, featuring high-speed LAN connectivity and maximum throughput of beer. Or coffee, in my case.

A quick <ul> with the details:
  • ['ju:niɘn] XVI
  • October 12th to 14th
  • Stadthalle Hagen
  • next to Mercure Hagen
  • beam be up, Spock
See you there!

Posted by osti | Permalink | Categories: Travelling, Linux

Do 19. Jan 08:19:57 CET 2012 (osti)

coding: a collaborative microscope viewer

At the IRP we got new microscope cams for our set-up at P10. If shutter speed allows for maximum frame rate, they give you 74 MByte per second, so two of them pose quite a challenge on our network connections.

Currently I'm working on web based live viewer using a MJPEG coder, that allows for viewing the stream from every computer on our network, not just only one (as before). Markers (crosses and lines) are drawn by Javascript in an HTML canvas; they also appear on all screens (but can soon be muted).

Posted by osti | Permalink | Categories: Physics, Linux

Fr 13. Jan 08:20:54 CET 2012 (osti)

xfce4-terminal and keyboard repeat: smooooth!

Some time ago I did not find enough time to post a bug report, concerning a strange key repetition delay in my xfce4-terminal. Two days ago I tried some updates, et voilà, problem solved.

Still running x11-terms/terminal-0.4.8; I guess it's x11-libs/vte-0.28.2-r202 that did the trick.

Posted by osti | Permalink | Categories: Linux