Published on 07 Jun 2004
When trying to run a graphical program under a different user than the X server, this is not permitted on a properly configured system. often xhost
is used to allow the local host or a limited number of remote hosts access to the local X server. unfortunately, this mechanism does not differentiate between users and introduces a security risk because all users on such a machine are allowed to use the X server.
Published on 07 Jun 2004
Have you ever wanted to remove the content of one file from the content of another file linewise? I have been in the situation several times.
Published on 07 Jun 2004
Instead of first creating a tarball and then using scp to transfer it to another host, you could simply:
Published on 07 Jun 2004
Unfortunately, the default perl sort algorithm was changed to Mergesort (formerly Quicksort) which does not provide in-place sorting as Quicksort does. This fact and some obscure stupidity in the implementation causes the space requirements to be much higher than the size of the original list.
Published on 07 Jun 2004
It is sometimes useful to revert to the revision of a file that has already been checked in:
Published on 07 Jun 2004
After several months of excessive usage of my Gentoo desktop, a pile of package is installed some of which I do not need or want anymore. Unfortunately, it is not save to unmerge an arbitrary package because it might damage another package that depends on the first. Therefore, I needed some magic to compile a list of leafs in the dependency tree to decide which packages can be unmerge safely.
Published on 07 Jun 2004
Bash’s job control facilities:
Published on 07 Jun 2004
Bash supports various constructs for substituting contents of variables.
Published on 07 Jun 2004
To change the keymap of your X server while it is running use the following command:
Published on 07 Jun 2004
Various hints that do not justify a dedicated node: