Archive

Posts Tagged ‘linux’

Colorfull man pages

July 8th, 2011 6 comments

Ubuntu server installation provides colored man pages – nifty ;)
This is what has to be done to get it working in a X session terminal:

sudo aptitude install most
sudo update-alternatives --config pager

Choose “most” from the list and test it with a man pagge “man test”.

Have fun . . .

[update] As always, bert nows more ;) :
I have found a major and a minor flaw in using most as the man pager:

Major: I use the -X option for less (by putting them into the LESS env variable [1]). This does not clear the terminal on exit of less. Thus, you see the last viewed page of the manual. This is particular helpful when looking-up a command line option, so I can copy’n’paste the option to the command line after quitting less. I can’t find a similar option for most.

Minor: less shows the name of the manual page in the bottom prompt, while most just shows ‘*stdin*’.

Footnote [1]: For the curious reader, this is the content of my $LESS: -MSiRXF. Feel free to look them up in the manual.

Categories: bashism, fun, linux, Uncategorized Tags: ,

WinXP Epic Fail or how a penguin made my day

June 12th, 2011 No comments

Well, all work and no fun make Jack a dull boy. That’s why at my PC at home, there’s a Windows XP installed besides my usual Linux installation. With it I do the in my opinion only thing Windows is better in than Linux, gaming. One can have other opinions, but for now that’s not the point.

In my experience a Windows system needs just a little bit of time to get slower and slower and start behaving crazy which leads to getting unusable and to a reinstallation. I had to say I was a little bit proud of this special installation, because I had no real difficulties within the last 6 month. Maybe it is because I just installed a Firewall, a Software to detect viruses and the single game I usually play … or it just waited until I was unsuspecting. But today it greets me with a nice black screen and the following white letters on it:

Windows could not start because the following file is missing or corrupt:

<Windows-root>system32\hal.dll.
Please re-install a copy of the above file.

Ok I do not exactly know what this file does (Managing Hardware access if I have to guess), but I’m sure I never touched her, seriously!

After th obligatory reboot a little bit of panic, anger and sadness followed. In the next second I started searching the web for a solution, or to get a copy of this hal.dll file. I read a bit in crappy forums and decided to find a file download with the dull feeling in my mind, that it can’t be a good idea to get a system-essential file from a source I don’t trust. In this moment a little penguin in my mind whispered “wine”… First I was confused, I more like beer but then I understand – WINE!

Excited typing began, for the hunt of hal.dll in my wine source directory. I smiled when I found it at the expected position. “Too easy to work!”, I thought… Next I mounted my NTFS partition and copied the file to where it whould be if my stupid Win*** didn’t lost it. Unmount, Reboot and crosses fingers followed. And what should I say? SUCCESS!

At the end I need to say, it is a nice job for (not) an emulator to fix the stuff it (not) emulates! ;)

Categories: DOS, fun, linux, nerdcore, software, wtf Tags: , , ,

package of the day

May 30th, 2011 No comments

it has probably bin there from the beginning – i just didn’t know it was there. There’s a nifty little tool, simply called “at”, that can be used to schedule jobs for later execution. So instead of man-paging-together a long command line using shutdown to reboot my machine somewhen late at night i now do:

at 13:37
reboot
[ctrl]+[d]

The job is scheduled for the next point in time possible (that may be the next day if the time specified is already past). Each job gets assigned a number that can be used to delete it with “atrm” and one can list all jobs pending with “atq”.

. . . simplicity at work . . .

Categories: nerdcore, software Tags: , ,

CLT2011

March 19th, 2011 No comments

[12:15]

Sitze im 2. Vortrag. Showfloor sah heute sehr gefüllt aus.

Erster Vortrag von Mario Haustein zur WLAN Entfernungsmessung war sehr spannend und wissenschaftlich.

Zweiter Vortrag von Andreas Krennmair ist vom Thema (STFL Text GUIs) her spannend allerdings etwas offesichtlich (das ein GUI Framework verschiedene Widgets/Formulare besitzt sollte selbstverständlich sein). Vielleicht wird er in der nächsten halben Stunde noch etwas spannender.

[14:30]

CMake Vortrag war eher langweilig. Was allerdings lustig und (für mich neu) war ist die Windows Installer Funktionalität von CMake. Ist schon erstaunlich das man in einer Live Demo mingw benutzt um unter Linux ein Windows Binary zu Kompilieren und dann wine benutzt um es zu installieren und zu demonstrieren. Sind noch am überlegen ob wir in einen Kernel oder einen Security Vortrag gehen.

One-liner pin shell and processes

November 26th, 2010 No comments

There’s no rocket science content in this post. It’s just something I use often and don’t want to forget.
If you want to pin a shell and all prospectively started processes to a specific subset of cpus execute:

taskset -pc `echo $$` <cpu-list>

Not only that it limits intererences between processes (user 1 might work on node 1, user 2 on node 2), it can also help increase energy efficiency. If all background threads are pinned on a single processor-core, other cores can be send to sleep for a longer time period, which allows higher C-states.

Update: Added <cpu-list>

Categories: linux, nerdcore Tags: , ,

Release upgrade for Ubuntu 10.04

November 1st, 2010 1 comment

If you want to upgrade your Ubuntu 10.04 server to 10.10, and do-release-upgrade tells you No new release found, you might want to check the file /etc/update-manager/release-upgrades and set Prompt=normal.

Categories: linux Tags: , ,

Shortlink: Intel Non-Commercial Compiler

October 21st, 2010 No comments

Shortlink: Flashplayer 10 64bit for Linux

October 21st, 2010 No comments
Categories: linux, nerdcore Tags: , , ,

LCTP WS 2010/2011

October 1st, 2010 4 comments

Die Einschreibung für Linux-Cluster in Theorie und Praxis hat gerade offiziell begonnen. Einschreibung selbst erfolgt über jExam, alle die keinen Zugriff darauf haben sollten sich umgehend bei Andy Georgi melden.

Wie die Beschreibung schon verrät gibt es dieses Jahr einige interessante Neuigkeiten wie zum Beispiel ein CUDA fähiges Cluster. Außerdem haben wir einige nervige Sachen gekürzt und die spannenden Sachen erweitert. Insofern danke nochmal an die “Versuchskaninchen” von letztem Jahr ;-)

Wer also schon Erfahrung mit Linux hat und schon immer mal wissen wollte wie sich “Cluster Computing” anfühlt ist bei uns bestens aufgehoben. In Vorträgen bekommt Ihr die Grundlagen vermittelt die Ihr dann jeweils direkt im Anschluss auf eurem eigenen Cluster ausprobieren könnt. So entsteht Schritt für Schritt im Laufe des Semesters ein voll funktionsfähiges Linux-Cluster auf dem dann nach Herzens Lust “gespielt”/programmiert/gebenchmarkt/geübt werden kann.

Und jetzt los zur Einschreibung, bzw. zum Weitersagen!

Linux Cluster in Theorie und Praxis WS 2010/2011

August 3rd, 2010 1 comment

Auch dieses Wintersemester wird wieder die Vorlesung (mit Praktikum) “Linux Cluster in Theorie und Praxis” (Vorsicht, Link auf die alte Seite) angeboten. Nähere Hinweise werden bald auf den “Lehre”-Seiten des ZIH Internetauftrittes zu sehen sein.  Dieses Jahr haben wir 4 Cluster, somit können wir 12 Leute durch das Praktikum begleiten. Der Inhalt ist ähnlich wie letztes Jahr, der Administrations-Teil etwas gestrafft dafür mehr Zeit für Programmieraufgaben und Benchmarks.

Wer Interesse und Fragen hat möge sich bitte mit Andy Georgi in Verbindung setzen.

Categories: hpc, linux, nerdcore, science Tags: , , , ,