A different evening

Yesterday evening I attended a lecture named “Open Source - Linux, disruptive technology or cost cutting measure?</i>” where Richard Seibt spoke. There where about 20 people and it was very exciting. I talked a little bit with him later and he seems like a really great guy.

Remote logging with syslog

Today i played around with syslogd and here is what I learned:

To enable syslog to recieve logs from remote machines you have to give the syslogd an -r parameter. I Debian you have edit /etc/inet.d/syslogd to enable remote logging. A bug has allready been filed about this #205239

On other systems like RedHat you can configure it in /etc/sysconfig/syslog where you set SYSLOGD_PARAMS=”-r”

Now restart syslog with:

machine:~# /etc/init.d/sysklogd restart

To configure the clients edit /etc/syslog.conf:

#Remote logging to
*.* @

And restart syslog like above (now on you client).

NOTE - You can only have comments on newlines. This example is WRONG!!

*.* @ #My log machine<

DVD cover dimensions

I also found that the size (dimensions) of a DVD cover should be: 272mm x 184mm. When giving the cover 3mm overfill the size is 278mm x 190mm.

I also found this for a booklet:

The pictures above is taken from A1cds (but not directly linked to).

SVG rasterizer with Batik

At work I sit at a fairly slow machine so it takes forever to transform svg files to high resolution bitmap pictures. Also Java has a default upper memory limit which is quickly excited when exporting to high resolution bitmap pictures. This problem is solved when the default upper limit is increased: -Xmx128m (use 128MB RAM)

I ssh’ed home to my desktop machine and tried to use Batik there. But I got the exception:

Error: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

This happens when no X server is running but I googled around for while and found a solution to the problem: -Djava.awt.headless=true

So I ended up with something like this:

user@debian:~$ java -Xmx128m -Djava.awt.headless=true -jar batik-rasterizer.jar -dpi 300 -d out.png in.svg

A section about date and time in Debianguiden.dk

On my way to work I got a crazy thought. IIRC at least 3 questions about how to set time and date has been asked on the danish Debian help forum. This should be addressed with writing a section about how to set date and time on a Debian box. The section should contain a little info about date, rdate with cron and a third command to set the date (which I can’t remember the name).