Ok, so far I’ve created a cfengine setup that works. On my main host ’elektron’ I’ve created a /export/nfsroot/x86 directory. This holds the general files for the x86 Ubuntu lazy clients. With 2 scripts (see below) I can easily create a whole new x86 from scratch. Bringing up new lazy clients is even more easy, once the groundwork is there. I only need to do three things:
fix the DNS (forward and reverse) fix the DHCP and add an ip address.
In my ongoing effort to make my lazy client work I’ve embarked on the next phase of the project: Making a client boot from a generic NFS mounted root partition and then giving it its own /etc on a ramdisk.
This way I’m saving disk space and administration overhead on my server. The virtual /etc is provisioned by cfengine. This allows for small changes between the lazy clients while they still share the bulk of the rest of the files.
while playing with cfengine I kept seeing these messages:
Cfengine input file had no explicit version string Well, I greped in the source of cfengine and this has helped me find the solution, in the file install.c we have the following:
3359 void VersionAuditFile() 3360 3361 { char *sp; 3362 3363 if (sp = GetMacroValue(CONTEXTID,"cfinputs_version")) 3364 { 3365 AUDITPTR->version = strdup(sp); 3366 } 3367 else 3368 { 3369 Verbose("Cfengine input file had no explicit version string\n"); 3370 } 3371 } (Line numbers are from VIM).
I want to quiet, full blown PC, without fans nor a harddisk in my living room. See my other blog about this subject
Currently I’m thinking about the following setup:
NFS4 root some sort of configuration management I wanted to use puppet, but after seeing it use more than 30% of my main memory – This is on a AMD64 Ubuntu server – I was ready to ditch it.
I’ve also have experience with cfengine, so I’m going to use that.
Or how to create new builtins for use in bash. Short answer: you can, but it is not enabled by default (at least on my distribution, Ubuntu)
This is also something that is done much better in zsh.
Why do want this? SPEED!
Shell scripting is a very easy way to program, but forking all these helper programs takes a lot of time. So one way to speed up your shell program is to load these programs into the shell and making them a builtin.
Google is always helpful of course, so I’ve found this blog entry on how to set the background in xfce.
It boils down to setting a jpg in XFCE’s backdrops.list and then reloading xfdesktop. Crude, but it works.
This can de done with the following command:
cat <<EOF > ~/.config/xfce4/desktop/backdrops.list # xfce backdrop list background.jpg EOF And then
xfdesktop --reload However when running from CRON it is more easy to do a killall -USR1 xfdesktop.
Working on backup programs for almost a decade now, I’ve had plenty of time to think about file system wrt backups. Basically I want the following properties in a file system
online snapshots in a .snapshots directory (for instance). the possibility to say the all those .snapshot directories must be mounted on a separate mount point. to ability so say the .snapshot directories should be encrypted and send to remote server.
After some switching I have now settled on XFCE. With Ubuntu XFCE sometimes does not start, this is a dbus issue in combination with gnome-screensaver (a race condition between the two). This sucks, but can be resolved easily with
apt-get remove gnome-screensaver (There aren’t any interesting option anyway…)
So my XFCE is now up and running, time for some tweaking.
In the quest for precious vertical pixels (especially on the EeePC 701 I own) I decided I must remove those pesky title bars.
I’ve battled with amavis too often and I started to dislike it a little. So when I wanted to configured my postfix setup to scan for viruses and spam and needed a solution which would work without amavis.
This is what I came up with.
debian administration was kind enough to do the hard work, but this is only the setup for clamav and I also want to spam scan.
I’ve written quite a few LaTeX documents during the last few years, but only recently I’m starting to discover very powerful new packages, like memoir and xelatex.
So I just wanted to share my “new” way of writing LaTeX docs.
First read the memoir class documentation. And the fontspec doc.
preamble This now looks like
\documentclass{memoir} \usepackage{eurosym} %% for the EURO \usepackage{fontspec} \usepackage{xltrxta} %% \XeTeX if you need it Usually this is hidden in one of my class files which implement a new look for a document.
Steps:
Read: How to use nice fonts in LaTeX
Install the software:
sudo apt-get install texlive-xetex
sudo apt-get install lcdf-typetools
The latter one is needed for otfinfo to determine the font family name.
Read /usr/share/doc/texlive-doc/xetex/XeTeX-reference.pdf
Use xelatex to create the pdf of your LaTeX documents
If you get the following error install the package lmodern
LaTeX Error: File `lmodern.sty' not found. Finally I can use truetype fonts in my LaTeX documentation.
DSA 1617-1 a security update from Debian says they forgot to update the SE Linux policy that would allow BIND9 to randomize its source ports…
I always found SE Linux to be too complex for my needs, but now it turns out you can actually be more vulnerable when you run SE Linux.
I know enough.
.nl employs a system for registering a domain name that works as follows:
you setup a zone you register the zone name .nl checks the zone from your nameservers if the zone is found to be OK, your name is registered if it is not ok, you have to fix your zone or the name is already claimed (you can check that before hand) This conflicts with how most ISPs work.
I’m trying to move my noisy server to the cellar I’m left with the question how do I cater for my desktop computer needs. I would be nice to have a thin client, but then you have the problem that local devices do not work: because you are actually working on the server, it needs to “know” somehow that you have locally inserted an USB disk. This sucks.
So how about a thick client, a client with enough power to run a full blown Linux distro.
Small script which display “teletekst” pages from the Dutch teletext (or the Belgium, but I’ve never used that).
I’m not the original author, but feel free to grab your copy.
#!/usr/bin/perl # # Dit scriptje laat de NOS teletext zien # # (c) 2001, 2002, 2003 by Bas Zoetekouw <bas@debian.org> # All rights reserved. # # Naar een idee van Wouter Bergmann-Tiest # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1.
This is an older article that I’ve brought back to live This was original written at the time of Linux 2.6.0
So be ware!
update As it turns out, the script below never did work correctly (see the bottom of this page for an updated version). The reason it did work for me was that sshn INET_2 never blocked outgoing port 25…until October the 8th. This was at the same time I was experimenting with linux2.
This info can also be found on the Internet, but I thought I compile it here too.
Problem You want to save something (say passwords) in a file and protect the file with a master password (say with your PGP/GPG key). This can be cumbersome unless you have vim.
The following examples will handle *.gpg files differently, vim will decrypt the file when opening it and encrypt the file when writing it.
You all, of course, know about the fc command. From bash’s help system:
fc: fc [-e ename] [-nlr] [first] [last] or fc -s [pat=rep] [cmd]
fc is used to list or edit and re-execute commands from the history list. FIRST and LAST can be numbers specifying the range, or FIRST can be a string, which means the most recent command beginning with that string.
Now I had the following problem: you have a file with shell commands in it.
Well, after giving Xmonad a chance I’ve reverted back to XFCE. This time with a 1-pixel wide window decoration. Short story: I really like the tiling of Xmonad (or any other tiling window manager). But you do miss some flexibility if you really want to move a window. Also I needed a panel and system tray, which are available as third-party tools, but aren’t the real deal.
So back to XFCE.
Every now and then I get the ‘prompt-itch’ and then I need to tweak my prompt again :) Of course I’m very happy with the way my prompt was.
My idea of a good prompt is to be as short as possible and still be informative about your environment:
Only tell stuff I’m really interrested in and for the rest SHUT THE HELL UP!
So no date output in my prompt, If I want to know the time I will type date myself.
I’ve created a new latex style to mimic some old school UNIX manuals I’ve been reading the past few months. It’s a very plain style that keeps out of your face. This in contrast with the blockbook style
This is how it looks:
You can read about it a small howto doc. To use it, you will also need the class file.
UPDATE I’ve updated the style file so that the description lists will be indented with the same amount of space, no so more
Hmmm, this is the second time in 1 year that I had a corrupt filesystem on my raid partition. I saw no other option than mke2fs -j /dev/md7.
My first problem with XFS started on my fileserver, which only had 256 MB of memory. Turns out XFS was OOM-ing inside the kernel, this in turned messed up the filesystem. xfs_repair was also running out of memory. When I finally got enough virtual memory in this box xfs_repair was kind enough to segfault.
The GNOME decadence thread got me thinking. What does GNOME give me? (I consider myself a hardcore UNIX user). Well… it gives a nice interface with a nice terminal implementation (gnome-terminal). Further more with the recent Ubuntu 8.04, it also provides
PulseAudio, never got that working btw, went back to ALSA. Tracker, what the hell was ever wrong with locate? Never got that working, and when I did, it was dog slow.
I’m publishing this for my own future reference. A short usage guide on git for an ex-svn addict.
goal client server init .git repo git init git init start remote repo git clone ssh://server add a file git add $file git add $file commit the file git commit -a -m"log" git commit -a -m"log" upload to server git push origin master import remote changes git reset --hard get changes from server git pull
Note: this is an older article that I’ve revived. Also note: in todays email flood I don’t know if such a popup is something you want to use…
#intro I’ve used gnubiff, xbiff and God knows what to provide a simple notify when receiving mail. But I wanted more. I want to be able to tweak certain settings, without going in to the source code of the application. Also the way mail notifiers mess with your mailbox is not something I particularly like.
On Jun the 7th I gave a little presentation about DNSSEC at the NLLGG meeting. The presentation is in Dutch and the title is: “DNSSEC, wat is het? Komt het er ooit nog van?”
(DNSSEC, what is it? Does it ever happen?)
the pdf of the presentation