logo   

ociru.net

   ... of course it runs Un*x.

runwhen: undefined reference to scan_uint

| Comments

You’re compiling runwhen with a recent version of skalibs? You may encounter the following error:

1
2
3
4
5
6
7
Making compile/host/rw-match
./compile/host/rw-match.o: In function `main':
rw-match.c:(.text.startup+0x13e): undefined reference to `scan_uint'
collect2: error: ld returned 1 exit status

The following files were not made successfully:
command/rw-match

With skalibs 1.4.2, runwhen won’t compile. The solution is pretty simple, but hard to find if you’re not reading a couple of mailing lists. scan_uint has been refactored to uint_scan in the recent release of skalibs. Just replace scan_uint to uint_scan in rw-match.c and everything compiles nicely.

Thanks a lot to the guys from uberspace.de for pointing me to the solution.

Compiling runit on EL6

| Comments

If you try to compile runit on EL6, you may encounter the following error:

1
2
3
4
5
[...]
./compile runit.c
./load runit unix.a byte.a -static/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [runit] Error 1

That’s because your system is missing the glibc-static package; use yum install -y glibc-static and your build will succeed.

Highlight what could be highlighted

| Comments

As last post for 2013, I want to highlight (SCNR) two advantages of having a color screen while working on the Un*x CLI.

ccze

CCZE is a robust and modular log colorizer with plugins for apm, exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, vsftpd, xferlog, and more.

I learned about ccze a few years ago, and since then it promoted itself to daily usage. Get it with apt-get or yum (it’s in EPEL) and enjoy colorful output like

1
$ tail -f /var/log/syslog | ccze

man pages with colors

Highlighting in man pages is possible as well; it’s just not documented well.

1
2
3
4
5
6
7
8
# colorful manpages
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'

Try it out! And have a colorful 2014.

GRML as rescue boot

| Comments

I already wrote about the benefits of having a rescue system like GRML on hand, so I won’t try to convince you again. But what’s the use of a PXE enabled rescue environment while sitting on a train and screwing up your LVM? There’s no need to search for your rescue thumb drive, because – let’s face it – it’s always in the last pocket you look at or not even with you at all.

Happy Birthday Doom

| Comments

20 years ago, on December 10th 1993, id Software reached a milestone in computer gaming history: Doom was released to the public. Presumably the most ported software ever turns twenty!

Doom may not be old enough to buy beer from the liquor store but let’s celebrate anyway – with style of course – the Phobos way:

1
$ apt-get install doomsday doom-wad-shareware

By the way, also in 1993, Microsoft released Windows NT 3.1 and Windows for Workgroups 3.11.

DO YOU WANT TO QUIT TO DOS?
(Y/N) _